• Home
  • History
  • Annotate
  • only in /frameworks/opt/net/wifi/service/java/com/android/server/wifi/

..20-Dec-20164 KiB

anqp/20-Dec-20164 KiB

BackupManagerProxy.java20-Dec-20161 KiB

BaseWifiLogger.java20-Dec-20161.5 KiB

BuildProperties.java20-Dec-20161.1 KiB

Clock.java20-Dec-20161.7 KiB

configparse/20-Dec-20164 KiB

ConfigurationMap.java20-Dec-20166.3 KiB

FrameworkFacade.java20-Dec-20166.3 KiB

hotspot2/20-Dec-20164 KiB

IMSIParameter.java20-Dec-20162.6 KiB

nan/20-Dec-20164 KiB

NetworkUpdateResult.java20-Dec-20161.7 KiB

p2p/20-Dec-20164 KiB

PropertyService.java20-Dec-20161.3 KiB

README.txt20-Dec-20162 KiB

RttService.java20-Dec-201626.3 KiB

ScanDetail.java20-Dec-20167.6 KiB

ScanDetailCache.java20-Dec-201611.4 KiB

scanner/20-Dec-20164 KiB


SoftApManager.java20-Dec-20167.8 KiB

StateChangeResult.java20-Dec-20161.6 KiB

SupplicantStateTracker.java20-Dec-201615.1 KiB

SystemBuildProperties.java20-Dec-20161 KiB

SystemPropertyService.java20-Dec-20161 KiB

util/20-Dec-20164 KiB

WifiApConfigStore.java20-Dec-20167.1 KiB

WifiCertManager.java20-Dec-20165.1 KiB

WifiConfigManager.java20-Dec-2016132 KiB

WifiConfigStore.java20-Dec-201653.3 KiB

WifiConfigurationUtil.java20-Dec-20161.8 KiB

WifiConnectivityManager.java20-Dec-201646.6 KiB

WifiController.java20-Dec-201638.3 KiB

WifiCountryCode.java20-Dec-20167.8 KiB

WifiInjector.java20-Dec-20162.1 KiB

WifiLastResortWatchdog.java20-Dec-201623.8 KiB

WifiLockManager.java20-Dec-201610.7 KiB

WifiLogger.java20-Dec-201624.8 KiB

WifiLoggerHal.java20-Dec-20162.4 KiB

WifiMetrics.java20-Dec-201654.4 KiB

WifiMonitor.java20-Dec-201658 KiB

WifiNative.java20-Dec-2016108.5 KiB

WifiNetworkHistory.java20-Dec-201630.4 KiB

WifiNetworkScoreCache.java20-Dec-20166.9 KiB

WifiNotificationController.java20-Dec-201613.6 KiB

WifiQualifiedNetworkSelector.java20-Dec-201646.8 KiB

WifiScoreReport.java20-Dec-201617.3 KiB

WifiService.java20-Dec-20161.4 KiB

WifiServiceImpl.java20-Dec-201673.3 KiB

WifiSettingsStore.java20-Dec-20168.4 KiB

WifiStateMachine.java20-Dec-2016359.1 KiB

WifiTrafficPoller.java20-Dec-20168.6 KiB

WnmData.java20-Dec-20163.3 KiB


1This code has moved from 
3frameworks/base/services/java/com/android/server/wifi: gitk <SHA1 to be filled in later>
5Prior to that it was at
7frameworks/base/wifi/java/android/net/wifi: gitk ffadfb9ffdced62db215319d3edc7717802088fb
11Salient points about Wifi Service implementation
13WifiService: Implements the IWifiManager 3rd party API. The API and the device state information (screen on/off, battery state, sleep policy) go as input into the WifiController which tracks high level states as to whether STA or AP mode is operational and controls the WifiStateMachine to handle bringup and shut down.
15WifiController: Acts as a controller to the WifiStateMachine based on various inputs (API and device state). Runs on the same thread created in WifiService.
17WifiSettingsStore: Tracks the various settings (wifi toggle, airplane toggle, tethering toggle, scan mode toggle) and provides API to figure if wifi should be turned on or off.
19WifiTrafficPoller: Polls traffic on wifi and notifies apps listening on it.
21WifiNotificationController: Controls whether the open network notification is displayed or not based on the scan results.
23WifiStateMachine: Tracks the various states on STA and AP connectivity and handles bring up and shut down.
25Feature description:
27Scan-only mode with Wi-Fi turned off:
28 - Setup wizard opts user into allowing scanning for improved location. We show no further dialogs in setup wizard since the user has just opted into the feature. This is the reason WifiService listens to DEVICE_PROVISIONED setting.
29 - Once the user has his device provisioned, turning off Wi-Fi from settings or from a third party app will show up a dialog reminding the user that scan mode will be on even though Wi-Fi is being turned off. The user has the choice to turn this notification off.
30 - In the scan mode, the device continues to allow scanning from any app with Wi-Fi turned off. This is done by disabling all networks and allowing only scans to be passed.