Home
last modified time | relevance | path

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

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointNetworkNominateHelperTest.java79 private static final int TEST_NETWORK_ID = 1; field in PasspointNetworkNominateHelperTest
231 any(), eq(false))).thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID)); in evaluateScansWithNetworkMatchingHomeProvider()
232 when(mWifiConfigManager.getConfiguredNetwork(TEST_NETWORK_ID)).thenReturn(TEST_CONFIG1); in evaluateScansWithNetworkMatchingHomeProvider()
249 eq(TEST_NETWORK_ID), eq(false), eq(TEST_UID), any()); in evaluateScansWithNetworkMatchingHomeProvider()
251 eq(TEST_NETWORK_ID), any(ScanResult.class), anyInt(), any()); in evaluateScansWithNetworkMatchingHomeProvider()
253 eq(TEST_NETWORK_ID), any(ScanDetail.class)); in evaluateScansWithNetworkMatchingHomeProvider()
280 any(), eq(false))).thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID)); in evaluateScansWithNoInternetBit()
281 when(mWifiConfigManager.getConfiguredNetwork(TEST_NETWORK_ID)).thenReturn(TEST_CONFIG1); in evaluateScansWithNoInternetBit()
297 eq(TEST_NETWORK_ID), eq(false), eq(TEST_UID), any()); in evaluateScansWithNoInternetBit()
299 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.java189 private static final int TEST_NETWORK_ID = 2; field in PasspointManagerTest
904 .thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID)); in addSavedProviderWithExistingConfig()
915 verify(mWifiConfigManager).allowAutojoin(TEST_NETWORK_ID, origWifiConfig.allowAutojoin); in addSavedProviderWithExistingConfig()
2152 .thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID)); in addSuggestionProviderWithExistingConfig()
2160 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
440 when(mNetwork.getNetId()).thenReturn(TEST_NETWORK_ID); in testExternalScorerWhileLingering_sendLingeringScore()
441 mWifiScoreReport.startConnectedNetworkScorer(TEST_NETWORK_ID, TEST_USER_SELECTED); in testExternalScorerWhileLingering_sendLingeringScore()
968 assertEquals(TEST_SESSION_ID, WifiScoreReport.sessionIdFromNetId(TEST_NETWORK_ID));
984 when(mNetwork.getNetId()).thenReturn(TEST_NETWORK_ID);
985 mWifiScoreReport.startConnectedNetworkScorer(TEST_NETWORK_ID, TEST_USER_SELECTED);
996 when(mNetwork.getNetId()).thenReturn(TEST_NETWORK_ID); in testClientStartOnRegWhileActive()
997 mWifiScoreReport.startConnectedNetworkScorer(TEST_NETWORK_ID, TEST_USER_SELECTED); in testClientStartOnRegWhileActive()
1013 when(mNetwork.getNetId()).thenReturn(TEST_NETWORK_ID); in testClientGetSessionIdOnStop()
1014 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.java72 public static final int TEST_NETWORK_ID = -1; field in WifiConfigurationTestUtil
290 return generateWifiConfig(TEST_NETWORK_ID, TEST_UID, ssid, true, true, null, in createOweNetwork()
300 TEST_NETWORK_ID, TEST_UID, ssid, true, true, null, in createOpenNetwork()
311 TEST_NETWORK_ID, TEST_UID, ssid, true, true, null, in createOpenOweNetwork()
343 generateWifiConfig(TEST_NETWORK_ID, TEST_UID, ssid, true, true, null, in createPskNetwork()
355 generateWifiConfig(TEST_NETWORK_ID, TEST_UID, ssid, true, true, null, in createPskSaeNetwork()
368 generateWifiConfig(TEST_NETWORK_ID, TEST_UID, ssid, true, true, null, in createSaeNetwork()
385 generateWifiConfig(TEST_NETWORK_ID, TEST_UID, createNewSSID(), true, true, null, in createWepNetwork()
400 generateWifiConfig(TEST_NETWORK_ID, TEST_UID, createNewSSID(), true, true, null, in createWepNetworkWithSingleKey()
425 generateWifiConfig(TEST_NETWORK_ID, TEST_UID, ssid, true, true, in createEapNetwork()
[all …]
DDppManagerTest.java112 private static final int TEST_NETWORK_ID = 1; field in DppManagerTest
242 selectedNetwork.networkId = TEST_NETWORK_ID; in testStartDppAsConfiguratorInitiatorFailAddPeer()
294 selectedNetwork.networkId = TEST_NETWORK_ID; in testStartDppAsConfiguratorInitiatorFailStart()
344 selectedNetwork.networkId = TEST_NETWORK_ID; in testStartDppAsConfiguratorInitiatorStartCorrectlyWpa2Psk()
371 selectedNetwork.networkId = TEST_NETWORK_ID; in testStartDppAsConfiguratorInitiatorStartCorrectlyWpa3Sae()
397 selectedNetwork.networkId = TEST_NETWORK_ID; in testStartDppAsConfiguratorInitiatorFailOpenNetwork()
422 selectedNetwork.networkId = TEST_NETWORK_ID; in testStartDppAsConfiguratorInitiatorFailEapNetwork()
592 selectedNetwork.networkId = TEST_NETWORK_ID; in testStartDppAsEnrolleeInitiatorStartCorrectlyOnSuccessCallback()
602 NetworkUpdateResult networkUpdateResult = new NetworkUpdateResult(TEST_NETWORK_ID); in testStartDppAsEnrolleeInitiatorStartCorrectlyOnSuccessCallback()
608 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()
DWifiServiceImplTest.java292 private static final int TEST_NETWORK_ID = 567; field in WifiServiceImplTest
630 mWifiConfig.networkId = TEST_NETWORK_ID; in setUp()
2682 wifiInfo.setNetworkId(TEST_NETWORK_ID); in setupForGetConnectionInfo()
2766 assertEquals(TEST_NETWORK_ID, connectionInfo.getNetworkId()); in testConnectedIdsAreVisibleFromPermittedApp()
2794 assertEquals(TEST_NETWORK_ID, connectionInfo.getNetworkId()); in testConnectedIdsFromSecondaryCmmAreVisibleFromAppRequestingSecondaryCmm()
2822 assertEquals(TEST_NETWORK_ID, connectionInfo.getNetworkId()); in testConnectedIdsFromPrimaryCmmAreVisibleFromAppNotRequestingSecondaryCmm()
4720 .thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID)); in testRestoreNetworkConfiguration()
4725 eq(TEST_NETWORK_ID), eq(false), anyInt(), eq(null)); in testRestoreNetworkConfiguration()
4726 verify(mWifiConfigManager, times(configNum)).allowAutojoin(eq(TEST_NETWORK_ID), in testRestoreNetworkConfiguration()
4992 mWifiServiceImpl.connect(mock(WifiConfiguration.class), TEST_NETWORK_ID, in testConnectNetworkWithoutPrivilegedPermission() local
[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()
753 verify(mWifiMetrics).setNominatorForNetwork(TEST_NETWORK_ID, in connectionFailedCallback_postsFailedToConnectNotification()
758 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
2234 mLastResortWatchdog.noteStartConnectTime(TEST_NETWORK_ID); in testAbnormalConnectionTimeTriggersBugreport()
2241 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()
2262 new NetworkConnectionEventInfo(TEST_NETWORK_ID, TEST_WIFI_SSID, null, false))); in testAbnormalConnectionTimeTriggersBugreport()
2275 mLastResortWatchdog.noteStartConnectTime(TEST_NETWORK_ID); in testAbnormalConnectionTime_perNetwork()
2290 new NetworkConnectionEventInfo(TEST_NETWORK_ID, TEST_WIFI_SSID, null, false))); in testAbnormalConnectionTime_perNetwork()
2307 mLastResortWatchdog.noteStartConnectTime(TEST_NETWORK_ID); in testGServicesSetDuration()
2313 new NetworkConnectionEventInfo(TEST_NETWORK_ID, TEST_WIFI_SSID, null, false))); in testGServicesSetDuration()
[all …]
DWifiMetricsTest.java172 private static final int TEST_NETWORK_ID = 42; field in WifiMetricsTest
1825 config.networkId = TEST_NETWORK_ID; in setupNetworkAndVerify()
1826 mWifiMetrics.setNominatorForNetwork(TEST_NETWORK_ID, in setupNetworkAndVerify()
1919 config.networkId = TEST_NETWORK_ID; in testNetworkToNominatorNotCleared()
1920 mWifiMetrics.setNominatorForNetwork(TEST_NETWORK_ID, in testNetworkToNominatorNotCleared()
2895 when(mWcm.getConfiguredNetwork(TEST_NETWORK_ID)).thenReturn(testConfig); in testNetworkDisableReasonInUserActionEvent()
2905 TEST_NETWORK_ID); in testNetworkDisableReasonInUserActionEvent()
2934 when(mWcm.getConfiguredNetwork(TEST_NETWORK_ID)).thenReturn(testConfig); in testNetworkDisableReasonDisableAutojoinInUserActionEvent()
2941 TEST_NETWORK_ID); in testNetworkDisableReasonDisableAutojoinInUserActionEvent()
DClientModeImplTest.java231 private static final int TEST_NETWORK_ID = 54; field in ClientModeImplTest
854 new NetworkUpdateResult(TEST_NETWORK_ID), in canSaveNetworkConfig()
880 new NetworkUpdateResult(TEST_NETWORK_ID, false, false, true, false), in canSaveAdminRestrictedNetworkWithoutConnecting()
2146 config.networkId = TEST_NETWORK_ID; in testManualConnectNominator()
2147 when(mWifiConfigManager.getConfiguredNetwork(TEST_NETWORK_ID)).thenReturn(config); in testManualConnectNominator()
2151 new NetworkUpdateResult(TEST_NETWORK_ID), in testManualConnectNominator()
2157 verify(mWifiMetrics).setNominatorForNetwork(TEST_NETWORK_ID, in testManualConnectNominator()
7761 config.networkId = TEST_NETWORK_ID; in verifyUpdateAutoUpgradeFlagForSaeOnR()
7762 when(mWifiConfigManager.getConfiguredNetwork(TEST_NETWORK_ID)).thenReturn(config); in verifyUpdateAutoUpgradeFlagForSaeOnR()
7766 new NetworkUpdateResult(TEST_NETWORK_ID), in verifyUpdateAutoUpgradeFlagForSaeOnR()
[all …]
DWifiNetworkSuggestionsManagerTest.java150 private static final int TEST_NETWORK_ID = 110; field in WifiNetworkSuggestionsManagerTest
846 eq(false))).thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID)); in testAddNetworkSuggestionsSuccessOnInPlaceModificationWhenInWcm()
4160 .thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID)); in testSendImsiProtectionNotificationOnUserAllowed()
4543 .thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID)); in testShouldNotBeIgnoredBySecureSuggestionFromSameCarrierWithNetworkDisabled()
DNetworkSuggestionNominatorTest.java63 private static final int TEST_NETWORK_ID = 55; field in NetworkSuggestionNominatorTest
/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DWifiInfoTest.java65 private static final int TEST_NETWORK_ID = 5; field in WifiInfoTest
128 info.setNetworkId(TEST_NETWORK_ID); in makeWifiInfoForRedactionTest()
159 assertEquals(TEST_NETWORK_ID, info.getNetworkId()); in assertNoRedaction()
296 assertEquals(TEST_NETWORK_ID, info.getNetworkId()); in assertLocalMacAddressInfoRedaction()
564 .setNetworkId(TEST_NETWORK_ID); in testWifiInfoBuilder()
571 assertEquals(TEST_NETWORK_ID, info1.getNetworkId()); in testWifiInfoBuilder()
584 assertEquals(TEST_NETWORK_ID, info1.getNetworkId()); in testWifiInfoBuilder()
620 .setNetworkId(TEST_NETWORK_ID); in testWifiInfoEquals()
660 .setNetworkId(TEST_NETWORK_ID); in testWifiInfoEqualsWithInfoElements()
688 .setNetworkId(TEST_NETWORK_ID); in testWifiInfoHashcode()
[all …]
DWifiManagerTest.java155 private static final int TEST_NETWORK_ID = 143; field in WifiManagerTest
2593 .thenReturn(TEST_NETWORK_ID); in testAddNetwork()
2597 assertEquals(mWifiManager.addNetwork(configuration), TEST_NETWORK_ID); in testAddNetwork() local
2637 .thenReturn(TEST_NETWORK_ID); in testUpdateNetwork()
2641 configuration.networkId = TEST_NETWORK_ID; in testUpdateNetwork()
2642 assertEquals(mWifiManager.updateNetwork(configuration), TEST_NETWORK_ID); in testUpdateNetwork() local
2667 assertTrue(mWifiManager.enableNetwork(TEST_NETWORK_ID, true)); in testEnableNetwork()
2668 verify(mWifiService).enableNetwork(TEST_NETWORK_ID, true, mContext.getOpPackageName()); in testEnableNetwork()
2678 assertTrue(mWifiManager.disableNetwork(TEST_NETWORK_ID)); in testDisableNetwork()
2679 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
679 TEST_NETWORK_ID, in testOnInvitationReceived()
686 assertEquals(TEST_NETWORK_ID, group.getNetworkId()); in testOnInvitationReceived()
DSupplicantP2pIfaceCallbackAidlImplTest.java78 private static final int TEST_NETWORK_ID = 9; field in SupplicantP2pIfaceCallbackAidlImplTest
665 TEST_NETWORK_ID, in testOnInvitationReceived()
672 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.java121 private static final int TEST_NETWORK_ID = 54; field in WifiPermissionsUtilTest
1759 config.networkId = TEST_NETWORK_ID;
1785 config.networkId = TEST_NETWORK_ID;
1812 config.networkId = TEST_NETWORK_ID;