/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | PasspointNetworkEvaluatorTest.java | 71 private static final int TEST_NETWORK_ID = 1; field in PasspointNetworkEvaluatorTest 222 .thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID)); in evaluateScansWithNetworkMatchingHomeProvider() 223 when(mWifiConfigManager.getConfiguredNetwork(TEST_NETWORK_ID)).thenReturn(TEST_CONFIG1); in evaluateScansWithNetworkMatchingHomeProvider() 237 verify(mWifiConfigManager).enableNetwork(eq(TEST_NETWORK_ID), eq(false), anyInt()); in evaluateScansWithNetworkMatchingHomeProvider() 239 eq(TEST_NETWORK_ID), any(ScanResult.class), anyInt()); in evaluateScansWithNetworkMatchingHomeProvider() 241 eq(TEST_NETWORK_ID), any(ScanDetail.class)); in evaluateScansWithNetworkMatchingHomeProvider() 265 .thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID)); in evaluateScansWithNetworkMatchingRoamingProvider() 266 when(mWifiConfigManager.getConfiguredNetwork(TEST_NETWORK_ID)).thenReturn(TEST_CONFIG1); in evaluateScansWithNetworkMatchingRoamingProvider() 280 verify(mWifiConfigManager).enableNetwork(eq(TEST_NETWORK_ID), eq(false), anyInt()); in evaluateScansWithNetworkMatchingRoamingProvider() 282 eq(TEST_NETWORK_ID), any(ScanResult.class), anyInt()); in evaluateScansWithNetworkMatchingRoamingProvider() [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() 190 verify(mWifiManager, never()).removeNetwork(TEST_NETWORK_ID); in verifyNetworkConnectionWhenAddNetworkFails() 199 when(mWifiManager.enableNetwork(TEST_NETWORK_ID, true)).thenReturn(false); in verifyNetworkConnectionWhenEnableNetworkFails() 202 verify(mWifiManager).removeNetwork(TEST_NETWORK_ID); in verifyNetworkConnectionWhenEnableNetworkFails() 233 verify(mWifiManager).removeNetwork(TEST_NETWORK_ID); in verifyNetworkCallbackInvokedWhenConnected() 285 verify(mWifiManager).removeNetwork(TEST_NETWORK_ID); in verifyNetworkConnectionTimeout() 301 verify(mWifiManager).removeNetwork(TEST_NETWORK_ID); in verifyNetworkDisconnect()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiConfigurationTestUtil.java | 66 public static final int TEST_NETWORK_ID = -1; field in WifiConfigurationTestUtil 252 return generateWifiConfig(TEST_NETWORK_ID, TEST_UID, ssid, true, true, null, in createOweNetwork() 261 return generateWifiConfig(TEST_NETWORK_ID, TEST_UID, ssid, true, true, null, in createOpenNetwork() 279 generateWifiConfig(TEST_NETWORK_ID, TEST_UID, createNewSSID(), true, true, null, in createSaeNetwork() 290 generateWifiConfig(TEST_NETWORK_ID, TEST_UID, createNewSSID(), true, true, null, in createPskNetwork() 298 generateWifiConfig(TEST_NETWORK_ID, TEST_UID, ssid, true, true, null, in createPskNetwork() 306 generateWifiConfig(TEST_NETWORK_ID, TEST_UID, ssid, true, true, null, in createSaeNetwork() 319 generateWifiConfig(TEST_NETWORK_ID, TEST_UID, createNewSSID(), true, true, null, in createWepNetwork() 334 generateWifiConfig(TEST_NETWORK_ID, TEST_UID, createNewSSID(), true, true, null, in createWepNetworkWithSingleKey() 344 generateWifiConfig(TEST_NETWORK_ID, TEST_UID, createNewSSID(), true, true, in createEapNetwork() [all …]
|
D | DppManagerTest.java | 81 private static final int TEST_NETWORK_ID = 1; field in DppManagerTest 169 selectedNetwork.networkId = TEST_NETWORK_ID; in testStartDppAsConfiguratorInitiatorFailAddPeer() 215 selectedNetwork.networkId = TEST_NETWORK_ID; in testStartDppAsConfiguratorInitiatorFailStart() 259 selectedNetwork.networkId = TEST_NETWORK_ID; in testStartDppAsConfiguratorInitiatorStartCorrectlyWpa2Psk() 284 selectedNetwork.networkId = TEST_NETWORK_ID; in testStartDppAsConfiguratorInitiatorStartCorrectlyWpa3Sae() 309 selectedNetwork.networkId = TEST_NETWORK_ID; in testStartDppAsConfiguratorInitiatorFailOpenNetwork() 332 selectedNetwork.networkId = TEST_NETWORK_ID; in testStartDppAsConfiguratorInitiatorFailEapNetwork() 482 selectedNetwork.networkId = TEST_NETWORK_ID; in testStartDppAsEnrolleeInitiatorStartCorrectlyOnSuccessCallback() 492 NetworkUpdateResult networkUpdateResult = new NetworkUpdateResult(TEST_NETWORK_ID); in testStartDppAsEnrolleeInitiatorStartCorrectlyOnSuccessCallback() 498 verify(mDppCallback).onSuccessConfigReceived(TEST_NETWORK_ID); in testStartDppAsEnrolleeInitiatorStartCorrectlyOnSuccessCallback() [all …]
|
D | NetworkSuggestionEvaluatorTest.java | 56 private static final int TEST_NETWORK_ID = 55; field in NetworkSuggestionEvaluatorTest 638 .thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID + i)); in setupAddToWifiConfigManager() 639 when(mWifiConfigManager.updateNetworkSelectionStatus(eq(TEST_NETWORK_ID + i), anyInt())) in setupAddToWifiConfigManager() 641 candidate.networkId = TEST_NETWORK_ID + i; in setupAddToWifiConfigManager() 642 when(mWifiConfigManager.getConfiguredNetwork(TEST_NETWORK_ID + i)) in setupAddToWifiConfigManager()
|
D | CarrierNetworkNotifierTest.java | 76 private static final int TEST_NETWORK_ID = 42; field in CarrierNetworkNotifierTest 133 .thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID)); in setUp() 693 verify(mWifiMetrics).setNominatorForNetwork(TEST_NETWORK_ID, in connectionFailedCallback_postsFailedToConnectNotification()
|
D | OpenNetworkNotifierTest.java | 76 private static final int TEST_NETWORK_ID = 42; field in OpenNetworkNotifierTest 132 .thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID)); in setUp() 688 verify(mWifiMetrics).setNominatorForNetwork(TEST_NETWORK_ID, in connectionFailedCallback_postsFailedToConnectNotification()
|
D | WifiServiceImplTest.java | 1312 static final int TEST_NETWORK_ID = 567; field in WifiServiceImplTest 1318 wifiInfo.setNetworkId(TEST_NETWORK_ID); in setupForGetConnectionInfo() 1370 assertEquals(TEST_NETWORK_ID, connectionInfo.getNetworkId()); in testConnectedIdsAreVisibleFromPermittedApp() 3877 mWifiServiceImpl.enableNetwork(TEST_NETWORK_ID, true, TEST_PACKAGE_NAME); in testEnableNetworkAllowedForPrivilegedApps() 3879 verify(mClientModeImpl).syncEnableNetwork(eq(mAsyncChannel), eq(TEST_NETWORK_ID), in testEnableNetworkAllowedForPrivilegedApps() 3895 mWifiServiceImpl.enableNetwork(TEST_NETWORK_ID, true, TEST_PACKAGE_NAME); in testEnabledNetworkAllowedForAppsTargetingLessThanQ() 3897 verify(mClientModeImpl).syncEnableNetwork(eq(mAsyncChannel), eq(TEST_NETWORK_ID), in testEnabledNetworkAllowedForAppsTargetingLessThanQ() 3911 mWifiServiceImpl.enableNetwork(TEST_NETWORK_ID, true, TEST_PACKAGE_NAME); in testEnableNetworkNotAllowedForAppsTargetingQ()
|
D | ClientModeImplTest.java | 152 private static final int TEST_NETWORK_ID = 54; field in ClientModeImplTest 741 int networkId = TEST_NETWORK_ID; in canSaveNetworkConfig() 1443 msg.arg1 = TEST_NETWORK_ID; in testManualConnectNominator() 1448 config.networkId = TEST_NETWORK_ID; in testManualConnectNominator() 1450 when(mWifiConfigManager.getConfiguredNetwork(TEST_NETWORK_ID)).thenReturn(config); in testManualConnectNominator() 1455 verify(mWifiMetrics).setNominatorForNetwork(TEST_NETWORK_ID, in testManualConnectNominator()
|
D | WifiMetricsTest.java | 139 private static final int TEST_NETWORK_ID = 42; field in WifiMetricsTest 1385 config.networkId = TEST_NETWORK_ID; in testScanDetailAndWifiConfigurationUsage() 1386 mWifiMetrics.setNominatorForNetwork(TEST_NETWORK_ID, in testScanDetailAndWifiConfigurationUsage() 1462 config.networkId = TEST_NETWORK_ID; in testNetworkToNominatorNotCleared() 1463 mWifiMetrics.setNominatorForNetwork(TEST_NETWORK_ID, in testNetworkToNominatorNotCleared()
|
/frameworks/base/wifi/tests/src/android/net/wifi/ |
D | WifiManagerTest.java | 99 private static final int TEST_NETWORK_ID = 143; field in WifiManagerTest 1452 .thenReturn(TEST_NETWORK_ID); in testAddNetwork() 1454 assertEquals(mWifiManager.addNetwork(configuration), TEST_NETWORK_ID); in testAddNetwork() local 1468 .thenReturn(TEST_NETWORK_ID); in testUpdateNetwork() 1470 configuration.networkId = TEST_NETWORK_ID; in testUpdateNetwork() 1471 assertEquals(mWifiManager.updateNetwork(configuration), TEST_NETWORK_ID); in testUpdateNetwork() local 1489 assertTrue(mWifiManager.enableNetwork(TEST_NETWORK_ID, true)); in testEnableNetwork() 1490 verify(mWifiService).enableNetwork(TEST_NETWORK_ID, true, mContext.getOpPackageName()); in testEnableNetwork() 1500 assertTrue(mWifiManager.disableNetwork(TEST_NETWORK_ID)); in testDisableNetwork() 1501 verify(mWifiService).disableNetwork(TEST_NETWORK_ID, mContext.getOpPackageName()); in testDisableNetwork()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/ |
D | SupplicantP2pIfaceCallbackTest.java | 72 private static final int TEST_NETWORK_ID = 9; field in SupplicantP2pIfaceCallbackTest 617 TEST_NETWORK_ID, in testOnInvitationReceived() 624 assertEquals(TEST_NETWORK_ID, group.getNetworkId()); in testOnInvitationReceived()
|