IT. Expert System.

Android Reference

WifiStateMachine


android.net.wifi

Class WifiStateMachine

  • java.lang.Object
    • com.android.internal.util.StateMachine
      • android.net.wifi.WifiStateMachine


  • public class WifiStateMachine
    extends com.android.internal.util.StateMachine
    Track the state of Wifi connectivity. All event handling is done here, and all changes in connectivity state are initiated here. Wi-Fi now supports three modes of operation: Client, SoftAp and p2p In the current implementation, we support concurrent wifi p2p and wifi operation. The WifiStateMachine handles SoftAp and Client operations while WifiP2pService handles p2p operation.
    • Constructor Detail

      • WifiStateMachine

        public WifiStateMachine(Context context,
                        String wlanInterface)
    • Method Detail

      • getMessenger

        public Messenger getMessenger()
        Methods exposed for public use
      • syncPingSupplicant

        public boolean syncPingSupplicant(com.android.internal.util.AsyncChannel channel)
        TODO: doc
      • startScan

        public void startScan(boolean forceActive)
        TODO: doc
      • setWifiEnabled

        public void setWifiEnabled(boolean enable)
        TODO: doc
      • setWifiApEnabled

        public void setWifiApEnabled(WifiConfiguration wifiConfig,
                            boolean enable)
        TODO: doc
      • setWifiApConfiguration

        public void setWifiApConfiguration(WifiConfiguration config)
      • syncGetWifiState

        public int syncGetWifiState()
        TODO: doc
      • syncGetWifiStateByName

        public String syncGetWifiStateByName()
        TODO: doc
      • syncGetWifiApState

        public int syncGetWifiApState()
        TODO: doc
      • syncGetWifiApStateByName

        public String syncGetWifiApStateByName()
        TODO: doc
      • syncRequestConnectionInfo

        public WifiInfo syncRequestConnectionInfo()
        Get status information for the current connection, if any.
        Returns:
        a WifiInfo object containing information about the current connection
      • syncGetDhcpInfo

        public DhcpInfo syncGetDhcpInfo()
      • setDriverStart

        public void setDriverStart(boolean enable,
                          boolean ecm)
        TODO: doc
      • captivePortalCheckComplete

        public void captivePortalCheckComplete()
      • setScanOnlyMode

        public void setScanOnlyMode(boolean enable)
        TODO: doc
      • setScanType

        public void setScanType(boolean active)
        TODO: doc
      • syncGetScanResultsList

        public List<ScanResult> syncGetScanResultsList()
        TODO: doc
      • disconnectCommand

        public void disconnectCommand()
        Disconnect from Access Point
      • reconnectCommand

        public void reconnectCommand()
        Initiate a reconnection to AP
      • reassociateCommand

        public void reassociateCommand()
        Initiate a re-association to AP
      • syncAddOrUpdateNetwork

        public int syncAddOrUpdateNetwork(com.android.internal.util.AsyncChannel channel,
                                 WifiConfiguration config)
        Add a network synchronously
        Returns:
        network id of the new network
      • syncGetConfiguredNetworks

        public List<WifiConfiguration> syncGetConfiguredNetworks(com.android.internal.util.AsyncChannel channel)
      • syncRemoveNetwork

        public boolean syncRemoveNetwork(com.android.internal.util.AsyncChannel channel,
                                int networkId)
        Delete a network
        Parameters:
        networkId - id of the network to be removed
      • syncEnableNetwork

        public boolean syncEnableNetwork(com.android.internal.util.AsyncChannel channel,
                                int netId,
                                boolean disableOthers)
        Enable a network
        Parameters:
        netId - network id of the network
        disableOthers - true, if all other networks have to be disabled
        Returns:
        true if the operation succeeds, false otherwise
      • syncDisableNetwork

        public boolean syncDisableNetwork(com.android.internal.util.AsyncChannel channel,
                                 int netId)
        Disable a network
        Parameters:
        netId - network id of the network
        Returns:
        true if the operation succeeds, false otherwise
      • addToBlacklist

        public void addToBlacklist(String bssid)
        Blacklist a BSSID. This will avoid the AP if there are alternate APs to connect
        Parameters:
        bssid - BSSID of the network
      • clearBlacklist

        public void clearBlacklist()
        Clear the blacklist list
      • enableRssiPolling

        public void enableRssiPolling(boolean enabled)
      • enableBackgroundScanCommand

        public void enableBackgroundScanCommand(boolean enabled)
      • enableAllNetworks

        public void enableAllNetworks()
      • startFilteringMulticastV4Packets

        public void startFilteringMulticastV4Packets()
        Start filtering Multicast v4 packets
      • stopFilteringMulticastV4Packets

        public void stopFilteringMulticastV4Packets()
        Stop filtering Multicast v4 packets
      • startFilteringMulticastV6Packets

        public void startFilteringMulticastV6Packets()
        Start filtering Multicast v4 packets
      • stopFilteringMulticastV6Packets

        public void stopFilteringMulticastV6Packets()
        Stop filtering Multicast v4 packets
      • setHighPerfModeEnabled

        public void setHighPerfModeEnabled(boolean enable)
        Set high performance mode of operation. Enabling would set active power mode and disable suspend optimizations; disabling would set auto power mode and enable suspend optimizations
        Parameters:
        enable - true if enable, false otherwise
      • setCountryCode

        public void setCountryCode(String countryCode,
                          boolean persist)
        Set the country code
        Parameters:
        countryCode - following ISO 3166 format
        persist - true if the setting should be remembered.
      • setFrequencyBand

        public void setFrequencyBand(int band,
                            boolean persist)
        Set the operational frequency band
        Parameters:
        band -
        persist - true if the setting should be remembered.
      • getFrequencyBand

        public int getFrequencyBand()
        Returns the operational frequency band
      • getConfigFile

        public String getConfigFile()
        Returns the wifi configuration file
      • sendBluetoothAdapterStateChange

        public void sendBluetoothAdapterStateChange(int state)
        Send a message indicating bluetooth adapter connection state changed
      • syncSaveConfig

        public boolean syncSaveConfig(com.android.internal.util.AsyncChannel channel)
        Save configuration on supplicant
        Returns:
        true if the operation succeeds, false otherwise TODO: deprecate this
      • updateBatteryWorkSource

        public void updateBatteryWorkSource(WorkSource newSource)
      • toString

        public String toString()
        Description copied from class: Object
        Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
           getClass().getName() + '@' + Integer.toHexString(hashCode())

        See Writing a useful toString method if you intend implementing your own toString method.

        Overrides:
        toString in class Object
        Returns:
        a printable representation of this object.
      • recordLogRec

        protected boolean recordLogRec(Message msg)
        Overrides:
        recordLogRec in class com.android.internal.util.StateMachine
        Returns:
        true if msg should be saved in the log, default is true.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 230 / 158861503. Delta: 0.02827 с