Home
last modified time | relevance | path

Searched refs:networkType (Results 1 – 8 of 8) 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/netlegacy22.api/src/android/net/cts/legacy/api22/
DConnectivityManagerLegacyTest.java77 private boolean isNetworkProtected(int networkType) { in isNetworkProtected() argument
78 return mProtectedNetworks.contains(networkType); in isNetworkProtected()
273 private boolean isNetworkSupported(int networkType) { in isNetworkSupported() argument
274 return mCm.getNetworkInfo(networkType) != null; in isNetworkSupported()
/cts/tests/tests/net/util/java/android/net/cts/util/
DCtsNetUtils.java490 public ConnectivityActionReceiver(ConnectivityManager cm, int networkType, in ConnectivityActionReceiver() argument
493 mNetworkType = networkType; in ConnectivityActionReceiver()
527 int networkType = networkInfo.getType(); in onReceive() local
529 Log.i(TAG, "Network type: " + networkType + " state: " + networkState); in onReceive()
530 if (networkType == mNetworkType && networkInfo.getState() == mNetState) { in onReceive()
/cts/tests/tests/net/src/android/net/cts/
DConnectivityManagerTest.java393 private void assertStartUsingNetworkFeatureUnsupported(int networkType, String feature) { in assertStartUsingNetworkFeatureUnsupported() argument
395 mCm.startUsingNetworkFeature(networkType, feature); in assertStartUsingNetworkFeatureUnsupported()
400 private void assertStopUsingNetworkFeatureUnsupported(int networkType, String feature) { in assertStopUsingNetworkFeatureUnsupported() argument
402 mCm.startUsingNetworkFeature(networkType, feature); in assertStopUsingNetworkFeatureUnsupported()
407 private void assertRequestRouteToHostUnsupported(int networkType, int hostAddress) { in assertRequestRouteToHostUnsupported() argument
409 mCm.requestRouteToHost(networkType, hostAddress); in assertRequestRouteToHostUnsupported()
438 private boolean shouldBeSupported(int networkType) { in shouldBeSupported() argument
439 return mNetworks.containsKey(networkType) || in shouldBeSupported()
440 (networkType == ConnectivityManager.TYPE_VPN) || in shouldBeSupported()
441 (networkType == ConnectivityManager.TYPE_ETHERNET && shouldEthernetBeSupported()); in shouldBeSupported()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DSignalStrengthTest.java137 getSignalStrengthTypeForNetworkType(int networkType) { in getSignalStrengthTypeForNetworkType() argument
138 switch(networkType) { in getSignalStrengthTypeForNetworkType()
DPhoneStateListenerTest.java839 public void onDataConnectionStateChanged(int state, int networkType) { in testOnDataConnectionStateChanged()
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DConnectivityConstraintTest.java502 ConnectivityActionReceiver(int networkType, NetworkInfo.State expectedState, in ConnectivityActionReceiver() argument
504 mNetworkType = networkType; in ConnectivityActionReceiver()
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DNetworkUsageStatsTest.java357 int networkType = mNetworkInterfacesToTest[networkIndex].getNetworkType(); in getSubscriberId() local
358 if (ConnectivityManager.TYPE_MOBILE == networkType) { in getSubscriberId()
880 public void onThresholdReached(int networkType, String subscriberId) { in onThresholdReached() argument
881 Log.v(LOG_TAG, "Called onThresholdReached for networkType=" + networkType in onThresholdReached()