Home
last modified time | relevance | path

Searched refs:mWifiMetrics (Results 1 – 25 of 55) sorted by relevance

123

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiMetricsTest.java144 WifiMetrics mWifiMetrics; field in WifiMetricsTest
181 mWifiMetrics = new WifiMetrics(mContext, mFacade, mClock, mTestLooper.getLooper(), in setUp()
184 mWifiMetrics.setWifiConfigManager(mWcm); in setUp()
185 mWifiMetrics.setBssidBlocklistMonitor(mBssidBlocklistMonitor); in setUp()
186 mWifiMetrics.setPasspointManager(mPpm); in setUp()
187 mWifiMetrics.setScoringParams(mScoringParams); in setUp()
188 mWifiMetrics.setWifiNetworkSelector(mWns); in setUp()
189 mWifiMetrics.setWifiDataStall(mWifiDataStall); in setUp()
190 mWifiMetrics.setWifiHealthMonitor(mWifiHealthMonitor); in setUp()
191 mWifiMetrics.setWifiScoreCard(mWifiScoreCard); in setUp()
[all …]
DOpenNetworkNotifierTest.java84 @Mock private WifiMetrics mWifiMetrics; field in OpenNetworkNotifierTest
122 mContext, mLooper.getLooper(), mFrameworkFacade, mClock, mWifiMetrics, in setUp()
143 verify(mWifiMetrics).setIsWifiNetworksAvailableNotificationEnabled(OPEN_NET_NOTIFIER_TAG, in onCreate_setWifiNetworksAvailableNotificationSettingState()
156 verify(mWifiMetrics).setIsWifiNetworksAvailableNotificationEnabled(OPEN_NET_NOTIFIER_TAG, in onFeatureDisable_setWifiNetworksAvailableNotificationSettingDisabled()
169 verify(mWifiMetrics).incrementConnectToNetworkNotification(OPEN_NET_NOTIFIER_TAG, in handleScanResults_hasOpenNetworks_notificationDisplayed()
207 verify(mWifiMetrics).incrementConnectToNetworkNotification(OPEN_NET_NOTIFIER_TAG, in handleScanResults_notificationShown_emptyList_notificationCleared()
226 verify(mWifiMetrics).incrementConnectToNetworkNotification(OPEN_NET_NOTIFIER_TAG, in handleScanResults_notificationShown_noRecommendation_notificationCleared()
246 verify(mWifiMetrics).incrementConnectToNetworkNotification(OPEN_NET_NOTIFIER_TAG, in handleScanResults_notificationShown_screenOff_emptyList_notificationCleared()
266 verify(mWifiMetrics).incrementConnectToNetworkNotification(OPEN_NET_NOTIFIER_TAG, in clearPendingNotification_clearsNotificationIfOneIsShowing()
308 verify(mWifiMetrics).incrementConnectToNetworkNotification(OPEN_NET_NOTIFIER_TAG, in screenOff_notificationShowing_handleScanResults_recommendationCanBeUpdated()
[all …]
DWifiDataStallTest.java67 @Mock WifiMetrics mWifiMetrics; field in WifiDataStallTest
136 mWifiDataStall = new WifiDataStall(mFrameworkFacade, mWifiMetrics, mContext, in setUp()
172 verify(mWifiMetrics).updateWifiIsUnusableLinkLayerStats( in verifyUpdateWifiIsUnusableLinkLayerStats()
221 verify(mWifiMetrics).incrementChannelUtilizationCount(10, 5850); in verifyThroughputNoRxLinkSpeed()
222 verify(mWifiMetrics).incrementThroughputKbpsCount(50_000, 150_000, 5850); in verifyThroughputNoRxLinkSpeed()
229 verify(mWifiMetrics).incrementThroughputKbpsCount(960, -1, 5850); in verifyThroughputNoRxLinkSpeed()
241 verify(mWifiMetrics).incrementThroughputKbpsCount(960, 9609, 5850); in verifyDataStallTxFailure()
251 verify(mWifiMetrics).logWifiIsUnusableEvent(WifiIsUnusableEvent.TYPE_DATA_STALL_BAD_TX); in verifyDataStallTxFailure()
274 verify(mWifiMetrics, never()).logWifiIsUnusableEvent( in verifyNoDataStallTxFailureWhenTxTputIsHigh()
297 verify(mWifiMetrics, never()).logWifiIsUnusableEvent( in verifyNoDataStallWhenTxFailureIsNotConsecutive()
[all …]
DSoftApManagerTest.java130 @Mock WifiMetrics mWifiMetrics; field in SoftApManagerTest
201 mWifiMetrics, in createSoftApManager()
281 mWifiMetrics, in startSoftApDefaultConfigFailedToLoad()
329 mWifiMetrics, in testSetupForSoftApModeNullApInterfaceNameFailureIncrementsMetrics()
346 verify(mWifiMetrics).incrementSoftApStartResult(false, in testSetupForSoftApModeNullApInterfaceNameFailureIncrementsMetrics()
376 mWifiMetrics, in testSetupForSoftApModeEmptyInterfaceNameFailureIncrementsMetrics()
393 verify(mWifiMetrics).incrementSoftApStartResult(false, in testSetupForSoftApModeEmptyInterfaceNameFailureIncrementsMetrics()
421 mWifiMetrics, in startSoftApOn5GhzFailGeneralErrorForNoCountryCode()
470 mWifiMetrics, in startSoftApOn5GhzFailGeneralErrorForCountryCodeSetFailure()
595 mWifiMetrics, in startSoftApFailNoChannel()
[all …]
DScanRequestProxyTest.java86 @Mock private WifiMetrics mWifiMetrics; field in ScanRequestProxyTest
145 mWifiConfigManager, mWifiPermissionsUtil, mWifiMetrics, mClock, in setUp()
153 verifyNoMoreInteractions(mWifiScanner, mWifiConfigManager, mContext, mWifiMetrics); in cleanUp()
212 verify(mWifiMetrics).incrementExternalAppOneshotScanRequestsCount(); in testStartScanSuccess()
264 verify(mWifiMetrics).incrementExternalAppOneshotScanRequestsCount(); in testStartScanWithHiddenNetworkScanningDisabled()
287 verify(mWifiMetrics).incrementExternalAppOneshotScanRequestsCount(); in testStartScanWithHiddenNetworkScanningEnabled()
307 verify(mWifiMetrics).incrementExternalAppOneshotScanRequestsCount(); in testScanSuccess()
325 verify(mWifiMetrics).incrementExternalAppOneshotScanRequestsCount(); in testScanFailure()
356 verify(mWifiMetrics, times(2)).incrementExternalAppOneshotScanRequestsCount(); in testScanSuccessOverwritesPreviousResults()
387 verify(mWifiMetrics, times(2)).incrementExternalAppOneshotScanRequestsCount(); in testScanFailureDoesNotOverwritePreviousResults()
[all …]
DClientModeManagerTest.java91 @Mock WifiMetrics mWifiMetrics; field in ClientModeManagerTest
233 mWifiMetrics, mSarManager, mWakeupController, mClientModeImpl); in createClientModeManager()
632 verify(mWifiMetrics).noteWifiOff(eq(false), eq(false), anyInt()); in clientModeStopWithWifiOffDeferringTimeNoWifiCalling()
660 verify(mWifiMetrics).noteWifiOff(eq(true), eq(false), anyInt()); in clientModeStopWithWifiOffDeferringTimeAndImsOnWwan()
688 verify(mWifiMetrics, never()).noteWifiOff(anyBoolean(), anyBoolean(), anyInt()); in clientModeStopWithWifiOffDeferringTimeWithWifiCalling()
703 verify(mWifiMetrics).noteWifiOff(eq(true), eq(false), anyInt()); in clientModeStopWithWifiOffDeferringTimeWithWifiCalling()
734 verify(mWifiMetrics, never()).noteWifiOff(anyBoolean(), anyBoolean(), anyInt()); in clientModeStopWithWifiOffDeferringTimeAndWifiCallingOnImsRegistered()
746 verify(mWifiMetrics).noteWifiOff(eq(true), eq(false), anyInt()); in clientModeStopWithWifiOffDeferringTimeAndWifiCallingOnImsRegistered()
781 verify(mWifiMetrics, never()).noteWifiOff(anyBoolean(), anyBoolean(), anyInt()); in clientModeStopWithWifiOffDeferringTimeAndWifiCallingTimedOut()
790 verify(mWifiMetrics).noteWifiOff(eq(true), eq(true), anyInt()); in clientModeStopWithWifiOffDeferringTimeAndWifiCallingTimedOut()
[all …]
DWifiLockManagerTest.java71 @Mock WifiMetrics mWifiMetrics; field in WifiLockManagerTest
95 mClientModeImpl, mFrameworkFacade, mHandler, mWifiNative, mClock, mWifiMetrics); in setUp()
199 verify(mWifiMetrics).addWifiLockAcqSession(eq(WifiManager.WIFI_MODE_FULL_HIGH_PERF), in releaseWifiLockShouldSucceed()
397 verify(mWifiMetrics).addWifiLockActiveSession(eq(WifiManager.WIFI_MODE_FULL_HIGH_PERF), in testHiPerfLockReleaseCauseEnablePS()
426 verify(mWifiMetrics).addWifiLockAcqSession(eq(WifiManager.WIFI_MODE_FULL_HIGH_PERF), in testHiPerfLockAcquireReleaseTwice()
435 verify(mWifiMetrics).addWifiLockActiveSession(eq(WifiManager.WIFI_MODE_FULL_HIGH_PERF), in testHiPerfLockAcquireReleaseTwice()
440 verify(mWifiMetrics).addWifiLockActiveSession(eq(WifiManager.WIFI_MODE_FULL_HIGH_PERF), in testHiPerfLockAcquireReleaseTwice()
532 verify(mWifiMetrics).addWifiLockAcqSession(eq(WifiManager.WIFI_MODE_FULL_HIGH_PERF), in testHiPerfLockReleaseFail()
537 verify(mWifiMetrics, never()).addWifiLockActiveSession(anyInt(), anyLong()); in testHiPerfLockReleaseFail()
546 verify(mWifiMetrics).addWifiLockActiveSession(eq(WifiManager.WIFI_MODE_FULL_HIGH_PERF), in testHiPerfLockReleaseFail()
[all …]
DWifiLastResortWatchdogTest.java50 @Mock WifiMetrics mWifiMetrics; field in WifiLastResortWatchdogTest
92 mWifiMetrics, mClientModeImpl, mLooper.getLooper(), mDeviceConfigFacade, in createWifiLastResortWatchdog()
1516 verify(mWifiMetrics, times(1)).incrementNumLastResortWatchdogTriggers(); in testMetricsCollection()
1517 verify(mWifiMetrics, times(1)).addCountToNumLastResortWatchdogAvailableNetworksTotal(5); in testMetricsCollection()
1518 verify(mWifiMetrics, times(1)) in testMetricsCollection()
1520 verify(mWifiMetrics, times(1)) in testMetricsCollection()
1522 verify(mWifiMetrics, times(1)) in testMetricsCollection()
1524 verify(mWifiMetrics, times(1)).incrementNumLastResortWatchdogTriggersWithBadAssociation(); in testMetricsCollection()
1525 verify(mWifiMetrics, times(1)).addCountToNumLastResortWatchdogBadDhcpNetworksTotal(3); in testMetricsCollection()
1526 verify(mWifiMetrics, times(1)).incrementNumLastResortWatchdogTriggersWithBadDhcp(); in testMetricsCollection()
[all …]
DWifiNativeInterfaceManagementTest.java78 @Mock private WifiMetrics mWifiMetrics; field in WifiNativeInterfaceManagementTest
158 mWifiMonitor, mNetdWrapper, mIfaceCallback0, mIfaceCallback1, mWifiMetrics); in setUp()
162 mWifiMonitor, mPropertyService, mWifiMetrics, in setUp()
178 mWifiMetrics); in tearDown()
202 mHostapdHal, mNetdWrapper, mIfaceCallback0, mIfaceCallback1, mWifiMetrics); in testSetupClientInterfaceForScan()
242 mHostapdHal, mNetdWrapper, mIfaceCallback0, mIfaceCallback1, mWifiMetrics); in testSetupAndTeardownClientInterfaceForScan()
552 mInOrder.verify(mWifiMetrics).incrementNumClientInterfaceDown(); in testSetupClientInterfaceAndTriggerInterfaceUpFollowedByDown()
572 mInOrder.verify(mWifiMetrics).incrementNumSoftApInterfaceDown(); in testSetupSoftApInterfaceAndTriggerInterfaceUpFollowedByDown()
739 mInOrder.verify(mWifiMetrics).incrementNumWificondCrashes(); in testSetupClientInterfaceAndWicondDied()
757 mInOrder.verify(mWifiMetrics).incrementNumHalCrashes(); in testSetupSoftApInterfaceAndVendorHalDied()
[all …]
DLinkProbeManagerTest.java65 @Mock private WifiMetrics mWifiMetrics; field in LinkProbeManagerTest
93 mLinkProbeManager = new LinkProbeManager(mClock, mWifiNative, mWifiMetrics, in initLinkProbeManager()
110 verify(mWifiMetrics, never()).incrementLinkProbeExperimentProbeCount(any()); in testLinkProbeTriggeredAndAcked()
130 verify(mWifiMetrics, atLeastOnce()).incrementLinkProbeExperimentProbeCount( in testLinkProbeTriggeredAndAcked()
138 verify(mWifiMetrics).logLinkProbeSuccess(timeDelta, rssi, linkSpeed, TEST_ELAPSED_TIME_MS); in testLinkProbeTriggeredAndAcked()
174 verify(mWifiMetrics).logLinkProbeFailure(timeDelta, rssi, linkSpeed, in testLinkProbeTriggeredAndFailed()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiInjector.java114 private final WifiMetrics mWifiMetrics; field in WifiInjector
221 mWifiMetrics = new WifiMetrics(mContext, mFrameworkFacade, mClock, wifiLooper, in WifiInjector()
224 mDeviceConfigFacade = new DeviceConfigFacade(mContext, wifiHandler, mWifiMetrics); in WifiInjector()
230 mContext, mWifiMonitor, mFrameworkFacade, wifiHandler, mClock, mWifiMetrics); in WifiInjector()
236 mWifiMonitor, mPropertyService, mWifiMetrics, in WifiInjector()
258 mWifiConfigStore = new WifiConfigStore(mContext, wifiHandler, mClock, mWifiMetrics, in WifiInjector()
264 mWifiConfigStore, wifiHandler, mWifiMetrics); in WifiInjector()
267 mWifiMetrics.setWifiScoreCard(mWifiScoreCard); in WifiInjector()
282 mWifiMetrics.setWifiConfigManager(mWifiConfigManager); in WifiInjector()
288 mWifiMetrics.setScoringParams(mScoringParams); in WifiInjector()
[all …]
DAvailableNetworkNotifier.java125 private final WifiMetrics mWifiMetrics; field in AvailableNetworkNotifier
173 mWifiMetrics = wifiMetrics; in AvailableNetworkNotifier()
357 mWifiMetrics.incrementConnectToNetworkNotification(mTag, in handleWifiConnected()
380 mWifiMetrics.incrementConnectToNetworkNotification(mTag, in handleConnectionFailure()
406 mWifiMetrics.incrementConnectToNetworkNotification(mTag, in postInitialNotification()
409 mWifiMetrics.incrementNumNetworkRecommendationUpdates(mTag); in postInitialNotification()
421 mWifiMetrics.incrementConnectToNetworkNotificationAction(mTag, mState, in handleConnectToNetworkAction()
428 mWifiMetrics.incrementConnectToNetworkNotification(mTag, in handleConnectToNetworkAction()
438 mWifiMetrics.setNominatorForNetwork(result.netId, mNominatorId); in handleConnectToNetworkAction()
457 mWifiMetrics.setNetworkRecommenderBlacklistSize(mTag, mBlacklistedSsids.size()); in addNetworkToBlacklist()
[all …]
DLinkProbeManager.java69 private final WifiMetrics mWifiMetrics; field in LinkProbeManager
109 mWifiMetrics = wifiMetrics; in LinkProbeManager()
241 mWifiMetrics.logLinkProbeSuccess( in updateConnectionStats()
251 mWifiMetrics.logLinkProbeFailure( in updateConnectionStats()
263 Experiment experiment = new Experiment(mClock, mWifiMetrics, in initExperiments()
275 private final WifiMetrics mWifiMetrics; field in LinkProbeManager.Experiment
292 mWifiMetrics = wifiMetrics; in Experiment()
356 mWifiMetrics.incrementLinkProbeExperimentProbeCount(mExperimentId); in updateConnectionStats()
DWifiLastResortWatchdog.java109 private WifiMetrics mWifiMetrics; field in WifiLastResortWatchdog
135 mWifiMetrics = wifiMetrics; in WifiLastResortWatchdog()
305 mWifiMetrics.incrementWatchdogTotalConnectionFailureCountAfterTrigger(); in noteConnectionFailureAndTriggerIfNeeded()
355 mWifiMetrics.incrementNumLastResortWatchdogSuccesses(); in connectedStateTransition()
357 mWifiMetrics.setWatchdogSuccessTimeDurationMs(durationMs); in connectedStateTransition()
561 mWifiMetrics.incrementNumLastResortWatchdogTriggers(); in incrementWifiMetricsTriggerCounts()
562 mWifiMetrics.addCountToNumLastResortWatchdogAvailableNetworksTotal( in incrementWifiMetricsTriggerCounts()
582 mWifiMetrics.addCountToNumLastResortWatchdogBadAuthenticationNetworksTotal(badAuth); in incrementWifiMetricsTriggerCounts()
583 mWifiMetrics.incrementNumLastResortWatchdogTriggersWithBadAuthentication(); in incrementWifiMetricsTriggerCounts()
586 mWifiMetrics.addCountToNumLastResortWatchdogBadAssociationNetworksTotal(badAssoc); in incrementWifiMetricsTriggerCounts()
[all …]
DDeviceConfigFacade.java37 private final WifiMetrics mWifiMetrics; field in DeviceConfigFacade
183 mWifiMetrics = wifiMetrics; in DeviceConfigFacade()
211 mWifiMetrics.setDataStallDurationMs(mDataStallDurationMs); in updateDeviceConfigFlags()
212 mWifiMetrics.setDataStallTxTputThrKbps(mDataStallTxTputThrKbps); in updateDeviceConfigFlags()
213 mWifiMetrics.setDataStallRxTputThrKbps(mDataStallRxTputThrKbps); in updateDeviceConfigFlags()
214 mWifiMetrics.setDataStallTxPerThr(mDataStallTxPerThr); in updateDeviceConfigFlags()
215 mWifiMetrics.setDataStallCcaLevelThr(mDataStallCcaLevelThr); in updateDeviceConfigFlags()
326 mWifiMetrics.setHealthMonitorRssiPollValidTimeMs(mHealthMonitorRssiPollValidTimeMs); in updateDeviceConfigFlags()
DWifiDataStall.java60 private final WifiMetrics mWifiMetrics; field in WifiDataStall
87 mWifiMetrics = wifiMetrics; in WifiDataStall()
231 mWifiMetrics.incrementChannelUtilizationCount(ccaLevel, currFrequency); in checkDataStallAndThroughputSufficiency()
243 mWifiMetrics.resetWifiIsUnusableLinkLayerStats(); in checkDataStallAndThroughputSufficiency()
244 mWifiMetrics.incrementThroughputKbpsCount(mTxTputKbps, mRxTputKbps, currFrequency); in checkDataStallAndThroughputSufficiency()
278 mWifiMetrics.resetWifiIsUnusableLinkLayerStats(); in checkDataStallAndThroughputSufficiency()
282 mWifiMetrics.updateWifiIsUnusableLinkLayerStats(txSuccessDelta, txRetriesDelta, in checkDataStallAndThroughputSufficiency()
328 mWifiMetrics.incrementThroughputKbpsCount(mTxTputKbps, mRxTputKbps, currFrequency); in checkDataStallAndThroughputSufficiency()
337 mWifiMetrics.incrementConnectionDuration(timeDeltaLastTwoPollsMs, in checkDataStallAndThroughputSufficiency()
421 mWifiMetrics.logWifiIsUnusableEvent(result); in calculateUsabilityEventType()
DSoftApManager.java98 private final WifiMetrics mWifiMetrics; field in SoftApManager
196 mWifiMetrics = wifiMetrics; in SoftApManager()
509 mWifiMetrics.noteSoftApClientBlocked(maxConfig); in checkSoftApClient()
585 mWifiMetrics.incrementSoftApStartResult( in processMessage()
606 mWifiMetrics.incrementSoftApStartResult(false, failureReason); in processMessage()
752 mWifiMetrics.addSoftApNumAssociatedStationsChangedEvent( in updateConnectedClients()
773 mWifiMetrics.addSoftApChannelSwitchedEvent(mCurrentSoftApInfo.getFrequency(), in setSoftApChannel()
790 mWifiMetrics.incrementSoftApStartResult(true, 0); in onUpChanged()
798 mWifiMetrics.addSoftApUpChangedEvent(isUp, mApConfig.getTargetMode(), in onUpChanged()
801 mWifiMetrics.updateSoftApConfiguration(mApConfig.getSoftApConfiguration(), in onUpChanged()
[all …]
DWifiConnectivityManager.java146 private final WifiMetrics mWifiMetrics; field in WifiConnectivityManager
287 mWifiMetrics.incrementConnectivityOneshotScanCount();
334 mWifiMetrics.countScanResults(scanDetails); in handleScanResults()
366 mWifiMetrics.incrementNumHighMovementConnectionSkipped(); in filterCandidatesHighMovement()
384 mWifiMetrics.incrementNumHighMovementConnectionStarted(); in filterCandidatesHighMovement()
398 mWifiMetrics.incrementNumHighMovementConnectionSkipped(); in filterCandidatesHighMovement()
500 mWifiMetrics.incrementAvailableNetworksHistograms(mScanDetails, in onResults()
517 mWifiMetrics.incrementNumConnectivityWatchdogPnoBad(); in onResults()
519 mWifiMetrics.incrementNumConnectivityWatchdogPnoGood(); in onResults()
532 mWifiMetrics.reportInitialPartialScan(mInitialPartialScanChannelCount, true); in onResults()
[all …]
DWifiNative.java86 private final WifiMetrics mWifiMetrics; field in WifiNative
105 mWifiMetrics = wifiMetrics; in WifiNative()
361 mWifiMetrics.incrementPnoFoundNetworkEventCount(); in onScanResultReady()
367 mWifiMetrics.incrementPnoScanFailedCount(); in onScanFailed()
635 mWifiMetrics.incrementNumHalCrashes(); in onDeath()
649 mWifiMetrics.incrementNumWificondCrashes(); in run()
663 mWifiMetrics.incrementNumSupplicantCrashes(); in onDeath()
677 mWifiMetrics.incrementNumHostapdCrashes(); in onDeath()
700 mWifiMetrics.incrementNumClientInterfaceDown(); in onInterfaceStateChanged()
702 mWifiMetrics.incrementNumSoftApInterfaceDown(); in onInterfaceStateChanged()
[all …]
DClientModeImpl.java214 private final WifiMetrics mWifiMetrics; field in ClientModeImpl
758 mWifiMetrics = mWifiInjector.getWifiMetrics(); in ClientModeImpl()
813 mWifiMetrics, mWifiInfo, mWifiNative, mBssidBlocklistMonitor, in ClientModeImpl()
925 mWifiMetrics.getHandler()); in registerForWifiMonitorEvents()
927 mWifiMetrics.getHandler()); in registerForWifiMonitorEvents()
929 mWifiMetrics.getHandler()); in registerForWifiMonitorEvents()
931 mWifiMetrics.getHandler()); in registerForWifiMonitorEvents()
933 mWifiMetrics.getHandler()); in registerForWifiMonitorEvents()
935 mWifiMetrics.getHandler()); in registerForWifiMonitorEvents()
937 mWifiMetrics.getHandler()); in registerForWifiMonitorEvents()
[all …]
DWifiScoreReport.java71 WifiMetrics mWifiMetrics; field in WifiScoreReport
164 mWifiMetrics.updateWifiUsabilityStatsEntries(mWifiInfo, stats); in triggerUpdateOfWifiUsabilityStats()
259 mWifiMetrics = wifiMetrics; in WifiScoreReport()
411 mWifiMetrics.incrementWifiScoreCount(score); in updateWifiMetrics()
577 mWifiMetrics.setIsExternalWifiScorerOn(true); in setWifiConnectedNetworkScorer()
664 mWifiMetrics.setIsExternalWifiScorerOn(false); in revertToDefaultConnectedScorer()
DScanRequestProxy.java90 private final WifiMetrics mWifiMetrics; field in ScanRequestProxy
205 mWifiMetrics = wifiMetrics; in ScanRequestProxy()
395 mWifiMetrics.incrementExternalBackgroundAppOneshotScanRequestsThrottledCount(); in shouldScanRequestBeThrottledForApp()
404 mWifiMetrics.incrementExternalForegroundAppOneshotScanRequestsThrottledCount(); in shouldScanRequestBeThrottledForApp()
407 mWifiMetrics.incrementExternalAppOneshotScanRequestsCount(); in shouldScanRequestBeThrottledForApp()
DWifiNetworkSelector.java94 private final WifiMetrics mWifiMetrics; field in WifiNetworkSelector
420 mWifiMetrics in filterScanResults()
431 mWifiMetrics.incrementNetworkSelectionFilteredBssidCount(numBssidFiltered); in filterScanResults()
672 mWifiMetrics.setNominatorForNetwork(candidate.networkId, in overrideCandidateWithUserConnectChoice()
696 mWifiMetrics.addMeteredStat(config, metered); in isEverMetered()
825 mWifiMetrics.setNominatorForNetwork(config.networkId, in getCandidatesFromScan()
911 mWifiMetrics.logNetworkSelectionDecision(experimentId, activeExperimentId, in selectNetwork()
1006 mWifiMetrics.setNetworkSelectorExperimentId(ans == null in getActiveCandidateScorer()
1118 mWifiMetrics = wifiMetrics; in WifiNetworkSelector()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointManagerTest.java178 @Mock WifiMetrics mWifiMetrics; field in PasspointManagerTest
221 mock(WifiContext.class), mWifiConfigStore, mock(Handler.class), mWifiMetrics); in setUp()
226 mWifiConfigStore, mWifiMetrics, mWifiCarrierInfoManager); in setUp()
487 verify(mWifiMetrics).incrementNumPasspointProviderInstallation(); in addProviderWithNullConfig()
488 verify(mWifiMetrics, never()).incrementNumPasspointProviderInstallSuccess(); in addProviderWithNullConfig()
500 verify(mWifiMetrics).incrementNumPasspointProviderInstallation(); in addProviderWithEmptyConfig()
501 verify(mWifiMetrics, never()).incrementNumPasspointProviderInstallSuccess(); in addProviderWithEmptyConfig()
518 verify(mWifiMetrics).incrementNumPasspointProviderInstallation(); in addProviderWithInvalidCredential()
519 verify(mWifiMetrics, never()).incrementNumPasspointProviderInstallSuccess(); in addProviderWithInvalidCredential()
539 verify(mWifiMetrics).incrementNumPasspointProviderInstallation(); in addRemoveSavedProviderWithValidUserCredential()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointManager.java117 private final WifiMetrics mWifiMetrics; field in PasspointManager
318 mWifiMetrics = wifiMetrics; in PasspointManager()
396 mWifiMetrics.incrementNumPasspointProviderInstallation(); in addOrUpdateProvider()
483 mWifiMetrics.incrementNumPasspointProviderWithNoRootCa(); in addOrUpdateProvider()
486 mWifiMetrics.incrementNumPasspointProviderWithSelfSignedRootCa(); in addOrUpdateProvider()
489 mWifiMetrics.incrementNumPasspointProviderWithSubscriptionExpiration(); in addOrUpdateProvider()
491 mWifiMetrics.incrementNumPasspointProviderInstallSuccess(); in addOrUpdateProvider()
517 mWifiMetrics.incrementNumPasspointProviderUninstallSuccess(); in removeProviderInternal()
533 mWifiMetrics.incrementNumPasspointProviderUninstallation(); in removeProvider()
540 mWifiMetrics.incrementNumPasspointProviderUninstallation(); in removeProvider()
[all …]

123