Home
last modified time | relevance | path

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

/packages/modules/Connectivity/tests/common/java/android/net/
DNetworkAgentConfigTest.kt43 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/
DUtilsTest.java211 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/
DLegacyTypeTrackerTest.kt28 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()
DConnectivityServiceTest.java55 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/
DConnectivityListener.java263 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()
DNetworkFragment.java290 && ConnectivityManager.TYPE_ETHERNET != activeNetworkInfo.getType(); in isConnected()
/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/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTetheringConfigurationTest.java19 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/
DDataUsageUtilsTest.java94 verify(mNetworkStatsManager).querySummaryForUser(eq(ConnectivityManager.TYPE_ETHERNET), in hasEthernet_shouldQueryEthernetSummaryForUser()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DTetheringConfiguration.java20 import static android.net.ConnectivityManager.TYPE_ETHERNET;
449 prependIfNotPresent(upstreamIfaceTypes, TYPE_ETHERNET); in getUpstreamIfaceTypes()
DUpstreamNetworkMonitor.java20 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/
DDataUsageUtils.java83 ConnectivityManager.TYPE_ETHERNET, telephonyManager.getSubscriberId(), in hasEthernet()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DNat464Xlat.java63 ConnectivityManager.TYPE_ETHERNET,
/packages/modules/Connectivity/framework/src/android/net/
DConnectivityManager.java655 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/
DConnectivityManagerTest.java36 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/
DNat464XlatTest.java150 ConnectivityManager.TYPE_ETHERNET,
/packages/modules/Connectivity/tests/unit/java/android/net/
DConnectivityManagerTest.java215 ConnectivityManager.TYPE_ETHERNET, TRANSPORT_ETHERNET); in testNetworkCapabilitiesForTypeEthernet()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/
DPreProvisioningActivityController.java382 ConnectivityManager.TYPE_ETHERNET)) { in shouldShowWifiPicker()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/preprovisioning/
DPreProvisioningActivityControllerTest.java708 ConnectivityManager.TYPE_ETHERNET)).thenReturn(true); in testInitiateProvisioning_connectedToWifiOrEthernet_noWifiPicker()
/packages/modules/Connectivity/framework/api/
Dcurrent.txt134 field @Deprecated public static final int TYPE_ETHERNET = 9; // 0x9
/packages/modules/Connectivity/service/src/com/android/server/
DConnectivityService.java38 import static android.net.ConnectivityManager.TYPE_ETHERNET;
874 addSupportedType(TYPE_ETHERNET); in loadSupportedTypes()
9621 return TYPE_ETHERNET; in transportTypeToLegacyType()