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

..02-Jul-20154 KiB

NetworkUpdateResult.java02-Jul-20151.7 KiB

p2p/02-Jul-20154 KiB

README.txt02-Jul-20152 KiB

RttService.java02-Jul-201517.7 KiB

StateChangeResult.java02-Jul-20151.6 KiB

SupplicantStateTracker.java02-Jul-201516.7 KiB

WifiApConfigStore.java02-Jul-20157.6 KiB

WifiAutoJoinController.java02-Jul-201582.3 KiB

WifiConfigStore.java02-Jul-2015186.3 KiB

WifiController.java02-Jul-201530.3 KiB

WifiMonitor.java02-Jul-201555.8 KiB

WifiNative.java02-Jul-201553 KiB

WifiNetworkScoreCache.java02-Jul-20156.4 KiB

WifiNotificationController.java02-Jul-201512.7 KiB

WifiParser.java02-Jul-20159.8 KiB

WifiScanningService.java02-Jul-20151.6 KiB

WifiScanningServiceImpl.java02-Jul-201562.5 KiB

WifiService.java02-Jul-20151.4 KiB

WifiServiceImpl.java02-Jul-201567.3 KiB

WifiSettingsStore.java02-Jul-20157.3 KiB

WifiStateMachine.java02-Jul-2015369.3 KiB

WifiTrafficPoller.java02-Jul-20158.4 KiB

WifiWatchdogStateMachine.java02-Jul-201547.5 KiB

README.txt

1This code has moved from 
2
3frameworks/base/services/java/com/android/server/wifi: gitk <SHA1 to be filled in later>
4
5Prior to that it was at
6
7frameworks/base/wifi/java/android/net/wifi: gitk ffadfb9ffdced62db215319d3edc7717802088fb
8
9////////////////////////////////////////////////////////////////
10
11Salient points about Wifi Service implementation
12
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.
14
15WifiController: Acts as a controller to the WifiStateMachine based on various inputs (API and device state). Runs on the same thread created in WifiService.
16
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.
18
19WifiTrafficPoller: Polls traffic on wifi and notifies apps listening on it.
20
21WifiNotificationController: Controls whether the open network notification is displayed or not based on the scan results.
22
23WifiStateMachine: Tracks the various states on STA and AP connectivity and handles bring up and shut down.
24
25Feature description:
26
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.
31