Home
last modified time | relevance | path

Searched refs:wifiNetwork (Results 1 – 8 of 8) sorted by relevance

/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DConnectivityManagerTest.java873 Network wifiNetwork = mCtsNetUtils.ensureWifiConnected(); in testOpenConnection() local
878 String wifiAddressString = httpGet(wifiNetwork, url); in testOpenConnection()
882 wifiAddressString, wifiNetwork, cellNetwork), in testOpenConnection()
887 assertOnNetwork(wifiAddressString, wifiNetwork); in testOpenConnection()
890 assertFalse("Unexpectedly equal: " + wifiNetwork, wifiNetwork.equals(cellNetwork)); in testOpenConnection()
1126 Network wifiNetwork = null; in testRegisterNetworkCallback() local
1132 wifiNetwork = callback.eventuallyExpect(CallbackEntry.AVAILABLE).getNetwork(); in testRegisterNetworkCallback()
1134 wifiNetwork); in testRegisterNetworkCallback()
1277 final Network wifiNetwork = mCtsNetUtils.ensureWifiConnected(); in runIdenticalPendingIntentsRequestTest() local
1279 assertEquals(wifiNetwork, networkFuture.get( in runIdenticalPendingIntentsRequestTest()
[all …]
DBatteryStatsManagerTest.java191 final Network wifiNetwork = mCtsNetUtils.ensureWifiConnected(); in verifyGetWifiBatteryStats() local
204 generateNetworkTraffic(wifiNetwork, url); in verifyGetWifiBatteryStats()
DNetworkAgentTest.kt1643 val (wifiAgent, wifiNetwork) = connectNetwork(TRANSPORT_WIFI) in testUnregisterAfterReplacement() constant
1644 testCallback.expectAvailableCallbacks(wifiNetwork, validated = true) in testUnregisterAfterReplacement()
1645 testCallback.expectCaps(wifiNetwork) { it.hasCapability(NET_CAPABILITY_VALIDATED) } in testUnregisterAfterReplacement()
1646 matchAllCallback.expectAvailableCallbacks(wifiNetwork, validated = false) in testUnregisterAfterReplacement()
1648 matchAllCallback.expectCaps(wifiNetwork) { it.hasCapability(NET_CAPABILITY_VALIDATED) } in testUnregisterAfterReplacement()
1655 val wifiSpecifier = mCM.getNetworkCapabilities(wifiNetwork)!!.networkSpecifier in testUnregisterAfterReplacement()
1662 val wifiLp = mCM.getLinkProperties(wifiNetwork)!! in testUnregisterAfterReplacement()
1667 mCM.reportNetworkConnectivity(wifiNetwork, false) in testUnregisterAfterReplacement()
1674 matchAllCallback.expect<Lost>(wifiNetwork) in testUnregisterAfterReplacement()
/packages/modules/Connectivity/tests/cts/net/util/java/android/net/cts/util/
DCtsNetUtils.java182 Network wifiNetwork = getWifiNetwork(); in reconnectWifiAndWaitForConnectivityAction() local
184 expectNetworkIsSystemDefault(wifiNetwork); in reconnectWifiAndWaitForConnectivityAction()
185 disconnectFromWifi(wifiNetwork, true /* expectLegacyBroadcast */); in reconnectWifiAndWaitForConnectivityAction()
/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/
DVpnTest.java901 final Network wifiNetwork = mConnectUtil.ensureWifiValidated(); in testChangeUnderlyingNetworks() local
929 updateUnderlyingNetworks(new ArrayList<>(List.of(wifiNetwork))); in testChangeUnderlyingNetworks()
932 expectUnderlyingNetworks(callback, List.of(wifiNetwork)); in testChangeUnderlyingNetworks()
935 updateUnderlyingNetworks(new ArrayList<>(List.of(wifiNetwork, cellNetwork))); in testChangeUnderlyingNetworks()
938 expectUnderlyingNetworks(callback, List.of(wifiNetwork, cellNetwork)); in testChangeUnderlyingNetworks()
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DNsdServiceTest.java1904 final Network wifiNetwork = new Network(123); in testTakeMulticastLockOnBehalfOfClient_ForForegroundAppsOnly() local
1911 wifiNetwork, wifiSocket, new int[] { TRANSPORT_WIFI }); in testTakeMulticastLockOnBehalfOfClient_ForForegroundAppsOnly()
1922 client2.discoverServices(SERVICE_TYPE, NsdManager.PROTOCOL_DNS_SD, wifiNetwork, in testTakeMulticastLockOnBehalfOfClient_ForForegroundAppsOnly()
1926 wifiNetwork, wifiSocket, new int[] { TRANSPORT_WIFI })); in testTakeMulticastLockOnBehalfOfClient_ForForegroundAppsOnly()
1939 wifiNetwork, wifiSocket, new int[] { TRANSPORT_WIFI }); in testTakeMulticastLockOnBehalfOfClient_ForForegroundAppsOnly()
DConnectivityServiceTest.java4854 Network wifiNetwork = mWiFiAgent.getNetwork();
4858 mCm.startCaptivePortalApp(wifiNetwork);
4865 mCm.reportNetworkConnectivity(wifiNetwork, false);
6390 Network wifiNetwork = mWiFiAgent.getNetwork();
6394 mCm.reportNetworkConnectivity(wifiNetwork, false);
6401 assertFalse(mCm.getNetworkCapabilities(wifiNetwork).hasCapability(
6405 assertEquals(mCm.getActiveNetwork(), wifiNetwork);
6419 assertEquals(mCm.getActiveNetwork(), wifiNetwork);
6427 mCm.setAvoidUnvalidated(wifiNetwork);
6429 assertFalse(mCm.getNetworkCapabilities(wifiNetwork).hasCapability(
[all …]
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTetheringTest.java2909 final Network wifiNetwork = new Network(200); in testHandleIpConflict() local
2910 final Network[] allNetworks = { wifiNetwork }; in testHandleIpConflict()
2926 wifiNetwork, TEST_WIFI_IFNAME, TRANSPORT_WIFI); in testHandleIpConflict()
2944 final Network wifiNetwork = new Network(200); in testNoAddressAvailable() local
2947 final Network[] allNetworks = { wifiNetwork, btNetwork, mobileNetwork }; in testNoAddressAvailable()
2966 updateV4Upstream(new LinkAddress("192.168.0.100/16"), wifiNetwork, TEST_WIFI_IFNAME, in testNoAddressAvailable()