Home
last modified time | relevance | path

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

/cts/tests/tests/net/src/android/net/cts/
DMultinetworkApiTest.java56 for (Network network : mCM.getAllNetworks()) { in getTestableNetworks()
57 final NetworkCapabilities nc = mCM.getNetworkCapabilities(network); in getTestableNetworks()
61 testableNetworks.add(network); in getTestableNetworks()
73 for (Network network : getTestableNetworks()) { in testGetaddrinfo()
74 int errno = runGetaddrinfoCheck(network.getNetworkHandle()); in testGetaddrinfo()
77 "getaddrinfo on " + mCM.getNetworkInfo(network), -errno); in testGetaddrinfo()
87 for (Network network : getTestableNetworks()) { in testSetprocnetwork()
91 int errno = runSetprocnetwork(network.getNetworkHandle()); in testSetprocnetwork()
94 "setprocnetwork on " + mCM.getNetworkInfo(network), -errno); in testSetprocnetwork()
98 assertEquals(network, processDefault); in testSetprocnetwork()
[all …]
DConnectivityManagerTest.java138 Network network = mCm.getActiveNetwork(); in testGetActiveNetwork() local
139 assertNotNull("You must have an active network connection to complete CTS", network); in testGetActiveNetwork()
141 NetworkInfo ni = mCm.getNetworkInfo(network); in testGetActiveNetwork()
424 Network network = intent.getExtras() in onReceive() local
426 assertNotNull("ConnectivityActionReceiver expected EXTRA_NETWORK", network); in onReceive()
427 networkInfo = mCm.getNetworkInfo(network); in onReceive()
466 public void onAvailable(Network network) { in onAvailable() argument
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
DVpnTest.java188 public void onAvailable(Network network) { in startVpn()
190 Log.i(TAG, "Got available callback for network=" + network); in startVpn()
191 mNetwork = network; in startVpn()
231 public void onLost(Network network) { in stopVpn()
233 … Log.i(TAG, "Got lost callback for network=" + network + ",mNetwork = " + mNetwork); in stopVpn()
234 if( mNetwork == network){ in stopVpn()
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DNetworkUsageStatsTest.java81 public void onAvailable(Network network) { in exerciseRemoteHost()
82 NetworkInfo networkInfo = mCm.getNetworkInfo(network); in exerciseRemoteHost()
93 urlc = (HttpsURLConnection) network.openConnection(new URL( in exerciseRemoteHost()
/cts/tools/device-setup/TestDeviceSetup/src/android/tests/getinfo/
DDeviceInfoInstrument.java116 String network = tm.getNetworkOperatorName(); in onStart() local
117 addResult(NETWORK, network.trim()); in onStart()