Home
last modified time | relevance | path

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

/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DConnectivityManagerTest.java562 Network wifiNetwork = mCtsNetUtils.connectToWifi(); in testOpenConnection() local
566 String wifiAddressString = httpGet(wifiNetwork, url); in testOpenConnection()
570 wifiAddressString, wifiNetwork, cellNetwork), in testOpenConnection()
575 assertOnNetwork(wifiAddressString, wifiNetwork); in testOpenConnection()
578 assertFalse("Unexpectedly equal: " + wifiNetwork, wifiNetwork.equals(cellNetwork)); in testOpenConnection()
773 Network wifiNetwork = null; in testRegisterNetworkCallback() local
781 wifiNetwork = callback.waitForAvailable(); in testRegisterNetworkCallback()
783 wifiNetwork); in testRegisterNetworkCallback()
928 final Network wifiNetwork = mCtsNetUtils.ensureWifiConnected(); in runIdenticalPendingIntentsRequestTest() local
930 assertEquals(wifiNetwork, networkFuture.get( in runIdenticalPendingIntentsRequestTest()
[all …]
DBatteryStatsManagerTest.java126 final Network wifiNetwork = mCtsNetUtils.ensureWifiConnected(); in testReportNetworkInterfaceForTransports() local
144 generateNetworkTraffic(wifiNetwork, url); in testReportNetworkInterfaceForTransports()
165 Network wifiNetwork = mCtsNetUtils.ensureWifiConnected(); in testReportNetworkInterfaceForTransports_throwsSecurityException() local
166 final String iface = mCm.getLinkProperties(wifiNetwork).getInterfaceName(); in testReportNetworkInterfaceForTransports_throwsSecurityException()
167 final int[] transportType = mCm.getNetworkCapabilities(wifiNetwork).getTransportTypes(); in testReportNetworkInterfaceForTransports_throwsSecurityException()
/packages/modules/Connectivity/tests/cts/net/util/java/android/net/cts/util/
DCtsNetUtils.java164 Network wifiNetwork = getWifiNetwork(); in toggleWifi() local
165 disconnectFromWifi(wifiNetwork); in toggleWifi()
169 Network wifiNetwork = getWifiNetwork(); in toggleWifi() local
170 disconnectFromWifi(wifiNetwork); in toggleWifi()
206 Network wifiNetwork = null; in connectToWifi() local
237 wifiNetwork = callback.waitForAvailable(); in connectToWifi()
238 assertNotNull(err + ": onAvailable callback not received", wifiNetwork); in connectToWifi()
248 return wifiNetwork; in connectToWifi()
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DConnectivityServiceTest.java3023 final AtomicReference<Network> wifiNetwork = new AtomicReference<>(); in testNetworkAgentCallbacks() local
3033 wifiNetwork.set(mWiFiNetworkAgent.getNetwork()); in testNetworkAgentCallbacks()
3034 assertNotNull(wifiNetwork.get()); in testNetworkAgentCallbacks()
3037 wifiNetwork.get().getNetId(), INetd.PERMISSION_NONE)); in testNetworkAgentCallbacks()
3051 assertNull(mCm.getLinkProperties(wifiNetwork.get())); in testNetworkAgentCallbacks()
3053 verify(mMockNetd, never()).networkDestroy(wifiNetwork.get().getNetId()); in testNetworkAgentCallbacks()
3063 assertNull(mCm.getLinkProperties(wifiNetwork.get())); in testNetworkAgentCallbacks()
3065 verify(mMockNetd).networkDestroy(wifiNetwork.get().getNetId()); in testNetworkAgentCallbacks()
3741 Network wifiNetwork = mWiFiNetworkAgent.getNetwork(); in testCaptivePortalApp() local
3745 mCm.startCaptivePortalApp(wifiNetwork); in testCaptivePortalApp()
[all …]
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTetheringTest.java2351 final Network wifiNetwork = new Network(200); in testHandleIpConflict() local
2352 final Network[] allNetworks = { wifiNetwork }; in testHandleIpConflict()
2365 wifiNetwork, TEST_WIFI_IFNAME, TRANSPORT_WIFI); in testHandleIpConflict()
2376 final Network wifiNetwork = new Network(200); in testNoAddressAvailable() local
2379 final Network[] allNetworks = { wifiNetwork, btNetwork, mobileNetwork }; in testNoAddressAvailable()
2397 updateV4Upstream(new LinkAddress("192.168.0.100/16"), wifiNetwork, TEST_WIFI_IFNAME, in testNoAddressAvailable()