Home
last modified time | relevance | path

Searched refs:localPrefixes (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/packages/Tethering/src/android/net/util/
DPrefixUtils.java59 final HashSet<IpPrefix> localPrefixes = new HashSet<>(); in localPrefixesFrom() local
60 if (lp == null) return localPrefixes; in localPrefixesFrom()
64 localPrefixes.add(asIpPrefix(addr)); in localPrefixesFrom()
69 return localPrefixes; in localPrefixesFrom()
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/
DOffloadHardwareInterfaceTest.java131 final ArrayList<String> localPrefixes = new ArrayList<>(); in testSetLocalPrefixes() local
132 localPrefixes.add("127.0.0.0/8"); in testSetLocalPrefixes()
133 localPrefixes.add("fe80::/64"); in testSetLocalPrefixes()
134 mOffloadHw.setLocalPrefixes(localPrefixes); in testSetLocalPrefixes()
135 verify(mIOffloadControl).setLocalPrefixes(eq(localPrefixes), any()); in testSetLocalPrefixes()
DOffloadControllerTest.java275 ArrayList<String> localPrefixes = mStringArrayCaptor.getValue(); in testSetUpstreamLinkPropertiesWorking() local
276 assertEquals(4, localPrefixes.size()); in testSetUpstreamLinkPropertiesWorking()
277 assertContainsAll(localPrefixes, in testSetUpstreamLinkPropertiesWorking()
393 localPrefixes = mStringArrayCaptor.getValue(); in testSetUpstreamLinkPropertiesWorking()
394 assertEquals(6, localPrefixes.size()); in testSetUpstreamLinkPropertiesWorking()
395 assertContainsAll(localPrefixes, in testSetUpstreamLinkPropertiesWorking()
766 ArrayList<String> localPrefixes = mStringArrayCaptor.getValue(); in testControlCallbackOnSupportAvailableFetchesAllStatsAndPushesAllParameters() local
767 assertEquals(4, localPrefixes.size()); in testControlCallbackOnSupportAvailableFetchesAllStatsAndPushesAllParameters()
768 assertContainsAll(localPrefixes, in testControlCallbackOnSupportAvailableFetchesAllStatsAndPushesAllParameters()
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/
DUpstreamNetworkMonitor.java414 final HashSet<IpPrefix> localPrefixes = allLocalPrefixes(mNetworkMap.values()); in recomputeLocalPrefixes() local
415 if (!mLocalPrefixes.equals(localPrefixes)) { in recomputeLocalPrefixes()
416 mLocalPrefixes = localPrefixes; in recomputeLocalPrefixes()
417 notifyTarget(NOTIFY_LOCAL_PREFIXES, localPrefixes.clone()); in recomputeLocalPrefixes()
DOffloadController.java516 public void setLocalPrefixes(Set<IpPrefix> localPrefixes) { in setLocalPrefixes() argument
517 mExemptPrefixes = localPrefixes; in setLocalPrefixes()
654 Set<IpPrefix> localPrefixes, LinkProperties upstreamLinkProperties) { in computeLocalPrefixStrings() argument
656 final Set<IpPrefix> prefixSet = new HashSet<>(localPrefixes); in computeLocalPrefixStrings()
DOffloadHardwareInterface.java370 public boolean setLocalPrefixes(ArrayList<String> localPrefixes) { in setLocalPrefixes() argument
372 String.join(",", localPrefixes)); in setLocalPrefixes()
376 mOffloadControl.setLocalPrefixes(localPrefixes, in setLocalPrefixes()
DTethering.java2005 public void sendOffloadExemptPrefixes(final Set<IpPrefix> localPrefixes) { in sendOffloadExemptPrefixes() argument
2007 PrefixUtils.addNonForwardablePrefixes(localPrefixes); in sendOffloadExemptPrefixes()
2009 localPrefixes.add(PrefixUtils.DEFAULT_WIFI_P2P_PREFIX); in sendOffloadExemptPrefixes()
2028 localPrefixes.add(PrefixUtils.ipAddressAsPrefix(ip)); in sendOffloadExemptPrefixes()
2033 localPrefixes.addAll(PrefixUtils.localPrefixesFrom(lp)); in sendOffloadExemptPrefixes()
2038 mOffloadController.setLocalPrefixes(localPrefixes); in sendOffloadExemptPrefixes()