Home
last modified time | relevance | path

Searched refs:getPrefixLength (Results 1 – 25 of 34) sorted by relevance

12

/frameworks/base/core/java/android/net/
DIpPrefix.java180 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()
DRouteInfo.java253 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()
DLinkAddress.java412 public int getPrefixLength() { in getPrefixLength() method in LinkAddress
424 return getPrefixLength(); in getNetworkPrefixLength()
DNetworkUtils.java429 int rank = 32 - prefix.getPrefixLength(); in routedIPv4AddressCount()
448 int rank = 128 - prefix.getPrefixLength(); in routedIPv6AddressCount()
/frameworks/libs/net/common/framework/android/net/util/
DNetUtils.java61 && (bestRoute.getDestination().getPrefixLength() in selectBestRoute()
62 >= route.getDestination().getPrefixLength())) { in selectBestRoute()
DIpRange.java77 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/
DLinkAddressTest.java93 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/
DPrivateAddressCoordinator.java217 if (prefix2.getPrefixLength() < prefix1.getPrefixLength()) { in isConflictPrefix()
DIPv6TetheringCoordinator.java238 if (linkAddr.isGlobalPreferred() && linkAddr.getPrefixLength() == 64) { in getIPv6OnlyLinkProperties()
246 && (destination.getPrefixLength() <= 64)) { in getIPv6OnlyLinkProperties()
DOffloadController.java685 destination.getPrefixLength()); in shouldIgnoreDownstreamRoute()
/frameworks/native/libs/binder/include/binder/
DIpPrefix.h56 int32_t getPrefixLength() const;
/frameworks/base/packages/Tethering/src/android/net/util/
DPrefixUtils.java74 return new IpPrefix(addr.getAddress(), addr.getPrefixLength()); in asIpPrefix()
/frameworks/base/tests/net/java/android/net/
DIpSecManagerTest.java294 VTI_INNER_ADDRESS.getPrefixLength()); in testAddRemoveAddressesFromVti()
300 VTI_INNER_ADDRESS.getPrefixLength()); in testAddRemoveAddressesFromVti()
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
DWifiConfigurationHelper.java250 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/
DDhcpServingParamsParcelExt.java51 this.serverAddrPrefixLength = serverAddr.getPrefixLength(); in setServerAddr()
/frameworks/native/libs/binder/
DIpPrefix.cpp132 int32_t IpPrefix::getPrefixLength() const in getPrefixLength() function in android::net::IpPrefix
/frameworks/base/packages/Tethering/src/android/net/ip/
DIpServer.java716 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()
DRouterAdvertisementDaemon.java500 final int prefixLength = ipp.getPrefixLength();
538 final int prefixLength = ipp.getPrefixLength();
/frameworks/base/services/core/java/com/android/server/
DTestNetworkService.java112 addr.getPrefixLength()); in createInterface()
DIpSecService.java1397 localAddr.getPrefixLength()); in addAddressToTunnelInterface()
1426 localAddr.getPrefixLength()); in removeAddressFromTunnelInterface()
DNetworkManagementService.java774 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/
DIpSecServiceParameterizedTest.java802 eq(mLocalInnerAddress.getPrefixLength())); in testAddRemoveAddressFromTunnelInterface()
809 eq(mLocalInnerAddress.getPrefixLength())); in testAddRemoveAddressFromTunnelInterface()
/frameworks/base/packages/Tethering/common/TetheringLib/src/android/net/
DTetheringManager.java677 return localIPv4Address.getPrefixLength() == clientAddress.getPrefixLength()
/frameworks/base/packages/Tethering/tests/unit/src/android/net/ip/
DIpServerTest.java619 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/
DIpConfigStore.java95 out.writeInt(ipAddress.getPrefixLength()); in writeConfig()

12