/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | LocalOnlyHotspotRequestInfoTest.java | 46 private static final WorkSource TEST_WORKSOURCE = new WorkSource(); field in LocalOnlyHotspotRequestInfoTest 73 TEST_WORKSOURCE, mCallback, mDeathCallback, null); in verifyBinderLinkToDeathIsCalled() 83 TEST_WORKSOURCE, null, mDeathCallback, null); in verifyNullCallbackChecked() 92 TEST_WORKSOURCE, mCallback, null, null); in verifyNullDeathCallbackChecked() 101 TEST_WORKSOURCE, mCallback, mDeathCallback, null); in verifyUnlinkDeathRecipientUnlinksFromBinder() 112 TEST_WORKSOURCE, mCallback, mDeathCallback, null); in verifyBinderDeathTriggersCallback() 126 TEST_WORKSOURCE, mCallback, mDeathCallback, null); in verifyRemoteExceptionTriggersCallback() 137 TEST_WORKSOURCE, mCallback, mDeathCallback, null); in verifyPid() 147 TEST_WORKSOURCE, mCallback, mDeathCallback, config); in verifyCustomConfig() 157 TEST_WORKSOURCE, mCallback, mDeathCallback, null); in verifySendFailedMessage() [all …]
|
D | MultiInternetManagerTest.java | 87 private static final WorkSource TEST_WORKSOURCE = new WorkSource(TEST_UID, TEST_PACKAGE_NAME); field in MultiInternetManagerTest 269 null, TEST_WORKSOURCE); in testSetMultiInternetConnectionWorksource() 274 MultiInternetManager.MULTI_INTERNET_STATE_CONNECTION_REQUESTED, TEST_WORKSOURCE); in testSetMultiInternetConnectionWorksource() 275 verify(mConnectionStatusListener).onStartScan(TEST_WORKSOURCE); in testSetMultiInternetConnectionWorksource() 293 null, TEST_WORKSOURCE); in testSetMultiInternetConnectionWorksourceOnTwoBands() 298 MultiInternetManager.MULTI_INTERNET_STATE_CONNECTION_REQUESTED, TEST_WORKSOURCE); in testSetMultiInternetConnectionWorksourceOnTwoBands() 299 verify(mConnectionStatusListener).onStartScan(TEST_WORKSOURCE); in testSetMultiInternetConnectionWorksourceOnTwoBands() 302 null, TEST_WORKSOURCE); in testSetMultiInternetConnectionWorksourceOnTwoBands() 306 MultiInternetManager.MULTI_INTERNET_STATE_CONNECTION_REQUESTED, TEST_WORKSOURCE); in testSetMultiInternetConnectionWorksourceOnTwoBands() 307 verify(mConnectionStatusListener, times(2)).onStartScan(TEST_WORKSOURCE); in testSetMultiInternetConnectionWorksourceOnTwoBands() [all …]
|
D | ActiveModeWardenTest.java | 154 private static final WorkSource TEST_WORKSOURCE = new WorkSource(TEST_UID, TEST_PACKAGE); field in ActiveModeWardenTest 382 mActiveModeWarden.wifiToggled(TEST_WORKSOURCE); in enterClientModeActiveState() 396 any(), eq(TEST_WORKSOURCE), eq(ROLE_CLIENT_PRIMARY), anyBoolean()); in enterClientModeActiveState() 429 mActiveModeWarden.wifiToggled(TEST_WORKSOURCE); in enterScanOnlyModeActiveState() 439 any(), eq(TEST_WORKSOURCE), eq(ROLE_CLIENT_SCAN_ONLY), anyBoolean()); in enterScanOnlyModeActiveState() 479 mActiveModeWarden.startSoftAp(softApConfig, TEST_WORKSOURCE); in enterSoftApActiveMode() 489 any(), any(), any(), eq(TEST_WORKSOURCE), eq(softApRole), anyBoolean()); in enterSoftApActiveMode() 509 mActiveModeWarden.wifiToggled(TEST_WORKSOURCE); in enterStaDisabledMode() 691 mActiveModeWarden.wifiToggled(TEST_WORKSOURCE); in testScanOnlyModeScanHiddenNetworks() 698 any(), eq(TEST_WORKSOURCE), eq(ROLE_CLIENT_SCAN_ONLY), anyBoolean()); in testScanOnlyModeScanHiddenNetworks() [all …]
|
D | ConcreteClientModeManagerTest.java | 96 private static final WorkSource TEST_WORKSOURCE = new WorkSource(); field in ConcreteClientModeManagerTest 247 when(mWifiNative.replaceStaIfaceRequestorWs(TEST_INTERFACE_NAME, TEST_WORKSOURCE)) in setUp() 270 mWifiGlobals, mDefaultClientModeManager, 0, TEST_WORKSOURCE, role, in createClientModeManager() 281 mInterfaceCallbackCaptor.capture(), eq(TEST_WORKSOURCE), eq(mClientModeManager)); in startClientInScanOnlyModeAndVerifyEnabled() 309 mInterfaceCallbackCaptor.capture(), eq(TEST_WORKSOURCE), eq(mClientModeManager)); in startClientInConnectModeAndVerifyEnabled() 313 TEST_INTERFACE_NAME, TEST_WORKSOURCE); in startClientInConnectModeAndVerifyEnabled() 434 mClientModeManager.setRole(ActiveModeManager.ROLE_CLIENT_PRIMARY, TEST_WORKSOURCE); in switchFromScanOnlyModeToConnectMode() 500 mClientModeManager.setRole(ROLE_CLIENT_SCAN_ONLY, TEST_WORKSOURCE); in testSwitchFromConnectModeToScanOnlyModeFail() 532 mClientModeManager.setRole(ROLE_CLIENT_SCAN_ONLY, TEST_WORKSOURCE); in switchFromConnectModeToScanOnlyMode() 537 mInterfaceCallbackCaptor.capture(), eq(TEST_WORKSOURCE), eq(mClientModeManager)); in switchFromConnectModeToScanOnlyMode() [all …]
|
D | OemWifiNetworkFactoryTest.java | 46 private static final WorkSource TEST_WORKSOURCE = new WorkSource(TEST_UID, TEST_PACKAGE_NAME); field in OemWifiNetworkFactoryTest 99 verify(mWifiConnectivityManager).setOemPaidConnectionAllowed(true, TEST_WORKSOURCE); in testOemPaidHandleNetworkRequest() 121 verify(mWifiConnectivityManager).setOemPaidConnectionAllowed(true, TEST_WORKSOURCE); in testHandleOemPaidNetworkRelease() 139 verify(mWifiConnectivityManager).setOemPrivateConnectionAllowed(true, TEST_WORKSOURCE); in testOemPrivateHandleNetworkRequest() 161 verify(mWifiConnectivityManager).setOemPrivateConnectionAllowed(true, TEST_WORKSOURCE); in testHandleOemPrivateNetworkRelease() 184 verify(mWifiConnectivityManager).setOemPaidConnectionAllowed(true, TEST_WORKSOURCE); in testHandleOemPaidAndOemPrivateNetworkRequestAndRelease() 185 verify(mWifiConnectivityManager).setOemPrivateConnectionAllowed(true, TEST_WORKSOURCE); in testHandleOemPaidAndOemPrivateNetworkRequestAndRelease()
|
D | MultiInternetWifiNetworkFactoryTest.java | 64 private static final WorkSource TEST_WORKSOURCE = new WorkSource(TEST_UID, TEST_PACKAGE_NAME); field in MultiInternetWifiNetworkFactoryTest 187 ScanResult.WIFI_BAND_24_GHZ, null, TEST_WORKSOURCE); in testMultiInternetHandleNetworkRequest() 214 ScanResult.WIFI_BAND_5_GHZ, TEST_BSSID, TEST_WORKSOURCE); in testMultiInternetHandleNetworkRequestFromSettingsWithBssid() 219 ScanResult.WIFI_BAND_5_GHZ, TEST_BSSID, TEST_WORKSOURCE); in testMultiInternetHandleNetworkRequestFromSettingsWithBssid() 237 ScanResult.WIFI_BAND_24_GHZ, null, TEST_WORKSOURCE); in testMultiInternetHandleDualBandNetworkRequest() 239 ScanResult.WIFI_BAND_5_GHZ, null, TEST_WORKSOURCE); in testMultiInternetHandleDualBandNetworkRequest() 264 ScanResult.WIFI_BAND_24_GHZ, null, TEST_WORKSOURCE); in testHandleMultiInternetNetworkRelease() 285 ScanResult.WIFI_BAND_5_GHZ, null, TEST_WORKSOURCE); in testHandleMultiInternetNetworkReleaseWithMultiRequests()
|
D | WifiNativeInterfaceManagementTest.java | 87 private static final WorkSource TEST_WORKSOURCE = new WorkSource(); field in WifiNativeInterfaceManagementTest 560 TEST_WORKSOURCE, SoftApConfiguration.BAND_2GHZ, false, mSoftApManager, in testSetupClientAndSoftApInterfaceCausesClientInterfaceTeardown() 598 mIfaceDestroyedListenerCaptor1.capture(), eq(TEST_WORKSOURCE), anyInt(), eq(false), in validateHostApdStart() 653 mWifiNative.setupInterfaceForClientInScanMode(mIfaceCallback1, TEST_WORKSOURCE, in testSetupSoftApAndClientInterfaceCausesSoftApInterfaceTeardown() 657 mIfaceDestroyedListenerCaptor1.capture(), eq(TEST_WORKSOURCE), in testSetupSoftApAndClientInterfaceCausesSoftApInterfaceTeardown() 879 TEST_WORKSOURCE, SoftApConfiguration.BAND_2GHZ, false, mSoftApManager, in testSetupClientInterfaceAndTriggerInterfaceUpOnDestroyedIface() 1041 mIfaceCallback0, TEST_WORKSOURCE, mConcreteClientModeManager)); in testSetupClientInterfaceFailureInStartHal() 1060 TEST_WORKSOURCE, true, STA_FAILURE_CODE_START_DAEMON); in testSetupClientInterfaceFailureInStartSupplicant() 1087 assertNull(mWifiNative.setupInterfaceForClientInScanMode(mIfaceCallback0, TEST_WORKSOURCE, in testSetupClientInterfaceFailureInWificondSetupInterfaceForClientMode() 1111 TEST_WORKSOURCE, true, STA_FAILURE_CODE_SETUP_INTERFACE); in testSetupClientInterfaceFailureInSupplicantSetupIface() [all …]
|
D | WifiNativeTest.java | 257 private static final WorkSource TEST_WORKSOURCE = new WorkSource(); field in WifiNativeTest 707 mWifiNative.setupInterfaceForClientInScanMode(null, TEST_WORKSOURCE, in testGetWifiLinkLayerStatsForClientInConnectivityMode() 720 mWifiNative.setupInterfaceForClientInScanMode(null, TEST_WORKSOURCE, in testClientModeScanSuccess() 736 mWifiNative.setupInterfaceForClientInScanMode(null, TEST_WORKSOURCE, in testClientModeScanFailure() 755 mWifiNative.setupInterfaceForClientInScanMode(null, TEST_WORKSOURCE, in testClientModePnoScanSuccess() 770 mWifiNative.setupInterfaceForClientInScanMode(null, TEST_WORKSOURCE, in testClientModePnoScanFailure() 788 mWifiNative.setupInterfaceForClientInScanMode(null, TEST_WORKSOURCE, in testScanModeScanSuccess() 808 mWifiNative.setupInterfaceForSoftApMode(null, TEST_WORKSOURCE, SoftApConfiguration.BAND_2GHZ in testBridgedApModeWifiCondSetupTeardown() 827 mWifiNative.setupInterfaceForClientInScanMode(null, TEST_WORKSOURCE, in testScanModeScanFailure() 846 mWifiNative.setupInterfaceForClientInScanMode(null, TEST_WORKSOURCE, in testScanModePnoScanSuccess() [all …]
|
D | WifiVendorHalTest.java | 103 private static final WorkSource TEST_WORKSOURCE = new WorkSource(); field in WifiVendorHalTest 438 assertNotNull(mWifiVendorHal.createStaIface(externalLister, TEST_WORKSOURCE, in testStaInterfaceDestroyedHandling() 444 any(), eq(TEST_WORKSOURCE), eq(mConcreteClientModeManager)); in testStaInterfaceDestroyedHandling() 472 externalLister, TEST_WORKSOURCE, SoftApConfiguration.BAND_2GHZ, false, in testApInterfaceDestroyedHandling() 478 internalListenerCaptor.capture(), any(), eq(TEST_WORKSOURCE), eq(false), in testApInterfaceDestroyedHandling() 1453 assertNull(mWifiVendorHal.createStaIface(null, TEST_WORKSOURCE, in testCreateStaIfaceFailureInIfaceName() 1455 verify(mHalDeviceManager).createStaIface(any(), any(), eq(TEST_WORKSOURCE), in testCreateStaIfaceFailureInIfaceName() 1467 null, TEST_WORKSOURCE, SoftApConfiguration.BAND_2GHZ, false, mSoftApManager, in testCreateApIfaceFailureInIfaceName() 1470 anyLong(), any(), any(), eq(TEST_WORKSOURCE), eq(false), eq(mSoftApManager), in testCreateApIfaceFailureInIfaceName() 1480 String ifaceName = mWifiVendorHal.createStaIface(null, TEST_WORKSOURCE, in testCreateRemoveStaIface() [all …]
|
D | SoftApManagerTest.java | 167 private static final WorkSource TEST_WORKSOURCE = new WorkSource(); field in SoftApManagerTest 478 TEST_WORKSOURCE, in createSoftApManager() 2499 mWifiNativeInterfaceCallbackCaptor.capture(), eq(TEST_WORKSOURCE), in startSoftApAndVerifyEnabled() 2521 mWifiNativeInterfaceCallbackCaptor.capture(), eq(TEST_WORKSOURCE), in startSoftApAndVerifyEnabled()
|