IT. Expert System.

Android Reference

WifiWatchdogStateMachine


android.net.wifi

Class WifiWatchdogStateMachine

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


  • public class WifiWatchdogStateMachine
    extends com.android.internal.util.StateMachine
    WifiWatchdogStateMachine monitors the connection to a WiFi network. When WiFi connects at L2 layer, the beacons from access point reach the device and it can maintain a connection, but the application connectivity can be flaky (due to bigger packet size exchange).

    We now monitor the quality of the last hop on WiFi using packet loss ratio as an indicator to decide if the link is good enough to switch to Wi-Fi as the uplink.

    When WiFi is connected, the WiFi watchdog keeps sampling the RSSI and the instant packet loss, and record it as per-AP loss-to-rssi statistics. When the instant packet loss is higher than a threshold, the WiFi watchdog sends a poor link notification to avoid WiFi connection temporarily.

    While WiFi is being avoided, the WiFi watchdog keep watching the RSSI to bring the WiFi connection back. Once the RSSI is high enough to achieve a lower packet loss, a good link detection is sent such that the WiFi connection become available again.

    BSSID roaming has been taken into account. When user is moving across multiple APs, the WiFi watchdog will detect that and keep watching the currently connected AP.

    Power impact should be minimal since much of the measurement relies on passive statistics already being tracked at the driver and the polling is done when screen is turned on and the RSSI is in a certain range.

    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.android.internal.util.StateMachine

        com.android.internal.util.StateMachine.LogRec
    • Field Summary

      Fields
      Modifier and Type Field and Description
      static boolean DEFAULT_POOR_NETWORK_AVOIDANCE_ENABLED
      • Fields inherited from class com.android.internal.util.StateMachine

        HANDLED, NOT_HANDLED
    • Method Summary

      Methods
      Modifier and Type Method and Description
      void dump(PrintWriter pw)
      static WifiWatchdogStateMachine makeWifiWatchdogStateMachine(Context context)
      • Methods inherited from class com.android.internal.util.StateMachine

        addLogRec, addLogRec, addState, addState, deferMessage, dump, getCurrentMessage, getCurrentState, getHandler, getLogRec, getLogRecCount, getLogRecSize, getLogRecString, getName, getWhatToString, haltedProcessMessage, isDbg, obtainMessage, obtainMessage, obtainMessage, obtainMessage, obtainMessage, onHalting, onQuitting, quit, quitNow, recordLogRec, removeMessages, sendMessage, sendMessage, sendMessage, sendMessageAtFrontOfQueue, sendMessageAtFrontOfQueue, sendMessageAtFrontOfQueue, sendMessageDelayed, sendMessageDelayed, sendMessageDelayed, setDbg, setInitialState, setLogRecSize, start, transitionTo, transitionToHaltingState, unhandledMessage


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: 220 / 158861493. Delta: 0.07353 с