/packages/modules/Connectivity/tests/common/java/android/net/ |
D | NetworkAgentConfigTest.kt | 43 setLegacyType(ConnectivityManager.TYPE_ETHERNET) in testParcelNetworkAgentConfig() 65 setLegacyType(ConnectivityManager.TYPE_ETHERNET) in testBuilder() 79 assertEquals(ConnectivityManager.TYPE_ETHERNET, config.getLegacyType()) in testBuilder()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/ |
D | UtilsTest.java | 211 assertFalse(mUtils.isNetworkTypeConnected(mockContext, ConnectivityManager.TYPE_ETHERNET)); in testIsConnectedToEthernet() 214 setCurrentNetworkMock(ConnectivityManager.TYPE_ETHERNET, true); in testIsConnectedToEthernet() 217 assertTrue(mUtils.isNetworkTypeConnected(mockContext, ConnectivityManager.TYPE_ETHERNET)); in testIsConnectedToEthernet() 220 setCurrentNetworkMock(ConnectivityManager.TYPE_ETHERNET, false); in testIsConnectedToEthernet() 223 assertFalse(mUtils.isNetworkTypeConnected(mockContext, ConnectivityManager.TYPE_ETHERNET)); in testIsConnectedToEthernet()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/ |
D | LegacyTypeTrackerTest.kt | 28 import android.net.ConnectivityManager.TYPE_ETHERNET 73 private val supportedTypes = arrayOf(TYPE_WIFI, TYPE_WIFI_P2P, TYPE_ETHERNET, TYPE_MOBILE, 109 assertFalse(makeTracker().isTypeSupported(TYPE_ETHERNET)) in testSupportedTypes_NoEthernet() 116 val nonMobileTypes = arrayOf(TYPE_WIFI, TYPE_WIFI_P2P, TYPE_ETHERNET, TYPE_VPN) in testSupportedTypes_NoTelephony()
|
D | ConnectivityServiceTest.java | 55 import static android.net.ConnectivityManager.TYPE_ETHERNET; 2039 assertTrue(mCm.isNetworkSupported(TYPE_ETHERNET)); in testNetworkTypes() 10157 new NetworkCapabilities(), TYPE_ETHERNET, 0, NetworkRequest.Type.NONE); in testRegisterConnectivityDiagnosticsCallbackInvalidRequest()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/ |
D | ConnectivityListener.java | 263 return mNetworkType == ConnectivityManager.TYPE_ETHERNET; in isEthernetConnected() 294 if (networkInfo != null && networkInfo.getType() == ConnectivityManager.TYPE_ETHERNET) { in getFirstEthernet() 405 case ConnectivityManager.TYPE_ETHERNET: in updateConnectivityStatus() 406 mNetworkType = ConnectivityManager.TYPE_ETHERNET; in updateConnectivityStatus()
|
D | NetworkFragment.java | 290 && ConnectivityManager.TYPE_ETHERNET != activeNetworkInfo.getType(); in isConnected()
|
/packages/modules/Connectivity/tests/integration/util/com/android/server/ |
D | ConnectivityServiceTestUtils.kt | 22 import android.net.ConnectivityManager.TYPE_ETHERNET 38 TRANSPORT_ETHERNET -> TYPE_ETHERNET in transportToLegacyType()
|
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | TetheringConfigurationTest.java | 19 import static android.net.ConnectivityManager.TYPE_ETHERNET; 298 assertEquals(TYPE_ETHERNET, upstreamIterator.next().intValue()); in testNoDefinedUpstreamTypesAddsEthernet() 321 assertEquals(TYPE_ETHERNET, upstreamIterator.next().intValue()); in testDefinedUpstreamTypesSansEthernetAddsEthernet() 332 .thenReturn(new int[]{TYPE_WIFI, TYPE_ETHERNET, TYPE_MOBILE_HIPRI}); in testDefinedUpstreamTypesWithEthernetDoesNotAddEthernet() 341 assertEquals(TYPE_ETHERNET, upstreamIterator.next().intValue()); in testDefinedUpstreamTypesWithEthernetDoesNotAddEthernet()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/ |
D | DataUsageUtilsTest.java | 94 verify(mNetworkStatsManager).querySummaryForUser(eq(ConnectivityManager.TYPE_ETHERNET), in hasEthernet_shouldQueryEthernetSummaryForUser()
|
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/ |
D | TetheringConfiguration.java | 20 import static android.net.ConnectivityManager.TYPE_ETHERNET; 449 prependIfNotPresent(upstreamIfaceTypes, TYPE_ETHERNET); in getUpstreamIfaceTypes()
|
D | UpstreamNetworkMonitor.java | 20 import static android.net.ConnectivityManager.TYPE_ETHERNET; 110 sLegacyTypeToTransport.put(TYPE_ETHERNET, NetworkCapabilities.TRANSPORT_ETHERNET); in sLegacyTypeToTransport.put() argument
|
/packages/apps/Settings/src/com/android/settings/datausage/ |
D | DataUsageUtils.java | 83 ConnectivityManager.TYPE_ETHERNET, telephonyManager.getSubscriberId(), in hasEthernet()
|
/packages/modules/Connectivity/service/src/com/android/server/connectivity/ |
D | Nat464Xlat.java | 63 ConnectivityManager.TYPE_ETHERNET,
|
/packages/modules/Connectivity/framework/src/android/net/ |
D | ConnectivityManager.java | 655 public static final int TYPE_ETHERNET = 9; field in ConnectivityManager 756 TYPE_ETHERNET, 996 case TYPE_ETHERNET: in getNetworkTypeName() 1862 sLegacyTypeToTransport.put(TYPE_ETHERNET, NetworkCapabilities.TRANSPORT_ETHERNET); in sLegacyTypeToTransport.put() argument
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | ConnectivityManagerTest.java | 36 import static android.net.ConnectivityManager.TYPE_ETHERNET; 359 mNetworkTypes.add(TYPE_ETHERNET); in addSupportedNetworkTypes() 399 assertTrue(ConnectivityManager.isNetworkTypeValid(ConnectivityManager.TYPE_ETHERNET)); in testIsNetworkTypeValid() 659 || (networkType == ConnectivityManager.TYPE_ETHERNET && shouldEthernetBeSupported()); in shouldBeSupported()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/ |
D | Nat464XlatTest.java | 150 ConnectivityManager.TYPE_ETHERNET,
|
/packages/modules/Connectivity/tests/unit/java/android/net/ |
D | ConnectivityManagerTest.java | 215 ConnectivityManager.TYPE_ETHERNET, TRANSPORT_ETHERNET); in testNetworkCapabilitiesForTypeEthernet()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/ |
D | PreProvisioningActivityController.java | 382 ConnectivityManager.TYPE_ETHERNET)) { in shouldShowWifiPicker()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/preprovisioning/ |
D | PreProvisioningActivityControllerTest.java | 708 ConnectivityManager.TYPE_ETHERNET)).thenReturn(true); in testInitiateProvisioning_connectedToWifiOrEthernet_noWifiPicker()
|
/packages/modules/Connectivity/framework/api/ |
D | current.txt | 134 field @Deprecated public static final int TYPE_ETHERNET = 9; // 0x9
|
/packages/modules/Connectivity/service/src/com/android/server/ |
D | ConnectivityService.java | 38 import static android.net.ConnectivityManager.TYPE_ETHERNET; 874 addSupportedType(TYPE_ETHERNET); in loadSupportedTypes() 9621 return TYPE_ETHERNET; in transportTypeToLegacyType()
|