Home
last modified time | relevance | path

Searched refs:TYPE_ETHERNET (Results 1 – 25 of 28) sorted by relevance

12

/packages/modules/Connectivity/tests/common/java/android/net/
DNetworkAgentConfigTest.kt39 setLegacyType(ConnectivityManager.TYPE_ETHERNET) in testParcelNetworkAgentConfig()
59 setLegacyType(ConnectivityManager.TYPE_ETHERNET) in testBuilder()
77 assertEquals(ConnectivityManager.TYPE_ETHERNET, config.getLegacyType()) in testBuilder()
/packages/modules/Connectivity/tests/integration/util/com/android/server/
DConnectivityServiceTestUtils.kt22 import android.net.ConnectivityManager.TYPE_ETHERNET
38 TRANSPORT_ETHERNET -> TYPE_ETHERNET in transportToLegacyType()
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DLegacyTypeTrackerTest.kt30 import android.net.ConnectivityManager.TYPE_ETHERNET
74 private val supportedTypes = arrayOf(TYPE_WIFI, TYPE_WIFI_P2P, TYPE_ETHERNET, TYPE_MOBILE,
110 assertFalse(makeTracker().isTypeSupported(TYPE_ETHERNET)) in testSupportedTypes_NoEthernet()
117 val nonMobileTypes = arrayOf(TYPE_WIFI, TYPE_WIFI_P2P, TYPE_ETHERNET, TYPE_VPN) in testSupportedTypes_NoTelephony()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/
DUtilsTest.java213 assertFalse(mUtils.isNetworkTypeConnected(mockContext, ConnectivityManager.TYPE_ETHERNET)); in testIsConnectedToEthernet()
216 setCurrentNetworkMock(ConnectivityManager.TYPE_ETHERNET, true); in testIsConnectedToEthernet()
219 assertTrue(mUtils.isNetworkTypeConnected(mockContext, ConnectivityManager.TYPE_ETHERNET)); in testIsConnectedToEthernet()
222 setCurrentNetworkMock(ConnectivityManager.TYPE_ETHERNET, false); in testIsConnectedToEthernet()
225 assertFalse(mUtils.isNetworkTypeConnected(mockContext, ConnectivityManager.TYPE_ETHERNET)); in testIsConnectedToEthernet()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DConnectivityListener.java254 return mNetworkType == ConnectivityManager.TYPE_ETHERNET; in isEthernetConnected()
296 if (networkInfo != null && networkInfo.getType() == ConnectivityManager.TYPE_ETHERNET) { in getFirstEthernet()
426 case ConnectivityManager.TYPE_ETHERNET: in updateConnectivityStatus()
427 mNetworkType = ConnectivityManager.TYPE_ETHERNET; in updateConnectivityStatus()
DActiveNetworkProvider.java57 return isConnected() && mNetworkInfo.getType() == ConnectivityManager.TYPE_ETHERNET; in isTypeEthernet()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/network/
DConnectivityListener.java285 return mNetworkType == ConnectivityManager.TYPE_ETHERNET; in isEthernetConnected()
327 if (networkInfo != null && networkInfo.getType() == ConnectivityManager.TYPE_ETHERNET) { in getFirstEthernet()
456 case ConnectivityManager.TYPE_ETHERNET: in updateConnectivityStatus()
457 mNetworkType = ConnectivityManager.TYPE_ETHERNET; in updateConnectivityStatus()
DNetworkState.java156 && ConnectivityManager.TYPE_ETHERNET != activeNetworkInfo.getType(); in isConnected()
/packages/modules/Connectivity/tests/unit/java/android/net/
DNetworkIdentityTest.kt21 import android.net.ConnectivityManager.TYPE_ETHERNET in <lambda>()
148 .setType(TYPE_ETHERNET) in <lambda>()
DConnectivityManagerTest.java229 ConnectivityManager.TYPE_ETHERNET, TRANSPORT_ETHERNET); in testNetworkCapabilitiesForTypeEthernet()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivityservice/
DCSBasicMethodsTest.kt50 assertTrue(cm.isNetworkSupported(ConnectivityManager.TYPE_ETHERNET)) in testNetworkTypes()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTetheringConfigurationTest.java19 import static android.net.ConnectivityManager.TYPE_ETHERNET;
331 assertEquals(TYPE_ETHERNET, upstreamIterator.next().intValue()); in testNoDefinedUpstreamTypesAddsEthernet()
354 assertEquals(TYPE_ETHERNET, upstreamIterator.next().intValue()); in testDefinedUpstreamTypesSansEthernetAddsEthernet()
365 .thenReturn(new int[]{TYPE_WIFI, TYPE_ETHERNET, TYPE_MOBILE_HIPRI}); in testDefinedUpstreamTypesWithEthernetDoesNotAddEthernet()
374 assertEquals(TYPE_ETHERNET, upstreamIterator.next().intValue()); in testDefinedUpstreamTypesWithEthernetDoesNotAddEthernet()
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/
DDataUsageUtilsTest.java94 verify(mNetworkStatsManager).querySummaryForUser(eq(ConnectivityManager.TYPE_ETHERNET), in hasEthernet_shouldQueryEthernetSummaryForUser()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DUpstreamNetworkMonitor.java20 import static android.net.ConnectivityManager.TYPE_ETHERNET;
108 sLegacyTypeToTransport.put(TYPE_ETHERNET, NetworkCapabilities.TRANSPORT_ETHERNET); in sLegacyTypeToTransport.put() argument
DTetheringConfiguration.java20 import static android.net.ConnectivityManager.TYPE_ETHERNET;
580 prependIfNotPresent(upstreamIfaceTypes, TYPE_ETHERNET); in getUpstreamIfaceTypes()
/packages/apps/Settings/src/com/android/settings/datausage/
DDataUsageUtils.java90 ConnectivityManager.TYPE_ETHERNET, telephonyManager.getSubscriberId(), in hasEthernet()
/packages/modules/Connectivity/tests/unit/java/com/android/server/ethernet/
DEthernetNetworkFactoryTest.java254 ConnectivityManager.TYPE_ETHERNET); in createAndVerifyProvisionedInterface()
391 ConnectivityManager.TYPE_ETHERNET); in testTransportOverrideIsCorrectlySet()
/packages/modules/Connectivity/framework-t/src/android/net/
DNetworkTemplate.java21 import static android.net.ConnectivityManager.TYPE_ETHERNET;
852 if (ident.mType == TYPE_ETHERNET) { in matchesEthernet()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DNat464Xlat.java70 ConnectivityManager.TYPE_ETHERNET,
/packages/modules/Connectivity/framework/src/android/net/
DConnectivityManager.java682 public static final int TYPE_ETHERNET = 9; field in ConnectivityManager
783 TYPE_ETHERNET,
1296 case TYPE_ETHERNET: in getNetworkTypeName()
2326 sLegacyTypeToTransport.put(TYPE_ETHERNET, NetworkCapabilities.TRANSPORT_ETHERNET); in sLegacyTypeToTransport.put() argument
/packages/modules/Connectivity/service-t/src/com/android/server/ethernet/
DEthernetNetworkFactory.java298 ConnectivityManager.TYPE_ETHERNET); in sTransports.put() argument
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivityservice/base/
DCSTest.kt120 TRANSPORT_ETHERNET -> ConnectivityManager.TYPE_ETHERNET
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/
DWirelessDebuggingFragment.java602 && ConnectivityManager.TYPE_ETHERNET != activeNetworkInfo.getType();
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DNat464XlatTest.java170 ConnectivityManager.TYPE_ETHERNET,
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DConnectivityManagerTest.java66 import static android.net.ConnectivityManager.TYPE_ETHERNET;
433 mNetworkTypes.add(TYPE_ETHERNET); in addSupportedNetworkTypes()
469 assertTrue(ConnectivityManager.isNetworkTypeValid(ConnectivityManager.TYPE_ETHERNET)); in testIsNetworkTypeValid()
996 || (networkType == ConnectivityManager.TYPE_ETHERNET && shouldEthernetBeSupported()); in shouldBeSupported()

12