Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/net/
DRouteInfo.java172 new IpPrefix(destination.getAddress(), destination.getPrefixLength()), in RouteInfo()
263 mDestination.getPrefixLength() == 32) || in isHost()
265 mDestination.getPrefixLength() == 128); in isHost()
282 return new LinkAddress(mDestination.getAddress(), mDestination.getPrefixLength()); in getDestinationLinkAddress()
321 return mType == RTN_UNICAST && mDestination.getPrefixLength() == 0; in isDefaultRoute()
390 (bestRoute.mDestination.getPrefixLength() >= in selectBestRoute()
391 route.mDestination.getPrefixLength())) { in selectBestRoute()
DLinkAddress.java255 public int getPrefixLength() { in getPrefixLength() method in LinkAddress
265 return getPrefixLength(); in getNetworkPrefixLength()
DIpPrefix.java168 public int getPrefixLength() { in getPrefixLength() method in IpPrefix
/frameworks/base/core/tests/coretests/src/android/net/
DLinkAddressTest.java74 assertEquals(25, address.getPrefixLength()); in testConstructors()
80 assertEquals(127, address.getPrefixLength()); in testConstructors()
87 assertEquals(64, address.getPrefixLength()); in testConstructors()
93 assertEquals(23, address.getPrefixLength()); in testConstructors()
112 assertEquals(8, ipv4Loopback.getPrefixLength()); in testConstructors()
115 assertEquals(128, ipv6Loopback.getPrefixLength()); in testConstructors()
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/
DIPv6TetheringCoordinator.java230 if (linkAddr.isGlobalPreferred() && linkAddr.getPrefixLength() == 64) { in getIPv6OnlyLinkProperties()
238 (destination.getPrefixLength() <= 64)) { in getIPv6OnlyLinkProperties()
DIPv6TetheringInterfaceServices.java127 if (linkAddr.getPrefixLength() != RFC7421_IP_PREFIX_LENGTH) continue; in updateUpstreamIPv6LinkProperties()
130 linkAddr.getAddress(), linkAddr.getPrefixLength()); in updateUpstreamIPv6LinkProperties()
/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/base/services/net/java/android/net/ip/
DRouterAdvertisementDaemon.java469 final int prefixLength = ipp.getPrefixLength();
507 final int prefixLength = ipp.getPrefixLength();
/frameworks/base/services/core/java/com/android/server/net/
DIpConfigStore.java85 out.writeInt(ipAddress.getPrefixLength()); in writeConfig()
/frameworks/base/services/net/java/android/net/apf/
DApfFilter.java1096 final int prefix = (ipv4Address != null) ? ipv4Address.getPrefixLength() : 0; in setLinkProperties()
/frameworks/base/services/core/java/com/android/server/
DNetworkManagementService.java1051 linkAddr.getPrefixLength()); in setInterfaceConfig()
2644 cmd.appendArg(la.getAddress().getHostAddress() + "/" + la.getPrefixLength()); in addLegacyRouteForNetId()
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt16999 method public int getPrefixLength();
17009 method public int getPrefixLength();
/frameworks/base/api/
Dcurrent.txt23569 method public int getPrefixLength();
23579 method public int getPrefixLength();
Dsystem-current.txt25402 method public int getPrefixLength();
25412 method public int getPrefixLength();
Dtest-current.txt23643 method public int getPrefixLength();
23653 method public int getPrefixLength();