Home
last modified time | relevance | path

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

/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DPrivateAddressCoordinatorTest.java29 import static com.android.networkstack.tethering.util.PrefixUtils.asIpPrefix;
123 final IpPrefix bluetoothPrefix = asIpPrefix(mBluetoothAddress); in testRequestDownstreamAddressWithoutUsingLastAddress()
126 final IpPrefix hotspotPrefix = asIpPrefix(address); in testRequestDownstreamAddressWithoutUsingLastAddress()
131 final IpPrefix newHotspotPrefix = asIpPrefix(newAddress); in testRequestDownstreamAddressWithoutUsingLastAddress()
137 final IpPrefix usbPrefix = asIpPrefix(usbAddress); in testRequestDownstreamAddressWithoutUsingLastAddress()
183 final IpPrefix hotspotPrefix = asIpPrefix(hotspotAddress); in testReservedPrefix()
184 assertNotEquals(asIpPrefix(mBluetoothAddress), hotspotPrefix); in testReservedPrefix()
192 final IpPrefix usbPrefix = asIpPrefix(usbAddress); in testReservedPrefix()
193 assertNotEquals(asIpPrefix(mBluetoothAddress), usbPrefix); in testReservedPrefix()
202 final IpPrefix etherPrefix = asIpPrefix(etherAddress); in testReservedPrefix()
[all …]
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DPrivateAddressCoordinator.java27 import static com.android.networkstack.tethering.util.PrefixUtils.asIpPrefix;
131 list.add(asIpPrefix(address)); in getIpv4Prefixes()
187 && !isConflictWithUpstream(asIpPrefix(cachedAddress))) { in requestDownstreamAddress()
398 final IpPrefix downstream = asIpPrefix(mCachedAddresses.valueAt(i)); in getInUseDownstreamPrefix()
417 return asIpPrefix(address); in getDownstreamPrefix()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/util/
DPrefixUtils.java65 localPrefixes.add(asIpPrefix(addr)); in localPrefixesFrom()
74 public static IpPrefix asIpPrefix(LinkAddress addr) { in asIpPrefix() method in PrefixUtils
/packages/modules/Connectivity/Tethering/src/android/net/ip/
DIpServer.java38 import static com.android.networkstack.tethering.util.PrefixUtils.asIpPrefix;
580 return new RouteInfo(PrefixUtils.asIpPrefix(ipv4Address), null, mIfaceName, RTN_UNICAST); in getDirectConnectedRoute()
685 final IpPrefix ipv4Prefix = asIpPrefix(mIpv4Address); in configureIPv4()
1200 NetdUtils.tetherInterface(mNetd, mIfaceName, asIpPrefix(mIpv4Address)); in startServingInterface()
/packages/modules/Connectivity/Tethering/tests/unit/src/android/net/ip/
DIpServerTest.java664 assertDhcpStarted(PrefixUtils.asIpPrefix(mTestAddress)); in startsDhcpServer()
673 assertDhcpStarted(PrefixUtils.asIpPrefix(mTestAddress)); in startsDhcpServerOnBluetooth()
684 assertDhcpStarted(PrefixUtils.asIpPrefix(mTestAddress)); in startsDhcpServerOnWifiP2p()