/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiConnectivityManagerTest.java | 156 setupMockForClientModeManager(mPrimaryClientModeManager); in setUp() 179 when(mPrimaryClientModeManager.getRole()).thenReturn(ActiveModeManager.ROLE_CLIENT_PRIMARY); in setUp() 180 when(mPrimaryClientModeManager.getConnectionInfo()).thenReturn(mWifiInfo); in setUp() 181 when(mActiveModeWarden.getPrimaryClientModeManager()).thenReturn(mPrimaryClientModeManager); in setUp() 185 listener.onAnswer(mPrimaryClientModeManager); in setUp() 192 listener.onAnswer(mPrimaryClientModeManager); in setUp() 317 @Mock private ConcreteClientModeManager mPrimaryClientModeManager; field in WifiConnectivityManagerTest 673 when(mPrimaryClientModeManager.getConnectedWifiConfiguration()) in setWifiStateConnected() 675 when(mPrimaryClientModeManager.getConnectedBssid()) in setWifiStateConnected() 679 mPrimaryClientModeManager, in setWifiStateConnected() [all …]
|
D | WakeupEvaluatorTest.java | 68 @Mock private ClientModeManager mPrimaryClientModeManager; field in WakeupEvaluatorTest 107 when(mActiveModeWarden.getPrimaryClientModeManager()).thenReturn(mPrimaryClientModeManager); in setUp() 108 when(mPrimaryClientModeManager.getSupportedFeatures()).thenReturn( in setUp()
|
D | WifiShellCommandTest.java | 91 @Mock ClientModeManager mPrimaryClientModeManager; field in WifiShellCommandTest 119 when(mActiveModeWarden.getPrimaryClientModeManager()).thenReturn(mPrimaryClientModeManager); in setUp() 121 .thenReturn(Arrays.asList(mPrimaryClientModeManager)); in setUp() 743 verify(mPrimaryClientModeManager, never()).getConnectionInfo(); in testStatus() 751 Arrays.asList(mPrimaryClientModeManager, additionalClientModeManager)); in testStatus() 755 when(mPrimaryClientModeManager.getConnectionInfo()).thenReturn(wifiInfo); in testStatus() 762 verify(mPrimaryClientModeManager).getConnectionInfo(); in testStatus() 763 verify(mPrimaryClientModeManager).getCurrentNetwork(); in testStatus()
|
D | ConfigurationMapTest.java | 93 @Mock ClientModeManager mPrimaryClientModeManager; field in ConfigurationMapTest 112 when(mActiveModeWarden.getPrimaryClientModeManager()).thenReturn(mPrimaryClientModeManager); in setUp() 113 when(mPrimaryClientModeManager.getSupportedFeatures()).thenReturn( in setUp()
|
D | WakeupControllerTest.java | 102 @Mock private ConcreteClientModeManager mPrimaryClientModeManager; field in WakeupControllerTest 129 when(mActiveModeWarden.getPrimaryClientModeManager()).thenReturn(mPrimaryClientModeManager); in setUp() 130 when(mPrimaryClientModeManager.getSupportedFeatures()).thenReturn( in setUp() 412 mPrimaryChangedCaptor.getValue().onChange(null, mPrimaryClientModeManager); in resetSetsActiveToFalse() 875 mPrimaryChangedCaptor.getValue().onChange(null, mPrimaryClientModeManager); in lastConnectedNetworkAddedToLock()
|
D | SavedNetworkNominatorTest.java | 69 when(mActiveModeWarden.getPrimaryClientModeManager()).thenReturn(mPrimaryClientModeManager); in setUp() 70 when(mPrimaryClientModeManager.getSupportedFeatures()).thenReturn( in setUp() 118 private @Mock ClientModeManager mPrimaryClientModeManager; field in SavedNetworkNominatorTest
|
D | WifiNetworkFactoryTest.java | 187 private @Mock ClientModeManager mPrimaryClientModeManager; field in WifiNetworkFactoryTest 280 when(mActiveModeWarden.getPrimaryClientModeManager()).thenReturn(mPrimaryClientModeManager); in setUp() 281 when(mPrimaryClientModeManager.getRole()).thenReturn(ActiveModeManager.ROLE_CLIENT_PRIMARY); in setUp() 294 when(mPrimaryClientModeManager.getSupportedFeatures()).thenReturn( in setUp() 3708 verify(mPrimaryClientModeManager, atLeastOnce()).getConnectedWifiConfiguration(); in testShareConnectedNetworkWithCarModePriorityAndSavedNetwork() 3709 verify(mPrimaryClientModeManager, atLeastOnce()).getConnectingWifiConfiguration(); in testShareConnectedNetworkWithCarModePriorityAndSavedNetwork() 3710 verify(mPrimaryClientModeManager, atLeastOnce()).getConnectingBssid(); in testShareConnectedNetworkWithCarModePriorityAndSavedNetwork() 3711 verify(mPrimaryClientModeManager, atLeastOnce()).getConnectedBssid(); in testShareConnectedNetworkWithCarModePriorityAndSavedNetwork() 3722 verify(mPrimaryClientModeManager, atLeastOnce()).disconnect(); in testShareConnectedNetworkWithCarModePriorityAndSavedNetwork() 3724 eq(mPrimaryClientModeManager), in testShareConnectedNetworkWithCarModePriorityAndSavedNetwork()
|
D | WifiConfigManagerTest.java | 207 @Mock private ClientModeManager mPrimaryClientModeManager; field in WifiConfigManagerTest 365 when(mActiveModeWarden.getPrimaryClientModeManager()).thenReturn(mPrimaryClientModeManager); in setUp() 366 when(mPrimaryClientModeManager.getSupportedFeatures()).thenReturn( in setUp() 2034 when(mPrimaryClientModeManager.getSupportedFeatures()).thenReturn(featureSet); in testEnterpriseConfigTofuStateMerge() 8035 when(mPrimaryClientModeManager.getSupportedFeatures()).thenReturn(featureSet); in verifyAddTofuEnterpriseConfig() 8155 when(mPrimaryClientModeManager.getSupportedFeatures()).thenReturn( in testUpdateCaCertificateSuccess() 8170 when(mPrimaryClientModeManager.getSupportedFeatures()).thenReturn( in testUpdateCaCertificatePathSuccess() 8188 when(mPrimaryClientModeManager.getSupportedFeatures()).thenReturn( in testUpdateCaCertificateWithoutAltSubjectNames() 8214 when(mPrimaryClientModeManager.getSupportedFeatures()).thenReturn( in testUpdateCaCertificateWithAltSubjectNames() 8254 when(mPrimaryClientModeManager.getSupportedFeatures()).thenReturn( in testUpdateCaCertificateFaiulreInvalidArgument() [all …]
|
D | WifiNetworkSuggestionsManagerTest.java | 191 private @Mock ClientModeManager mPrimaryClientModeManager; field in WifiNetworkSuggestionsManagerTest 264 when(mActiveModeWarden.getPrimaryClientModeManager()).thenReturn(mPrimaryClientModeManager); in setUp() 265 when(mPrimaryClientModeManager.getSupportedFeatures()).thenReturn( in setUp() 5342 when(mPrimaryClientModeManager.getConnectedWifiConfiguration()) in testRemoveNetworkSuggestionsWithActionCurrentlyConnected() 5351 verify(mPrimaryClientModeManager).setShouldReduceNetworkScore(true); in testRemoveNetworkSuggestionsWithActionCurrentlyConnected() 5396 verify(mPrimaryClientModeManager, never()).setShouldReduceNetworkScore(true); in testRemoveNetworkSuggestionsWithActionNotConnected()
|
D | ClientModeImplTest.java | 585 @Mock ClientModeManager mPrimaryClientModeManager; field in ClientModeImplTest 734 when(mActiveModeWarden.getPrimaryClientModeManager()).thenReturn(mPrimaryClientModeManager); in setUp() 735 when(mPrimaryClientModeManager.getSupportedFeatures()).thenReturn( in setUp()
|