/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiLockManagerTest.java | 68 @Mock ClientModeImpl mClientModeImpl; field in WifiLockManagerTest 95 mClientModeImpl, mFrameworkFacade, mHandler, mWifiNative, mClock, mWifiMetrics); in setUp() 379 verify(mClientModeImpl).setPowerSave(false); in testHiPerfLockAcquireCauseDisablePS() 388 InOrder inOrder = inOrder(mClientModeImpl); in testHiPerfLockReleaseCauseEnablePS() 389 when(mClientModeImpl.setPowerSave(anyBoolean())).thenReturn(true); in testHiPerfLockReleaseCauseEnablePS() 395 inOrder.verify(mClientModeImpl).setPowerSave(false); in testHiPerfLockReleaseCauseEnablePS() 400 inOrder.verify(mClientModeImpl).setPowerSave(true); in testHiPerfLockReleaseCauseEnablePS() 411 InOrder inOrder = inOrder(mClientModeImpl); in testHiPerfLockAcquireReleaseTwice() 412 when(mClientModeImpl.setPowerSave(anyBoolean())).thenReturn(true); in testHiPerfLockAcquireReleaseTwice() 419 inOrder.verify(mClientModeImpl).setPowerSave(false); in testHiPerfLockAcquireReleaseTwice() [all …]
|
D | WifiServiceImplTest.java | 227 @Mock ClientModeImpl mClientModeImpl; field in WifiServiceImplTest 348 when(mWifiInjector.getClientModeImpl()).thenReturn(mClientModeImpl); in setUp() 349 when(mClientModeImpl.syncInitialize(any())).thenReturn(true); in setUp() 350 when(mClientModeImpl.getHandler()).thenReturn(new Handler()); in setUp() 391 when(mClientModeImpl.getWifiScoreReport()).thenReturn(mWifiScoreReport); in setUp() 393 when(mClientModeImpl.syncStartSubscriptionProvisioning(anyInt(), in setUp() 464 verify(mClientModeImpl, never()).syncRemoveNetwork(any(), anyInt()); in testRemoveNetworkUnknown() 486 verify(mClientModeImpl, never()) in testWifiMetricsDump() 520 InOrder inOrder = inOrder(mClientModeImpl, mHandlerSpyForCmiRunWithScissors, in testWifiScoreReportDump() 523 inOrder.verify(mClientModeImpl).updateLinkLayerStatsRssiAndScoreReport(); in testWifiScoreReportDump() [all …]
|
D | ClientModeManagerTest.java | 66 @Mock ClientModeImpl mClientModeImpl; field in ClientModeManagerTest 82 mWifiMetrics, mClientModeImpl); in createClientModeManager() 128 verify(mClientModeImpl, atLeastOnce()).setWifiStateForApiCalls(expectedCurrentState); in checkWifiStateChangedBroadcast() 261 when(mClientModeImpl.isConnectedMacRandomizationEnabled()).thenReturn(false); in clientModeStartedStopsWhenInterfaceDown() 264 verify(mClientModeImpl).failureDetected(eq(SelfRecovery.REASON_STA_IFACE_DOWN)); in clientModeStartedStopsWhenInterfaceDown() 277 when(mClientModeImpl.isConnectedMacRandomizationEnabled()).thenReturn(true); in clientModeStartedWithConnectedMacRandDoesNotStopWhenInterfaceDown() 280 verify(mClientModeImpl, never()).failureDetected(eq(SelfRecovery.REASON_STA_IFACE_DOWN)); in clientModeStartedWithConnectedMacRandDoesNotStopWhenInterfaceDown() 294 verify(mClientModeImpl).handleIfaceDestroyed(); in clientModeStartedStopsOnInterfaceDestroyed() 314 verify(mClientModeImpl, never()).handleIfaceDestroyed(); in noCallbackOnInterfaceDestroyedWhenAlreadyStopped()
|
D | WifiNetworkFactoryTest.java | 134 @Mock ClientModeImpl mClientModeImpl; field in WifiNetworkFactoryTest 186 when(mWifiInjector.getClientModeImpl()).thenReturn(mClientModeImpl); in setUp() 615 verify(mClientModeImpl, never()).disconnectCommand(); in testHandleNetworkReleaseWithSpecifier() 1021 verifyNoMoreInteractions(mClientModeImpl, mWifiConnectivityManager); in testNetworkSpecifierHandleUserSelectionConnectToNetworkWithoutActiveRequest() 1045 verifyNoMoreInteractions(mClientModeImpl, mWifiConnectivityManager, mWifiConfigManager); in testNetworkSpecifierHandleUserSelectionConnectToNetworkWithDifferentActiveRequest() 1075 verify(mClientModeImpl).disconnectCommand(); in testNetworkSpecifierHandleUserSelectionConnectToNetwork() 1077 verify(mClientModeImpl).sendMessage(messageCaptor.capture()); in testNetworkSpecifierHandleUserSelectionConnectToNetwork() 1186 verify(mClientModeImpl).disconnectCommand(); in testNetworkSpecifierHandleUserSelectionConnectToExistingSavedNetwork() 1188 verify(mClientModeImpl).sendMessage(messageCaptor.capture()); in testNetworkSpecifierHandleUserSelectionConnectToExistingSavedNetwork() 1243 verify(mClientModeImpl).disconnectCommand(); in testNetworkSpecifierHandleUserSelectionConnectToNetworkUsingLiteralSsidAndBssidMatch() [all …]
|
D | WifiConnectivityManagerTest.java | 91 mClientModeImpl = mockClientModeImpl(); in setUp() 131 private ClientModeImpl mClientModeImpl; field in WifiConnectivityManagerTest 327 mClientModeImpl, mWifiInjector, in createConnectivityManager() 349 verify(mClientModeImpl).startConnectToNetwork( in enterWifiDisconnectedStateWhenScreenOn() 369 verify(mClientModeImpl).startConnectToNetwork( in enterWifiConnectedStateWhenScreenOn() 389 verify(mClientModeImpl, atLeastOnce()).startConnectToNetwork( in turnScreenOnWhenWifiInDisconnectedState() 409 verify(mClientModeImpl, atLeastOnce()).startConnectToNetwork( in turnScreenOnWhenWifiInConnectedState() 437 verify(mClientModeImpl, times(0)).startConnectToNetwork( in turnScreenOnWhenWifiInConnectedStateRoamingDisabled() 475 verify(mClientModeImpl, times(numAttempts)).startConnectToNetwork( in connectionAttemptRateLimitedWhenScreenOff() 516 verify(mClientModeImpl, times(numAttempts)).startConnectToNetwork( in connectionAttemptNotRateLimitedWhenScreenOff() [all …]
|
D | WifiControllerTest.java | 97 @Mock ClientModeImpl mClientModeImpl; field in WifiControllerTest 122 mWifiController = new WifiController(mContext, mClientModeImpl, mLooper.getLooper(), in setUp() 185 new WifiController(mContext, mClientModeImpl, mLooper.getLooper(), in testEnterScanModeAtStartWhenSet() 207 mWifiController = new WifiController(mContext, mClientModeImpl, mLooper.getLooper(), in testDoesNotEnterScanModeWhenLocationModeDisabled() 236 mWifiController = new WifiController(mContext, mClientModeImpl, mLooper.getLooper(), in testEnterScanModeWhenLocationModeEnabled() 270 mWifiController = new WifiController(mContext, mClientModeImpl, mLooper.getLooper(), in testExitScanModeWhenLocationModeDisabled() 963 verify(mClientModeImpl).takeBugReport(anyString(), anyString()); in testRestartWifiStackInStaEnabledStateTriggersBugReport() 972 verify(mClientModeImpl, never()).takeBugReport(anyString(), anyString()); in testRestartWifiWatchdogDoesNotTriggerBugReport() 1014 mWifiController = new WifiController(mContext, mClientModeImpl, mLooper.getLooper(), in testRestartWifiStackInStaDisabledState() 1021 reset(mClientModeImpl); in testRestartWifiStackInStaDisabledState()
|
D | WifiLastResortWatchdogTest.java | 55 @Mock ClientModeImpl mClientModeImpl; field in WifiLastResortWatchdogTest 83 mWifiMetrics, mClientModeImpl, mLooper.getLooper(), mDeviceConfigFacade); in setUp() 85 when(mClientModeImpl.getWifiInfo()).thenReturn(mWifiInfo); in setUp() 1535 verify(mClientModeImpl, times(1)).takeBugReport(anyString(), anyString()); in testMetricsCollection() 1545 verify(mClientModeImpl, times(1)).takeBugReport(anyString(), anyString()); in testMetricsCollection() 1856 verify(mClientModeImpl, never()).takeBugReport(anyString(), anyString()); in testWatchdogAssumesSuccessOnlyIfFirstConnectionAfterRestartSucceeds() 1880 verify(mClientModeImpl, times(1)).takeBugReport(anyString(), anyString()); in testWatchdogAssumesSuccessOnlyIfFirstConnectionAfterRestartSucceeds() 1927 verify(mClientModeImpl, never()).takeBugReport(anyString(), anyString()); in testWatchdogVerifiesAtLeastOneNetworkIsConnectedBeforeTriggeringBugreport() 2142 verify(mClientModeImpl, never()).takeBugReport(anyString(), anyString()); in testWatchdogAssumesSuccessOnlyIfConnectedOnSameSsid() 2166 verify(mClientModeImpl, times(1)).takeBugReport(anyString(), anyString()); in testWatchdogAssumesSuccessOnlyIfConnectedOnSameSsid() [all …]
|
D | CarrierNetworkNotifierTest.java | 86 @Mock private ClientModeImpl mClientModeImpl; field in CarrierNetworkNotifierTest 121 mWifiConfigManager, mWifiConfigStore, mClientModeImpl, mNotificationBuilder); in setUp() 497 verify(mClientModeImpl, never()).sendMessage(any(Message.class)); in actionConnectToNetwork_notificationNotShowing_doesNothing() 517 verify(mClientModeImpl).sendMessage(any(Message.class)); in actionConnectToNetwork_currentRecommendationExists_connectsAndPostsNotification() 697 verify(mClientModeImpl).sendMessage(connectMessageCaptor.capture()); in connectionFailedCallback_postsFailedToConnectNotification()
|
D | OpenNetworkNotifierTest.java | 86 @Mock private ClientModeImpl mClientModeImpl; field in OpenNetworkNotifierTest 120 mWifiConfigManager, mWifiConfigStore, mClientModeImpl, mNotificationBuilder); in setUp() 493 verify(mClientModeImpl, never()).sendMessage(any(Message.class)); in actionConnectToNetwork_notificationNotShowing_doesNothing() 513 verify(mClientModeImpl).sendMessage(any(Message.class)); in actionConnectToNetwork_currentRecommendationExists_connectsAndPostsNotification() 692 verify(mClientModeImpl).sendMessage(connectMessageCaptor.capture()); in connectionFailedCallback_postsFailedToConnectNotification()
|
D | WifiNetworkSuggestionsManagerTest.java | 103 private @Mock ClientModeImpl mClientModeImpl; field in WifiNetworkSuggestionsManagerTest 130 when(mWifiInjector.getClientModeImpl()).thenReturn(mClientModeImpl); in setUp() 1402 verify(mClientModeImpl, never()).disconnectCommand(); in testRemoveNetworkSuggestionsMatchingConnectionSuccessWithOneMatchNoCarrierProvision() 1435 verify(mClientModeImpl).disconnectCommand(); in testRemoveNetworkSuggestionsMatchingConnectionSuccessWithOneMatchCarrierProvision() 1468 verify(mClientModeImpl).disconnectCommand(); in testRemoveAllNetworkSuggestionsMatchingConnectionSuccessWithOneMatchCarrierProvision() 1509 verify(mClientModeImpl, never()).disconnectCommand(); in testRemoveAppMatchingConnectionSuccessWithMultipleMatch() 1513 verify(mClientModeImpl).disconnectCommand(); in testRemoveAppMatchingConnectionSuccessWithMultipleMatch() 1541 verify(mClientModeImpl, never()).disconnectCommand(); in testRemoveAppNotMatchingConnectionSuccess() 1574 verify(mClientModeImpl, never()).disconnectCommand(); in testRemoveNetworkSuggestionsNotMatchingConnectionSuccessAfterConnectionFailure()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiServiceImpl.java | 164 final ClientModeImpl mClientModeImpl; field in WifiServiceImpl 285 mClientModeImpl.sendMessage(Message.obtain(msg)); in handleMessage() 288 mClientModeImpl.sendMessage(Message.obtain(msg)); in handleMessage() 311 mClientModeImpl.sendMessage(Message.obtain(msg)); in handleMessage() 324 mClientModeImpl.sendMessage(Message.obtain(msg)); in handleMessage() 330 mClientModeImpl.sendMessage(Message.obtain(msg)); in handleMessage() 336 mClientModeImpl.sendMessage(Message.obtain(msg)); in handleMessage() 413 mCmiChannel.connect(mContext, this, mClientModeImpl.getHandler()); in ClientModeImplHandler() 433 mCmiChannel.connect(mContext, this, mClientModeImpl.getHandler()); in handleMessage() 462 mClientModeImpl = mWifiInjector.getClientModeImpl(); in WifiServiceImpl() [all …]
|
D | WifiShellCommand.java | 49 private final ClientModeImpl mClientModeImpl; field in WifiShellCommand 59 mClientModeImpl = wifiInjector.getClientModeImpl(); in WifiShellCommand() 89 mClientModeImpl.setIpReachabilityDisconnectEnabled(enabled); in onCommand() 94 + mClientModeImpl.getIpReachabilityDisconnectEnabled()); in onCommand() 114 mClientModeImpl.setPollRssiIntervalMsecs(newPollIntervalMsecs); in onCommand() 118 + mClientModeImpl.getPollRssiIntervalMsecs()); in onCommand() 182 mClientModeImpl.removeNetworkRequestUserApprovedAccessPointsForApp(packageName); in onCommand() 260 mClientModeImpl.probeLink(new WifiNative.SendMgmtFrameCallback() { in sendLinkProbe()
|
D | ClientModeManager.java | 50 private final ClientModeImpl mClientModeImpl; field in ClientModeManager 63 mClientModeImpl = clientModeImpl; in ClientModeManager() 153 mClientModeImpl.setWifiStateForApiCalls(newState); in updateWifiState() 180 mClientModeImpl.handleIfaceDestroyed(); 257 mClientModeImpl.setOperationalMode(ClientModeImpl.CONNECT_MODE, in onUpChanged() 262 if (mClientModeImpl.isConnectedMacRandomizationEnabled()) { in onUpChanged() 290 mClientModeImpl.failureDetected(SelfRecovery.REASON_STA_IFACE_DOWN); in processMessage() 319 mClientModeImpl.setOperationalMode(ClientModeImpl.DISABLED_MODE, null); in exit()
|
D | WifiLockManager.java | 59 private final ClientModeImpl mClientModeImpl; field in WifiLockManager 88 mClientModeImpl = clientModeImpl; in WifiLockManager() 579 if (!mClientModeImpl.setPowerSave(true)) { in updateOpMode() 608 if (!mClientModeImpl.setPowerSave(false)) { in updateOpMode() 667 if (!mClientModeImpl.setLowLatencyMode(enabled)) { in setLowLatencyMode() 672 if (!mClientModeImpl.setPowerSave(!enabled)) { in setLowLatencyMode() 675 mClientModeImpl.setLowLatencyMode(!enabled); in setLowLatencyMode() 680 if (!mClientModeImpl.setPowerSave(!enabled)) { in setLowLatencyMode()
|
D | WifiInjector.java | 103 private final ClientModeImpl mClientModeImpl; field in WifiInjector 315 mClientModeImpl = new ClientModeImpl(mContext, mFrameworkFacade, in WifiInjector() 336 mClientModeImpl, mFrameworkFacade, new Handler(clientModeImplLooper), mWifiNative, in WifiInjector() 338 mWifiController = new WifiController(mContext, mClientModeImpl, clientModeImplLooper, in WifiInjector() 343 mClientModeImpl.getMcastLockManagerFilterController(), in WifiInjector() 358 mClientModeImpl.start(); in WifiInjector() 444 return mClientModeImpl; in getClientModeImpl() 448 return mClientModeImpl.getHandler(); in getClientModeImplHandler() 571 mWifiNative, listener, mWifiMetrics, mClientModeImpl); in makeClientModeManager()
|
D | WifiLastResortWatchdog.java | 107 private ClientModeImpl mClientModeImpl; field in WifiLastResortWatchdog 130 mClientModeImpl = clientModeImpl; in WifiLastResortWatchdog() 189 mClientModeImpl.takeBugReport(bugTitle, bugDetail); in processMessage() 373 if (TextUtils.equals(mSsidLastTrigger, mClientModeImpl.getWifiInfo().getSSID())) { in checkIfConnectedBackToSameSsid() 389 mClientModeImpl.takeBugReport(BUGREPORT_TITLE, bugDetail); in takeBugReportWithCurrentProbability()
|
D | WifiController.java | 63 private final ClientModeImpl mClientModeImpl; field in WifiController 111 mClientModeImpl = clientModeImpl; in WifiController() 476 mClientModeImpl.takeBugReport(bugTitle, bugDetail); in processMessage()
|
D | AvailableNetworkNotifier.java | 128 private final ClientModeImpl mClientModeImpl; field in AvailableNetworkNotifier 176 mClientModeImpl = clientModeImpl; in AvailableNetworkNotifier() 447 mClientModeImpl.sendMessage(msg); in handleConnectToNetworkAction()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | PasspointManagerTest.java | 187 @Mock ClientModeImpl mClientModeImpl; field in PasspointManagerTest 216 when(mWifiInjector.getClientModeImpl()).thenReturn(mClientModeImpl); in setUp() 1800 when(mClientModeImpl.getCurrentWifiConfiguration()).thenReturn(currentConfiguration); in verifyRemovingPasspointProfilesWhenAppIsDisabled() 1818 verify(mClientModeImpl).disconnectCommand(); in verifyRemovingPasspointProfilesWhenAppIsDisabled()
|