Home
last modified time | relevance | path

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

/frameworks/base/tests/net/java/android/net/util/
DKeepaliveUtilsTest.kt110 nc.transportTypes = intArrayOf(TRANSPORT_CELLULAR) in testGetSupportedKeepalivesForNetworkCapabilities()
114 nc.transportTypes = intArrayOf(TRANSPORT_WIFI, TRANSPORT_VPN) in testGetSupportedKeepalivesForNetworkCapabilities()
118 nc.transportTypes = intArrayOf(TRANSPORT_ETHERNET) in testGetSupportedKeepalivesForNetworkCapabilities()
122 nc.transportTypes = intArrayOf(MAX_TRANSPORT + 1) in testGetSupportedKeepalivesForNetworkCapabilities()
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/
DEthernetNetworkFactory.java363 int[] transportTypes = mCapabilities.getTransportTypes(); in NetworkInterfaceState() local
364 if (transportTypes.length > 0) { in NetworkInterfaceState()
365 legacyType = getLegacyType(transportTypes[0]); in NetworkInterfaceState()
418 int[] transportTypes = mCapabilities.getTransportTypes(); in getNetworkScore() local
419 if (transportTypes.length < 1) { in getNetworkScore()
424 TransportInfo transportInfo = sTransports.get(transportTypes[0], /* if dne */ null); in getNetworkScore()
/frameworks/base/tests/net/common/java/android/net/
DNetworkCapabilitiesTest.java599 final int[] transportTypes = nc.getTransportTypes(); in testGetTransportTypes() local
600 assertEquals(4, transportTypes.length); in testGetTransportTypes()
601 assertEquals(TRANSPORT_CELLULAR, transportTypes[0]); in testGetTransportTypes()
602 assertEquals(TRANSPORT_WIFI, transportTypes[1]); in testGetTransportTypes()
603 assertEquals(TRANSPORT_VPN, transportTypes[2]); in testGetTransportTypes()
604 assertEquals(TRANSPORT_TEST, transportTypes[3]); in testGetTransportTypes()
/frameworks/base/core/java/android/net/
DNetworkCapabilities.java774 public void setTransportTypes(@Transport int[] transportTypes) { in setTransportTypes() argument
775 mTransportTypes = BitUtils.packBits(transportTypes); in setTransportTypes()
/frameworks/base/services/core/java/com/android/server/connectivity/
DVpn.java309 int[] transportTypes = new int[] { NetworkCapabilities.TRANSPORT_VPN }; in applyUnderlyingCapabilities() local
326 transportTypes = ArrayUtils.appendInt(transportTypes, underlyingType); in applyUnderlyingCapabilities()
347 caps.setTransportTypes(transportTypes); in applyUnderlyingCapabilities()
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java5251 int[] transportTypes = nc.getTransportTypes(); in hasWifiNetworkListenPermission() local
5252 if (transportTypes.length != 1 || transportTypes[0] != NetworkCapabilities.TRANSPORT_WIFI) { in hasWifiNetworkListenPermission()