Home
last modified time | relevance | path

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

/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(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 …]
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
914 .thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID)); in addSavedProviderWithExistingConfig()
925 verify(mWifiConfigManager).allowAutojoin(TEST_NETWORK_ID, origWifiConfig.allowAutojoin); in addSavedProviderWithExistingConfig()
2186 .thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID)); in addSuggestionProviderWithExistingConfig()
2194 verify(mWifiConfigManager).allowAutojoin(TEST_NETWORK_ID, origWifiConfig.allowAutojoin); in addSuggestionProviderWithExistingConfig()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiScoreReportTest.java103 private static final int TEST_NETWORK_ID = 860370; field in WifiScoreReportTest
452 when(mNetwork.getNetId()).thenReturn(TEST_NETWORK_ID); in testExternalScorerWhileLingering_sendLingeringScore()
453 mWifiScoreReport.startConnectedNetworkScorer(TEST_NETWORK_ID, TEST_USER_SELECTED); in testExternalScorerWhileLingering_sendLingeringScore()
980 assertEquals(TEST_SESSION_ID, WifiScoreReport.sessionIdFromNetId(TEST_NETWORK_ID));
996 when(mNetwork.getNetId()).thenReturn(TEST_NETWORK_ID);
997 mWifiScoreReport.startConnectedNetworkScorer(TEST_NETWORK_ID, TEST_USER_SELECTED);
1008 when(mNetwork.getNetId()).thenReturn(TEST_NETWORK_ID); in testClientStartOnRegWhileActive()
1009 mWifiScoreReport.startConnectedNetworkScorer(TEST_NETWORK_ID, TEST_USER_SELECTED); in testClientStartOnRegWhileActive()
1025 when(mNetwork.getNetId()).thenReturn(TEST_NETWORK_ID); in testClientGetSessionIdOnStop()
1026 mWifiScoreReport.startConnectedNetworkScorer(TEST_NETWORK_ID, TEST_USER_SELECTED); in testClientGetSessionIdOnStop()
[all …]
DConnectHelperTest.java44 private static final int TEST_NETWORK_ID = 42; field in ConnectHelperTest
68 mWifiConfig.networkId = TEST_NETWORK_ID; in setUp()
73 when(mWifiConfigManager.getConfiguredNetwork(TEST_NETWORK_ID)).thenReturn(mWifiConfig); in connectToNetwork_success()
75 NetworkUpdateResult result = new NetworkUpdateResult(TEST_NETWORK_ID); in connectToNetwork_success()
79 verify(mWifiConfigManager).updateBeforeConnect(TEST_NETWORK_ID, TEST_CALLING_UID, in connectToNetwork_success()
90 when(mWifiConfigManager.getConfiguredNetwork(TEST_NETWORK_ID)).thenReturn(null); in connectToNetwork_invalidNetId_failure()
92 mConnectHelper.connectToNetwork(new NetworkUpdateResult(TEST_NETWORK_ID), mActionListener, in connectToNetwork_invalidNetId_failure()
95 verify(mWifiConfigManager, never()).updateBeforeConnect(TEST_NETWORK_ID, TEST_CALLING_UID, in connectToNetwork_invalidNetId_failure()
DWifiConfigurationTestUtil.java73 public static final int TEST_NETWORK_ID = -1; field in WifiConfigurationTestUtil
291 return generateWifiConfig(TEST_NETWORK_ID, TEST_UID, ssid, true, true, null, in createOweNetwork()
301 TEST_NETWORK_ID, TEST_UID, ssid, true, true, null, in createOpenNetwork()
312 TEST_NETWORK_ID, TEST_UID, ssid, true, true, null, in createOpenOweNetwork()
344 generateWifiConfig(TEST_NETWORK_ID, TEST_UID, ssid, true, true, null, in createPskNetwork()
356 generateWifiConfig(TEST_NETWORK_ID, TEST_UID, ssid, true, true, null, in createPskSaeNetwork()
369 generateWifiConfig(TEST_NETWORK_ID, TEST_UID, ssid, true, true, null, in createSaeNetwork()
386 generateWifiConfig(TEST_NETWORK_ID, TEST_UID, createNewSSID(), true, true, null, in createWepNetwork()
401 generateWifiConfig(TEST_NETWORK_ID, TEST_UID, createNewSSID(), true, true, null, in createWepNetworkWithSingleKey()
426 generateWifiConfig(TEST_NETWORK_ID, TEST_UID, ssid, true, true, in createEapNetwork()
[all …]
DDppManagerTest.java113 private static final int TEST_NETWORK_ID = 1; field in DppManagerTest
252 selectedNetwork.networkId = TEST_NETWORK_ID; in testStartDppAsConfiguratorInitiatorFailAddPeer()
304 selectedNetwork.networkId = TEST_NETWORK_ID; in testStartDppAsConfiguratorInitiatorFailStart()
354 selectedNetwork.networkId = TEST_NETWORK_ID; in testStartDppAsConfiguratorInitiatorStartCorrectlyWpa2Psk()
381 selectedNetwork.networkId = TEST_NETWORK_ID; in testStartDppAsConfiguratorInitiatorStartCorrectlyWpa3Sae()
407 selectedNetwork.networkId = TEST_NETWORK_ID; in testStartDppAsConfiguratorInitiatorFailOpenNetwork()
432 selectedNetwork.networkId = TEST_NETWORK_ID; in testStartDppAsConfiguratorInitiatorFailEapNetwork()
602 selectedNetwork.networkId = TEST_NETWORK_ID; in testStartDppAsEnrolleeInitiatorStartCorrectlyOnSuccessCallback()
612 NetworkUpdateResult networkUpdateResult = new NetworkUpdateResult(TEST_NETWORK_ID); in testStartDppAsEnrolleeInitiatorStartCorrectlyOnSuccessCallback()
618 verify(mDppCallback).onSuccessConfigReceived(eq(TEST_NETWORK_ID)); in testStartDppAsEnrolleeInitiatorStartCorrectlyOnSuccessCallback()
[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.java49 private static final int TEST_NETWORK_ID = 54; field in WifiGlobalsTest
155 config.networkId = TEST_NETWORK_ID; in testDeprecatedNetworkSecurityTypeWep()
173 config.networkId = TEST_NETWORK_ID; in testDeprecatedNetworkSecurityTypeWpaPersonal()
DWifiServiceImplTest.java325 private static final int TEST_NETWORK_ID = 567; field in WifiServiceImplTest
694 mWifiConfig.networkId = TEST_NETWORK_ID; in setUp()
2779 wifiInfo.setNetworkId(TEST_NETWORK_ID); in setupForGetConnectionInfo()
2863 assertEquals(TEST_NETWORK_ID, connectionInfo.getNetworkId()); in testConnectedIdsAreVisibleFromPermittedApp()
2891 assertEquals(TEST_NETWORK_ID, connectionInfo.getNetworkId()); in testConnectedIdsFromSecondaryCmmAreVisibleFromAppRequestingSecondaryCmm()
2926 assertEquals(TEST_NETWORK_ID, connectionInfo.getNetworkId()); in testConnectedIdsAreVisibleFromAppRequestingSecondaryCmmWIthPromotesSettingsWs()
2964 assertEquals(TEST_NETWORK_ID, connectionInfo.getNetworkId()); in testConnectedIdsFromPrimaryCmmAreVisibleFromAppNotRequestingSecondaryCmm()
4856 .thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID)); in testRestoreNetworkConfiguration()
4858 .thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID)); in testRestoreNetworkConfiguration()
4869 eq(TEST_NETWORK_ID), eq(false), anyInt(), eq(null)); in testRestoreNetworkConfiguration()
[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()
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 …]
DClientModeImplTest.java240 private static final int TEST_NETWORK_ID = 54; field in ClientModeImplTest
880 new NetworkUpdateResult(TEST_NETWORK_ID), in canSaveNetworkConfig()
906 new NetworkUpdateResult(TEST_NETWORK_ID, STATUS_SUCCESS, false, false, true, false), in canSaveAdminRestrictedNetworkWithoutConnecting()
926 new NetworkUpdateResult(TEST_NETWORK_ID, STATUS_SUCCESS, false, false, true, false), in canSaveDeprecatedSecurityTypeNetworkWithoutConnecting()
2392 config.networkId = TEST_NETWORK_ID; in testManualConnectNominator()
2393 when(mWifiConfigManager.getConfiguredNetwork(TEST_NETWORK_ID)).thenReturn(config); in testManualConnectNominator()
2397 new NetworkUpdateResult(TEST_NETWORK_ID), in testManualConnectNominator()
2403 verify(mWifiMetrics).setNominatorForNetwork(TEST_NETWORK_ID, in testManualConnectNominator()
8957 config.networkId = TEST_NETWORK_ID; in verifyUpdateAutoUpgradeFlagForSaeOnR()
8958 when(mWifiConfigManager.getConfiguredNetwork(TEST_NETWORK_ID)).thenReturn(config); in verifyUpdateAutoUpgradeFlagForSaeOnR()
[all …]
DWifiMetricsTest.java174 private static final int TEST_NETWORK_ID = 42; field in WifiMetricsTest
1841 config.networkId = TEST_NETWORK_ID; in setupNetworkAndVerify()
1842 mWifiMetrics.setNominatorForNetwork(TEST_NETWORK_ID, in setupNetworkAndVerify()
1940 config.networkId = TEST_NETWORK_ID; in testNetworkToNominatorNotCleared()
1941 mWifiMetrics.setNominatorForNetwork(TEST_NETWORK_ID, in testNetworkToNominatorNotCleared()
2954 when(mWcm.getConfiguredNetwork(TEST_NETWORK_ID)).thenReturn(testConfig); in testNetworkDisableReasonInUserActionEvent()
2964 TEST_NETWORK_ID); in testNetworkDisableReasonInUserActionEvent()
2993 when(mWcm.getConfiguredNetwork(TEST_NETWORK_ID)).thenReturn(testConfig); in testNetworkDisableReasonDisableAutojoinInUserActionEvent()
3000 TEST_NETWORK_ID); in testNetworkDisableReasonDisableAutojoinInUserActionEvent()
DWifiNetworkSuggestionsManagerTest.java151 private static final int TEST_NETWORK_ID = 110; field in WifiNetworkSuggestionsManagerTest
856 eq(false))).thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID)); in testAddNetworkSuggestionsSuccessOnInPlaceModificationWhenInWcm()
4216 .thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID)); in testSendImsiProtectionNotificationOnUserAllowed()
4672 .thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID)); in testShouldNotBeIgnoredBySecureSuggestionFromSameCarrierWithNetworkDisabled()
DNetworkSuggestionNominatorTest.java65 private static final int TEST_NETWORK_ID = 55; field in NetworkSuggestionNominatorTest
/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DWifiInfoTest.java66 private static final int TEST_NETWORK_ID = 5; field in WifiInfoTest
148 info.setNetworkId(TEST_NETWORK_ID); in makeWifiInfoForRedactionTest()
179 assertEquals(TEST_NETWORK_ID, info.getNetworkId()); in assertNoRedaction()
316 assertEquals(TEST_NETWORK_ID, info.getNetworkId()); in assertLocalMacAddressInfoRedaction()
592 .setNetworkId(TEST_NETWORK_ID); in testWifiInfoBuilder()
599 assertEquals(TEST_NETWORK_ID, info1.getNetworkId()); in testWifiInfoBuilder()
612 assertEquals(TEST_NETWORK_ID, info1.getNetworkId()); in testWifiInfoBuilder()
648 .setNetworkId(TEST_NETWORK_ID); in testWifiInfoEquals()
688 .setNetworkId(TEST_NETWORK_ID); in testWifiInfoEqualsWithInfoElements()
716 .setNetworkId(TEST_NETWORK_ID); in testWifiInfoHashcode()
[all …]
DWifiManagerTest.java161 private static final int TEST_NETWORK_ID = 143; field in WifiManagerTest
2635 .thenReturn(TEST_NETWORK_ID); in testAddNetwork()
2639 assertEquals(mWifiManager.addNetwork(configuration), TEST_NETWORK_ID); in testAddNetwork() local
2679 .thenReturn(TEST_NETWORK_ID); in testUpdateNetwork()
2683 configuration.networkId = TEST_NETWORK_ID; in testUpdateNetwork()
2684 assertEquals(mWifiManager.updateNetwork(configuration), TEST_NETWORK_ID); in testUpdateNetwork() local
2709 assertTrue(mWifiManager.enableNetwork(TEST_NETWORK_ID, true)); in testEnableNetwork()
2710 verify(mWifiService).enableNetwork(TEST_NETWORK_ID, true, mContext.getOpPackageName()); in testEnableNetwork()
2720 assertTrue(mWifiManager.disableNetwork(TEST_NETWORK_ID)); in testDisableNetwork()
2721 verify(mWifiService).disableNetwork(TEST_NETWORK_ID, mContext.getOpPackageName()); in testDisableNetwork()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/
DSupplicantP2pIfaceCallbackHidlImplTest.java79 private static final int TEST_NETWORK_ID = 9; field in SupplicantP2pIfaceCallbackHidlImplTest
678 TEST_NETWORK_ID, in testOnInvitationReceived()
685 assertEquals(TEST_NETWORK_ID, group.getNetworkId()); in testOnInvitationReceived()
DSupplicantP2pIfaceCallbackAidlImplTest.java82 private static final int TEST_NETWORK_ID = 9; field in SupplicantP2pIfaceCallbackAidlImplTest
787 TEST_NETWORK_ID, in testOnInvitationReceived()
794 assertEquals(TEST_NETWORK_ID, group.getNetworkId()); in testOnInvitationReceived()
/packages/services/Telephony/tests/src/com/android/phone/
DServiceStateProviderTest.java92 private static final int TEST_NETWORK_ID = 123; field in ServiceStateProviderTest
131 mTestServiceState.setCdmaSystemAndNetworkId(TEST_SYSTEM_ID, TEST_NETWORK_ID); in setUp()
/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
1952 config.networkId = TEST_NETWORK_ID;
1979 config.networkId = TEST_NETWORK_ID;
2007 config.networkId = TEST_NETWORK_ID;