/frameworks/base/core/java/android/net/ |
D | IpPrefix.java | 180 public int getPrefixLength() { in getPrefixLength() method in IpPrefix 207 if (otherPrefix.getPrefixLength() < prefixLength) return false; in containsPrefix() 270 final int p1len = prefix1.getPrefixLength(); in lengthComparator() 271 final int p2len = prefix2.getPrefixLength(); in lengthComparator()
|
D | RouteInfo.java | 253 new IpPrefix(destination.getAddress(), destination.getPrefixLength()), in RouteInfo() 348 mDestination.getPrefixLength() == 32) || in isHost() 350 mDestination.getPrefixLength() == 128); in isHost() 369 return new LinkAddress(mDestination.getAddress(), mDestination.getPrefixLength()); in getDestinationLinkAddress() 424 return mType == RTN_UNICAST && mDestination.getPrefixLength() == 0; in isDefaultRoute() 434 return mType == RTN_UNREACHABLE && mDestination.getPrefixLength() == 0; in isUnreachableDefaultRoute()
|
D | LinkAddress.java | 412 public int getPrefixLength() { in getPrefixLength() method in LinkAddress 424 return getPrefixLength(); in getNetworkPrefixLength()
|
D | NetworkUtils.java | 429 int rank = 32 - prefix.getPrefixLength(); in routedIPv4AddressCount() 448 int rank = 128 - prefix.getPrefixLength(); in routedIPv6AddressCount()
|
/frameworks/libs/net/common/framework/android/net/util/ |
D | NetUtils.java | 61 && (bestRoute.getDestination().getPrefixLength() in selectBestRoute() 62 >= route.getDestination().getPrefixLength())) { in selectBestRoute()
|
D | IpRange.java | 77 for (int bitIndex = prefix.getPrefixLength(); bitIndex < 8 * mEndAddr.length; ++bitIndex) { in IpRange() 165 final int currentPrefixLen = prefix.getPrefixLength(); in getSubsetPrefixes()
|
/frameworks/base/tests/net/common/java/android/net/ |
D | LinkAddressTest.java | 93 assertEquals(25, address.getPrefixLength()); in testConstructors() 100 assertEquals(127, address.getPrefixLength()); in testConstructors() 108 assertEquals(64, address.getPrefixLength()); in testConstructors() 115 assertEquals(23, address.getPrefixLength()); in testConstructors() 135 assertEquals(8, ipv4Loopback.getPrefixLength()); in testConstructors() 138 assertEquals(128, ipv6Loopback.getPrefixLength()); in testConstructors()
|
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/ |
D | PrivateAddressCoordinator.java | 217 if (prefix2.getPrefixLength() < prefix1.getPrefixLength()) { in isConflictPrefix()
|
D | IPv6TetheringCoordinator.java | 238 if (linkAddr.isGlobalPreferred() && linkAddr.getPrefixLength() == 64) { in getIPv6OnlyLinkProperties() 246 && (destination.getPrefixLength() <= 64)) { in getIPv6OnlyLinkProperties()
|
D | OffloadController.java | 685 destination.getPrefixLength()); in shouldIgnoreDownstreamRoute()
|
/frameworks/native/libs/binder/include/binder/ |
D | IpPrefix.h | 56 int32_t getPrefixLength() const;
|
/frameworks/base/packages/Tethering/src/android/net/util/ |
D | PrefixUtils.java | 74 return new IpPrefix(addr.getAddress(), addr.getPrefixLength()); in asIpPrefix()
|
/frameworks/base/tests/net/java/android/net/ |
D | IpSecManagerTest.java | 294 VTI_INNER_ADDRESS.getPrefixLength()); in testAddRemoveAddressesFromVti() 300 VTI_INNER_ADDRESS.getPrefixLength()); in testAddRemoveAddressesFromVti()
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/ |
D | WifiConfigurationHelper.java | 250 int prefixLength = getPrefixLength(jsonConfig.getInt("prefix_length")); in getWifiConfiguration() 355 private static int getPrefixLength(int prefixLength) { in getPrefixLength() method in WifiConfigurationHelper
|
/frameworks/base/packages/Tethering/src/android/net/dhcp/ |
D | DhcpServingParamsParcelExt.java | 51 this.serverAddrPrefixLength = serverAddr.getPrefixLength(); in setServerAddr()
|
/frameworks/native/libs/binder/ |
D | IpPrefix.cpp | 132 int32_t IpPrefix::getPrefixLength() const in getPrefixLength() function in android::net::IpPrefix
|
/frameworks/base/packages/Tethering/src/android/net/ip/ |
D | IpServer.java | 716 if (linkAddr.getPrefixLength() != RFC7421_PREFIX_LENGTH) continue; in updateUpstreamIPv6LinkProperties() 719 linkAddr.getAddress(), linkAddr.getPrefixLength()); in updateUpstreamIPv6LinkProperties() 924 || currentPrefix.getPrefixLength() != mIpv4Address.getPrefixLength()) { in handleNewPrefixRequest() 938 if (!mInterfaceCtrl.addAddress(srvAddr, currentPrefix.getPrefixLength())) { in handleNewPrefixRequest()
|
D | RouterAdvertisementDaemon.java | 500 final int prefixLength = ipp.getPrefixLength(); 538 final int prefixLength = ipp.getPrefixLength();
|
/frameworks/base/services/core/java/com/android/server/ |
D | TestNetworkService.java | 112 addr.getPrefixLength()); in createInterface()
|
D | IpSecService.java | 1397 localAddr.getPrefixLength()); in addAddressToTunnelInterface() 1426 localAddr.getPrefixLength()); in removeAddressFromTunnelInterface()
|
D | NetworkManagementService.java | 774 cfgParcel.prefixLength = cfg.getLinkAddress().getPrefixLength(); in toStableParcel() 1034 final IpPrefix dest = new IpPrefix(addr.getAddress(), addr.getPrefixLength()); in tetherInterface()
|
/frameworks/base/tests/net/java/com/android/server/ |
D | IpSecServiceParameterizedTest.java | 802 eq(mLocalInnerAddress.getPrefixLength())); in testAddRemoveAddressFromTunnelInterface() 809 eq(mLocalInnerAddress.getPrefixLength())); in testAddRemoveAddressFromTunnelInterface()
|
/frameworks/base/packages/Tethering/common/TetheringLib/src/android/net/ |
D | TetheringManager.java | 677 return localIPv4Address.getPrefixLength() == clientAddress.getPrefixLength()
|
/frameworks/base/packages/Tethering/tests/unit/src/android/net/ip/ |
D | IpServerTest.java | 619 linkAddresses.get(0).getPrefixLength()); in testOnNewPrefixRequest() 1003 assertEquals(prefix.getPrefixLength(), params.serverAddrPrefixLength); in assertDhcpServingParams() 1072 final IpPrefix destination = new IpPrefix(addr4.getAddress(), addr4.getPrefixLength()); in assertIPv4AddressAndDirectlyConnectedRoute()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | IpConfigStore.java | 95 out.writeInt(ipAddress.getPrefixLength()); in writeConfig()
|