Searched refs:transportTypes (Results 1 – 6 of 6) sorted by relevance
110 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()
363 int[] transportTypes = mCapabilities.getTransportTypes(); in NetworkInterfaceState() local364 if (transportTypes.length > 0) { in NetworkInterfaceState()365 legacyType = getLegacyType(transportTypes[0]); in NetworkInterfaceState()418 int[] transportTypes = mCapabilities.getTransportTypes(); in getNetworkScore() local419 if (transportTypes.length < 1) { in getNetworkScore()424 TransportInfo transportInfo = sTransports.get(transportTypes[0], /* if dne */ null); in getNetworkScore()
599 final int[] transportTypes = nc.getTransportTypes(); in testGetTransportTypes() local600 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()
774 public void setTransportTypes(@Transport int[] transportTypes) { in setTransportTypes() argument775 mTransportTypes = BitUtils.packBits(transportTypes); in setTransportTypes()
309 int[] transportTypes = new int[] { NetworkCapabilities.TRANSPORT_VPN }; in applyUnderlyingCapabilities() local326 transportTypes = ArrayUtils.appendInt(transportTypes, underlyingType); in applyUnderlyingCapabilities()347 caps.setTransportTypes(transportTypes); in applyUnderlyingCapabilities()
5251 int[] transportTypes = nc.getTransportTypes(); in hasWifiNetworkListenPermission() local5252 if (transportTypes.length != 1 || transportTypes[0] != NetworkCapabilities.TRANSPORT_WIFI) { in hasWifiNetworkListenPermission()