/**@class android.net.wifi.WifiInfo implements android.os.Parcelable @extends java.lang.Object Describes the state of any Wifi connection that is active or is in the process of being set up. */ var WifiInfo = { /** Default MAC address reported to a client that does not have the android.permission.LOCAL_MAC_ADDRESS permission. @hide */ DEFAULT_MAC_ADDRESS : "02:00:00:00:00:00", /**@hide */ INVALID_RSSI : "-127", /**@hide */ MIN_RSSI : "-126", /**@hide */ MAX_RSSI : "200", /** The unit in which links speeds are expressed. */ LINK_SPEED_UNITS : "Mbps", /** Constant for unknown link speed. */ LINK_SPEED_UNKNOWN : "-1", /** Frequency in MHz */ FREQUENCY_UNITS : "MHz", /** Running total count of lost (not ACKed) transmitted unicast data packets. @hide */ txBad : "null", /** Running total count of transmitted unicast data retry packets. @hide */ txRetries : "null", /** Running total count of successfully transmitted (ACKed) unicast data packets. @hide */ txSuccess : "null", /** Running total count of received unicast data packets. @hide */ rxSuccess : "null", /** Average rate of lost transmitted packets, in units of packets per second. @hide */ txBadRate : "null", /** Average rate of transmitted retry packets, in units of packets per second. @hide */ txRetriesRate : "null", /** Average rate of successfully transmitted unicast packets, in units of packets per second. @hide */ txSuccessRate : "null", /** Average rate of received unicast data packets, in units of packets per second. @hide */ rxSuccessRate : "null", /** @hide */ score : "null", /**Implement the Parcelable interface {@hide} */ CREATOR : "null", /** @hide */ reset : function( ) {}, /** @hide */ setSSID : function( ) {}, /**Returns the service set identifier (SSID) of the current 802.11 network. <p> If the SSID can be decoded as UTF-8, it will be returned surrounded by double quotation marks. Otherwise, it is returned as a string of hex digits. The SSID may be <lt><unknown ssid>, if there is no network currently connected or if the caller has insufficient permissions to access the SSID.<lt> </p> <p> Prior to {@link android.os.Build.VERSION_CODES#JELLY_BEAN_MR1}, this method always returned the SSID with no quotes around it. </p> @return {String} the SSID. */ getSSID : function( ) {}, /** @hide */ getWifiSsid : function( ) {}, /** @hide */ setBSSID : function( ) {}, /**Return the basic service set identifier (BSSID) of the current access point. <p> The BSSID may be <lt>{@code null}, if there is no network currently connected.</lt> <lt>{@code "02:00:00:00:00:00"}, if the caller has insufficient permissions to access the BSSID.<lt> </p> @return {String} the BSSID, in the form of a six-byte MAC address: {@code XX:XX:XX:XX:XX:XX} */ getBSSID : function( ) {}, /**Returns the received signal strength indicator of the current 802.11 network, in dBm. <p>Use {@link android.net.wifi.WifiManager#calculateSignalLevel} to convert this number into an absolute signal level which can be displayed to a user. @return {Number} the RSSI. */ getRssi : function( ) {}, /** @hide */ setRssi : function( ) {}, /**Returns the current link speed in {@link #LINK_SPEED_UNITS}. @return {Number} the link speed or {@link #LINK_SPEED_UNKNOWN} if link speed is unknown. @see #LINK_SPEED_UNITS @see #LINK_SPEED_UNKNOWN */ getLinkSpeed : function( ) {}, /** @hide */ setLinkSpeed : function( ) {}, /**Returns the current transmit link speed in Mbps. @return {Number} the Tx link speed or {@link #LINK_SPEED_UNKNOWN} if link speed is unknown. @see #LINK_SPEED_UNKNOWN */ getTxLinkSpeedMbps : function( ) {}, /**Update the last transmitted packet bit rate in Mbps. @hide */ setTxLinkSpeedMbps : function( ) {}, /**Returns the current receive link speed in Mbps. @return {Number} the Rx link speed or {@link #LINK_SPEED_UNKNOWN} if link speed is unknown. @see #LINK_SPEED_UNKNOWN */ getRxLinkSpeedMbps : function( ) {}, /**Update the last received packet bit rate in Mbps. @hide */ setRxLinkSpeedMbps : function( ) {}, /**Returns the current frequency in {@link #FREQUENCY_UNITS}. @return {Number} the frequency. @see #FREQUENCY_UNITS */ getFrequency : function( ) {}, /** @hide */ setFrequency : function( ) {}, /** @hide TODO: makes real freq boundaries */ is24GHz : function( ) {}, /** @hide TODO: makes real freq boundaries */ is5GHz : function( ) {}, /**Record the MAC address of the WLAN interface @param {String} macAddress the MAC address in {@code XX:XX:XX:XX:XX:XX} form @hide */ setMacAddress : function( ) {}, /** */ getMacAddress : function( ) {}, /** @return {Boolean} true if {@link #getMacAddress()} has a real MAC address. @hide */ hasRealMacAddress : function( ) {}, /**Indicates if we've dynamically detected this active network connection as being metered. @see WifiConfiguration#isMetered(WifiConfiguration, WifiInfo) @hide */ setMeteredHint : function( ) {}, /**{@hide} */ getMeteredHint : function( ) {}, /**{@hide} */ setEphemeral : function( ) {}, /**{@hide} */ isEphemeral : function( ) {}, /**{@hide} */ setTrusted : function( ) {}, /**{@hide} */ isTrusted : function( ) {}, /**{@hide} */ setOsuAp : function( ) {}, /**{@hide} */ isOsuAp : function( ) {}, /**{@hide} */ isPasspointAp : function( ) {}, /**{@hide} */ setFQDN : function( ) {}, /**Returns the Fully Qualified Domain Name of the network if it is a Passpoint network. */ getPasspointFqdn : function( ) {}, /**{@hide} */ setProviderFriendlyName : function( ) {}, /**Returns the Provider Friendly Name of the network if it is a Passpoint network. */ getPasspointProviderFriendlyName : function( ) {}, /**{@hide} */ setNetworkSuggestionOrSpecifierPackageName : function( ) {}, /**{@hide} */ getNetworkSuggestionOrSpecifierPackageName : function( ) {}, /** @hide */ setNetworkId : function( ) {}, /**Each configured network has a unique small integer ID, used to identify the network. This method returns the ID for the currently connected network. <p> The networkId may be {@code -1} if there is no currently connected network or if the caller has insufficient permissions to access the network ID. </p> @return {Number} the network ID. */ getNetworkId : function( ) {}, /**Return the detailed state of the supplicant's negotiation with an access point, in the form of a {@link android.net.wifi.SupplicantState android.net.wifi.SupplicantState} object. @return {Object {android.net.wifi.SupplicantState}} the current {@link SupplicantState SupplicantState} */ getSupplicantState : function( ) {}, /** @hide */ setSupplicantState : function( ) {}, /** @hide */ setInetAddress : function( ) {}, /** */ getIpAddress : function( ) {}, /** @return {Boolean} {@code true} if this network does not broadcast its SSID, so an SSID-specific probe request must be used for scans. */ getHiddenSSID : function( ) {}, /**Map a supplicant state into a fine-grained network connectivity state. @param {Object {SupplicantState}} suppState the supplicant state @return {Object {android.net.NetworkInfo.DetailedState}} the corresponding {@link DetailedState} */ getDetailedStateOf : function( ) {}, /**{@hide} */ removeDoubleQuotes : function( ) {}, /** */ toString : function( ) {}, /**Implement the Parcelable interface {@hide} */ describeContents : function( ) {}, /**Implement the Parcelable interface {@hide} */ writeToParcel : function( ) {}, };