Home
last modified time | relevance | path

Searched refs:mClientModeImpl (Results 1 – 19 of 19) sorted by relevance

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiLockManagerTest.java68 @Mock ClientModeImpl mClientModeImpl; field in WifiLockManagerTest
95 mClientModeImpl, mFrameworkFacade, mHandler, mWifiNative, mClock, mWifiMetrics); in setUp()
390 verify(mClientModeImpl).setPowerSave(false); in testHiPerfLockAcquireCauseDisablePS()
399 InOrder inOrder = inOrder(mClientModeImpl); in testHiPerfLockReleaseCauseEnablePS()
400 when(mClientModeImpl.setPowerSave(anyBoolean())).thenReturn(true); in testHiPerfLockReleaseCauseEnablePS()
406 inOrder.verify(mClientModeImpl).setPowerSave(false); in testHiPerfLockReleaseCauseEnablePS()
411 inOrder.verify(mClientModeImpl).setPowerSave(true); in testHiPerfLockReleaseCauseEnablePS()
422 InOrder inOrder = inOrder(mClientModeImpl); in testHiPerfLockAcquireReleaseTwice()
423 when(mClientModeImpl.setPowerSave(anyBoolean())).thenReturn(true); in testHiPerfLockAcquireReleaseTwice()
430 inOrder.verify(mClientModeImpl).setPowerSave(false); in testHiPerfLockAcquireReleaseTwice()
[all …]
DWifiServiceImplTest.java221 @Mock ClientModeImpl mClientModeImpl; field in WifiServiceImplTest
342 when(mWifiInjector.getClientModeImpl()).thenReturn(mClientModeImpl); in setUp()
343 when(mClientModeImpl.syncInitialize(any())).thenReturn(true); in setUp()
344 when(mClientModeImpl.getHandler()).thenReturn(new Handler()); in setUp()
384 when(mClientModeImpl.getWifiScoreReport()).thenReturn(mWifiScoreReport); in setUp()
386 when(mClientModeImpl.syncStartSubscriptionProvisioning(anyInt(), in setUp()
457 verify(mClientModeImpl, never()).syncRemoveNetwork(any(), anyInt()); in testRemoveNetworkUnknown()
479 verify(mClientModeImpl, never()) in testWifiMetricsDump()
513 InOrder inOrder = inOrder(mClientModeImpl, mHandlerSpyForCmiRunWithScissors, in testWifiScoreReportDump()
516 inOrder.verify(mClientModeImpl).updateLinkLayerStatsRssiAndScoreReport(); in testWifiScoreReportDump()
[all …]
DClientModeManagerTest.java66 @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()
DWifiNetworkFactoryTest.java124 @Mock ClientModeImpl mClientModeImpl; field in WifiNetworkFactoryTest
174 when(mWifiInjector.getClientModeImpl()).thenReturn(mClientModeImpl); in setUp()
604 verify(mClientModeImpl, never()).disconnectCommand(); in testHandleNetworkReleaseWithSpecifier()
1020 verifyNoMoreInteractions(mClientModeImpl, mWifiConnectivityManager); in testNetworkSpecifierHandleUserSelectionConnectToNetworkWithoutActiveRequest()
1044 verifyNoMoreInteractions(mClientModeImpl, mWifiConnectivityManager, mWifiConfigManager); in testNetworkSpecifierHandleUserSelectionConnectToNetworkWithDifferentActiveRequest()
1074 verify(mClientModeImpl).disconnectCommand(); in testNetworkSpecifierHandleUserSelectionConnectToNetwork()
1076 verify(mClientModeImpl).sendMessage(messageCaptor.capture()); in testNetworkSpecifierHandleUserSelectionConnectToNetwork()
1118 verify(mClientModeImpl).disconnectCommand(); in testNetworkSpecifierHandleUserSelectionConnectToExistingSavedNetwork()
1120 verify(mClientModeImpl).sendMessage(messageCaptor.capture()); in testNetworkSpecifierHandleUserSelectionConnectToExistingSavedNetwork()
1175 verify(mClientModeImpl).disconnectCommand(); in testNetworkSpecifierHandleUserSelectionConnectToNetworkUsingLiteralSsidAndBssidMatch()
[all …]
DWifiConnectivityManagerTest.java91 mClientModeImpl = mockClientModeImpl(); in setUp()
127 private ClientModeImpl mClientModeImpl; field in WifiConnectivityManagerTest
322 mClientModeImpl, mWifiInjector, in createConnectivityManager()
344 verify(mClientModeImpl).startConnectToNetwork( in enterWifiDisconnectedStateWhenScreenOn()
364 verify(mClientModeImpl).startConnectToNetwork( in enterWifiConnectedStateWhenScreenOn()
384 verify(mClientModeImpl, atLeastOnce()).startConnectToNetwork( in turnScreenOnWhenWifiInDisconnectedState()
404 verify(mClientModeImpl, atLeastOnce()).startConnectToNetwork( in turnScreenOnWhenWifiInConnectedState()
432 verify(mClientModeImpl, times(0)).startConnectToNetwork( in turnScreenOnWhenWifiInConnectedStateRoamingDisabled()
470 verify(mClientModeImpl, times(numAttempts)).startConnectToNetwork( in connectionAttemptRateLimitedWhenScreenOff()
511 verify(mClientModeImpl, times(numAttempts)).startConnectToNetwork( in connectionAttemptNotRateLimitedWhenScreenOff()
[all …]
DWifiControllerTest.java97 @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()
DOpenNetworkNotifierTest.java86 @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()
DCarrierNetworkNotifierTest.java86 @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()
DWifiLastResortWatchdogTest.java49 @Mock ClientModeImpl mClientModeImpl; field in WifiLastResortWatchdogTest
71 mClientModeImpl, mLooper.getLooper()); in setUp()
73 when(mClientModeImpl.getWifiInfo()).thenReturn(mWifiInfo); in setUp()
1520 verify(mClientModeImpl, times(1)).takeBugReport(anyString(), anyString()); in testMetricsCollection()
1530 verify(mClientModeImpl, times(1)).takeBugReport(anyString(), anyString()); in testMetricsCollection()
1841 verify(mClientModeImpl, never()).takeBugReport(anyString(), anyString()); in testWatchdogAssumesSuccessOnlyIfFirstConnectionAfterRestartSucceeds()
1865 verify(mClientModeImpl, times(1)).takeBugReport(anyString(), anyString()); in testWatchdogAssumesSuccessOnlyIfFirstConnectionAfterRestartSucceeds()
1912 verify(mClientModeImpl, never()).takeBugReport(anyString(), anyString()); in testWatchdogVerifiesAtLeastOneNetworkIsConnectedBeforeTriggeringBugreport()
2127 verify(mClientModeImpl, never()).takeBugReport(anyString(), anyString()); in testWatchdogAssumesSuccessOnlyIfConnectedOnSameSsid()
2151 verify(mClientModeImpl, times(1)).takeBugReport(anyString(), anyString()); in testWatchdogAssumesSuccessOnlyIfConnectedOnSameSsid()
DWifiNetworkSuggestionsManagerTest.java103 private @Mock ClientModeImpl mClientModeImpl; field in WifiNetworkSuggestionsManagerTest
130 when(mWifiInjector.getClientModeImpl()).thenReturn(mClientModeImpl); in setUp()
1377 verify(mClientModeImpl, never()).disconnectCommand(); in testRemoveNetworkSuggestionsMatchingConnectionSuccessWithOneMatch()
1417 verify(mClientModeImpl, never()).disconnectCommand(); in testRemoveAppMatchingConnectionSuccessWithMultipleMatch()
1421 verify(mClientModeImpl).disconnectCommand(); in testRemoveAppMatchingConnectionSuccessWithMultipleMatch()
1449 verify(mClientModeImpl, never()).disconnectCommand(); in testRemoveAppNotMatchingConnectionSuccess()
1482 verify(mClientModeImpl, never()).disconnectCommand(); in testRemoveNetworkSuggestionsNotMatchingConnectionSuccessAfterConnectionFailure()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiShellCommand.java45 private final ClientModeImpl mClientModeImpl; field in WifiShellCommand
52 mClientModeImpl = wifiInjector.getClientModeImpl(); in WifiShellCommand()
79 mClientModeImpl.setIpReachabilityDisconnectEnabled(enabled); in onCommand()
84 + mClientModeImpl.getIpReachabilityDisconnectEnabled()); in onCommand()
104 mClientModeImpl.setPollRssiIntervalMsecs(newPollIntervalMsecs); in onCommand()
108 + mClientModeImpl.getPollRssiIntervalMsecs()); in onCommand()
172 mClientModeImpl.removeNetworkRequestUserApprovedAccessPointsForApp(packageName); in onCommand()
194 mClientModeImpl.probeLink(new WifiNative.SendMgmtFrameCallback() { in sendLinkProbe()
DWifiServiceImpl.java163 final ClientModeImpl mClientModeImpl; field in WifiServiceImpl
284 mClientModeImpl.sendMessage(Message.obtain(msg)); in handleMessage()
287 mClientModeImpl.sendMessage(Message.obtain(msg)); in handleMessage()
310 mClientModeImpl.sendMessage(Message.obtain(msg)); in handleMessage()
323 mClientModeImpl.sendMessage(Message.obtain(msg)); in handleMessage()
329 mClientModeImpl.sendMessage(Message.obtain(msg)); in handleMessage()
335 mClientModeImpl.sendMessage(Message.obtain(msg)); in handleMessage()
412 mCmiChannel.connect(mContext, this, mClientModeImpl.getHandler()); in ClientModeImplHandler()
432 mCmiChannel.connect(mContext, this, mClientModeImpl.getHandler()); in handleMessage()
461 mClientModeImpl = mWifiInjector.getClientModeImpl(); in WifiServiceImpl()
[all …]
DClientModeManager.java50 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()
DWifiLockManager.java59 private final ClientModeImpl mClientModeImpl; field in WifiLockManager
88 mClientModeImpl = clientModeImpl; in WifiLockManager()
577 if (!mClientModeImpl.setPowerSave(true)) { in updateOpMode()
606 if (!mClientModeImpl.setPowerSave(false)) { in updateOpMode()
665 if (!mClientModeImpl.setLowLatencyMode(enabled)) { in setLowLatencyMode()
670 if (!mClientModeImpl.setPowerSave(!enabled)) { in setLowLatencyMode()
673 mClientModeImpl.setLowLatencyMode(!enabled); in setLowLatencyMode()
678 if (!mClientModeImpl.setPowerSave(!enabled)) { in setLowLatencyMode()
DWifiInjector.java101 private final ClientModeImpl mClientModeImpl; field in WifiInjector
306 mClientModeImpl = new ClientModeImpl(mContext, mFrameworkFacade, in WifiInjector()
327 mClientModeImpl, mFrameworkFacade, new Handler(clientModeImplLooper), mWifiNative, in WifiInjector()
329 mWifiController = new WifiController(mContext, mClientModeImpl, clientModeImplLooper, in WifiInjector()
334 mClientModeImpl.getMcastLockManagerFilterController(), in WifiInjector()
349 mClientModeImpl.start(); in WifiInjector()
435 return mClientModeImpl; in getClientModeImpl()
439 return mClientModeImpl.getHandler(); in getClientModeImplHandler()
562 mWifiNative, listener, mWifiMetrics, mClientModeImpl); in makeClientModeManager()
DWifiLastResortWatchdog.java101 private ClientModeImpl mClientModeImpl; field in WifiLastResortWatchdog
119 mClientModeImpl = clientModeImpl; in WifiLastResortWatchdog()
294 if (TextUtils.equals(mSsidLastTrigger, mClientModeImpl.getWifiInfo().getSSID())) { in checkIfConnectedBackToSameSsid()
310 mClientModeImpl.takeBugReport(BUGREPORT_TITLE, bugDetail); in takeBugReportWithCurrentProbability()
DWifiController.java63 private final ClientModeImpl mClientModeImpl; field in WifiController
111 mClientModeImpl = clientModeImpl; in WifiController()
476 mClientModeImpl.takeBugReport(bugTitle, bugDetail); in processMessage()
DAvailableNetworkNotifier.java128 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/
DPasspointManagerTest.java175 @Mock ClientModeImpl mClientModeImpl; field in PasspointManagerTest
204 when(mWifiInjector.getClientModeImpl()).thenReturn(mClientModeImpl); in setUp()
1684 when(mClientModeImpl.getCurrentWifiConfiguration()).thenReturn(currentConfiguration); in verifyRemovingPasspointProfilesWhenAppIsDisabled()
1702 verify(mClientModeImpl).disconnectCommand(); in verifyRemovingPasspointProfilesWhenAppIsDisabled()