/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | PasspointNetworkNominateHelperTest.java | 83 private static final int TEST_NETWORK_ID = 1; field in PasspointNetworkNominateHelperTest 250 any(), eq(false))).thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID)); in evaluateScansWithNetworkMatchingHomeProvider() 251 when(mWifiConfigManager.getConfiguredNetwork(TEST_NETWORK_ID)).thenReturn(TEST_CONFIG1); in evaluateScansWithNetworkMatchingHomeProvider() 268 eq(TEST_NETWORK_ID), eq(false), eq(TEST_UID), any()); in evaluateScansWithNetworkMatchingHomeProvider() 270 eq(TEST_NETWORK_ID), any(ScanResult.class), anyInt(), any()); in evaluateScansWithNetworkMatchingHomeProvider() 272 eq(TEST_NETWORK_ID), any(ScanDetail.class)); in evaluateScansWithNetworkMatchingHomeProvider() 305 any(), eq(false))).thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID)); in evaluateScansWithNoInternetBit() 306 when(mWifiConfigManager.getConfiguredNetwork(TEST_NETWORK_ID)).thenReturn(TEST_CONFIG1); in evaluateScansWithNoInternetBit() 322 eq(TEST_NETWORK_ID), eq(false), eq(TEST_UID), any()); in evaluateScansWithNoInternetBit() 324 eq(TEST_NETWORK_ID), any(ScanResult.class), anyInt(), any()); in evaluateScansWithNoInternetBit() [all …]
|
D | OsuNetworkConnectionTest.java | 69 private static final int TEST_NETWORK_ID = 6; field in OsuNetworkConnectionTest 94 when(mWifiManager.enableNetwork(TEST_NETWORK_ID, true)).thenReturn(true); in setUp() 95 when(mWifiManager.addNetwork(any(WifiConfiguration.class))).thenReturn(TEST_NETWORK_ID); in setUp() 97 when(mWifiInfo.getNetworkId()).thenReturn(TEST_NETWORK_ID); in setUp() 180 verify(mWifiManager, never()).removeNetwork(TEST_NETWORK_ID); in verifyNetworkConnectionWhenAddNetworkFails() 189 when(mWifiManager.enableNetwork(TEST_NETWORK_ID, true)).thenReturn(false); in verifyNetworkConnectionWhenEnableNetworkFails() 192 verify(mWifiManager).removeNetwork(TEST_NETWORK_ID); in verifyNetworkConnectionWhenEnableNetworkFails() 223 verify(mWifiManager).removeNetwork(TEST_NETWORK_ID); in verifyNetworkCallbackInvokedWhenConnected() 275 verify(mWifiManager).removeNetwork(TEST_NETWORK_ID); in verifyNetworkConnectionTimeout() 291 verify(mWifiManager).removeNetwork(TEST_NETWORK_ID); in verifyNetworkDisconnect()
|
D | PasspointManagerTest.java | 192 private static final int TEST_NETWORK_ID = 2; field in PasspointManagerTest 914 .thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID)); in addSavedProviderWithExistingConfig() 925 verify(mWifiConfigManager).allowAutojoin(TEST_NETWORK_ID, origWifiConfig.allowAutojoin); in addSavedProviderWithExistingConfig() 2192 .thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID)); in addSuggestionProviderWithExistingConfig() 2200 verify(mWifiConfigManager).allowAutojoin(TEST_NETWORK_ID, origWifiConfig.allowAutojoin); in addSuggestionProviderWithExistingConfig()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiScoreReportTest.java | 108 private static final int TEST_NETWORK_ID = 860370; field in WifiScoreReportTest 459 when(mNetwork.getNetId()).thenReturn(TEST_NETWORK_ID); in testExternalScorerWhileLingering_sendLingeringScore() 460 mWifiScoreReport.startConnectedNetworkScorer(TEST_NETWORK_ID, TEST_USER_SELECTED); in testExternalScorerWhileLingering_sendLingeringScore() 1047 assertEquals(TEST_SESSION_ID, WifiScoreReport.sessionIdFromNetId(TEST_NETWORK_ID)); 1064 when(mNetwork.getNetId()).thenReturn(TEST_NETWORK_ID); 1065 mWifiScoreReport.startConnectedNetworkScorer(TEST_NETWORK_ID, TEST_USER_SELECTED); 1076 when(mNetwork.getNetId()).thenReturn(TEST_NETWORK_ID); in testClientStartOnRegWhileActive() 1077 mWifiScoreReport.startConnectedNetworkScorer(TEST_NETWORK_ID, TEST_USER_SELECTED); in testClientStartOnRegWhileActive() 1095 when(mNetwork.getNetId()).thenReturn(TEST_NETWORK_ID); in testClientGetSessionIdOnStop() 1096 mWifiScoreReport.startConnectedNetworkScorer(TEST_NETWORK_ID, TEST_USER_SELECTED); in testClientGetSessionIdOnStop() [all …]
|
D | ConnectHelperTest.java | 45 private static final int TEST_NETWORK_ID = 42; field in ConnectHelperTest 70 mWifiConfig.networkId = TEST_NETWORK_ID; in setUp() 74 when(mWifiConfigManager.getConfiguredNetwork(TEST_NETWORK_ID)).thenReturn(mWifiConfig); in verifyConnectNetworkSuccess() 76 NetworkUpdateResult result = new NetworkUpdateResult(TEST_NETWORK_ID); in verifyConnectNetworkSuccess() 80 verify(mWifiConfigManager).updateBeforeConnect(TEST_NETWORK_ID, TEST_CALLING_UID, in verifyConnectNetworkSuccess() 101 when(mWifiConfigManager.getConfiguredNetwork(TEST_NETWORK_ID)).thenReturn(null); in connectToNetwork_invalidNetId_failure() 103 mConnectHelper.connectToNetwork(new NetworkUpdateResult(TEST_NETWORK_ID), mActionListener, in connectToNetwork_invalidNetId_failure()
|
D | WifiConfigurationTestUtil.java | 73 public static final int TEST_NETWORK_ID = -1; field in WifiConfigurationTestUtil 294 return generateWifiConfig(TEST_NETWORK_ID, TEST_UID, ssid, true, true, null, in createOweNetwork() 304 TEST_NETWORK_ID, TEST_UID, ssid, true, true, null, in createOpenNetwork() 315 TEST_NETWORK_ID, TEST_UID, ssid, true, true, null, in createOpenOweNetwork() 347 generateWifiConfig(TEST_NETWORK_ID, TEST_UID, ssid, true, true, null, in createPskNetwork() 359 generateWifiConfig(TEST_NETWORK_ID, TEST_UID, ssid, true, true, null, in createPskSaeNetwork() 372 generateWifiConfig(TEST_NETWORK_ID, TEST_UID, ssid, true, true, null, in createSaeNetwork() 398 generateWifiConfig(TEST_NETWORK_ID, TEST_UID, createNewSSID(), true, true, null, in createWepNetwork() 413 generateWifiConfig(TEST_NETWORK_ID, TEST_UID, createNewSSID(), true, true, null, in createWepNetworkWithSingleKey() 438 generateWifiConfig(TEST_NETWORK_ID, TEST_UID, ssid, true, true, in createEapNetwork() [all …]
|
D | DppManagerTest.java | 114 private static final int TEST_NETWORK_ID = 1; field in DppManagerTest 253 selectedNetwork.networkId = TEST_NETWORK_ID; in testStartDppAsConfiguratorInitiatorFailAddPeer() 305 selectedNetwork.networkId = TEST_NETWORK_ID; in testStartDppAsConfiguratorInitiatorFailStart() 355 selectedNetwork.networkId = TEST_NETWORK_ID; in testStartDppAsConfiguratorInitiatorStartCorrectlyWpa2Psk() 382 selectedNetwork.networkId = TEST_NETWORK_ID; in testStartDppAsConfiguratorInitiatorStartCorrectlyWpa3Sae() 408 selectedNetwork.networkId = TEST_NETWORK_ID; in testStartDppAsConfiguratorInitiatorFailOpenNetwork() 433 selectedNetwork.networkId = TEST_NETWORK_ID; in testStartDppAsConfiguratorInitiatorFailEapNetwork() 603 selectedNetwork.networkId = TEST_NETWORK_ID; in testStartDppAsEnrolleeInitiatorStartCorrectlyOnSuccessCallback() 613 NetworkUpdateResult networkUpdateResult = new NetworkUpdateResult(TEST_NETWORK_ID); in testStartDppAsEnrolleeInitiatorStartCorrectlyOnSuccessCallback() 619 verify(mDppCallback).onSuccessConfigReceived(eq(TEST_NETWORK_ID)); in testStartDppAsEnrolleeInitiatorStartCorrectlyOnSuccessCallback() [all …]
|
D | SupplicantStaNetworkCallbackAidlImplTest.java | 52 private static final int TEST_NETWORK_ID = 9; field in SupplicantStaNetworkCallbackAidlImplTest 78 mSupplicantStaNetworkHalAidlImpl, TEST_NETWORK_ID, TEST_SSID, TEST_INTERFACE, in setUp() 101 eq(TEST_INTERFACE), eq(TEST_NETWORK_ID), eq(TEST_SSID), eq(0), in testOnCertificateSuccess()
|
D | WifiServiceImplTest.java | 356 private static final int TEST_NETWORK_ID = 567; field in WifiServiceImplTest 758 mWifiConfig.networkId = TEST_NETWORK_ID; in setUp() 2998 wifiInfo.setNetworkId(TEST_NETWORK_ID); in setupForGetConnectionInfo() 3084 assertEquals(TEST_NETWORK_ID, connectionInfo.getNetworkId()); in testConnectedIdsAreVisibleFromPermittedApp() 3115 assertEquals(TEST_NETWORK_ID, connectionInfo.getNetworkId()); in testConnectedIdsFromSecondaryCmmAreVisibleFromAppRequestingSecondaryCmm() 3153 assertEquals(TEST_NETWORK_ID, connectionInfo.getNetworkId()); in testConnectedIdsAreVisibleFromAppRequestingSecondaryCmmWIthPromotesSettingsWs() 3188 assertEquals(TEST_NETWORK_ID, connectionInfo.getNetworkId()); in testConnectedIdsFromPrimaryCmmAreVisibleFromAppNotRequestingSecondaryCmm() 5112 .thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID)); in testRestoreNetworkConfiguration() 5114 .thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID)); in testRestoreNetworkConfiguration() 5125 eq(TEST_NETWORK_ID), eq(false), anyInt(), eq(null)); in testRestoreNetworkConfiguration() [all …]
|
D | WifiGlobalsTest.java | 53 private static final int TEST_NETWORK_ID = 54; field in WifiGlobalsTest 208 config.networkId = TEST_NETWORK_ID; in testDeprecatedNetworkSecurityTypeWep() 226 config.networkId = TEST_NETWORK_ID; in testDeprecatedNetworkSecurityTypeWpaPersonal()
|
D | OpenNetworkNotifierTest.java | 83 private static final int TEST_NETWORK_ID = 42; field in OpenNetworkNotifierTest 143 .thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID)); in setUp() 577 verify(mConnectHelper).connectToNetwork(eq(new NetworkUpdateResult(TEST_NETWORK_ID)), in actionConnectToNetwork_currentRecommendationExists_connectsAndPostsNotification() 756 verify(mWifiMetrics).setNominatorForNetwork(TEST_NETWORK_ID, in connectionFailedCallback_postsFailedToConnectNotification() 761 verify(mConnectHelper).connectToNetwork(eq(new NetworkUpdateResult(TEST_NETWORK_ID)), in connectionFailedCallback_postsFailedToConnectNotification()
|
D | WifiLastResortWatchdogTest.java | 79 private static final int TEST_NETWORK_ID = 47; field in WifiLastResortWatchdogTest 2233 mLastResortWatchdog.noteStartConnectTime(TEST_NETWORK_ID); in testAbnormalConnectionTimeTriggersBugreport() 2240 new NetworkConnectionEventInfo(TEST_NETWORK_ID, TEST_WIFI_SSID, null, false, in testAbnormalConnectionTimeTriggersBugreport() 2246 mLastResortWatchdog.noteStartConnectTime(TEST_NETWORK_ID); in testAbnormalConnectionTimeTriggersBugreport() 2252 new NetworkConnectionEventInfo(TEST_NETWORK_ID, TEST_WIFI_SSID, null, false, in testAbnormalConnectionTimeTriggersBugreport() 2263 new NetworkConnectionEventInfo(TEST_NETWORK_ID, TEST_WIFI_SSID, null, false, in testAbnormalConnectionTimeTriggersBugreport() 2277 mLastResortWatchdog.noteStartConnectTime(TEST_NETWORK_ID); in testAbnormalConnectionTime_perNetwork() 2293 new NetworkConnectionEventInfo(TEST_NETWORK_ID, TEST_WIFI_SSID, null, false, in testAbnormalConnectionTime_perNetwork() 2311 mLastResortWatchdog.noteStartConnectTime(TEST_NETWORK_ID); in testGServicesSetDuration() 2317 new NetworkConnectionEventInfo(TEST_NETWORK_ID, TEST_WIFI_SSID, null, false, in testGServicesSetDuration() [all …]
|
D | ClientModeImplTest.java | 250 private static final int TEST_NETWORK_ID = 54; field in ClientModeImplTest 923 new NetworkUpdateResult(TEST_NETWORK_ID), in canSaveNetworkConfig() 949 new NetworkUpdateResult(TEST_NETWORK_ID, STATUS_SUCCESS, false, false, true, false), in canSaveAdminRestrictedNetworkWithoutConnecting() 969 new NetworkUpdateResult(TEST_NETWORK_ID, STATUS_SUCCESS, false, false, true, false), in canSaveDeprecatedSecurityTypeNetworkWithoutConnecting() 2710 config.networkId = TEST_NETWORK_ID; in testManualConnectNominator() 2711 when(mWifiConfigManager.getConfiguredNetwork(TEST_NETWORK_ID)).thenReturn(config); in testManualConnectNominator() 2715 new NetworkUpdateResult(TEST_NETWORK_ID), in testManualConnectNominator() 2721 verify(mWifiMetrics).setNominatorForNetwork(TEST_NETWORK_ID, in testManualConnectNominator() 9655 config.networkId = TEST_NETWORK_ID; in verifyUpdateAutoUpgradeFlagForSaeOnR() 9656 when(mWifiConfigManager.getConfiguredNetwork(TEST_NETWORK_ID)).thenReturn(config); in verifyUpdateAutoUpgradeFlagForSaeOnR() [all …]
|
D | WifiMetricsTest.java | 180 private static final int TEST_NETWORK_ID = 42; field in WifiMetricsTest 1861 config.networkId = TEST_NETWORK_ID; in setupNetworkAndVerify() 1862 mWifiMetrics.setNominatorForNetwork(TEST_NETWORK_ID, in setupNetworkAndVerify() 1962 config.networkId = TEST_NETWORK_ID; in testNetworkToNominatorNotCleared() 1963 mWifiMetrics.setNominatorForNetwork(TEST_NETWORK_ID, in testNetworkToNominatorNotCleared() 3004 when(mWcm.getConfiguredNetwork(TEST_NETWORK_ID)).thenReturn(testConfig); in testNetworkDisableReasonInUserActionEvent() 3014 TEST_NETWORK_ID); in testNetworkDisableReasonInUserActionEvent() 3043 when(mWcm.getConfiguredNetwork(TEST_NETWORK_ID)).thenReturn(testConfig); in testNetworkDisableReasonDisableAutojoinInUserActionEvent() 3050 TEST_NETWORK_ID); in testNetworkDisableReasonDisableAutojoinInUserActionEvent()
|
D | WifiNetworkSuggestionsManagerTest.java | 154 private static final int TEST_NETWORK_ID = 110; field in WifiNetworkSuggestionsManagerTest 866 eq(false))).thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID)); in testAddNetworkSuggestionsSuccessOnInPlaceModificationWhenInWcm() 4226 .thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID)); in testSendImsiProtectionNotificationOnUserAllowed() 4693 .thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID)); in testShouldNotBeIgnoredBySecureSuggestionFromSameCarrierWithNetworkDisabled()
|
D | NetworkSuggestionNominatorTest.java | 78 private static final int TEST_NETWORK_ID = 55; field in NetworkSuggestionNominatorTest
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/ |
D | WifiInfoTest.java | 66 private static final int TEST_NETWORK_ID = 5; field in WifiInfoTest 150 info.setNetworkId(TEST_NETWORK_ID); in makeWifiInfoForRedactionTest() 184 assertEquals(TEST_NETWORK_ID, info.getNetworkId()); in assertNoRedaction() 324 assertEquals(TEST_NETWORK_ID, info.getNetworkId()); in assertLocalMacAddressInfoRedaction() 610 .setNetworkId(TEST_NETWORK_ID); in testWifiInfoBuilder() 617 assertEquals(TEST_NETWORK_ID, info1.getNetworkId()); in testWifiInfoBuilder() 630 assertEquals(TEST_NETWORK_ID, info1.getNetworkId()); in testWifiInfoBuilder() 666 .setNetworkId(TEST_NETWORK_ID); in testWifiInfoEquals() 706 .setNetworkId(TEST_NETWORK_ID); in testWifiInfoEqualsWithInfoElements() 734 .setNetworkId(TEST_NETWORK_ID); in testWifiInfoHashcode() [all …]
|
D | WifiManagerTest.java | 171 private static final int TEST_NETWORK_ID = 143; field in WifiManagerTest 2673 .thenReturn(TEST_NETWORK_ID); in testAddNetwork() 2677 assertEquals(mWifiManager.addNetwork(configuration), TEST_NETWORK_ID); in testAddNetwork() local 2717 .thenReturn(TEST_NETWORK_ID); in testUpdateNetwork() 2721 configuration.networkId = TEST_NETWORK_ID; in testUpdateNetwork() 2722 assertEquals(mWifiManager.updateNetwork(configuration), TEST_NETWORK_ID); in testUpdateNetwork() local 2747 assertTrue(mWifiManager.enableNetwork(TEST_NETWORK_ID, true)); in testEnableNetwork() 2748 verify(mWifiService).enableNetwork(TEST_NETWORK_ID, true, mContext.getOpPackageName()); in testEnableNetwork() 2758 assertTrue(mWifiManager.disableNetwork(TEST_NETWORK_ID)); in testDisableNetwork() 2759 verify(mWifiService).disableNetwork(TEST_NETWORK_ID, mContext.getOpPackageName()); in testDisableNetwork() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/ |
D | SupplicantP2pIfaceCallbackHidlImplTest.java | 80 private static final int TEST_NETWORK_ID = 9; field in SupplicantP2pIfaceCallbackHidlImplTest 683 TEST_NETWORK_ID, in testOnInvitationReceived() 690 assertEquals(TEST_NETWORK_ID, group.getNetworkId()); in testOnInvitationReceived()
|
D | SupplicantP2pIfaceCallbackAidlImplTest.java | 94 private static final int TEST_NETWORK_ID = 9; field in SupplicantP2pIfaceCallbackAidlImplTest 1102 TEST_NETWORK_ID, in testOnInvitationReceived() 1109 assertEquals(TEST_NETWORK_ID, group.getNetworkId()); in testOnInvitationReceived() 1125 params.persistentNetworkId = TEST_NETWORK_ID; in testOnInvitationReceivedWithParams() 1135 assertEquals(TEST_NETWORK_ID, group.getNetworkId()); in testOnInvitationReceivedWithParams()
|
/packages/services/Telephony/tests/src/com/android/phone/ |
D | ServiceStateProviderTest.java | 92 private static final int TEST_NETWORK_ID = 123; field in ServiceStateProviderTest 136 mTestServiceState.setCdmaSystemAndNetworkId(TEST_SYSTEM_ID, TEST_NETWORK_ID); in setUp()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/ |
D | WifiPermissionsUtilTest.java | 122 private static final int TEST_NETWORK_ID = 54; field in WifiPermissionsUtilTest 1907 config.networkId = TEST_NETWORK_ID; 1934 config.networkId = TEST_NETWORK_ID; 1962 config.networkId = TEST_NETWORK_ID;
|