Home
last modified time | relevance | path

Searched refs:networkType (Results 1 – 6 of 6) sorted by relevance

/cts/tests/tests/net/appForApi23/src/android/net/cts/appForApi23/
DConnectivityReceiver.java32 int networkType = intent.getIntExtra(ConnectivityManager.EXTRA_NETWORK_TYPE, 0); in onReceive() local
33 if (networkType == ConnectivityManager.TYPE_WIFI) { in onReceive()
/cts/tests/tests/net/src/android/net/cts/
DConnectivityManagerTest.java375 private void assertStartUsingNetworkFeatureUnsupported(int networkType, String feature) { in assertStartUsingNetworkFeatureUnsupported() argument
377 mCm.startUsingNetworkFeature(networkType, feature); in assertStartUsingNetworkFeatureUnsupported()
382 private void assertStopUsingNetworkFeatureUnsupported(int networkType, String feature) { in assertStopUsingNetworkFeatureUnsupported() argument
384 mCm.startUsingNetworkFeature(networkType, feature); in assertStopUsingNetworkFeatureUnsupported()
389 private void assertRequestRouteToHostUnsupported(int networkType, int hostAddress) { in assertRequestRouteToHostUnsupported() argument
391 mCm.requestRouteToHost(networkType, hostAddress); in assertRequestRouteToHostUnsupported()
409 private boolean isSupported(int networkType) { in isSupported() argument
410 return mNetworks.containsKey(networkType) || in isSupported()
411 (networkType == ConnectivityManager.TYPE_VPN) || in isSupported()
412 (networkType == ConnectivityManager.TYPE_ETHERNET && in isSupported()
[all …]
/cts/tests/netlegacy22.api/src/android/net/cts/legacy/api22/
DConnectivityManagerLegacyTest.java78 private boolean isNetworkProtected(int networkType) { in isNetworkProtected() argument
79 return mProtectedNetworks.contains(networkType); in isNetworkProtected()
274 private boolean isNetworkSupported(int networkType) { in isNetworkSupported() argument
275 return mCm.getNetworkInfo(networkType) != null; in isNetworkSupported()
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DConnectivityConstraintTest.java354 ConnectivityActionReceiver(int networkType, NetworkInfo.State expectedState) { in ConnectivityActionReceiver() argument
355 mNetworkType = networkType; in ConnectivityActionReceiver()
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DNetworkUsageStatsTest.java336 int networkType = mNetworkInterfacesToTest[networkIndex].getNetworkType(); in getSubscriberId() local
337 if (ConnectivityManager.TYPE_MOBILE == networkType) { in getSubscriberId()
853 public void onThresholdReached(int networkType, String subscriberId) { in onThresholdReached() argument
854 Log.v(LOG_TAG, "Called onThresholdReached for networkType=" + networkType in onThresholdReached()
/cts/tests/tests/telephony/src/android/telephony/cts/
DPhoneStateListenerTest.java380 public void onDataConnectionStateChanged(int state, int networkType) { in testOnDataConnectionStateChanged()