• Home
Name Date Size #Lines LOC

..--

aware/03-May-2024-12,4379,462

coex/03-May-2024-1,6541,293

entitlement/03-May-2024-1,492862

hal/03-May-2024-17,91512,892

hotspot2/03-May-2024-15,9949,963

mockwifi/03-May-2024-327219

p2p/03-May-2024-18,76813,219

rtt/03-May-2024-1,9201,497

scanner/03-May-2024-6,5974,845

util/03-May-2024-15,73610,361

ActiveModeManager.javaD03-May-20245.9 KiB18272

ActiveModeWarden.javaD03-May-2024124.5 KiB2,7922,000

AdaptiveConnectivityEnabledSettingObserver.javaD03-May-20244.1 KiB10965

AggressiveConnectedScore.javaD03-May-20241.8 KiB6532

ApplicationQosPolicyRequestHandler.javaD03-May-202430.7 KiB743521

ApplicationQosPolicyTrackingTable.javaD03-May-20249.6 KiB251138

AssocRejectEventInfo.javaD03-May-20244.9 KiB12292

AuthenticationFailureEventInfo.javaD03-May-20242.3 KiB6941

AvailableNetworkNotifier.javaD03-May-202424.2 KiB602444

BackupManagerProxy.javaD03-May-20241 KiB347

BubbleFunScorer.javaD03-May-20244.9 KiB13564

BuildProperties.javaD03-May-20241.1 KiB338

ByteBufferReader.javaD03-May-20243.3 KiB9939

CertificateEventInfo.javaD03-May-20241.7 KiB6425

ClientMode.javaD03-May-202412.4 KiB359137

ClientModeDefaults.javaD03-May-20247.9 KiB280181

ClientModeImpl.javaD03-May-2024390 KiB8,4476,614

ClientModeImplListener.javaD03-May-20242.9 KiB7112

ClientModeImplMonitor.javaD03-May-20243 KiB8949

ClientModeManager.javaD03-May-2024818 275

ClientModeManagerBroadcastQueue.javaD03-May-20246.2 KiB16390

Clock.javaD03-May-20242 KiB7221

CompatibilityScorer.javaD03-May-20244.4 KiB12558

ConcreteClientModeManager.javaD03-May-202467.7 KiB1,7051,313

ConfigurationMap.javaD03-May-20245.2 KiB157101

ConnectHelper.javaD03-May-20242.8 KiB7438

ConnectToNetworkNotificationBuilder.javaD03-May-20248.6 KiB197121

ConnectedScore.javaD03-May-20244.7 KiB13841

ConnectionFailureNotificationBuilder.javaD03-May-20243.7 KiB8955

ConnectionFailureNotifier.javaD03-May-20248 KiB175127

DefaultClientModeManager.javaD03-May-20242.2 KiB9355

DeviceConfigFacade.javaD03-May-202438.2 KiB918543

DisconnectEventInfo.javaD03-May-20242 KiB6137

DppManager.javaD03-May-202445.6 KiB1,139830

DppMetrics.javaD03-May-202419.1 KiB401291

EapFailureNotifier.javaD03-May-20247.3 KiB161109

ExtendedWifiInfo.javaD03-May-20244.6 KiB11877

ExternalPnoScanRequestManager.javaD03-May-202410.4 KiB284199

ExternalScoreUpdateObserverProxy.javaD03-May-20245.2 KiB15198

FakeWifiLog.javaD03-May-20242.1 KiB10055

FrameworkFacade.javaD03-May-202417.2 KiB480275

HalDeviceManager.javaD03-May-2024122.4 KiB2,8762,004

HalDeviceManagerUtil.javaD03-May-20246.5 KiB163122

HostapdHal.javaD03-May-202410.6 KiB317196

HostapdHalAidlImp.javaD03-May-202437.3 KiB980754

HostapdHalHidlImp.javaD03-May-202454 KiB1,3421,060

IHostapdHal.javaD03-May-20244.1 KiB13227

IMSIParameter.javaD03-May-20244.7 KiB16489

ISupplicantStaIfaceHal.javaD03-May-202428.9 KiB815117

ImsiPrivacyProtectionExemptionStoreData.javaD03-May-20246.2 KiB161113

InsecureEapNetworkHandler.javaD03-May-202442.2 KiB965704

InterfaceConflictManager.javaD03-May-202424.9 KiB546365

LastMileLogger.javaD03-May-20247.1 KiB195128

LinkProbeManager.javaD03-May-202414.5 KiB360235

LocalOnlyHotspotRequestInfo.javaD03-May-20244 KiB13365

LogcatLog.javaD03-May-20247.4 KiB259186

MacAddressUtil.javaD03-May-20245.6 KiB15295

MakeBeforeBreakManager.javaD03-May-202423.4 KiB526361

MboOceConstants.javaD03-May-202410.2 KiB206149

MboOceController.javaD03-May-20249.5 KiB237147

MemoryStoreImpl.javaD03-May-20246.6 KiB193138

MultiInternetManager.javaD03-May-202429.4 KiB685500

MultiInternetWifiNetworkFactory.javaD03-May-202411.2 KiB250183

NetworkConnectionEventInfo.javaD03-May-20241.7 KiB5431

NetworkListSharedStoreData.javaD03-May-20241.1 KiB3711

NetworkListStoreData.javaD03-May-202414.5 KiB331215

NetworkListUserStoreData.javaD03-May-20241.1 KiB3711

NetworkRequestStoreData.javaD03-May-202411 KiB285174

NetworkSuggestionNominator.javaD03-May-202422.4 KiB478381

NetworkSuggestionStoreData.javaD03-May-202423.9 KiB494377

NetworkUpdateResult.javaD03-May-20243.7 KiB12084

NoLogMessage.javaD03-May-20241.3 KiB5126

NonCarrierMergedNetworksStatusTracker.javaD03-May-20246.3 KiB15186

OemWifiNetworkFactory.javaD03-May-20244 KiB10874

OpenNetworkNotifier.javaD03-May-20242.5 KiB6034

PmkCacheManager.javaD03-May-202410.2 KiB272181

PropertyService.javaD03-May-20241.4 KiB4510

QosPolicyRequestHandler.javaD03-May-20249.9 KiB258190

README.txtD03-May-20242.7 KiB5035

RandomizedMacStoreData.javaD03-May-20243.9 KiB12777

RestrictedWifiNetworkFactory.javaD03-May-20243 KiB8853

RssiMonitor.javaD03-May-202413.3 KiB311212

RunnerHandler.javaD03-May-20246.5 KiB157102

RunnerState.javaD03-May-20244.1 KiB11856

SarInfo.javaD03-May-20246.8 KiB17268

SarManager.javaD03-May-202416.8 KiB494324

SavedNetworkNominator.javaD03-May-202412.2 KiB287212

ScanDetail.javaD03-May-20248.1 KiB223152

ScanDetailCache.javaD03-May-20247.7 KiB230149

ScanOnlyModeImpl.javaD03-May-20241.8 KiB6535

ScanRequestProxy.javaD03-May-202429.3 KiB699467

ScanResultMatchInfo.javaD03-May-20249.4 KiB248150

ScoreCardBasedScorer.javaD03-May-20245.3 KiB14879

ScoringParams.javaD03-May-202425.9 KiB689454

SelfRecovery.javaD03-May-202412.6 KiB307218

SimRequiredNotifier.javaD03-May-20243.8 KiB10064

SoftApBackupRestore.javaD03-May-202412.6 KiB285217

SoftApManager.javaD03-May-202496.7 KiB2,0151,646

SoftApModeConfiguration.javaD03-May-20242.2 KiB7234

SoftApNotifier.javaD03-May-20243.9 KiB10261

SoftApStoreData.javaD03-May-20244.4 KiB13572

SsidSetStoreData.javaD03-May-20244.2 KiB13876

SsidTranslator.javaD03-May-202420.5 KiB469337

StateChangeResult.javaD03-May-20242.3 KiB6942

SupplicantEventInfo.javaD03-May-20242.1 KiB6137

SupplicantStaIfaceCallbackAidlImpl.javaD03-May-202472.9 KiB1,3961,248

SupplicantStaIfaceCallbackHidlImpl.javaD03-May-202446 KiB846755

SupplicantStaIfaceCallbackHidlV1_1Impl.javaD03-May-20245.2 KiB155110

SupplicantStaIfaceCallbackHidlV1_2Impl.javaD03-May-202410 KiB283215

SupplicantStaIfaceCallbackHidlV1_3Impl.javaD03-May-202417.5 KiB426355

SupplicantStaIfaceCallbackHidlV1_4Impl.javaD03-May-20249.9 KiB286228

SupplicantStaIfaceHal.javaD03-May-202492.5 KiB2,3711,624

SupplicantStaIfaceHalAidlImpl.javaD03-May-2024146.2 KiB3,8022,827

SupplicantStaIfaceHalHidlImpl.javaD03-May-2024159.5 KiB4,0432,892

SupplicantStaNetworkCallbackAidlImpl.javaD03-May-20249 KiB235190

SupplicantStaNetworkCallbackHidlImpl.javaD03-May-20243.2 KiB9257

SupplicantStaNetworkCallbackHidlV1_4Impl.javaD03-May-20243.5 KiB9961

SupplicantStaNetworkHalAidlImpl.javaD03-May-2024140.4 KiB3,7492,834

SupplicantStaNetworkHalHidlImpl.javaD03-May-2024171.9 KiB3,9523,347

SupplicantStateTracker.javaD03-May-202417.5 KiB447342

SystemBuildProperties.javaD03-May-20241.1 KiB4016

SystemPropertyService.javaD03-May-20241.2 KiB3615

ThroughputPredictor.javaD03-May-202424.1 KiB504361

ThroughputScorer.javaD03-May-202412.1 KiB280182

UntrustedWifiNetworkFactory.javaD03-May-20242.7 KiB8349

VelocityBasedConnectedScore.javaD03-May-20247.1 KiB196113

WakeupConfigStoreData.javaD03-May-202414 KiB375260

WakeupController.javaD03-May-202420.4 KiB531338

WakeupEvaluator.javaD03-May-20242.4 KiB7127

WakeupLock.javaD03-May-202410.3 KiB295170

WakeupNotificationFactory.javaD03-May-20243.6 KiB8954

WakeupOnboarding.javaD03-May-20248.1 KiB227159

WifiApConfigStore.javaD03-May-202432.6 KiB748545

WifiBackupDataParser.javaD03-May-20242 KiB5311

WifiBackupDataV1Parser.javaD03-May-202433.3 KiB727536

WifiBackupRestore.javaD03-May-202437.9 KiB822559

WifiBlocklistMonitor.javaD03-May-202464.2 KiB1,4481,020

WifiCandidates.javaD03-May-202427.9 KiB840513

WifiCarrierInfoManager.javaD03-May-202494.3 KiB2,3401,686

WifiCarrierInfoStoreManagerData.javaD03-May-20247.6 KiB213131

WifiChannelUtilization.javaD03-May-202413.6 KiB296182

WifiConfigManager.javaD03-May-2024197.7 KiB4,3542,718

WifiConfigStore.javaD03-May-202442.3 KiB1,050562

WifiConfigurationUtil.javaD03-May-202452.3 KiB1,227873

WifiConnectivityHelper.javaD03-May-20246.4 KiB16892

WifiConnectivityManager.javaD03-May-2024153.8 KiB3,4012,484

WifiCountryCode.javaD03-May-202434.5 KiB801532

WifiDataStall.javaD03-May-202426.3 KiB602448

WifiDiagnostics.javaD03-May-202440.2 KiB1,053792

WifiDialogManager.javaD03-May-202442.4 KiB1,016748

WifiGlobals.javaD03-May-202418.1 KiB428260

WifiHealthMonitor.javaD03-May-202445.9 KiB1,102866

WifiInjector.javaD03-May-202454.8 KiB1,223962

WifiKeyStore.javaD03-May-202419.3 KiB467310

WifiLastResortWatchdog.javaD03-May-202436.1 KiB872563

WifiLinkLayerStats.javaD03-May-202435.1 KiB824464

WifiLocalServices.javaD03-May-20242.3 KiB7228

WifiLockManager.javaD03-May-202441.3 KiB1,112801

WifiLog.javaD03-May-20249.9 KiB28453

WifiLoggerHal.javaD03-May-20242.4 KiB5531

WifiMetrics.javaD03-May-2024414.7 KiB8,6286,866

WifiMonitor.javaD03-May-202429.1 KiB748362

WifiMulticastLockManager.javaD03-May-20248.3 KiB235169

WifiNative.javaD03-May-2024190.4 KiB4,9882,783

WifiNetworkAgent.javaD03-May-20245.2 KiB15297

WifiNetworkFactory.javaD03-May-202496.7 KiB2,1601,695

WifiNetworkSelector.javaD03-May-202477.3 KiB1,7371,185

WifiNetworkSuggestionsManager.javaD03-May-2024132.3 KiB2,8712,243

WifiNotificationManager.javaD03-May-20245.5 KiB15099

WifiP2pConnection.javaD03-May-20247.4 KiB191120

WifiPowerMetrics.javaD03-May-20245.4 KiB13275

WifiPseudonymManager.javaD03-May-202424 KiB567386

WifiPulledAtomLogger.javaD03-May-20244.2 KiB11574

WifiScanAlwaysAvailableSettingsCompatibility.javaD03-May-20244.1 KiB10356

WifiScoreCard.javaD03-May-2024115.3 KiB2,6992,033

WifiScoreReport.javaD03-May-202449.3 KiB1,159849

WifiService.javaD03-May-20242.6 KiB7845

WifiServiceImpl.javaD03-May-2024344.4 KiB7,8415,861

WifiSettingsConfigStore.javaD03-May-202417.1 KiB487280

WifiSettingsStore.javaD03-May-202420.5 KiB504349

WifiShellCommand.javaD03-May-2024150 KiB2,8922,750

WifiSignalPollResults.javaD03-May-20245.7 KiB18470

WifiStateTracker.javaD03-May-20244.1 KiB12576

WifiThreadRunner.javaD03-May-202413.2 KiB346170

WifiTrafficPoller.javaD03-May-20244.3 KiB12575

WifiVendorHal.javaD03-May-202472.1 KiB1,9991,210

WifiWakeMetrics.javaD03-May-202412.3 KiB369201

WlanWakeReasonAndCounts.javaD03-May-20245.6 KiB16599

WrongPasswordNotifier.javaD03-May-20245.6 KiB13068

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