Home
last modified time | relevance | path

Searched refs:getUnderlyingNetworks (Results 1 – 13 of 13) sorted by relevance

/packages/modules/NetworkStack/apishim/33/com/android/networkstack/apishim/api33/
DNetworkInformationShimImpl.java52 public List<Network> getUnderlyingNetworks(@NonNull NetworkCapabilities nc) { in getUnderlyingNetworks() method in NetworkInformationShimImpl
53 return nc.getUnderlyingNetworks(); in getUnderlyingNetworks()
/packages/modules/Connectivity/framework/api/
Dsystem-lint-baseline.txt18 RequiresPermission: android.net.NetworkCapabilities#getUnderlyingNetworks():
19 …Method 'getUnderlyingNetworks' documentation mentions permissions without declaring @RequiresPermi…
Dmodule-lib-lint-baseline.txt20 RequiresPermission: android.net.NetworkCapabilities#getUnderlyingNetworks():
21 …Method 'getUnderlyingNetworks' documentation mentions permissions without declaring @RequiresPermi…
Dsystem-current.txt311 method @Nullable public java.util.List<android.net.Network> getUnderlyingNetworks();
/packages/modules/NetworkStack/apishim/common/com/android/networkstack/apishim/common/
DNetworkInformationShim.java106 default List<Network> getUnderlyingNetworks(@NonNull NetworkCapabilities nc) { in getUnderlyingNetworks() method
/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/
DVpnTest.java884 entry.getCaps().getUnderlyingNetworks()))); in expectUnderlyingNetworks()
1028 assertNotNull(nc.getUnderlyingNetworks()); in testDefault()
1029 assertEquals(defaultNetwork, new ArrayList<>(nc.getUnderlyingNetworks()).get(0)); in testDefault()
1532 assertNotNull(nc.getUnderlyingNetworks()); in testVpnMeterednessWithNoUnderlyingNetwork()
1533 assertEquals(underlyingNetworks, new ArrayList<>(nc.getUnderlyingNetworks())); in testVpnMeterednessWithNoUnderlyingNetwork()
1596 assertNotNull(nc.getUnderlyingNetworks()); in testVpnMeterednessWithNonNullUnderlyingNetwork()
1597 final List<Network> underlying = nc.getUnderlyingNetworks(); in testVpnMeterednessWithNonNullUnderlyingNetwork()
1657 assertNotNull(nc.getUnderlyingNetworks()); in testAlwaysMeteredVpnWithNonNullUnderlyingNetwork()
1658 final List<Network> underlying = nc.getUnderlyingNetworks(); in testAlwaysMeteredVpnWithNonNullUnderlyingNetwork()
/packages/modules/Connectivity/framework/src/android/net/
DNetworkCapabilities.java1090 public List<Network> getUnderlyingNetworks() { in getUnderlyingNetworks() method in NetworkCapabilities
1095 return Objects.equals(getUnderlyingNetworks(), nc.getUnderlyingNetworks()); in equalsUnderlyingNetworks()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DNetworkAgentInfo.java663 declaredUnderlyingNetworks = (nc.getUnderlyingNetworks() != null) in NetworkAgentInfo()
664 ? nc.getUnderlyingNetworks().toArray(new Network[0]) in NetworkAgentInfo()
/packages/modules/Connectivity/tests/common/java/android/net/
DNetworkCapabilitiesTest.java709 final ArrayList<Network> outputNetworks = new ArrayList<>(nc.getUnderlyingNetworks()); in testUnderlyingNetworks()
713 assertNull(nc.getUnderlyingNetworks()); in testUnderlyingNetworks()
1289 final List<Network> outputNetworks = nc.getUnderlyingNetworks(); in testBuilder()
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DConnectivityServiceTest.java8661 assertEquals(0, new ArrayList<>(caps.getUnderlyingNetworks()).size());
8666 assertEquals(0, new ArrayList<>(caps.getUnderlyingNetworks()).size());
8671 assertEquals(1, new ArrayList<>(caps.getUnderlyingNetworks()).size());
8672 assertEquals(mobile, new ArrayList<>(caps.getUnderlyingNetworks()).get(0));
8677 assertEquals(1, new ArrayList<>(caps.getUnderlyingNetworks()).size());
8678 assertEquals(wifi, new ArrayList<>(caps.getUnderlyingNetworks()).get(0));
8684 assertEquals(1, new ArrayList<>(caps.getUnderlyingNetworks()).size());
8685 assertEquals(wifi, new ArrayList<>(caps.getUnderlyingNetworks()).get(0));
8690 assertEquals(2, new ArrayList<>(caps.getUnderlyingNetworks()).size());
8691 assertEquals(mobile, new ArrayList<>(caps.getUnderlyingNetworks()).get(0));
[all …]
/packages/modules/NetworkStack/src/com/android/server/connectivity/
DNetworkMonitor.java1226 && !Objects.equals(mInfoShim.getUnderlyingNetworks(newCap), in isVpnUnderlyingNetworkChangeReevaluationRequired()
1227 mInfoShim.getUnderlyingNetworks(oldCap)); in isVpnUnderlyingNetworkChangeReevaluationRequired()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DConnectivityManagerTest.java822 assertNull(redactedNormal.getUnderlyingNetworks()); in testGetRedactedNetworkCapabilitiesForPackage()
836 assertEquals(List.of(defaultNetwork), redactedPrivileged.getUnderlyingNetworks()); in testGetRedactedNetworkCapabilitiesForPackage()
/packages/modules/Connectivity/service/src/com/android/server/
DConnectivityService.java2873 if (nc.getUnderlyingNetworks() != null
12530 final List<Network> underlyingNetworks = nc.getUnderlyingNetworks();