Home
last modified time | relevance | path

Searched refs:getPrefixLength (Results 1 – 8 of 8) 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()
374 mDestination.getPrefixLength()); in matches()
396 (bestRoute.mDestination.getPrefixLength() >= in selectBestRoute()
397 route.mDestination.getPrefixLength())) { in selectBestRoute()
DLinkAddress.java239 public int getPrefixLength() { in getPrefixLength() method in LinkAddress
249 return getPrefixLength(); in getNetworkPrefixLength()
DIpPrefix.java168 public int getPrefixLength() { in getPrefixLength() method in IpPrefix
/frameworks/base/core/tests/coretests/src/android/net/
DLinkAddressTest.java71 assertEquals(25, address.getPrefixLength()); in testConstructors()
77 assertEquals(127, address.getPrefixLength()); in testConstructors()
84 assertEquals(64, address.getPrefixLength()); in testConstructors()
90 assertEquals(23, address.getPrefixLength()); in testConstructors()
109 assertEquals(8, ipv4Loopback.getPrefixLength()); in testConstructors()
112 assertEquals(128, ipv6Loopback.getPrefixLength()); in testConstructors()
/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/core/java/com/android/server/net/
DIpConfigStore.java87 out.writeInt(ipAddress.getPrefixLength()); in writeConfig()
/frameworks/base/services/core/java/com/android/server/
DNetworkManagementService.java871 linkAddr.getPrefixLength()); in setInterfaceConfig()
2026 cmd.appendArg(la.getAddress().getHostAddress() + "/" + la.getPrefixLength()); in addLegacyRouteForNetId()
/frameworks/base/api/
Dcurrent.txt16936 method public int getPrefixLength();
16946 method public int getPrefixLength();