Home
last modified time | relevance | path

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

/cts/tests/tests/net/src/android/net/cts/
DMultinetworkApiTest.java62 for (Network network : mCM.getAllNetworks()) { in getTestableNetworks()
63 final NetworkCapabilities nc = mCM.getNetworkCapabilities(network); in getTestableNetworks()
67 testableNetworks.add(network); in getTestableNetworks()
79 for (Network network : getTestableNetworks()) { in testGetaddrinfo()
80 int errno = runGetaddrinfoCheck(network.getNetworkHandle()); in testGetaddrinfo()
83 "getaddrinfo on " + mCM.getNetworkInfo(network), -errno); in testGetaddrinfo()
93 for (Network network : getTestableNetworks()) { in testSetprocnetwork()
97 int errno = runSetprocnetwork(network.getNetworkHandle()); in testSetprocnetwork()
100 "setprocnetwork on " + mCM.getNetworkInfo(network), -errno); in testSetprocnetwork()
104 assertEquals(network, processDefault); in testSetprocnetwork()
[all …]
DDnsResolverTest.java137 for (Network network : mCM.getAllNetworks()) { in getTestableNetworks()
138 final NetworkCapabilities nc = mCM.getNetworkCapabilities(network); in getTestableNetworks()
142 testableNetworks.add(network); in getTestableNetworks()
314 for (Network network : getTestableNetworks()) { in doTestRawQuery()
316 mDns.rawQuery(network, TEST_DOMAIN, CLASS_IN, TYPE_AAAA, FLAG_NO_CACHE_LOOKUP, in doTestRawQuery()
341 for (Network network : getTestableNetworks()) { in doTestRawQueryBlob()
343 mDns.rawQuery(network, blob, FLAG_NO_CACHE_LOOKUP, executor, null, callback); in doTestRawQueryBlob()
354 for (Network network : getTestableNetworks()) { in doTestRawQueryRoot()
356 mDns.rawQuery(network, dname, CLASS_IN, TYPE_AAAA, FLAG_NO_CACHE_LOOKUP, in doTestRawQueryRoot()
369 for (Network network : getTestableNetworks()) { in doTestRawQueryNXDomain()
[all …]
DConnectivityManagerTest.java249 Network network = mCm.getActiveNetwork(); in testGetActiveNetwork() local
250 assertNotNull("You must have an active network connection to complete CTS", network); in testGetActiveNetwork()
252 NetworkInfo ni = mCm.getNetworkInfo(network); in testGetActiveNetwork()
333 private static String httpGet(Network network, URL httpUrl) throws IOException { in httpGet() argument
334 HttpURLConnection connection = (HttpURLConnection) network.openConnection(httpUrl); in httpGet()
343 private void assertOnNetwork(String adressString, Network network) throws UnknownHostException { in assertOnNetwork() argument
345 LinkProperties linkProperties = mCm.getLinkProperties(network); in assertOnNetwork()
568 private InetAddress getFirstV4Address(Network network) { in getFirstV4Address() argument
569 LinkProperties linkProperties = mCm.getLinkProperties(network); in getFirstV4Address()
634 public void onCapabilitiesChanged(Network network, NetworkCapabilities nc) { in waitForActiveNetworkMetered()
[all …]
DDnsTest.java289 public void onLinkPropertiesChanged(Network network, LinkProperties lp) { in ensureIpv6Connectivity()
DIpSecManagerTunnelTest.java261 public void onAvailable(Network network) { in onAvailable() argument
262 futureNetwork.complete(network); in onAvailable()
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
DNetworkCallbackTest.java40 public final Network network; field in NetworkCallbackTest.CallbackInfo
44 state = s; network = n; arg = o; in CallbackInfo()
48 return String.format("%s (%s) (%s)", state, network, arg); in toString()
56 return (state == other.state) && Objects.equals(network, other.network) in equals()
62 return Objects.hash(state, network, arg); in hashCode()
71 protected void setLastCallback(CallbackState state, Network network, Object o) { in setLastCallback() argument
72 mCallbacks.offer(new CallbackInfo(state, network, o)); in setLastCallback()
95 public void onAvailable(Network network) { in onAvailable() argument
96 setLastCallback(CallbackState.AVAILABLE, network, null); in onAvailable()
100 public void onLost(Network network) { in onLost() argument
[all …]
DVpnTest.java215 public void onAvailable(Network network) { in startVpn()
217 Log.i(TAG, "Got available callback for network=" + network); in startVpn()
218 mNetwork = network; in startVpn()
263 public void onLost(Network network) { in stopVpn()
265 Log.i(TAG, "Got lost callback for network=" + network in stopVpn()
267 if( mNetwork == network){ in stopVpn()
900 private boolean isNetworkMetered(Network network) { in isNetworkMetered() argument
901 NetworkCapabilities nc = mCM.getNetworkCapabilities(network); in isNetworkMetered()
927 private void assertNetworkHasExpectedProxy(ProxyInfo expected, Network network) { in assertNetworkHasExpectedProxy() argument
928 LinkProperties lp = mCM.getLinkProperties(network); in assertNetworkHasExpectedProxy()
[all …]
/cts/tests/tests/net/util/java/android/net/cts/util/
DCtsNetUtils.java176 Network network = null; in getWifiNetwork() local
178 network = callback.waitForAvailable(); in getWifiNetwork()
184 assertNotNull("Cannot find Network for wifi. Is wifi connected?", network); in getWifiNetwork()
185 return network; in getWifiNetwork()
233 private Socket getBoundSocket(Network network, String host, int port) throws IOException { in getBoundSocket() argument
235 Socket s = network.getSocketFactory().createSocket(); in getBoundSocket()
278 Network network = intent.getExtras() in onReceive() local
280 assertNotNull("ConnectivityActionReceiver expected EXTRA_NETWORK", network); in onReceive()
281 networkInfo = this.mCm.getNetworkInfo(network); in onReceive()
334 public void onAvailable(Network network) { in onAvailable() argument
[all …]
/cts/hostsidetests/net/aidl/com/android/cts/net/hostside/
DINetworkCallback.aidl22 void onBlockedStatusChanged(in Network network, boolean blocked); in onBlockedStatusChanged() argument
23 void onAvailable(in Network network); in onAvailable() argument
24 void onLost(in Network network); in onLost() argument
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifi/
DCallbackUtils.java56 public void onAvailable(Network network) { in onAvailable() argument
58 mNetwork = network; in onAvailable()
69 public void onLost(Network network) { in onLost() argument
71 mNetwork = network; in onLost()
/cts/hostsidetests/net/app2/src/com/android/cts/net/hostside/app2/
DMyService.java102 public void onBlockedStatusChanged(Network network, boolean blocked) {
104 cb.onBlockedStatusChanged(network, blocked);
112 public void onAvailable(Network network) {
114 cb.onAvailable(network);
122 public void onLost(Network network) {
124 cb.onLost(network);
/cts/apps/CtsVerifier/src/com/android/cts/verifier/net/
DMultiNetworkConnectivityTestActivity.java318 Network network) { in isNetworkCellularAndHasInternet() argument
319 NetworkCapabilities capabilities = connectivityManager.getNetworkCapabilities(network); in isNetworkCellularAndHasInternet()
329 for (Network network : allNetworks) { in isMobileDataEnabled()
330 if (isNetworkCellularAndHasInternet(mConnectivityManager, network)) { in isMobileDataEnabled()
490 public void onAvailable(Network network) {
491 Log.i(TAG, "Wifi network available " + network.netId);
493 mMultiNetworkValidator.onWifiNetworkConnected(network);
505 public void onAvailable(Network network) {
506 Log.i(TAG, "Cellular network available " + network.netId);
508 mMultiNetworkValidator.onCellularNetworkConnected(network);
[all …]
DConnectivityBackgroundTestActivity.java304 void setNetwork(Network network) { in setNetwork() argument
305 mNetwork = network; in setNetwork()
357 public void onAvailable(Network network) { in createNetworkCallback()
359 mState.setNetwork(network); in createNetworkCallback()
365 public void onLost(Network network) { in createNetworkCallback() argument
367 if (network.equals(mState.mNetwork)) { in createNetworkCallback()
375 public void onLinkPropertiesChanged(Network network, LinkProperties newLp) { in createNetworkCallback() argument
377 if (network.equals(mState.mNetwork)) { in createNetworkCallback()
623 final Network network, final String url, boolean doClose) {
629 (HttpURLConnection) network.openConnection(new URL(url));
/cts/tests/JobScheduler/JobTestApp/src/android/jobscheduler/cts/jobtestapp/
DTestJobSchedulerReceiver.java55 final boolean network = intent.getBooleanExtra(EXTRA_REQUIRE_NETWORK_ANY, false); in onReceive()
60 if (network) { in onReceive()
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DNetworkUsageStatsTest.java169 private void exerciseRemoteHost(Network network, URL url) throws Exception { in exerciseRemoteHost() argument
170 NetworkInfo networkInfo = mCm.getNetworkInfo(network); in exerciseRemoteHost()
182 urlc = (HttpURLConnection) network.openConnection(url); in exerciseRemoteHost()
285 public void onAvailable(Network network) { in onAvailable() argument
288 isDefault = network.equals(mCm.getActiveNetwork()); in onAvailable()
289 exerciseRemoteHost(network, mUrl); in onAvailable()
292 metered = !mCm.getNetworkCapabilities(network) in onAvailable()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifiaware/
DCallbackUtils.java137 public void onCapabilitiesChanged(Network network, in onCapabilitiesChanged() argument
139 mNetwork = network; in onCapabilitiesChanged()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/vpn/
DVpnTestHelper.java178 Network network = connectivityManager.getActiveNetwork(); in isNetworkVpn() local
179 NetworkCapabilities capabilities = connectivityManager.getNetworkCapabilities(network); in isNetworkVpn()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DSubscriptionManagerTest.java90 public void onAvailable(Network network) { in onAvailable() argument
638 public static CountDownLatch waitForNetworkCapabilities(Network network, in waitForNetworkCapabilities() argument
647 if (net.equals(network) && predicate.test(caps)) { in waitForNetworkCapabilities()
/cts/tools/device-setup/TestDeviceSetup/src/android/tests/getinfo/
DDeviceInfoInstrument.java124 String network = tm.getNetworkOperatorName(); in onStart() local
125 addResult(NETWORK, network.trim()); in onStart()
/cts/tests/tests/net/src/android/net/wifi/cts/
DConcurrencyTest.java244 public void onAvailable(Network network) { in enableWifi()
/cts/tools/cts-api-coverage/proto/
Dcts_report.proto182 optional string network = 10 [deprecated = true]; field
/cts/hostsidetests/sustainedperf/dhrystone/
DRationale29 version distributed via the UNIX network Usenet [2].
333 "Version 1.1" distributed previously by him over the UNIX network
/cts/tests/tests/media/src/android/media/cts/
D.goutputstream-9KZYJZ91 /* RTSP tests are more flaky and vulnerable to network condition.