/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiMetricsTest.java | 134 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 …]
|
D | CarrierNetworkNotifierTest.java | 81 @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 …]
|
D | OpenNetworkNotifierTest.java | 81 @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 …]
|
D | WifiScoreReportTest.java | 87 @Mock WifiMetrics mWifiMetrics; field in WifiScoreReportTest 158 mWifiMetrics = null; in tearDown() 170 mWifiScoreReport.calculateAndReportScore(mWifiInfo, mNetworkAgent, mWifiMetrics); in calculateAndReportScoreSucceeds() 172 verify(mWifiMetrics).incrementWifiScoreCount(anyInt()); in calculateAndReportScoreSucceeds() 184 mWifiScoreReport.calculateAndReportScore(mWifiInfo, mNetworkAgent, mWifiMetrics); in calculateAndReportScoreDoesNotReportWhenRssiIsNotValid() 186 verify(mWifiMetrics, never()).incrementWifiScoreCount(anyInt()); in calculateAndReportScoreDoesNotReportWhenRssiIsNotValid() 198 mWifiScoreReport.calculateAndReportScore(mWifiInfo, null, mWifiMetrics); in networkAgentMayBeNull() 199 verify(mWifiMetrics).incrementWifiScoreCount(anyInt()); in networkAgentMayBeNull() 217 mWifiScoreReport.calculateAndReportScore(mWifiInfo, mNetworkAgent, mWifiMetrics); in allowLowRssiIfDataIsMoving() 240 mWifiScoreReport.calculateAndReportScore(mWifiInfo, mNetworkAgent, mWifiMetrics); in giveUpOnBadRssiWhenDataIsNotMoving() [all …]
|
D | WifiDataStallTest.java | 51 @Mock WifiMetrics mWifiMetrics; field in WifiDataStallTest 92 mWifiDataStall = new WifiDataStall(mContext, mFacade, mWifiMetrics, mDeviceConfigFacade, in setUp() 115 verify(mWifiMetrics).updateWifiIsUnusableLinkLayerStats( in verifyUpdateWifiIsUnusableLinkLayerStats() 137 verify(mWifiMetrics).logWifiIsUnusableEvent(WifiIsUnusableEvent.TYPE_DATA_STALL_BAD_TX); in verifyDataStallTxFailure() 155 verify(mWifiMetrics, never()).logWifiIsUnusableEvent( in verifyNoDataStallWhenTxFailureIsNotConsecutive() 175 verify(mWifiMetrics).logWifiIsUnusableEvent( in verifyDataStallRxFailure() 194 verify(mWifiMetrics).logWifiIsUnusableEvent(WifiIsUnusableEvent.TYPE_DATA_STALL_BOTH); in verifyDataStallBothTxRxFailure() 215 verify(mWifiMetrics, never()).logWifiIsUnusableEvent( in verifyDataStallDurationDeviceConfigChange() 237 verify(mWifiMetrics, never()).logWifiIsUnusableEvent( in verifyDataStallTxPerThrDeviceConfigChange() 248 verify(mWifiMetrics, never()).resetWifiIsUnusableLinkLayerStats(); in verifyNoDataStallWhenNoFail() [all …]
|
D | ScanRequestProxyTest.java | 82 @Mock private WifiMetrics mWifiMetrics; field in ScanRequestProxyTest 137 mWifiConfigManager, mWifiPermissionsUtil, mWifiMetrics, mClock, in setUp() 143 verifyNoMoreInteractions(mWifiScanner, mWifiConfigManager, mContext, mWifiMetrics); in cleanUp() 192 verify(mWifiMetrics).incrementExternalAppOneshotScanRequestsCount(); in testStartScanSuccess() 244 verify(mWifiMetrics).incrementExternalAppOneshotScanRequestsCount(); in testStartScanWithHiddenNetworkScanningDisabled() 267 verify(mWifiMetrics).incrementExternalAppOneshotScanRequestsCount(); in testStartScanWithHiddenNetworkScanningEnabled() 287 verify(mWifiMetrics).incrementExternalAppOneshotScanRequestsCount(); in testScanSuccess() 305 verify(mWifiMetrics).incrementExternalAppOneshotScanRequestsCount(); in testScanFailure() 336 verify(mWifiMetrics, times(2)).incrementExternalAppOneshotScanRequestsCount(); in testScanSuccessOverwritesPreviousResults() 367 verify(mWifiMetrics, times(2)).incrementExternalAppOneshotScanRequestsCount(); in testScanFailureDoesNotOverwritePreviousResults() [all …]
|
D | WifiLockManagerTest.java | 71 @Mock WifiMetrics mWifiMetrics; field in WifiLockManagerTest 95 mClientModeImpl, mFrameworkFacade, mHandler, mWifiNative, mClock, mWifiMetrics); in setUp() 203 verify(mWifiMetrics).addWifiLockAcqSession(eq(WifiManager.WIFI_MODE_FULL_HIGH_PERF), in releaseWifiLockShouldSucceed() 401 verify(mWifiMetrics).addWifiLockActiveSession(eq(WifiManager.WIFI_MODE_FULL_HIGH_PERF), in testHiPerfLockReleaseCauseEnablePS() 430 verify(mWifiMetrics).addWifiLockAcqSession(eq(WifiManager.WIFI_MODE_FULL_HIGH_PERF), in testHiPerfLockAcquireReleaseTwice() 439 verify(mWifiMetrics).addWifiLockActiveSession(eq(WifiManager.WIFI_MODE_FULL_HIGH_PERF), in testHiPerfLockAcquireReleaseTwice() 444 verify(mWifiMetrics).addWifiLockActiveSession(eq(WifiManager.WIFI_MODE_FULL_HIGH_PERF), in testHiPerfLockAcquireReleaseTwice() 536 verify(mWifiMetrics).addWifiLockAcqSession(eq(WifiManager.WIFI_MODE_FULL_HIGH_PERF), in testHiPerfLockReleaseFail() 541 verify(mWifiMetrics, never()).addWifiLockActiveSession(anyInt(), anyLong()); in testHiPerfLockReleaseFail() 550 verify(mWifiMetrics).addWifiLockActiveSession(eq(WifiManager.WIFI_MODE_FULL_HIGH_PERF), in testHiPerfLockReleaseFail() [all …]
|
D | SoftApManagerTest.java | 117 @Mock WifiMetrics mWifiMetrics; field in SoftApManagerTest 166 mWifiMetrics, in createSoftApManager() 240 mWifiMetrics, in startSoftApDefaultConfigFailedToLoad() 284 mWifiMetrics, in testSetupForSoftApModeNullApInterfaceNameFailureIncrementsMetrics() 300 verify(mWifiMetrics).incrementSoftApStartResult(false, in testSetupForSoftApModeNullApInterfaceNameFailureIncrementsMetrics() 327 mWifiMetrics, in testSetupForSoftApModeEmptyInterfaceNameFailureIncrementsMetrics() 343 verify(mWifiMetrics).incrementSoftApStartResult(false, in testSetupForSoftApModeEmptyInterfaceNameFailureIncrementsMetrics() 369 mWifiMetrics, in startSoftApOn5GhzFailGeneralErrorForNoCountryCode() 416 mWifiMetrics, in startSoftApOn5GhzFailGeneralErrorForCountryCodeSetFailure() 533 mWifiMetrics, in startSoftApFailNoChannel() [all …]
|
D | WifiLastResortWatchdogTest.java | 53 @Mock WifiMetrics mWifiMetrics; field in WifiLastResortWatchdogTest 83 mWifiMetrics, mClientModeImpl, mLooper.getLooper(), mDeviceConfigFacade); in setUp() 1511 verify(mWifiMetrics, times(1)).incrementNumLastResortWatchdogTriggers(); in testMetricsCollection() 1512 verify(mWifiMetrics, times(1)).addCountToNumLastResortWatchdogAvailableNetworksTotal(5); in testMetricsCollection() 1513 verify(mWifiMetrics, times(1)) in testMetricsCollection() 1515 verify(mWifiMetrics, times(1)) in testMetricsCollection() 1517 verify(mWifiMetrics, times(1)) in testMetricsCollection() 1519 verify(mWifiMetrics, times(1)).incrementNumLastResortWatchdogTriggersWithBadAssociation(); in testMetricsCollection() 1520 verify(mWifiMetrics, times(1)).addCountToNumLastResortWatchdogBadDhcpNetworksTotal(3); in testMetricsCollection() 1521 verify(mWifiMetrics, times(1)).incrementNumLastResortWatchdogTriggersWithBadDhcp(); in testMetricsCollection() [all …]
|
D | WifiNativeInterfaceManagementTest.java | 81 @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 …]
|
D | WifiNetworkSelectorTest.java | 89 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 …]
|
D | LinkProbeManagerTest.java | 65 @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/ |
D | WifiDataStall.java | 49 private final WifiMetrics mWifiMetrics; field in WifiDataStall 74 mWifiMetrics = wifiMetrics; in WifiDataStall() 94 mWifiMetrics.setWifiDataStallMinTxBad(mMinTxBad); in loadSettings() 95 mWifiMetrics.setWifiDataStallMinRxWithoutTx(mMinTxSuccessWithoutRx); in loadSettings() 109 mWifiMetrics.resetWifiIsUnusableLinkLayerStats(); in checkForDataStall() 137 mWifiMetrics.resetWifiIsUnusableLinkLayerStats(); in checkForDataStall() 141 mWifiMetrics.updateWifiIsUnusableLinkLayerStats(txSuccessDelta, txRetriesDelta, in checkForDataStall() 252 mWifiMetrics.logWifiIsUnusableEvent(result); in calculateUsabilityEventType() 263 mWifiMetrics.setDataStallDurationMs(mDataStallDurationMs); in updateUsabilityDataCollectionFlags() 264 mWifiMetrics.setDataStallTxTputThrMbps(mDataStallTxTputThrMbps); in updateUsabilityDataCollectionFlags() [all …]
|
D | WifiInjector.java | 113 private final WifiMetrics mWifiMetrics; field in WifiInjector 208 mWifiMetrics = new WifiMetrics(mContext, mFrameworkFacade, mClock, clientModeImplLooper, in WifiInjector() 227 mWifiMonitor, mNwManagementService, mPropertyService, mWifiMetrics, in WifiInjector() 249 mContext, clientModeImplLooper, mClock, mWifiMetrics, in WifiInjector() 261 mWifiMetrics.setWifiConfigManager(mWifiConfigManager); in WifiInjector() 266 mWifiMetrics.setScoringParams(mScoringParams); in WifiInjector() 268 mWifiConfigManager, mClock, mConnectivityLocalLog, mWifiMetrics, mWifiNative); in WifiInjector() 275 mWifiMetrics.setWifiNetworkSelector(mWifiNetworkSelector); in WifiInjector() 281 mWifiConfigManager, mWifiConfigStore, mWifiMetrics, mWifiKeyStore); in WifiInjector() 293 mWifiMetrics, makeTelephonyManager(), subscriptionManager); in WifiInjector() [all …]
|
D | AvailableNetworkNotifier.java | 125 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.setNetworkRecommenderBlocklistSize(mTag, mBlacklistedSsids.size()); in addNetworkToBlacklist() [all …]
|
D | LinkProbeManager.java | 71 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()
|
D | WifiLastResortWatchdog.java | 106 private WifiMetrics mWifiMetrics; field in WifiLastResortWatchdog 129 mWifiMetrics = wifiMetrics; in WifiLastResortWatchdog() 314 mWifiMetrics.incrementWatchdogTotalConnectionFailureCountAfterTrigger(); in noteConnectionFailureAndTriggerIfNeeded() 356 mWifiMetrics.incrementNumLastResortWatchdogSuccesses(); in connectedStateTransition() 358 mWifiMetrics.setWatchdogSuccessTimeDurationMs(durationMs); in connectedStateTransition() 555 mWifiMetrics.incrementNumLastResortWatchdogTriggers(); in incrementWifiMetricsTriggerCounts() 556 mWifiMetrics.addCountToNumLastResortWatchdogAvailableNetworksTotal( in incrementWifiMetricsTriggerCounts() 576 mWifiMetrics.addCountToNumLastResortWatchdogBadAuthenticationNetworksTotal(badAuth); in incrementWifiMetricsTriggerCounts() 577 mWifiMetrics.incrementNumLastResortWatchdogTriggersWithBadAuthentication(); in incrementWifiMetricsTriggerCounts() 580 mWifiMetrics.addCountToNumLastResortWatchdogBadAssociationNetworksTotal(badAssoc); in incrementWifiMetricsTriggerCounts() [all …]
|
D | SoftApManager.java | 88 private final WifiMetrics mWifiMetrics; field in SoftApManager 152 mWifiMetrics = wifiMetrics; in SoftApManager() 382 mWifiMetrics.incrementSoftApStartResult( in processMessage() 398 mWifiMetrics.incrementSoftApStartResult(false, failureReason); in processMessage() 499 mWifiMetrics.addSoftApNumAssociatedStationsChangedEvent(mConnectedClients.size(), in setConnectedClients() 534 mWifiMetrics.incrementSoftApStartResult(true, 0); in onUpChanged() 542 mWifiMetrics.addSoftApUpChangedEvent(isUp, mMode); in onUpChanged() 583 mWifiMetrics.addSoftApUpChangedEvent(false, mMode); in exit() 606 mWifiMetrics.incrementNumSoftApUserBandPreferenceUnsatisfied(); in updateUserBandPreferenceViolationMetricsIfNeeded() 629 mWifiMetrics.addSoftApChannelSwitchedEvent(mReportedFrequency, in processMessage()
|
D | WifiConnectivityManager.java | 148 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() 931 mWifiMetrics.incrementConnectivityOneshotScanCount(); in startSingleScan() 981 mWifiMetrics.logPnoScanStop(); in setDeviceMobilityState() 982 mWifiMetrics.enterDeviceMobilityState(newState); in setDeviceMobilityState() 983 mWifiMetrics.logPnoScanStart(); in setDeviceMobilityState() [all …]
|
D | WifiNative.java | 82 private final WifiMetrics mWifiMetrics; field in WifiNative 100 mWifiMetrics = wifiMetrics; in WifiNative() 577 mWifiMetrics.incrementNumHalCrashes(); in onDeath() 591 mWifiMetrics.incrementNumWificondCrashes(); in onDeath() 605 mWifiMetrics.incrementNumSupplicantCrashes(); in onDeath() 619 mWifiMetrics.incrementNumHostapdCrashes(); in onDeath() 642 mWifiMetrics.incrementNumClientInterfaceDown(); in onInterfaceStateChanged() 644 mWifiMetrics.incrementNumSoftApInterfaceDown(); in onInterfaceStateChanged() 707 mWifiMetrics.incrementNumRadioModeChangeToMcc(); in onMcc() 714 mWifiMetrics.incrementNumRadioModeChangeToScc(); in onScc() [all …]
|
D | ScanRequestProxy.java | 85 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()
|
D | WifiLockManager.java | 62 private final WifiMetrics mWifiMetrics; field in WifiLockManager 95 mWifiMetrics = wifiMetrics; in WifiLockManager() 538 mWifiMetrics.addWifiLockAcqSession(WifiManager.WIFI_MODE_FULL_HIGH_PERF, in releaseLock() 550 mWifiMetrics.addWifiLockAcqSession(WifiManager.WIFI_MODE_FULL_LOW_LATENCY, in releaseLock() 583 mWifiMetrics.addWifiLockActiveSession(WifiManager.WIFI_MODE_FULL_HIGH_PERF, in updateOpMode() 592 mWifiMetrics.addWifiLockActiveSession(WifiManager.WIFI_MODE_FULL_LOW_LATENCY, in updateOpMode()
|
D | ClientModeImpl.java | 200 private final WifiMetrics mWifiMetrics; field in ClientModeImpl 790 mWifiMetrics = mWifiInjector.getWifiMetrics(); in ClientModeImpl() 903 mWifiMetrics.setIsMacRandomizationOn(mConnectedMacRandomzationSupported); in ClientModeImpl() 963 mWifiMetrics.getHandler()); in registerForWifiMonitorEvents() 965 mWifiMetrics.getHandler()); in registerForWifiMonitorEvents() 967 mWifiMetrics.getHandler()); in registerForWifiMonitorEvents() 969 mWifiMetrics.getHandler()); in registerForWifiMonitorEvents() 971 mWifiMetrics.getHandler()); in registerForWifiMonitorEvents() 973 mWifiMetrics.getHandler()); in registerForWifiMonitorEvents() 975 mWifiMetrics.getHandler()); in registerForWifiMonitorEvents() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | PasspointManagerTest.java | 178 @Mock WifiMetrics mWifiMetrics; field in PasspointManagerTest 221 mWifiConfigStore, mWifiMetrics, mTelephonyManager, mSubscriptionManager); in setUp() 591 verify(mWifiMetrics).incrementNumPasspointProviderInstallation(); in addProviderWithNullConfig() 592 verify(mWifiMetrics, never()).incrementNumPasspointProviderInstallSuccess(); in addProviderWithNullConfig() 604 verify(mWifiMetrics).incrementNumPasspointProviderInstallation(); in addProviderWithEmptyConfig() 605 verify(mWifiMetrics, never()).incrementNumPasspointProviderInstallSuccess(); in addProviderWithEmptyConfig() 621 verify(mWifiMetrics).incrementNumPasspointProviderInstallation(); in addProviderWithInvalidCredential() 622 verify(mWifiMetrics, never()).incrementNumPasspointProviderInstallSuccess(); in addProviderWithInvalidCredential() 642 verify(mWifiMetrics).incrementNumPasspointProviderInstallation(); in addRemoveProviderWithValidUserCredential() 643 verify(mWifiMetrics).incrementNumPasspointProviderInstallSuccess(); in addRemoveProviderWithValidUserCredential() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/ |
D | WifiScanningServiceTest.java | 132 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 …]
|