Home
last modified time | relevance | path

Searched refs:transportTypes (Results 1 – 9 of 9) 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/base/services/core/java/com/android/server/connectivity/
DDnsManager.java328 public void updateTransportsForNetwork(int netId, @NonNull int[] transportTypes) { in updateTransportsForNetwork() argument
329 mTransportsMap.put(netId, transportTypes); in updateTransportsForNetwork()
349 final int[] transportTypes = mTransportsMap.get(netId); in sendDnsConfigurationForNetwork() local
350 if (lp == null || transportTypes == null) return; in sendDnsConfigurationForNetwork()
383 paramsParcel.transportTypes = transportTypes; in sendDnsConfigurationForNetwork()
DVpn.java351 int[] transportTypes = new int[] { NetworkCapabilities.TRANSPORT_VPN }; in applyUnderlyingCapabilities() local
367 transportTypes = ArrayUtils.appendInt(transportTypes, underlyingType); in applyUnderlyingCapabilities()
398 caps.setTransportTypes(transportTypes); in applyUnderlyingCapabilities()
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/
DEthernetNetworkFactory.java364 int[] transportTypes = mCapabilities.getTransportTypes(); in NetworkInterfaceState() local
366 if (transportTypes.length > 0) { in NetworkInterfaceState()
367 legacyType = getLegacyType(transportTypes[0]); in NetworkInterfaceState()
425 int[] transportTypes = mCapabilities.getTransportTypes(); in getNetworkScore() local
426 if (transportTypes.length < 1) { in getNetworkScore()
431 TransportInfo transportInfo = sTransports.get(transportTypes[0], /* if dne */ null); in getNetworkScore()
/frameworks/base/tests/net/common/java/android/net/
DNetworkCapabilitiesTest.java694 final int[] transportTypes = nc.getTransportTypes(); in testGetTransportTypes() local
695 assertEquals(4, transportTypes.length); in testGetTransportTypes()
696 assertEquals(TRANSPORT_CELLULAR, transportTypes[0]); in testGetTransportTypes()
697 assertEquals(TRANSPORT_WIFI, transportTypes[1]); in testGetTransportTypes()
698 assertEquals(TRANSPORT_VPN, transportTypes[2]); in testGetTransportTypes()
699 assertEquals(TRANSPORT_TEST, transportTypes[3]); in testGetTransportTypes()
/frameworks/base/tests/net/java/com/android/server/connectivity/
DDnsManagerTest.java129 assertContainsExactly(actual.transportTypes, expected.transportTypes); in assertResolverParamsEquals()
362 expectedParams.transportTypes = TEST_TRANSPORT_TYPES; in testSendDnsConfiguration()
/frameworks/base/core/java/android/net/
DNetworkCapabilities.java865 public void setTransportTypes(@Transport int[] transportTypes) { in setTransportTypes() argument
866 mTransportTypes = BitUtils.packBits(transportTypes); in setTransportTypes()
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java5648 int[] transportTypes = nc.getTransportTypes(); in hasWifiNetworkListenPermission() local
5649 if (transportTypes.length != 1 || transportTypes[0] != NetworkCapabilities.TRANSPORT_WIFI) { in hasWifiNetworkListenPermission()
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java4942 assertContainsExactly(resolverParams.transportTypes, TRANSPORT_WIFI); in testDnsConfigurationTransTypesPushed()