/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiLockManagerTest.java | 97 @Mock ConcreteClientModeManager mClientModeManager; field in WifiLockManagerTest 135 when(mClientModeManager.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in setUp() 136 when(mActiveModeWarden.getPrimaryClientModeManager()).thenReturn(mClientModeManager); in setUp() 166 mWifiLockManager.updateWifiClientConnected(mClientModeManager, true); in acquireWifiLockSuccessful() 531 when(mClientModeManager.getSupportedFeatures()) in testHiPerfLockAcquireCauseDisablePS() 533 when(mClientModeManager.setLowLatencyMode(anyBoolean())).thenReturn(true); in testHiPerfLockAcquireCauseDisablePS() 542 verify(mClientModeManager).setPowerSave(ClientMode.POWER_SAVE_CLIENT_WIFI_LOCK, false); in testHiPerfLockAcquireCauseDisablePS() 552 InOrder inOrder = inOrder(mClientModeManager); in testHiPerfLockReleaseCauseEnablePS() 553 when(mClientModeManager.setPowerSave(eq(ClientMode.POWER_SAVE_CLIENT_WIFI_LOCK), in testHiPerfLockReleaseCauseEnablePS() 562 when(mClientModeManager.getSupportedFeatures()) in testHiPerfLockReleaseCauseEnablePS() [all …]
|
D | WifiCountryCodeTest.java | 98 @Mock ConcreteClientModeManager mClientModeManager; field in WifiCountryCodeTest 141 mClientManagerList.add(mClientModeManager); in setUp() 144 when(mClientModeManager.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in setUp() 145 when(mClientModeManager.setCountryCode(anyString())).thenReturn(true); in setUp() 146 when(mClientModeManager.isConnected()).thenReturn(true); in setUp() 147 when(mClientModeManager.getConnectionInfo()).thenReturn(mWifiInfo); in setUp() 195 }).when(mClientModeManager).setCountryCode( in createWifiCountryCode() 224 mModeChangeCallbackCaptor.getValue().onActiveModeManagerAdded(mClientModeManager); in useDefaultCountryCode() 226 mClientModeImplListenerCaptor.getValue().onConnectionStart(mClientModeManager); in useDefaultCountryCode() 227 verify(mClientModeManager).setCountryCode(anyString()); in useDefaultCountryCode() [all …]
|
D | ConcreteClientModeManagerTest.java | 102 ConcreteClientModeManager mClientModeManager; field in ConcreteClientModeManagerTest 277 mClientModeManager = createClientModeManager(ROLE_CLIENT_SCAN_ONLY); in startClientInScanOnlyModeAndVerifyEnabled() 281 mInterfaceCallbackCaptor.capture(), eq(TEST_WORKSOURCE), eq(mClientModeManager)); in startClientInScanOnlyModeAndVerifyEnabled() 296 verify(mListener).onStarted(mClientModeManager); in startClientInScanOnlyModeAndVerifyEnabled() 305 mClientModeManager = createClientModeManager(ROLE_CLIENT_PRIMARY); in startClientInConnectModeAndVerifyEnabled() 309 mInterfaceCallbackCaptor.capture(), eq(TEST_WORKSOURCE), eq(mClientModeManager)); in startClientInConnectModeAndVerifyEnabled() 315 .makeClientModeImpl(eq(TEST_INTERFACE_NAME), eq(mClientModeManager), anyBoolean()); in startClientInConnectModeAndVerifyEnabled() 335 verify(mListener).onStarted(mClientModeManager); in startClientInConnectModeAndVerifyEnabled() 391 mClientModeManager.getFactoryMacAddress(); in clientInScanOnlyModeStartCreatesClientInterface() 434 mClientModeManager.setRole(ActiveModeManager.ROLE_CLIENT_PRIMARY, TEST_WORKSOURCE); in switchFromScanOnlyModeToConnectMode() [all …]
|
D | ActiveModeWardenTest.java | 165 @Mock ConcreteClientModeManager mClientModeManager; field in ActiveModeWardenTest 227 when(mClientModeManager.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in setUp() 228 when(mClientModeManager.getInterfaceName()).thenReturn(WIFI_IFACE_NAME); in setUp() 260 return mClientModeManager; in setUp() 386 when(mClientModeManager.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in enterClientModeActiveState() 387 when(mClientModeManager.getCurrentNetwork()).thenReturn(mNetwork); in enterClientModeActiveState() 390 mClientListener.onRoleChanged(mClientModeManager); in enterClientModeActiveState() 398 verify(mClientModeManager).setRole(ROLE_CLIENT_PRIMARY, SETTINGS_WORKSOURCE); in enterClientModeActiveState() 407 verify(mClientModeManager, atLeastOnce()).getInterfaceName(); in enterClientModeActiveState() 411 assertEquals(mClientModeManager, mActiveModeWarden.getPrimaryClientModeManager()); in enterClientModeActiveState() [all …]
|
D | WifiDiagnosticsTest.java | 86 @Mock ClientModeManager mClientModeManager; field in WifiDiagnosticsTest 141 List<ClientModeManager> clientModeManagerList = List.of(mClientModeManager, in setUp() 143 when(mClientModeManager.getInterfaceName()).thenReturn(STA_IF_NAME); in setUp() 161 when(mActiveModeWarden.getPrimaryClientModeManager()).thenReturn(mClientModeManager); in setUp() 358 mClientModeManager); in reportConnectionFailureIsIgnoredWithoutVerboseMode() 359 verify(mClientModeManager).getTxPktFates(); in reportConnectionFailureIsIgnoredWithoutVerboseMode() 360 verify(mClientModeManager).getRxPktFates(); in reportConnectionFailureIsIgnoredWithoutVerboseMode() 372 mClientModeManager); in reportConnectionFailureFetchesFatesInVerboseMode() 373 verify(mClientModeManager).getTxPktFates(); in reportConnectionFailureFetchesFatesInVerboseMode() 374 verify(mClientModeManager).getRxPktFates(); in reportConnectionFailureFetchesFatesInVerboseMode() [all …]
|
D | WifiNetworkFactoryTest.java | 175 @Mock ConcreteClientModeManager mClientModeManager; field in WifiNetworkFactoryTest 286 requestListener.onAnswer(mClientModeManager); in setUp() 290 when(mClientModeManager.getRole()).thenReturn(ActiveModeManager.ROLE_CLIENT_PRIMARY); in setUp() 832 verify(mClientModeManager, never()).disconnect(); in testHandleNetworkReleaseWithSpecifier() 1284 verifyNoMoreInteractions(mClientModeManager, mWifiConnectivityManager); in testNetworkSpecifierHandleUserSelectionConnectToNetworkWithoutActiveRequest() 1310 verifyNoMoreInteractions(mClientModeManager, mWifiConnectivityManager, mWifiConfigManager); in testNetworkSpecifierHandleUserSelectionConnectToNetworkWithDifferentActiveRequest() 1340 verify(mClientModeManager).disconnect(); in testNetworkSpecifierHandleUserSelectionConnectToNetwork() 1341 verify(mConnectHelper).connectToNetwork(eq(mClientModeManager), in testNetworkSpecifierHandleUserSelectionConnectToNetwork() 1445 verify(mClientModeManager).disconnect(); in testNetworkSpecifierHandleUserSelectionConnectToExistingSavedNetwork() 1446 verify(mConnectHelper).connectToNetwork(eq(mClientModeManager), in testNetworkSpecifierHandleUserSelectionConnectToExistingSavedNetwork() [all …]
|
D | WifiConnectivityHelperTest.java | 59 @Mock private ClientModeManager mClientModeManager; field in WifiConnectivityHelperTest 68 when(mActiveModeWarden.getPrimaryClientModeManager()).thenReturn(mClientModeManager); in setupWifiNative() 71 when(mClientModeManager.getSupportedFeatures()).thenReturn(WIFI_FEATURE_CONTROL_ROAMING); in setupWifiNative() 76 when(mClientModeManager.getRoamingCapabilities()).thenReturn(roamCap); in setupWifiNative() 78 when(mClientModeManager.configureRoaming(isNotNull())).thenReturn(true); in setupWifiNative() 122 when(mClientModeManager.getSupportedFeatures()).thenReturn(~WIFI_FEATURE_CONTROL_ROAMING); in returnFirmwareRoamingNotSupported() 146 when(mClientModeManager.getRoamingCapabilities()).thenReturn(null); in verifyFirmwareRoamingCapabilityWithFailureNativeCall() 165 when(mClientModeManager.getRoamingCapabilities()).thenReturn(roamCap); in verifyFirmwareRoamingCapabilityWithInvalidMaxBssidBlocklistSize() 185 when(mClientModeManager.getRoamingCapabilities()).thenReturn(roamCap); in verifyFirmwareRoamingCapabilityWithInvalidMaxSsidAllowlistSize() 254 verify(mClientModeManager).configureRoaming(mRoamingConfigCaptor.capture()); in verifySetFirmwareRoamingConfigurationWithEmptyBlocklistAndAllowlist()
|
D | MboOceControllerTest.java | 49 @Mock ConcreteClientModeManager mClientModeManager; field in MboOceControllerTest 65 .thenReturn(mClientModeManager); in setUp() 67 .thenReturn(mClientModeManager); in setUp() 87 when(mClientModeManager.getSupportedFeatures()).thenReturn(featureSet); in enableMboOceController() 122 InOrder inOrder = inOrder(mClientModeManager); in testMboEnabledUpdateCellularDataStateChangeEvents() 128 verify(mClientModeManager).setMboCellularDataStatus(true); in testMboEnabledUpdateCellularDataStateChangeEvents() 133 verify(mClientModeManager).setMboCellularDataStatus(false); in testMboEnabledUpdateCellularDataStateChangeEvents()
|
D | SupplicantStateTrackerTest.java | 60 private @Mock ClientModeManager mClientModeManager; field in SupplicantStateTrackerTest 79 mLooper.getLooper(), mWifiMonitor, TEST_IFACE, mClientModeManager, mBroadcastQueue); in setUp() 101 eq(mClientModeManager), mQueuedBroadcastCaptor.capture()); in testSupplicantStateChangeIntent() 122 eq(mClientModeManager), mQueuedBroadcastCaptor.capture()); in testAuthPassInSupplicantStateChangeIntent() 144 eq(mClientModeManager), mQueuedBroadcastCaptor.capture()); in testAuthFailedInSupplicantStateChangeIntent() 169 eq(mClientModeManager), mQueuedBroadcastCaptor.capture()); in testReasonCodeInSupplicantStateChangeIntent()
|
D | ConnectHelperTest.java | 55 private ClientModeManager mClientModeManager; field in ConnectHelperTest 65 when(activeModeWarden.getPrimaryClientModeManager()).thenReturn(mClientModeManager); in setUp() 82 verify(mClientModeManager).connectNetwork(eq(result), any(), eq(TEST_CALLING_UID), in verifyConnectNetworkSuccess() 108 verify(mClientModeManager, never()).connectNetwork(any(), any(), anyInt(), any(), any()); in connectToNetwork_invalidNetId_failure()
|
D | WifiMulticastLockManagerTest.java | 55 @Mock ConcreteClientModeManager mClientModeManager; field in WifiMulticastLockManagerTest 72 when(mClientModeManager.getMcastLockManagerFilterController()) in setUp() 74 when(mClientModeManager.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in setUp() 80 when(mActiveModeWarden.getPrimaryClientModeManager()).thenReturn(mClientModeManager); in setUp() 162 when(mClientModeManager.getRole()).thenReturn(ROLE_CLIENT_SECONDARY_TRANSIENT); in oneLock_changePrimaryClientModeManager() 163 mPrimaryChangedCallbackCaptor.getValue().onChange(mClientModeManager, null); in oneLock_changePrimaryClientModeManager()
|
D | WifiNetworkSelectorTest.java | 160 when(mActiveModeWarden.getPrimaryClientModeManager()).thenReturn(mClientModeManager); in setUp() 310 @Mock private ClientModeManager mClientModeManager; field in WifiNetworkSelectorTest 515 when(mClientModeManager.getInterfaceName()).thenReturn("test"); in testIsNetworkSelectionNeededForCmmWhenIpProvisioningTimedOut() 516 when(mClientModeManager.isConnected()).thenReturn(false); in testIsNetworkSelectionNeededForCmmWhenIpProvisioningTimedOut() 517 when(mClientModeManager.isDisconnected()).thenReturn(false); in testIsNetworkSelectionNeededForCmmWhenIpProvisioningTimedOut() 518 when(mClientModeManager.getInterfaceName()).thenReturn("test"); in testIsNetworkSelectionNeededForCmmWhenIpProvisioningTimedOut() 519 when(mClientModeManager.isIpProvisioningTimedOut()).thenReturn(false); in testIsNetworkSelectionNeededForCmmWhenIpProvisioningTimedOut() 523 ClientModeManagerState cmmState = new ClientModeManagerState(mClientModeManager); in testIsNetworkSelectionNeededForCmmWhenIpProvisioningTimedOut() 527 when(mClientModeManager.isIpProvisioningTimedOut()).thenReturn(true); in testIsNetworkSelectionNeededForCmmWhenIpProvisioningTimedOut() 528 cmmState = new ClientModeManagerState(mClientModeManager); in testIsNetworkSelectionNeededForCmmWhenIpProvisioningTimedOut() [all …]
|
D | WifiDataStallTest.java | 80 @Mock ClientModeManager mClientModeManager; field in WifiDataStallTest 169 when(mActiveModeWarden.getPrimaryClientModeManager()).thenReturn(mClientModeManager); in setUp() 243 verify(mClientModeManager).onCellularConnectivityChanged( in testCellularDataConnectionOnOff() 248 verify(mClientModeManager).onCellularConnectivityChanged( in testCellularDataConnectionOnOff() 280 verify(mClientModeManager).onCellularConnectivityChanged( in testCellularDataListenerReset() 287 verify(mClientModeManager).onCellularConnectivityChanged( in testCellularDataListenerReset()
|
D | TwtManagerTest.java | 97 ConcreteClientModeManager mClientModeManager; field in TwtManagerTest 381 when(mClientModeManager.getInterfaceName()).thenReturn("wlan0"); in testDisconnect() 382 when(mClientModeManager.getRole()).thenReturn(ActiveModeManager.ROLE_CLIENT_PRIMARY); in testDisconnect() 392 mCmiListenerCaptor.getValue().onConnectionEnd(mClientModeManager); in testDisconnect()
|
D | ClientModeImplTest.java | 575 @Mock ConcreteClientModeManager mClientModeManager; field in ClientModeImplTest 765 when(mClientModeManager.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in setUp() 804 }).when(mClientModeManager).setShouldReduceNetworkScore(anyBoolean()); in setUp() 815 if (mClientModeManager.getRole() == ROLE_CLIENT_PRIMARY) { in validateConnectionInfo() 836 WIFI_IFACE_NAME, mClientModeManager, mCmiMonitor, in initializeCmi() 956 verify(mClientModeManager, never()) in canSaveAdminRestrictedNetworkWithoutConnecting() 975 verify(mClientModeManager, never()) in canSaveDeprecatedSecurityTypeNetworkWithoutConnecting() 1033 verify(mCmiMonitor).onConnectionStart(mClientModeManager); in validateSuccessfulConnectSequence() 1337 verify(mWifiLockManager).updateWifiClientConnected(mClientModeManager, true); in connect() 1416 verify(mWifiConnectivityManager).handleConnectionStateChanged(mClientModeManager, in connectWithIpProvisionTimeout() [all …]
|
D | ScanResultMatchInfoTest.java | 59 @Mock ClientModeManager mClientModeManager; field in ScanResultMatchInfoTest 74 when(mActiveModeWarden.getPrimaryClientModeManager()).thenReturn(mClientModeManager); in setUp() 75 when(mClientModeManager.getSupportedFeatures()).thenReturn( in setUp()
|
D | WifiServiceImplTest.java | 403 @Mock ConcreteClientModeManager mClientModeManager; field in WifiServiceImplTest 616 when(mActiveModeWarden.getPrimaryClientModeManager()).thenReturn(mClientModeManager); in setUp() 617 when(mClientModeManager.getInterfaceName()).thenReturn(WIFI_IFACE_NAME); in setUp() 637 when(mClientModeManager.syncStartSubscriptionProvisioning(anyInt(), in setUp() 677 mClientModeManagers = Arrays.asList(mClientModeManager, mock(ClientModeManager.class)); in setUp() 846 verify(mClientModeManager, never()) in testWifiMetricsDump() 4954 verify(mClientModeManager).syncStartSubscriptionProvisioning(anyInt(), in testStartSubscriptionProvisioningWithPermission() 5248 reset(mClientModeManager); in testVerboseLoggingListener() 5321 reset(mClientModeManager); in testEnableVerboseLoggingWithNetworkSettingsPermission() 5339 reset(mClientModeManager); in testEnableShowKeyVerboseLoggingWithNetworkSettingsPermission() [all …]
|
D | WifiCandidatesTest.java | 73 @Mock ClientModeManager mClientModeManager; field in WifiCandidatesTest 98 when(mActiveModeWarden.getPrimaryClientModeManager()).thenReturn(mClientModeManager); in setUp() 99 when(mClientModeManager.getSupportedFeatures()).thenReturn( in setUp()
|
D | WifiLastResortWatchdogTest.java | 61 @Mock ClientModeManager mClientModeManager; field in WifiLastResortWatchdogTest 90 when(mActiveModeWarden.getPrimaryClientModeManager()).thenReturn(mClientModeManager); in setUp() 91 when(mClientModeManager.getConnectionInfo()).thenReturn(mWifiInfo); in setUp()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | PasspointEventHandlerTest.java | 56 @Mock ClientModeManager mClientModeManager; field in PasspointEventHandlerTest 65 when(mActiveModeWarden.getPrimaryClientModeManager()).thenReturn(mClientModeManager); in setUp() 82 when(mClientModeManager.requestAnqp(BSSID_STR, expAnqpIds, expHs20Subtypes)) in requestR1AnqpElement() 87 when(mClientModeManager.requestAnqp(BSSID_STR, expAnqpIds, expHs20Subtypes)) in requestR1AnqpElement() 105 when(mClientModeManager.requestAnqp(BSSID_STR, expAnqpIds, expHs20Subtypes)) in requestR2AnqpElement() 110 when(mClientModeManager.requestAnqp(BSSID_STR, expAnqpIds, expHs20Subtypes)) in requestR2AnqpElement() 131 when(mClientModeManager.requestAnqp(BSSID_STR, expAnqpIds, expHs20Subtypes)) in requestMixAnqpElements() 136 when(mClientModeManager.requestAnqp(BSSID_STR, expAnqpIds, expHs20Subtypes)) in requestMixAnqpElements() 147 when(mClientModeManager.requestIcon(BSSID_STR, ICON_FILENAME)).thenReturn(true); in requestIconFile() 151 when(mClientModeManager.requestIcon(BSSID_STR, ICON_FILENAME)).thenReturn(false); in requestIconFile() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiNetworkFactory.java | 159 @Nullable private ClientModeManager mClientModeManager; field in WifiNetworkFactory 404 if (modeManager != mClientModeManager) { in onAnswer() 410 if (modeManager != mClientModeManager) { in onAnswer() 414 mClientModeManager = modeManager; in onAnswer() 417 Log.v(TAG, "retrieve CMM: " + mClientModeManager.toString()); in onAnswer() 441 if (activeModeManager == mClientModeManager in onActiveModeManagerRemoved() 454 if (activeModeManager == mClientModeManager in onActiveModeManagerRoleChanged() 921 && mClientModeManager == null) { in needNetworkFor() 1097 if (mClientModeManager != null) mClientModeManager.disconnect(); in disconnectAndRemoveNetworkFromWifiConfigManager() 1143 mClientModeManager, in connectToNetwork() [all …]
|
D | SupplicantStateTracker.java | 57 private final ClientModeManager mClientModeManager; field in SupplicantStateTracker 107 mClientModeManager = clientModeManager; in SupplicantStateTracker() 249 if (mClientModeManager.getRole() == ROLE_CLIENT_PRIMARY) { in sendSupplicantStateChangedBroadcast() 258 mClientModeManager, in sendSupplicantStateChangedBroadcast()
|
D | ClientModeImpl.java | 278 private final ConcreteClientModeManager mClientModeManager; field in ClientModeImpl 833 mClientModeManager = clientModeManager; in ClientModeImpl() 2596 return mClientModeManager.getRole() == ROLE_CLIENT_PRIMARY; in isPrimary() 2600 return mClientModeManager.getRole() == ActiveModeManager.ROLE_CLIENT_SCAN_ONLY; in isScanOnly() 2605 return mClientModeManager.getRole() == ROLE_CLIENT_SECONDARY_LONG_LIVED in isSecondaryInternet() 2606 && mClientModeManager.isSecondaryInternet(); in isSecondaryInternet() 2611 return mClientModeManager.getRole() == ROLE_CLIENT_LOCAL_ONLY; in isLocalOnly() 2963 mClientModeManager, in sendRssiChangeBroadcast() 2974 mClientModeManager, in sendLinkConfigurationChangedBroadcast() 2995 mClientModeManager, in sendSupplicantConnectionChangedBroadcast() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/b2b/ |
D | WifiRoamingModeManagerTest.java | 55 @Mock ClientModeManager mClientModeManager; field in WifiRoamingModeManagerTest 68 when(mActiveModeWarden.getPrimaryClientModeManager()).thenReturn(mClientModeManager); in setUp() 69 when(mClientModeManager.getInterfaceName()).thenReturn(WIFI_IFACE_NAME); in setUp()
|