Home
last modified time | relevance | path

Searched refs:asIpPrefix (Results 1 – 5 of 5) sorted by relevance

/aosp12/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
H A DPrivateAddressCoordinatorTest.java26 import static android.net.util.PrefixUtils.asIpPrefix;
119 final IpPrefix hotspotPrefix = asIpPrefix(address); in testRequestDownstreamAddressWithoutUsingLastAddress()
124 final IpPrefix testDupRequest = asIpPrefix(newAddress); in testRequestDownstreamAddressWithoutUsingLastAddress()
131 final IpPrefix usbPrefix = asIpPrefix(usbAddress); in testRequestDownstreamAddressWithoutUsingLastAddress()
172 final IpPrefix hotspotPrefix = asIpPrefix(hotspotAddress); in testReservedPrefix()
181 final IpPrefix usbPrefix = asIpPrefix(usbAddress); in testReservedPrefix()
191 final IpPrefix etherPrefix = asIpPrefix(etherAddress); in testReservedPrefix()
261 final IpPrefix hotspotPrefix = asIpPrefix(hotspotAddr); in testNoConflictUpstreamPrefix()
322 final IpPrefix usbPrefix = asIpPrefix(usbAddr); in testNoConflictUpstreamPrefix()
329 final IpPrefix ethPrefix = asIpPrefix(ethAddr); in testNoConflictUpstreamPrefix()
[all …]
/aosp12/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
H A DPrivateAddressCoordinator.java21 import static android.net.util.PrefixUtils.asIpPrefix;
129 list.add(asIpPrefix(address)); in getIpv4Prefixes()
180 && !isConflictWithUpstream(asIpPrefix(cachedAddress))) { in requestDownstreamAddress()
365 final IpPrefix downstream = asIpPrefix(mCachedAddresses.valueAt(i)); in getInUseDownstreamPrefix()
384 return asIpPrefix(address); in getDownstreamPrefix()
/aosp12/packages/modules/Connectivity/Tethering/src/android/net/util/
H A DPrefixUtils.java64 localPrefixes.add(asIpPrefix(addr)); in localPrefixesFrom()
73 public static IpPrefix asIpPrefix(LinkAddress addr) { in asIpPrefix() method in PrefixUtils
/aosp12/packages/modules/Connectivity/Tethering/src/android/net/ip/
H A DIpServer.java24 import static android.net.util.PrefixUtils.asIpPrefix;
522 return new RouteInfo(PrefixUtils.asIpPrefix(ipv4Address), null, mIfaceName, RTN_UNICAST); in getDirectConnectedRoute()
625 final IpPrefix ipv4Prefix = asIpPrefix(mIpv4Address); in configureIPv4()
1167 NetdUtils.tetherInterface(mNetd, mIfaceName, asIpPrefix(mIpv4Address)); in enter()
/aosp12/packages/modules/Connectivity/Tethering/tests/unit/src/android/net/ip/
H A DIpServerTest.java678 assertDhcpStarted(PrefixUtils.asIpPrefix(mTestAddress)); in startsDhcpServer()
694 assertDhcpStarted(PrefixUtils.asIpPrefix(mTestAddress)); in startsDhcpServerOnWifiP2p()