Home
last modified time | relevance | path

Searched refs:TEST_NETWORK_ID (Results 1 – 23 of 23) sorted by relevance

/aosp_15_r20/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointNetworkNominateHelperTest.java83 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(ScanDetail.class)); in evaluateScansWithNetworkMatchingHomeProvider()
303 any(), eq(false))).thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID)); in evaluateScansWithNoInternetBit()
304 when(mWifiConfigManager.getConfiguredNetwork(TEST_NETWORK_ID)).thenReturn(TEST_CONFIG1); in evaluateScansWithNoInternetBit()
320 eq(TEST_NETWORK_ID), eq(false), eq(TEST_UID), any()); in evaluateScansWithNoInternetBit()
322 eq(TEST_NETWORK_ID), any(ScanDetail.class)); in evaluateScansWithNoInternetBit()
344 .thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID)); in evaluateScansWithNetworkMatchingRoamingProvider()
[all …]
DOsuNetworkConnectionTest.java69 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()
DPasspointManagerTest.java192 private static final int TEST_NETWORK_ID = 2; field in PasspointManagerTest
912 .thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID)); in addSavedProviderWithExistingConfig()
923 verify(mWifiConfigManager).allowAutojoin(TEST_NETWORK_ID, origWifiConfig.allowAutojoin); in addSavedProviderWithExistingConfig()
2190 .thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID)); in addSuggestionProviderWithExistingConfig()
2198 verify(mWifiConfigManager).allowAutojoin(TEST_NETWORK_ID, origWifiConfig.allowAutojoin); in addSuggestionProviderWithExistingConfig()
/aosp_15_r20/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiScoreReportTest.java110 private static final int TEST_NETWORK_ID = 860370; field in WifiScoreReportTest
476 when(mNetwork.getNetId()).thenReturn(TEST_NETWORK_ID); in testExternalScorerWhileLingering_sendLingeringScore()
477 mWifiScoreReport.startConnectedNetworkScorer(TEST_NETWORK_ID, TEST_USER_SELECTED); in testExternalScorerWhileLingering_sendLingeringScore()
1073 assertEquals(TEST_SESSION_ID, WifiScoreReport.sessionIdFromNetId(TEST_NETWORK_ID));
1090 when(mNetwork.getNetId()).thenReturn(TEST_NETWORK_ID);
1091 mWifiScoreReport.startConnectedNetworkScorer(TEST_NETWORK_ID, TEST_USER_SELECTED);
1102 when(mNetwork.getNetId()).thenReturn(TEST_NETWORK_ID); in testClientStartOnRegWhileActive()
1103 mWifiScoreReport.startConnectedNetworkScorer(TEST_NETWORK_ID, TEST_USER_SELECTED); in testClientStartOnRegWhileActive()
1121 when(mNetwork.getNetId()).thenReturn(TEST_NETWORK_ID); in testClientGetSessionIdOnStop()
1122 mWifiScoreReport.startConnectedNetworkScorer(TEST_NETWORK_ID, TEST_USER_SELECTED); in testClientGetSessionIdOnStop()
[all …]
DConnectHelperTest.java45 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()
DWifiConfigurationTestUtil.java73 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 …]
DDppManagerTest.java114 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 …]
DWifiServiceImplTest.java364 private static final int TEST_NETWORK_ID = 567; field in WifiServiceImplTest
774 mWifiConfig.networkId = TEST_NETWORK_ID; in setUp()
3017 wifiInfo.setNetworkId(TEST_NETWORK_ID); in setupForGetConnectionInfo()
3103 assertEquals(TEST_NETWORK_ID, connectionInfo.getNetworkId()); in testConnectedIdsAreVisibleFromPermittedApp()
3134 assertEquals(TEST_NETWORK_ID, connectionInfo.getNetworkId()); in testConnectedIdsFromSecondaryCmmAreVisibleFromAppRequestingSecondaryCmm()
3172 assertEquals(TEST_NETWORK_ID, connectionInfo.getNetworkId()); in testConnectedIdsAreVisibleFromAppRequestingSecondaryCmmWIthPromotesSettingsWs()
3207 assertEquals(TEST_NETWORK_ID, connectionInfo.getNetworkId()); in testConnectedIdsFromPrimaryCmmAreVisibleFromAppNotRequestingSecondaryCmm()
5154 .thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID)); in testRestoreNetworkConfiguration()
5156 .thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID)); in testRestoreNetworkConfiguration()
5167 eq(TEST_NETWORK_ID), eq(false), anyInt(), eq(null)); in testRestoreNetworkConfiguration()
[all …]
DSupplicantStaNetworkCallbackAidlImplTest.java52 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()
DWifiGlobalsTest.java54 private static final int TEST_NETWORK_ID = 54; field in WifiGlobalsTest
215 config.networkId = TEST_NETWORK_ID; in testDeprecatedNetworkSecurityTypeWep()
233 config.networkId = TEST_NETWORK_ID; in testDeprecatedNetworkSecurityTypeWpaPersonal()
DWifiLastResortWatchdogTest.java79 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 …]
DOpenNetworkNotifierTest.java83 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()
DClientModeImplTest.java253 private static final int TEST_NETWORK_ID = 54; field in ClientModeImplTest
929 new NetworkUpdateResult(TEST_NETWORK_ID), in canSaveNetworkConfig()
955 new NetworkUpdateResult(TEST_NETWORK_ID, STATUS_SUCCESS, false, false, true, false), in canSaveAdminRestrictedNetworkWithoutConnecting()
975 new NetworkUpdateResult(TEST_NETWORK_ID, STATUS_SUCCESS, false, false, true, false), in canSaveDeprecatedSecurityTypeNetworkWithoutConnecting()
2769 config.networkId = TEST_NETWORK_ID; in testManualConnectNominator()
2770 when(mWifiConfigManager.getConfiguredNetwork(TEST_NETWORK_ID)).thenReturn(config); in testManualConnectNominator()
2774 new NetworkUpdateResult(TEST_NETWORK_ID), in testManualConnectNominator()
2780 verify(mWifiMetrics).setNominatorForNetwork(TEST_NETWORK_ID, in testManualConnectNominator()
9772 config.networkId = TEST_NETWORK_ID; in verifyUpdateAutoUpgradeFlagForSaeOnR()
9773 when(mWifiConfigManager.getConfiguredNetwork(TEST_NETWORK_ID)).thenReturn(config); in verifyUpdateAutoUpgradeFlagForSaeOnR()
[all …]
DWifiMetricsTest.java211 private static final int TEST_NETWORK_ID = 42; field in WifiMetricsTest
1916 config.networkId = TEST_NETWORK_ID; in setupNetworkAndVerify()
1917 mWifiMetrics.setNominatorForNetwork(TEST_NETWORK_ID, in setupNetworkAndVerify()
2017 config.networkId = TEST_NETWORK_ID; in testNetworkToNominatorNotCleared()
2018 mWifiMetrics.setNominatorForNetwork(TEST_NETWORK_ID, in testNetworkToNominatorNotCleared()
3059 when(mWcm.getConfiguredNetwork(TEST_NETWORK_ID)).thenReturn(testConfig); in testNetworkDisableReasonInUserActionEvent()
3069 TEST_NETWORK_ID); in testNetworkDisableReasonInUserActionEvent()
3098 when(mWcm.getConfiguredNetwork(TEST_NETWORK_ID)).thenReturn(testConfig); in testNetworkDisableReasonDisableAutojoinInUserActionEvent()
3105 TEST_NETWORK_ID); in testNetworkDisableReasonDisableAutojoinInUserActionEvent()
DWifiNetworkSuggestionsManagerTest.java156 private static final int TEST_NETWORK_ID = 110; field in WifiNetworkSuggestionsManagerTest
836 eq(false))).thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID)); in testAddNetworkSuggestionsSuccessOnInPlaceModificationWhenInWcm()
3994 .thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID)); in testSendImsiProtectionNotificationOnUserAllowed()
4452 .thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID)); in testShouldNotBeIgnoredBySecureSuggestionFromSameCarrierWithNetworkDisabled()
4826 eq(false))).thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID)); in testSetAnonymousIdentityNullOnSuggestionNetwork()
DNetworkSuggestionNominatorTest.java78 private static final int TEST_NETWORK_ID = 55; field in NetworkSuggestionNominatorTest
/aosp_15_r20/cts/tests/tests/wifi/src/android/net/wifi/cts/
H A DWifiInfoTest.java86 private static final int TEST_NETWORK_ID = 5; field in WifiInfoTest
249 .setNetworkId(TEST_NETWORK_ID); in testWifiInfoBuilder()
256 assertThat(info1.getNetworkId()).isEqualTo(TEST_NETWORK_ID); in testWifiInfoBuilder()
277 assertThat(info1.getNetworkId()).isEqualTo(TEST_NETWORK_ID); in testWifiInfoBuilder()
296 .setNetworkId(TEST_NETWORK_ID); in testWifiInfoCurrentSecurityType()
316 .setNetworkId(TEST_NETWORK_ID); in testWifiInfoMloAttributes()
341 .setNetworkId(TEST_NETWORK_ID); in testWifiInfoSetAndGetVendorData()
362 .setNetworkId(TEST_NETWORK_ID); in testGetPasspointUniqueId()
/aosp_15_r20/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DWifiInfoTest.java66 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 …]
DWifiManagerTest.java176 private static final int TEST_NETWORK_ID = 143; field in WifiManagerTest
2736 .thenReturn(TEST_NETWORK_ID); in testAddNetwork()
2740 assertEquals(mWifiManager.addNetwork(configuration), TEST_NETWORK_ID); in testAddNetwork() local
2780 .thenReturn(TEST_NETWORK_ID); in testUpdateNetwork()
2784 configuration.networkId = TEST_NETWORK_ID; in testUpdateNetwork()
2785 assertEquals(mWifiManager.updateNetwork(configuration), TEST_NETWORK_ID); in testUpdateNetwork() local
2810 assertTrue(mWifiManager.enableNetwork(TEST_NETWORK_ID, true)); in testEnableNetwork()
2811 verify(mWifiService).enableNetwork(TEST_NETWORK_ID, true, mContext.getOpPackageName()); in testEnableNetwork()
2821 assertTrue(mWifiManager.disableNetwork(TEST_NETWORK_ID)); in testDisableNetwork()
2822 verify(mWifiService).disableNetwork(TEST_NETWORK_ID, mContext.getOpPackageName()); in testDisableNetwork()
[all …]
/aosp_15_r20/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/
DSupplicantP2pIfaceCallbackHidlImplTest.java80 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()
DSupplicantP2pIfaceCallbackAidlImplTest.java104 private static final int TEST_NETWORK_ID = 9; field in SupplicantP2pIfaceCallbackAidlImplTest
1148 TEST_NETWORK_ID, in testOnInvitationReceived()
1155 assertEquals(TEST_NETWORK_ID, group.getNetworkId()); in testOnInvitationReceived()
1171 params.persistentNetworkId = TEST_NETWORK_ID; in testOnInvitationReceivedWithParams()
1181 assertEquals(TEST_NETWORK_ID, group.getNetworkId()); in testOnInvitationReceivedWithParams()
/aosp_15_r20/packages/services/Telephony/tests/src/com/android/phone/
DServiceStateProviderTest.java92 private static final int TEST_NETWORK_ID = 123; field in ServiceStateProviderTest
136 mTestServiceState.setCdmaSystemAndNetworkId(TEST_SYSTEM_ID, TEST_NETWORK_ID); in setUp()
/aosp_15_r20/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DWifiPermissionsUtilTest.java122 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;