• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

aware/22-Nov-2023-8,8336,545

hotspot2/22-Nov-2023-10,4786,301

p2p/22-Nov-2023-7,7725,464

rtt/22-Nov-2023-2,1591,625

scanner/22-Nov-2023-4,8423,485

util/22-Nov-2023-5,5883,604

wificond/22-Nov-2023-712403

ActiveModeManager.javaD22-Nov-20232.2 KiB6925

AggressiveConnectedScore.javaD22-Nov-20231.6 KiB5930

AvailableNetworkNotifier.javaD22-Nov-202321.9 KiB542398

BackupManagerProxy.javaD22-Nov-20231 KiB347

BaseWifiDiagnostics.javaD22-Nov-20232.4 KiB6838

BuildProperties.javaD22-Nov-20231.1 KiB338

ByteBufferReader.javaD22-Nov-20233.3 KiB9939

CarrierNetworkConfig.javaD22-Nov-20239.2 KiB253157

CarrierNetworkNotifier.javaD22-Nov-20233.1 KiB7546

ClientModeManager.javaD22-Nov-202313.5 KiB351247

Clock.javaD22-Nov-20231.7 KiB6216

ConfigurationMap.javaD22-Nov-20233.6 KiB12187

ConnectToNetworkNotificationBuilder.javaD22-Nov-20238 KiB188116

ConnectedScore.javaD22-Nov-20233.4 KiB10925

DefaultModeManager.javaD22-Nov-20231.5 KiB5516

DeletedEphemeralSsidsStoreData.javaD22-Nov-20233.5 KiB11674

DummyLogMessage.javaD22-Nov-20231.3 KiB5126

ExtendedWifiInfo.javaD22-Nov-20234.5 KiB11772

FakeWifiLog.javaD22-Nov-20232.1 KiB10055

FrameworkFacade.javaD22-Nov-20237.5 KiB212104

HalDeviceManager.javaD22-Nov-202386.2 KiB2,1221,527

HostapdHal.javaD22-Nov-202316.8 KiB481343

IMSIParameter.javaD22-Nov-20234.2 KiB15084

LastMileLogger.javaD22-Nov-20236.5 KiB176111

LocalOnlyHotspotRequestInfo.javaD22-Nov-20233.8 KiB12559

LogcatLog.javaD22-Nov-20237.5 KiB263190

NetworkListStoreData.javaD22-Nov-202313 KiB319209

NetworkUpdateResult.javaD22-Nov-20231.8 KiB7545

OWNERSD22-Nov-20234.3 KiB123111

OpenNetworkNotifier.javaD22-Nov-20232 KiB5226

PropertyService.javaD22-Nov-20231.7 KiB5211

README.txtD22-Nov-20232.7 KiB4732

SIMAccessor.javaD22-Nov-20231,022 3327

SarManager.javaD22-Nov-20237.5 KiB246138

SavedNetworkEvaluator.javaD22-Nov-202314.1 KiB330212

ScanDetail.javaD22-Nov-20236.3 KiB174121

ScanDetailCache.javaD22-Nov-20236.9 KiB208136

ScanOnlyModeManager.javaD22-Nov-202310.4 KiB295199

ScanRequestProxy.javaD22-Nov-202317.7 KiB428273

ScanResultMatchInfo.javaD22-Nov-20234 KiB10964

ScoredNetworkEvaluator.javaD22-Nov-202315.5 KiB341268

ScoringParams.javaD22-Nov-202313.6 KiB390263

SelfRecovery.javaD22-Nov-20234.6 KiB11561

SoftApManager.javaD22-Nov-202325.5 KiB621488

SoftApModeConfiguration.javaD22-Nov-20231.2 KiB4316

SsidSetStoreData.javaD22-Nov-20234 KiB13673

StateChangeResult.javaD22-Nov-20231.6 KiB5325

SupplicantStaIfaceHal.javaD22-Nov-2023104.9 KiB2,6531,958

SupplicantStaNetworkHal.javaD22-Nov-2023112 KiB2,5982,233

SupplicantStateTracker.javaD22-Nov-202316.6 KiB418316

SystemBuildProperties.javaD22-Nov-20231 KiB3716

SystemPropertyService.javaD22-Nov-20231.3 KiB4119

VelocityBasedConnectedScore.javaD22-Nov-20236.6 KiB186103

WakeupConfigStoreData.javaD22-Nov-20239.4 KiB276168

WakeupController.javaD22-Nov-202313.4 KiB373234

WakeupEvaluator.javaD22-Nov-20233.2 KiB8738

WakeupLock.javaD22-Nov-202310.3 KiB295170

WakeupNotificationFactory.javaD22-Nov-20233.5 KiB8853

WakeupOnboarding.javaD22-Nov-20238.2 KiB233164

WifiApConfigStore.javaD22-Nov-202314.7 KiB390264

WifiBackupDataParser.javaD22-Nov-20231.7 KiB4610

WifiBackupDataV1Parser.javaD22-Nov-202326.8 KiB583407

WifiBackupRestore.javaD22-Nov-202335 KiB759501

WifiConfigManager.javaD22-Nov-2023132 KiB3,0041,757

WifiConfigStore.javaD22-Nov-202323.7 KiB624283

WifiConfigStoreLegacy.javaD22-Nov-202315.4 KiB369189

WifiConfigurationUtil.javaD22-Nov-202324.5 KiB599405

WifiConnectivityHelper.javaD22-Nov-20236.7 KiB17592

WifiConnectivityManager.javaD22-Nov-202357 KiB1,440966

WifiController.javaD22-Nov-202330.3 KiB714549

WifiCountryCode.javaD22-Nov-20237.6 KiB212111

WifiDiagnostics.javaD22-Nov-202325.5 KiB702543

WifiInjector.javaD22-Nov-202326 KiB616457

WifiKeyStore.javaD22-Nov-202311.2 KiB294172

WifiLastResortWatchdog.javaD22-Nov-202325.7 KiB602381

WifiLinkLayerStats.javaD22-Nov-20235 KiB13358

WifiLockManager.javaD22-Nov-202311.2 KiB340235

WifiLog.javaD22-Nov-20239.9 KiB28453

WifiLoggerHal.javaD22-Nov-20232.4 KiB5531

WifiMetrics.javaD22-Nov-2023135.2 KiB2,9932,264

WifiMonitor.javaD22-Nov-202320.6 KiB551273

WifiMulticastLockManager.javaD22-Nov-20236.1 KiB196134

WifiNative.javaD22-Nov-2023105.9 KiB2,8721,511

WifiNetworkHistory.javaD22-Nov-202330.3 KiB631516

WifiNetworkSelector.javaD22-Nov-202325.5 KiB617368

WifiPowerMetrics.javaD22-Nov-20233.2 KiB9650

WifiScoreReport.javaD22-Nov-202310.8 KiB286171

WifiService.javaD22-Nov-20231.7 KiB6336

WifiServiceImpl.javaD22-Nov-2023118.5 KiB2,8461,974

WifiSettingsStore.javaD22-Nov-20238.8 KiB238137

WifiShellCommand.javaD22-Nov-20235.2 KiB13893

WifiStateMachine.javaD22-Nov-2023258.1 KiB5,9004,364

WifiStateMachinePrime.javaD22-Nov-202324.1 KiB617423

WifiStateTracker.javaD22-Nov-20232.9 KiB8955

WifiTrafficPoller.javaD22-Nov-20239.2 KiB248191

WifiVendorHal.javaD22-Nov-2023115.5 KiB3,0402,227

WifiWakeMetrics.javaD22-Nov-202312.3 KiB369201

WificondControl.javaD22-Nov-202331.7 KiB872631

WrongPasswordNotifier.javaD22-Nov-20234.4 KiB11156

README.txt

1Path history for this code:
2
3commit date: 2013-12-18 to 2014-01-07
4commit hash: a07c419913bfae2a896fbc29e8f269ee08c4d910 (add)
5commit hash: 4a3f9cf099bbbe52dc0edb2a7e1d1c976bc335a3 (delete)
6dst:         frameworks/opt/net/wifi/service
7src:         frameworks/base/services/core/java/com/android/server/wifi
8
9commit date: 2013-12-19
10commit hash: 9158825f9c41869689d6b1786d7c7aa8bdd524ce (many more files)
11commit hash: 19c662b3df3b35756a92282bb6cc767e6407cb8a (a few files)
12dst:         frameworks/base/services/core/java/com/android/server/wifi
13src:         frameworks/base/services/java/com/android/server/wifi
14
15commit date: 2013-12-11
16commit hash: ffadfb9ffdced62db215319d3edc7717802088fb
17dst:         frameworks/base/services/java/com/android/server/wifi
18src:         frameworks/base/wifi/java/android/net/wifi
19
20commit date: 2008-10-21
21commit hash: 54b6cfa9a9e5b861a9930af873580d6dc20f773c
22dst:         frameworks/base/wifi/java/android/net/wifi
23src:         initial aosp import?
24
25////////////////////////////////////////////////////////////////
26
27Salient points about Wifi Service implementation
28
29WifiService: 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.
30
31WifiController: Acts as a controller to the WifiStateMachine based on various inputs (API and device state). Runs on the same thread created in WifiService.
32
33WifiSettingsStore: 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.
34
35WifiTrafficPoller: Polls traffic on wifi and notifies apps listening on it.
36
37WifiNotificationController: Controls whether the open network notification is displayed or not based on the scan results.
38
39WifiStateMachine: Tracks the various states on STA and AP connectivity and handles bring up and shut down.
40
41Feature description:
42
43Scan-only mode with Wi-Fi turned off:
44 - 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.
45 - 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.
46 - 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.
47