Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/net/
DRouteInfo.java221 new IpPrefix(destination.getAddress(), destination.getPrefixLength()), in RouteInfo()
316 mDestination.getPrefixLength() == 32) || in isHost()
318 mDestination.getPrefixLength() == 128); in isHost()
337 return new LinkAddress(mDestination.getAddress(), mDestination.getPrefixLength()); in getDestinationLinkAddress()
381 return mType == RTN_UNICAST && mDestination.getPrefixLength() == 0; in isDefaultRoute()
451 (bestRoute.mDestination.getPrefixLength() >= in selectBestRoute()
452 route.mDestination.getPrefixLength())) { in selectBestRoute()
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()
DLinkAddress.java313 public int getPrefixLength() { in getPrefixLength() method in LinkAddress
325 return getPrefixLength(); in getNetworkPrefixLength()
DNetworkUtils.java438 int rank = 32 - prefix.getPrefixLength(); in routedIPv4AddressCount()
457 int rank = 128 - prefix.getPrefixLength(); in routedIPv6AddressCount()
DLinkProperties.java781 if (prefix != null && prefix.getPrefixLength() != 96) { in setNat64Prefix()
/frameworks/base/tests/net/common/java/android/net/
DLinkAddressTest.java81 assertEquals(25, address.getPrefixLength()); in testConstructors()
88 assertEquals(127, address.getPrefixLength()); in testConstructors()
96 assertEquals(64, address.getPrefixLength()); in testConstructors()
103 assertEquals(23, address.getPrefixLength()); in testConstructors()
123 assertEquals(8, ipv4Loopback.getPrefixLength()); in testConstructors()
126 assertEquals(128, ipv6Loopback.getPrefixLength()); in testConstructors()
/frameworks/base/services/net/java/android/net/ip/
DInterfaceController.java55 ifConfig.prefixLength = addr.getPrefixLength(); in setInterfaceAddress()
148 return addAddress(addr.getAddress(), addr.getPrefixLength()); in addAddress()
DRouterAdvertisementDaemon.java485 final int prefixLength = ipp.getPrefixLength();
523 final int prefixLength = ipp.getPrefixLength();
DIpServer.java530 if (linkAddr.getPrefixLength() != RFC7421_PREFIX_LENGTH) continue; in updateUpstreamIPv6LinkProperties()
533 linkAddr.getAddress(), linkAddr.getPrefixLength()); in updateUpstreamIPv6LinkProperties()
/frameworks/base/services/net/java/android/net/shared/
DInitialConfiguration.java185 return isIPv4(addr) || isCompliantIPv6PrefixLength(addr.getPrefixLength()); in isPrefixLengthCompliant()
189 return isIPv4(prefix) || isCompliantIPv6PrefixLength(prefix.getPrefixLength()); in isPrefixLengthCompliant()
/frameworks/base/services/net/java/android/net/util/
DPrefixUtils.java70 return new IpPrefix(addr.getAddress(), addr.getPrefixLength()); in asIpPrefix()
/frameworks/native/libs/binder/include/binder/
DIpPrefix.h56 int32_t getPrefixLength() const;
/frameworks/base/services/net/java/android/net/dhcp/
DDhcpServingParamsParcelExt.java49 this.serverAddrPrefixLength = serverAddr.getPrefixLength(); in setServerAddr()
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/
DIPv6TetheringCoordinator.java223 if (linkAddr.isGlobalPreferred() && linkAddr.getPrefixLength() == 64) { in getIPv6OnlyLinkProperties()
231 (destination.getPrefixLength() <= 64)) { in getIPv6OnlyLinkProperties()
/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.java244 int prefixLength = getPrefixLength(jsonConfig.getInt("prefix_length")); in getWifiConfiguration()
348 private static int getPrefixLength(int prefixLength) { in getPrefixLength() method in WifiConfigurationHelper
/frameworks/native/libs/binder/
DIpPrefix.cpp133 int32_t IpPrefix::getPrefixLength() const in getPrefixLength() function in android::net::IpPrefix
/frameworks/base/services/core/java/com/android/server/
DTestNetworkService.java110 addr.getPrefixLength()); in createInterface()
DIpSecService.java1382 localAddr.getPrefixLength()); in addAddressToTunnelInterface()
1411 localAddr.getPrefixLength()); in removeAddressFromTunnelInterface()
DNetworkManagementService.java767 cfgParcel.prefixLength = cfg.getLinkAddress().getPrefixLength(); in toStableParcel()
/frameworks/base/tests/net/java/com/android/server/
DIpSecServiceParameterizedTest.java703 eq(mLocalInnerAddress.getPrefixLength())); in testAddRemoveAddressFromTunnelInterface()
710 eq(mLocalInnerAddress.getPrefixLength())); in testAddRemoveAddressFromTunnelInterface()
/frameworks/base/services/core/java/com/android/server/net/
DIpConfigStore.java94 out.writeInt(ipAddress.getPrefixLength()); in writeConfig()
/frameworks/base/tests/net/java/android/net/ip/
DIpServerTest.java435 assertEquals(expectedPrefix.getPrefixLength(), params.serverAddrPrefixLength); in assertDhcpStarted()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DXmlUtil.java709 staticIpConfiguration.ipAddress.getPrefixLength()); in writeStaticIpConfigurationToXml()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...