Searched refs:localPrefixes (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/services/net/java/android/net/util/ |
D | PrefixUtils.java | 56 final HashSet<IpPrefix> localPrefixes = new HashSet<>(); in localPrefixesFrom() local 57 if (lp == null) return localPrefixes; in localPrefixesFrom() 61 localPrefixes.add(asIpPrefix(addr)); in localPrefixesFrom() 66 return localPrefixes; in localPrefixesFrom()
|
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/ |
D | OffloadControllerTest.java | 246 ArrayList<String> localPrefixes = mStringArrayCaptor.getValue(); in testSetUpstreamLinkPropertiesWorking() local 247 assertEquals(4, localPrefixes.size()); in testSetUpstreamLinkPropertiesWorking() 248 assertArrayListContains(localPrefixes, in testSetUpstreamLinkPropertiesWorking() 362 localPrefixes = mStringArrayCaptor.getValue(); in testSetUpstreamLinkPropertiesWorking() 363 assertEquals(6, localPrefixes.size()); in testSetUpstreamLinkPropertiesWorking() 364 assertArrayListContains(localPrefixes, in testSetUpstreamLinkPropertiesWorking() 719 ArrayList<String> localPrefixes = mStringArrayCaptor.getValue(); in testControlCallbackOnSupportAvailableFetchesAllStatsAndPushesAllParameters() local 720 assertEquals(4, localPrefixes.size()); in testControlCallbackOnSupportAvailableFetchesAllStatsAndPushesAllParameters() 721 assertArrayListContains(localPrefixes, in testControlCallbackOnSupportAvailableFetchesAllStatsAndPushesAllParameters()
|
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/ |
D | OffloadHardwareInterface.java | 177 public boolean setLocalPrefixes(ArrayList<String> localPrefixes) { in setLocalPrefixes() argument 179 String.join(",", localPrefixes)); in setLocalPrefixes() 183 mOffloadControl.setLocalPrefixes(localPrefixes, in setLocalPrefixes()
|
D | UpstreamNetworkMonitor.java | 383 final HashSet<IpPrefix> localPrefixes = allLocalPrefixes(mNetworkMap.values()); in recomputeLocalPrefixes() local 384 if (!mLocalPrefixes.equals(localPrefixes)) { in recomputeLocalPrefixes() 385 mLocalPrefixes = localPrefixes; in recomputeLocalPrefixes() 386 notifyTarget(NOTIFY_LOCAL_PREFIXES, localPrefixes.clone()); in recomputeLocalPrefixes()
|
D | OffloadController.java | 379 public void setLocalPrefixes(Set<IpPrefix> localPrefixes) { in setLocalPrefixes() argument 380 mExemptPrefixes = localPrefixes; in setLocalPrefixes() 514 Set<IpPrefix> localPrefixes, LinkProperties upstreamLinkProperties) { in computeLocalPrefixStrings() argument 516 final Set<IpPrefix> prefixSet = new HashSet<>(localPrefixes); in computeLocalPrefixStrings()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | Tethering.java | 1629 public void sendOffloadExemptPrefixes(final Set<IpPrefix> localPrefixes) { in sendOffloadExemptPrefixes() argument 1631 PrefixUtils.addNonForwardablePrefixes(localPrefixes); in sendOffloadExemptPrefixes() 1633 localPrefixes.add(PrefixUtils.DEFAULT_WIFI_P2P_PREFIX); in sendOffloadExemptPrefixes() 1652 localPrefixes.add(PrefixUtils.ipAddressAsPrefix(ip)); in sendOffloadExemptPrefixes() 1657 localPrefixes.addAll(PrefixUtils.localPrefixesFrom(lp)); in sendOffloadExemptPrefixes() 1662 mOffloadController.setLocalPrefixes(localPrefixes); in sendOffloadExemptPrefixes()
|