• Home
Name Date Size #Lines LOC

..--

aware/03-May-2024-10,1237,594

coex/03-May-2024-1,5021,160

hotspot2/03-May-2024-15,4599,594

p2p/03-May-2024-10,1017,065

rtt/03-May-2024-2,6422,032

scanner/03-May-2024-5,6914,109

util/03-May-2024-13,3338,515

ActiveModeManager.javaD03-May-20245.9 KiB18272

ActiveModeWarden.javaD03-May-202494.7 KiB2,1081,501

AdaptiveConnectivityEnabledSettingObserver.javaD03-May-20244.1 KiB10965

AggressiveConnectedScore.javaD03-May-20241.6 KiB5930

AssocRejectEventInfo.javaD03-May-20243.3 KiB8355

AvailableNetworkNotifier.javaD03-May-202423.5 KiB586429

BackupManagerProxy.javaD03-May-20241 KiB347

BaseWifiService.javaD03-May-202423.4 KiB783609

BubbleFunScorer.javaD03-May-20244.9 KiB13564

BuildProperties.javaD03-May-20241.1 KiB338

ByteBufferReader.javaD03-May-20243.3 KiB9939

ClientMode.javaD03-May-20249.8 KiB284113

ClientModeDefaults.javaD03-May-20246.1 KiB223147

ClientModeImpl.javaD03-May-2024306.9 KiB6,7385,236

ClientModeImplListener.javaD03-May-20242.4 KiB6210

ClientModeImplMonitor.javaD03-May-20243 KiB8949

ClientModeManager.javaD03-May-2024846 286

ClientModeManagerBroadcastQueue.javaD03-May-20246.2 KiB16390

Clock.javaD03-May-20242 KiB7221

CompatibilityScorer.javaD03-May-20244.4 KiB12558

ConcreteClientModeManager.javaD03-May-202455.7 KiB1,4221,093

ConfigurationMap.javaD03-May-20245.2 KiB155101

ConnectHelper.javaD03-May-20242.7 KiB7337

ConnectToNetworkNotificationBuilder.javaD03-May-20248.5 KiB196120

ConnectedScore.javaD03-May-20243.5 KiB11125

ConnectionFailureNotificationBuilder.javaD03-May-20245 KiB11574

ConnectionFailureNotifier.javaD03-May-20247.2 KiB161116

DefaultClientModeManager.javaD03-May-20242.3 KiB9960

DeviceConfigFacade.javaD03-May-202433.4 KiB795465

DisconnectEventInfo.javaD03-May-20241.6 KiB4925

DppManager.javaD03-May-202437.6 KiB965689

DppMetrics.javaD03-May-202419.1 KiB401291

EapFailureNotifier.javaD03-May-20246 KiB14693

ExtendedWifiInfo.javaD03-May-20244.6 KiB11877

ExternalScoreUpdateObserverProxy.javaD03-May-20244.6 KiB13684

FakeWifiLog.javaD03-May-20242.1 KiB10055

FrameworkFacade.javaD03-May-202412.2 KiB359198

HalDeviceManager.javaD03-May-2024114.2 KiB2,7461,936

HostapdHal.javaD03-May-202452.5 KiB1,2841,016

IMSIParameter.javaD03-May-20244.7 KiB16489

ImsiPrivacyProtectionExemptionStoreData.javaD03-May-20246.1 KiB159111

LastMileLogger.javaD03-May-20247.1 KiB195128

LinkProbeManager.javaD03-May-202414.5 KiB361236

LocalOnlyHotspotRequestInfo.javaD03-May-20243.9 KiB12860

LogcatLog.javaD03-May-20247.5 KiB263190

MacAddressUtil.javaD03-May-20246.1 KiB15092

MakeBeforeBreakManager.javaD03-May-202416 KiB365242

MboOceConstants.javaD03-May-202410.2 KiB206149

MboOceController.javaD03-May-20249 KiB229139

MemoryStoreImpl.javaD03-May-20246.4 KiB189135

NetworkConnectionEventInfo.javaD03-May-20241.6 KiB4927

NetworkListSharedStoreData.javaD03-May-20241.1 KiB3711

NetworkListStoreData.javaD03-May-202414.3 KiB328214

NetworkListUserStoreData.javaD03-May-20241.1 KiB3711

NetworkRequestStoreData.javaD03-May-202411 KiB285174

NetworkSuggestionNominator.javaD03-May-202420.6 KiB448352

NetworkSuggestionStoreData.javaD03-May-202423.8 KiB493376

NetworkUpdateResult.javaD03-May-20243 KiB10471

NoLogMessage.javaD03-May-20241.3 KiB5126

NonCarrierMergedNetworksStatusTracker.javaD03-May-20246.3 KiB15186

OemWifiNetworkFactory.javaD03-May-20244 KiB10874

OpenNetworkNotifier.javaD03-May-20242.3 KiB5731

PropertyService.javaD03-May-20241.4 KiB4510

README.txtD03-May-20242.7 KiB5035

RandomizedMacStoreData.javaD03-May-20243.9 KiB12777

SarInfo.javaD03-May-20246.8 KiB17268

SarManager.javaD03-May-202416.8 KiB498328

SavedNetworkNominator.javaD03-May-202410.4 KiB249171

ScanDetail.javaD03-May-20246.7 KiB184127

ScanDetailCache.javaD03-May-20247.7 KiB230149

ScanOnlyModeImpl.javaD03-May-20241.8 KiB6535

ScanRequestProxy.javaD03-May-202426.8 KiB644423

ScanResultMatchInfo.javaD03-May-20249.6 KiB247144

ScoreCardBasedScorer.javaD03-May-20245.3 KiB14879

ScoredNetworkNominator.javaD03-May-202418.8 KiB408323

ScoringParams.javaD03-May-202418.6 KiB519341

SelfRecovery.javaD03-May-20247 KiB181117

SimRequiredNotifier.javaD03-May-20243.8 KiB9963

SoftApBackupRestore.javaD03-May-202410.1 KiB241182

SoftApManager.javaD03-May-202475.1 KiB1,6031,305

SoftApModeConfiguration.javaD03-May-20242 KiB6629

SoftApNotifier.javaD03-May-20243.9 KiB10160

SoftApStoreData.javaD03-May-202416.9 KiB366292

SsidSetStoreData.javaD03-May-20244.2 KiB13876

StateChangeResult.javaD03-May-20241.8 KiB5427

SupplicantStaIfaceCallbackImpl.javaD03-May-202419.1 KiB438357

SupplicantStaIfaceCallbackV1_1Impl.javaD03-May-20245 KiB152108

SupplicantStaIfaceCallbackV1_2Impl.javaD03-May-20247.5 KiB227166

SupplicantStaIfaceCallbackV1_3Impl.javaD03-May-202413.6 KiB348285

SupplicantStaIfaceCallbackV1_4Impl.javaD03-May-20247.9 KiB245188

SupplicantStaIfaceHal.javaD03-May-2024149.9 KiB3,8382,782

SupplicantStaNetworkCallbackImpl.javaD03-May-20243.2 KiB9257

SupplicantStaNetworkCallbackV1_4Impl.javaD03-May-20243.5 KiB10062

SupplicantStaNetworkHal.javaD03-May-2024170.2 KiB3,9243,320

SupplicantStateTracker.javaD03-May-202417.5 KiB447342

SystemBuildProperties.javaD03-May-20241 KiB3716

SystemPropertyService.javaD03-May-20241.2 KiB3615

ThroughputPredictor.javaD03-May-202421.4 KiB445308

ThroughputScorer.javaD03-May-20248.5 KiB210127

UntrustedWifiNetworkFactory.javaD03-May-20242.7 KiB8449

VelocityBasedConnectedScore.javaD03-May-20247 KiB194111

WakeupConfigStoreData.javaD03-May-202414 KiB375260

WakeupController.javaD03-May-202419 KiB497308

WakeupEvaluator.javaD03-May-20242.4 KiB7127

WakeupLock.javaD03-May-202410.3 KiB295170

WakeupNotificationFactory.javaD03-May-20243.6 KiB8853

WakeupOnboarding.javaD03-May-20248 KiB225157

WifiApConfigStore.javaD03-May-202427.1 KiB647450

WifiBackupDataParser.javaD03-May-20242 KiB5311

WifiBackupDataV1Parser.javaD03-May-202432.9 KiB715524

WifiBackupRestore.javaD03-May-202437.4 KiB812550

WifiBlocklistMonitor.javaD03-May-202450.7 KiB1,146824

WifiCandidates.javaD03-May-202423.5 KiB703442

WifiCarrierInfoManager.javaD03-May-202478.9 KiB1,9791,398

WifiCarrierInfoStoreManagerData.javaD03-May-20246.9 KiB201123

WifiChannelUtilization.javaD03-May-202413.6 KiB296182

WifiConfigManager.javaD03-May-2024169.6 KiB3,7782,303

WifiConfigStore.javaD03-May-202442.2 KiB1,049560

WifiConfigurationUtil.javaD03-May-202451.3 KiB1,204871

WifiConnectivityHelper.javaD03-May-20246.4 KiB16892

WifiConnectivityManager.javaD03-May-2024112.8 KiB2,5751,859

WifiContext.javaD03-May-20245.2 KiB15092

WifiCountryCode.javaD03-May-202420.9 KiB501297

WifiDataStall.javaD03-May-202426.3 KiB602448

WifiDiagnostics.javaD03-May-202433.4 KiB894661

WifiGlobals.javaD03-May-20249.2 KiB234123

WifiHealthMonitor.javaD03-May-202445.8 KiB1,101865

WifiInjector.javaD03-May-202448 KiB1,066843

WifiKeyStore.javaD03-May-202418.5 KiB457307

WifiLastResortWatchdog.javaD03-May-202436.1 KiB872563

WifiLinkLayerStats.javaD03-May-202418.9 KiB466224

WifiLockManager.javaD03-May-202433.4 KiB937656

WifiLog.javaD03-May-20249.9 KiB28453

WifiLoggerHal.javaD03-May-20242.4 KiB5531

WifiMetrics.javaD03-May-2024398.2 KiB8,3536,645

WifiMonitor.javaD03-May-202422.9 KiB598300

WifiMulticastLockManager.javaD03-May-20248 KiB226160

WifiNative.javaD03-May-2024155.8 KiB4,1072,269

WifiNetworkAgent.javaD03-May-20245 KiB14692

WifiNetworkFactory.javaD03-May-202479.5 KiB1,8251,406

WifiNetworkScoreCache.javaD03-May-202410.6 KiB316205

WifiNetworkSelector.javaD03-May-202457.2 KiB1,306898

WifiNetworkSuggestionsManager.javaD03-May-2024121.8 KiB2,6442,050

WifiNotificationManager.javaD03-May-20244.9 KiB13889

WifiP2pConnection.javaD03-May-20247.4 KiB191120

WifiPowerMetrics.javaD03-May-20245.4 KiB13275

WifiScanAlwaysAvailableSettingsCompatibility.javaD03-May-20244.1 KiB10356

WifiScoreCard.javaD03-May-2024115.7 KiB2,7122,044

WifiScoreReport.javaD03-May-202442.6 KiB1,029742

WifiService.javaD03-May-20242.5 KiB7643

WifiServiceImpl.javaD03-May-2024236.3 KiB5,3903,850

WifiSettingsConfigStore.javaD03-May-202414.2 KiB410255

WifiSettingsStore.javaD03-May-20247.1 KiB197132

WifiShellCommand.javaD03-May-202492.4 KiB1,7871,680

WifiStateTracker.javaD03-May-20244.1 KiB12576

WifiThreadRunner.javaD03-May-202411.4 KiB299144

WifiTrafficPoller.javaD03-May-20244.3 KiB12575

WifiVendorHal.javaD03-May-2024152.3 KiB3,8982,782

WifiWakeMetrics.javaD03-May-202412.3 KiB369201

WlanWakeReasonAndCounts.javaD03-May-20245.6 KiB16599

WrongPasswordNotifier.javaD03-May-20244.7 KiB11560

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
30state information (screen on/off, battery state, sleep policy) go as input into
31the WifiController which tracks high level states as to whether STA or AP mode
32is operational and controls wifi to handle bringup and shut down.
33
34WifiController: Acts as a controller to the ActiveModeWarden based on various inputs (API and device state). Runs on the same thread created in WifiService.
35
36WifiSettingsStore: 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.
37
38WifiTrafficPoller: Polls traffic on wifi and notifies apps listening on it.
39
40WifiNotificationController: Controls whether the open network notification is displayed or not based on the scan results.
41
42ActiveModeWarden: Tracks the various states on STA and AP connectivity and handles bring up and shut down.
43
44Feature description:
45
46Scan-only mode with Wi-Fi turned off:
47 - 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.
48 - 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.
49 - 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.
50