Home
last modified time | relevance | path

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

123

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiMetricsTest.java134 WifiMetrics mWifiMetrics; field in WifiMetricsTest
164 mWifiMetrics = new WifiMetrics(mContext, mFacade, mClock, mTestLooper.getLooper(), in setUp()
167 mWifiMetrics.setWifiConfigManager(mWcm); in setUp()
168 mWifiMetrics.setPasspointManager(mPpm); in setUp()
169 mWifiMetrics.setScoringParams(mScoringParams); in setUp()
170 mWifiMetrics.setWifiNetworkSelector(mWns); in setUp()
171 mWifiMetrics.setWifiDataStall(mWifiDataStall); in setUp()
181 mWifiMetrics.startConnectionEvent(null, "RED", in startAndEndConnectionEventSucceeds()
183 mWifiMetrics.endConnectionEvent( in startAndEndConnectionEventSucceeds()
188 mWifiMetrics.endConnectionEvent( in startAndEndConnectionEventSucceeds()
[all …]
DWifiDataStallTest.java47 @Mock WifiMetrics mWifiMetrics; field in WifiDataStallTest
68 mWifiDataStall = new WifiDataStall(mContext, mFacade, mWifiMetrics); in setUp()
88 verify(mWifiMetrics).updateWifiIsUnusableLinkLayerStats( in verifyUpdateWifiIsUnusableLinkLayerStats()
105 verify(mWifiMetrics).logWifiIsUnusableEvent(WifiIsUnusableEvent.TYPE_DATA_STALL_BAD_TX); in verifyDataStallTxFailure()
118 verify(mWifiMetrics).logWifiIsUnusableEvent( in verifyDataStallRxFailure()
133 verify(mWifiMetrics).logWifiIsUnusableEvent(WifiIsUnusableEvent.TYPE_DATA_STALL_BOTH); in verifyDataStallBothTxRxFailure()
147 verify(mWifiMetrics).setWifiDataStallMinTxBad(WifiDataStall.MIN_TX_BAD_DEFAULT + 1); in verifyDataStallTxFailureSettingsChange()
148 verify(mWifiMetrics, times(2)).setWifiDataStallMinRxWithoutTx( in verifyDataStallTxFailureSettingsChange()
155 verify(mWifiMetrics, never()).logWifiIsUnusableEvent(anyInt()); in verifyDataStallTxFailureSettingsChange()
169 verify(mWifiMetrics, times(2)).setWifiDataStallMinTxBad(WifiDataStall.MIN_TX_BAD_DEFAULT); in verifyDataStallRxFailureSettingsChange()
[all …]
DOpenNetworkNotifierTest.java81 @Mock private WifiMetrics mWifiMetrics; field in OpenNetworkNotifierTest
119 mContext, mLooper.getLooper(), mFrameworkFacade, mClock, mWifiMetrics, in setUp()
140 verify(mWifiMetrics).setIsWifiNetworksAvailableNotificationEnabled(OPEN_NET_NOTIFIER_TAG, in onCreate_setWifiNetworksAvailableNotificationSettingState()
153 verify(mWifiMetrics).setIsWifiNetworksAvailableNotificationEnabled(OPEN_NET_NOTIFIER_TAG, in onFeatureDisable_setWifiNetworksAvailableNotificationSettingDisabled()
166 verify(mWifiMetrics).incrementConnectToNetworkNotification(OPEN_NET_NOTIFIER_TAG, in handleScanResults_hasOpenNetworks_notificationDisplayed()
204 verify(mWifiMetrics).incrementConnectToNetworkNotification(OPEN_NET_NOTIFIER_TAG, in handleScanResults_notificationShown_emptyList_notificationCleared()
223 verify(mWifiMetrics).incrementConnectToNetworkNotification(OPEN_NET_NOTIFIER_TAG, in handleScanResults_notificationShown_noRecommendation_notificationCleared()
243 verify(mWifiMetrics).incrementConnectToNetworkNotification(OPEN_NET_NOTIFIER_TAG, in handleScanResults_notificationShown_screenOff_emptyList_notificationCleared()
263 verify(mWifiMetrics).incrementConnectToNetworkNotification(OPEN_NET_NOTIFIER_TAG, in clearPendingNotification_clearsNotificationIfOneIsShowing()
305 verify(mWifiMetrics).incrementConnectToNetworkNotification(OPEN_NET_NOTIFIER_TAG, in screenOff_notificationShowing_handleScanResults_recommendationCanBeUpdated()
[all …]
DCarrierNetworkNotifierTest.java81 @Mock private WifiMetrics mWifiMetrics; field in CarrierNetworkNotifierTest
120 mContext, mLooper.getLooper(), mFrameworkFacade, mClock, mWifiMetrics, in setUp()
141 verify(mWifiMetrics).setIsWifiNetworksAvailableNotificationEnabled(CARRIER_NET_NOTIFIER_TAG, in onCreate_setWifiNetworksAvailableNotificationSettingState()
154 verify(mWifiMetrics).setIsWifiNetworksAvailableNotificationEnabled(CARRIER_NET_NOTIFIER_TAG, in onFeatureDisable_setWifiNetworksAvailableNotificationSettingDisabled()
167 verify(mWifiMetrics).incrementConnectToNetworkNotification(CARRIER_NET_NOTIFIER_TAG, in handleScanResults_hasCarrierNetworks_notificationDisplayed()
205 verify(mWifiMetrics).incrementConnectToNetworkNotification(CARRIER_NET_NOTIFIER_TAG, in handleScanResults_notificationShown_emptyList_notificationCleared()
224 verify(mWifiMetrics).incrementConnectToNetworkNotification(CARRIER_NET_NOTIFIER_TAG, in handleScanResults_notificationShown_noRecommendation_notificationCleared()
244 verify(mWifiMetrics).incrementConnectToNetworkNotification(CARRIER_NET_NOTIFIER_TAG, in handleScanResults_notificationShown_screenOff_emptyList_notificationCleared()
264 verify(mWifiMetrics).incrementConnectToNetworkNotification(CARRIER_NET_NOTIFIER_TAG, in clearPendingNotification_clearsNotificationIfOneIsShowing()
306 verify(mWifiMetrics).incrementConnectToNetworkNotification(CARRIER_NET_NOTIFIER_TAG, in screenOff_notificationShowing_handleScanResults_recommendationCanBeUpdated()
[all …]
DWifiScoreReportTest.java78 @Mock WifiMetrics mWifiMetrics; field in WifiScoreReportTest
137 mWifiMetrics = null; in tearDown()
149 mWifiScoreReport.calculateAndReportScore(mWifiInfo, mNetworkAgent, mWifiMetrics); in calculateAndReportScoreSucceeds()
151 verify(mWifiMetrics).incrementWifiScoreCount(anyInt()); in calculateAndReportScoreSucceeds()
163 mWifiScoreReport.calculateAndReportScore(mWifiInfo, mNetworkAgent, mWifiMetrics); in calculateAndReportScoreDoesNotReportWhenRssiIsNotValid()
165 verify(mWifiMetrics, never()).incrementWifiScoreCount(anyInt()); in calculateAndReportScoreDoesNotReportWhenRssiIsNotValid()
177 mWifiScoreReport.calculateAndReportScore(mWifiInfo, null, mWifiMetrics); in networkAgentMayBeNull()
178 verify(mWifiMetrics).incrementWifiScoreCount(anyInt()); in networkAgentMayBeNull()
196 mWifiScoreReport.calculateAndReportScore(mWifiInfo, mNetworkAgent, mWifiMetrics); in allowLowRssiIfDataIsMoving()
219 mWifiScoreReport.calculateAndReportScore(mWifiInfo, mNetworkAgent, mWifiMetrics); in giveUpOnBadRssiWhenDataIsNotMoving()
[all …]
DScanRequestProxyTest.java77 @Mock private WifiMetrics mWifiMetrics; field in ScanRequestProxyTest
125 mWifiConfigManager, mWifiPermissionsUtil, mWifiMetrics, mClock, in setUp()
131 verifyNoMoreInteractions(mWifiScanner, mWifiConfigManager, mContext, mWifiMetrics); in cleanUp()
180 verify(mWifiMetrics).incrementExternalAppOneshotScanRequestsCount(); in testStartScanSuccess()
231 verify(mWifiMetrics).incrementExternalAppOneshotScanRequestsCount(); in testStartScanWithHiddenNetworkScanningDisabled()
252 verify(mWifiMetrics).incrementExternalAppOneshotScanRequestsCount(); in testStartScanWithHiddenNetworkScanningEnabled()
272 verify(mWifiMetrics).incrementExternalAppOneshotScanRequestsCount(); in testScanSuccess()
290 verify(mWifiMetrics).incrementExternalAppOneshotScanRequestsCount(); in testScanFailure()
321 verify(mWifiMetrics, times(2)).incrementExternalAppOneshotScanRequestsCount(); in testScanSuccessOverwritesPreviousResults()
352 verify(mWifiMetrics, times(2)).incrementExternalAppOneshotScanRequestsCount(); in testScanFailureDoesNotOverwritePreviousResults()
[all …]
DWifiLockManagerTest.java71 @Mock WifiMetrics mWifiMetrics; field in WifiLockManagerTest
95 mClientModeImpl, mFrameworkFacade, mHandler, mWifiNative, mClock, mWifiMetrics); in setUp()
214 verify(mWifiMetrics).addWifiLockAcqSession(eq(WifiManager.WIFI_MODE_FULL_HIGH_PERF), in releaseWifiLockShouldSucceed()
412 verify(mWifiMetrics).addWifiLockActiveSession(eq(WifiManager.WIFI_MODE_FULL_HIGH_PERF), in testHiPerfLockReleaseCauseEnablePS()
441 verify(mWifiMetrics).addWifiLockAcqSession(eq(WifiManager.WIFI_MODE_FULL_HIGH_PERF), in testHiPerfLockAcquireReleaseTwice()
450 verify(mWifiMetrics).addWifiLockActiveSession(eq(WifiManager.WIFI_MODE_FULL_HIGH_PERF), in testHiPerfLockAcquireReleaseTwice()
455 verify(mWifiMetrics).addWifiLockActiveSession(eq(WifiManager.WIFI_MODE_FULL_HIGH_PERF), in testHiPerfLockAcquireReleaseTwice()
547 verify(mWifiMetrics).addWifiLockAcqSession(eq(WifiManager.WIFI_MODE_FULL_HIGH_PERF), in testHiPerfLockReleaseFail()
552 verify(mWifiMetrics, never()).addWifiLockActiveSession(anyInt(), anyLong()); in testHiPerfLockReleaseFail()
561 verify(mWifiMetrics).addWifiLockActiveSession(eq(WifiManager.WIFI_MODE_FULL_HIGH_PERF), in testHiPerfLockReleaseFail()
[all …]
DSoftApManagerTest.java90 @Mock WifiMetrics mWifiMetrics; field in SoftApManagerTest
138 mWifiMetrics, in createSoftApManager()
211 mWifiMetrics, in startSoftApDefaultConfigFailedToLoad()
254 mWifiMetrics, in testSetupForSoftApModeNullApInterfaceNameFailureIncrementsMetrics()
269 verify(mWifiMetrics).incrementSoftApStartResult(false, in testSetupForSoftApModeNullApInterfaceNameFailureIncrementsMetrics()
296 mWifiMetrics, in testSetupForSoftApModeEmptyInterfaceNameFailureIncrementsMetrics()
311 verify(mWifiMetrics).incrementSoftApStartResult(false, in testSetupForSoftApModeEmptyInterfaceNameFailureIncrementsMetrics()
337 mWifiMetrics, in startSoftApOn5GhzFailGeneralErrorForNoCountryCode()
383 mWifiMetrics, in startSoftApOn5GhzFailGeneralErrorForCountryCodeSetFailure()
499 mWifiMetrics, in startSoftApFailNoChannel()
[all …]
DWifiLastResortWatchdogTest.java47 @Mock WifiMetrics mWifiMetrics; field in WifiLastResortWatchdogTest
70 mLastResortWatchdog = new WifiLastResortWatchdog(mWifiInjector, mClock, mWifiMetrics, in setUp()
1496 verify(mWifiMetrics, times(1)).incrementNumLastResortWatchdogTriggers(); in testMetricsCollection()
1497 verify(mWifiMetrics, times(1)).addCountToNumLastResortWatchdogAvailableNetworksTotal(5); in testMetricsCollection()
1498 verify(mWifiMetrics, times(1)) in testMetricsCollection()
1500 verify(mWifiMetrics, times(1)) in testMetricsCollection()
1502 verify(mWifiMetrics, times(1)) in testMetricsCollection()
1504 verify(mWifiMetrics, times(1)).incrementNumLastResortWatchdogTriggersWithBadAssociation(); in testMetricsCollection()
1505 verify(mWifiMetrics, times(1)).addCountToNumLastResortWatchdogBadDhcpNetworksTotal(3); in testMetricsCollection()
1506 verify(mWifiMetrics, times(1)).incrementNumLastResortWatchdogTriggersWithBadDhcp(); in testMetricsCollection()
[all …]
DWifiNativeInterfaceManagementTest.java81 @Mock private WifiMetrics mWifiMetrics; field in WifiNativeInterfaceManagementTest
165 mWifiMonitor, mNwManagementService, mIfaceCallback0, mIfaceCallback1, mWifiMetrics); in setUp()
169 mWifiMonitor, mNwManagementService, mPropertyService, mWifiMetrics, in setUp()
183 mWifiMetrics); in tearDown()
207 mHostapdHal, mNwManagementService, mIfaceCallback0, mIfaceCallback1, mWifiMetrics); in testSetupClientInterfaceForScan()
247 mHostapdHal, mNwManagementService, mIfaceCallback0, mIfaceCallback1, mWifiMetrics); in testSetupAndTeardownClientInterfaceForScan()
555 mInOrder.verify(mWifiMetrics).incrementNumClientInterfaceDown(); in testSetupClientInterfaceAndTriggerInterfaceUpFollowedByDown()
575 mInOrder.verify(mWifiMetrics).incrementNumSoftApInterfaceDown(); in testSetupSoftApInterfaceAndTriggerInterfaceUpFollowedByDown()
741 mInOrder.verify(mWifiMetrics).incrementNumWificondCrashes(); in testSetupClientInterfaceAndWicondDied()
759 mInOrder.verify(mWifiMetrics).incrementNumHalCrashes(); in testSetupSoftApInterfaceAndVendorHalDied()
[all …]
DWifiNetworkSelectorTest.java89 mWifiMetrics, in setUp()
194 @Mock private WifiMetrics mWifiMetrics; field in WifiNetworkSelectorTest
749 verify(mWifiMetrics, atLeastOnce()).setNominatorForNetwork(eq(candidate.networkId), in userConnectChoiceOverridesNetworkEvaluators()
767 verify(mWifiMetrics, atLeastOnce()).setNominatorForNetwork(eq(candidate.networkId), in userConnectChoiceOverridesNetworkEvaluators()
815 verify(mWifiMetrics, atLeastOnce()).setNominatorForNetwork(eq(candidate.networkId), in testMultipleEvaluatorsSetsNominatorIdCorrectly()
824 verify(mWifiMetrics, atLeastOnce()).setNetworkSelectorExperimentId(anyInt()); in testMultipleEvaluatorsSetsNominatorIdCorrectly()
1584 verify(mWifiMetrics, never()).logNetworkSelectionDecision( in testCandidateScorerMetrics_onlyOneScorer()
1605 verify(mWifiMetrics, times(2)).logNetworkSelectionDecision(registeredExpId, in testCandidateScorerMetrics_twoScorers()
1629 verify(mWifiMetrics, times(2)).logNetworkSelectionDecision( in testCandidateScorerMetrics_twoScorers_experimentActive()
1671 verify(mWifiMetrics, times(2)).logNetworkSelectionDecision(nullScorerId, in testCandidateScorerMetrics_twoScorers_oneNull()
[all …]
DLinkProbeManagerTest.java65 @Mock private WifiMetrics mWifiMetrics; field in LinkProbeManagerTest
100 mLinkProbeManager = new LinkProbeManager(mClock, mWifiNative, mWifiMetrics, in initLinkProbeManager()
117 verify(mWifiMetrics, never()).incrementLinkProbeExperimentProbeCount(any()); in testLinkProbeTriggeredAndAcked()
137 verify(mWifiMetrics, atLeastOnce()).incrementLinkProbeExperimentProbeCount( in testLinkProbeTriggeredAndAcked()
145 verify(mWifiMetrics).logLinkProbeSuccess(timeDelta, rssi, linkSpeed, TEST_ELAPSED_TIME_MS); in testLinkProbeTriggeredAndAcked()
181 verify(mWifiMetrics).logLinkProbeFailure(timeDelta, rssi, linkSpeed, in testLinkProbeTriggeredAndFailed()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiDataStall.java39 private final WifiMetrics mWifiMetrics; field in WifiDataStall
47 mWifiMetrics = wifiMetrics; in WifiDataStall()
60 mWifiMetrics.setWifiDataStallMinTxBad(mMinTxBad); in loadSettings()
61 mWifiMetrics.setWifiDataStallMinRxWithoutTx(mMinTxSuccessWithoutRx); in loadSettings()
72 mWifiMetrics.resetWifiIsUnusableLinkLayerStats(); in checkForDataStall()
100 mWifiMetrics.resetWifiIsUnusableLinkLayerStats(); in checkForDataStall()
104 mWifiMetrics.updateWifiIsUnusableLinkLayerStats(txSuccessDelta, txRetriesDelta, in checkForDataStall()
113 mWifiMetrics.logWifiIsUnusableEvent(WifiIsUnusableEvent.TYPE_DATA_STALL_BOTH); in checkForDataStall()
116 mWifiMetrics.logWifiIsUnusableEvent(WifiIsUnusableEvent.TYPE_DATA_STALL_BAD_TX); in checkForDataStall()
119 mWifiMetrics.logWifiIsUnusableEvent( in checkForDataStall()
DWifiInjector.java111 private final WifiMetrics mWifiMetrics; field in WifiInjector
200 mWifiMetrics = new WifiMetrics(mContext, mFrameworkFacade, mClock, clientModeImplLooper, in WifiInjector()
219 mWifiMonitor, mNwManagementService, mPropertyService, mWifiMetrics, in WifiInjector()
241 mContext, clientModeImplLooper, mClock, mWifiMetrics, in WifiInjector()
253 mWifiMetrics.setWifiConfigManager(mWifiConfigManager); in WifiInjector()
258 mWifiMetrics.setScoringParams(mScoringParams); in WifiInjector()
260 mWifiConfigManager, mClock, mConnectivityLocalLog, mWifiMetrics, mWifiNative); in WifiInjector()
267 mWifiMetrics.setWifiNetworkSelector(mWifiNetworkSelector); in WifiInjector()
273 mWifiConfigManager, mWifiConfigStore, mWifiMetrics, mWifiKeyStore); in WifiInjector()
285 mWifiMetrics, makeTelephonyManager(), subscriptionManager); in WifiInjector()
[all …]
DAvailableNetworkNotifier.java125 private final WifiMetrics mWifiMetrics; field in AvailableNetworkNotifier
173 mWifiMetrics = wifiMetrics; in AvailableNetworkNotifier()
359 mWifiMetrics.incrementConnectToNetworkNotification(mTag, in handleWifiConnected()
382 mWifiMetrics.incrementConnectToNetworkNotification(mTag, in handleConnectionFailure()
408 mWifiMetrics.incrementConnectToNetworkNotification(mTag, in postInitialNotification()
411 mWifiMetrics.incrementNumNetworkRecommendationUpdates(mTag); in postInitialNotification()
423 mWifiMetrics.incrementConnectToNetworkNotificationAction(mTag, mState, in handleConnectToNetworkAction()
430 mWifiMetrics.incrementConnectToNetworkNotification(mTag, in handleConnectToNetworkAction()
440 mWifiMetrics.setNominatorForNetwork(result.netId, mNominatorId); in handleConnectToNetworkAction()
463 mWifiMetrics.setNetworkRecommenderBlacklistSize(mTag, mBlacklistedSsids.size()); in addNetworkToBlacklist()
[all …]
DLinkProbeManager.java71 private final WifiMetrics mWifiMetrics; field in LinkProbeManager
111 mWifiMetrics = wifiMetrics; in LinkProbeManager()
255 mWifiMetrics.logLinkProbeSuccess( in updateConnectionStats()
265 mWifiMetrics.logLinkProbeFailure( in updateConnectionStats()
279 Experiment experiment = new Experiment(mClock, mWifiMetrics, in initExperiments()
291 private final WifiMetrics mWifiMetrics; field in LinkProbeManager.Experiment
308 mWifiMetrics = wifiMetrics; in Experiment()
372 mWifiMetrics.incrementLinkProbeExperimentProbeCount(mExperimentId); in updateConnectionStats()
DWifiLastResortWatchdog.java100 private WifiMetrics mWifiMetrics; field in WifiLastResortWatchdog
118 mWifiMetrics = wifiMetrics; in WifiLastResortWatchdog()
235 mWifiMetrics.incrementWatchdogTotalConnectionFailureCountAfterTrigger(); in noteConnectionFailureAndTriggerIfNeeded()
277 mWifiMetrics.incrementNumLastResortWatchdogSuccesses(); in connectedStateTransition()
279 mWifiMetrics.setWatchdogSuccessTimeDurationMs(durationMs); in connectedStateTransition()
476 mWifiMetrics.incrementNumLastResortWatchdogTriggers(); in incrementWifiMetricsTriggerCounts()
477 mWifiMetrics.addCountToNumLastResortWatchdogAvailableNetworksTotal( in incrementWifiMetricsTriggerCounts()
497 mWifiMetrics.addCountToNumLastResortWatchdogBadAuthenticationNetworksTotal(badAuth); in incrementWifiMetricsTriggerCounts()
498 mWifiMetrics.incrementNumLastResortWatchdogTriggersWithBadAuthentication(); in incrementWifiMetricsTriggerCounts()
501 mWifiMetrics.addCountToNumLastResortWatchdogBadAssociationNetworksTotal(badAssoc); in incrementWifiMetricsTriggerCounts()
[all …]
DSoftApManager.java83 private final WifiMetrics mWifiMetrics; field in SoftApManager
144 mWifiMetrics = wifiMetrics; in SoftApManager()
371 mWifiMetrics.incrementSoftApStartResult( in processMessage()
387 mWifiMetrics.incrementSoftApStartResult(false, failureReason); in processMessage()
479 mWifiMetrics.addSoftApNumAssociatedStationsChangedEvent(mNumAssociatedStations, in setNumAssociatedStations()
498 mWifiMetrics.incrementSoftApStartResult(true, 0); in onUpChanged()
506 mWifiMetrics.addSoftApUpChangedEvent(isUp, mMode); in onUpChanged()
547 mWifiMetrics.addSoftApUpChangedEvent(false, mMode); in exit()
570 mWifiMetrics.incrementNumSoftApUserBandPreferenceUnsatisfied(); in updateUserBandPreferenceViolationMetricsIfNeeded()
590 mWifiMetrics.addSoftApChannelSwitchedEvent(mReportedFrequency, in processMessage()
DWifiConnectivityManager.java148 private final WifiMetrics mWifiMetrics; field in WifiConnectivityManager
283 mWifiMetrics.countScanResults(scanDetails); in handleScanResults()
353 mWifiMetrics.incrementAvailableNetworksHistograms(mScanDetails, in onResults()
369 mWifiMetrics.incrementNumConnectivityWatchdogPnoBad(); in onResults()
371 mWifiMetrics.incrementNumConnectivityWatchdogPnoGood(); in onResults()
609 mWifiMetrics = wifiMetrics; in WifiConnectivityManager()
928 mWifiMetrics.incrementConnectivityOneshotScanCount(); in startSingleScan()
978 mWifiMetrics.logPnoScanStop(); in setDeviceMobilityState()
979 mWifiMetrics.enterDeviceMobilityState(newState); in setDeviceMobilityState()
980 mWifiMetrics.logPnoScanStart(); in setDeviceMobilityState()
[all …]
DWifiNative.java81 private final WifiMetrics mWifiMetrics; field in WifiNative
99 mWifiMetrics = wifiMetrics; in WifiNative()
576 mWifiMetrics.incrementNumHalCrashes(); in onDeath()
590 mWifiMetrics.incrementNumWificondCrashes(); in onDeath()
604 mWifiMetrics.incrementNumSupplicantCrashes(); in onDeath()
618 mWifiMetrics.incrementNumHostapdCrashes(); in onDeath()
641 mWifiMetrics.incrementNumClientInterfaceDown(); in onInterfaceStateChanged()
643 mWifiMetrics.incrementNumSoftApInterfaceDown(); in onInterfaceStateChanged()
706 mWifiMetrics.incrementNumRadioModeChangeToMcc(); in onMcc()
713 mWifiMetrics.incrementNumRadioModeChangeToScc(); in onScc()
[all …]
DScanRequestProxy.java85 private final WifiMetrics mWifiMetrics; field in ScanRequestProxy
243 mWifiMetrics = wifiMetrics; in ScanRequestProxy()
433 mWifiMetrics.incrementExternalBackgroundAppOneshotScanRequestsThrottledCount(); in shouldScanRequestBeThrottledForApp()
442 mWifiMetrics.incrementExternalForegroundAppOneshotScanRequestsThrottledCount(); in shouldScanRequestBeThrottledForApp()
445 mWifiMetrics.incrementExternalAppOneshotScanRequestsCount(); in shouldScanRequestBeThrottledForApp()
DWifiLockManager.java62 private final WifiMetrics mWifiMetrics; field in WifiLockManager
95 mWifiMetrics = wifiMetrics; in WifiLockManager()
536 mWifiMetrics.addWifiLockAcqSession(WifiManager.WIFI_MODE_FULL_HIGH_PERF, in releaseLock()
548 mWifiMetrics.addWifiLockAcqSession(WifiManager.WIFI_MODE_FULL_LOW_LATENCY, in releaseLock()
581 mWifiMetrics.addWifiLockActiveSession(WifiManager.WIFI_MODE_FULL_HIGH_PERF, in updateOpMode()
590 mWifiMetrics.addWifiLockActiveSession(WifiManager.WIFI_MODE_FULL_LOW_LATENCY, in updateOpMode()
DClientModeImpl.java193 private final WifiMetrics mWifiMetrics; field in ClientModeImpl
777 mWifiMetrics = mWifiInjector.getWifiMetrics(); in ClientModeImpl()
889 mWifiMetrics.setIsMacRandomizationOn(mConnectedMacRandomzationSupported); in ClientModeImpl()
949 mWifiMetrics.getHandler()); in registerForWifiMonitorEvents()
951 mWifiMetrics.getHandler()); in registerForWifiMonitorEvents()
953 mWifiMetrics.getHandler()); in registerForWifiMonitorEvents()
955 mWifiMetrics.getHandler()); in registerForWifiMonitorEvents()
957 mWifiMetrics.getHandler()); in registerForWifiMonitorEvents()
959 mWifiMetrics.getHandler()); in registerForWifiMonitorEvents()
961 mWifiMetrics.getHandler()); in registerForWifiMonitorEvents()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointManagerTest.java166 @Mock WifiMetrics mWifiMetrics; field in PasspointManagerTest
209 mWifiConfigStore, mWifiMetrics, mTelephonyManager, mSubscriptionManager); in setUp()
475 verify(mWifiMetrics).incrementNumPasspointProviderInstallation(); in addProviderWithNullConfig()
476 verify(mWifiMetrics, never()).incrementNumPasspointProviderInstallSuccess(); in addProviderWithNullConfig()
488 verify(mWifiMetrics).incrementNumPasspointProviderInstallation(); in addProviderWithEmptyConfig()
489 verify(mWifiMetrics, never()).incrementNumPasspointProviderInstallSuccess(); in addProviderWithEmptyConfig()
505 verify(mWifiMetrics).incrementNumPasspointProviderInstallation(); in addProviderWithInvalidCredential()
506 verify(mWifiMetrics, never()).incrementNumPasspointProviderInstallSuccess(); in addProviderWithInvalidCredential()
526 verify(mWifiMetrics).incrementNumPasspointProviderInstallation(); in addRemoveProviderWithValidUserCredential()
527 verify(mWifiMetrics).incrementNumPasspointProviderInstallSuccess(); in addRemoveProviderWithValidUserCredential()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
DWifiScanningServiceTest.java132 WifiMetrics mWifiMetrics; field in WifiScanningServiceTest
154 mWifiMetrics = new WifiMetrics(mContext, mFrameworkFacade, mClock, mLooper.getLooper(), in setUp()
161 when(mWifiInjector.getWifiMetrics()).thenReturn(mWifiMetrics); in setUp()
729 assertEquals(0, mWifiMetrics.getOneshotScanCount()); in sendSingleScanRequestWithPrivilegedTypeParamsSetFromNonPrivilegedApp()
730 assertEquals(mWifiMetrics.getScanReturnEntry( in sendSingleScanRequestWithPrivilegedTypeParamsSetFromNonPrivilegedApp()
781 assertEquals(0, mWifiMetrics.getOneshotScanCount()); in sendSingleScanRequestWithPrivilegedHiddenNetworkParamsSetFromNonPrivilegedApp()
782 assertEquals(mWifiMetrics.getScanReturnEntry( in sendSingleScanRequestWithPrivilegedHiddenNetworkParamsSetFromNonPrivilegedApp()
826 assertEquals(0, mWifiMetrics.getOneshotScanCount()); in sendSingleScanRequestWithInvalidScanType()
827 assertEquals(mWifiMetrics.getScanReturnEntry( in sendSingleScanRequestWithInvalidScanType()
883 assertEquals(mWifiMetrics.getOneshotScanCount(), 1); in sendSingleScanRequestWhichFailsToStart()
[all …]

123