Home
last modified time | relevance | path

Searched refs:IpPrefix (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/net/
DIpPrefixTest.java19 import android.net.IpPrefix;
47 IpPrefix p; in testConstructor()
49 p = new IpPrefix((byte[]) null, 9); in testConstructor()
54 p = new IpPrefix((InetAddress) null, 10); in testConstructor()
59 p = new IpPrefix((String) null); in testConstructor()
66 p = new IpPrefix(b2, 29); in testConstructor()
71 p = new IpPrefix("1.2.3.4"); in testConstructor()
76 p = new IpPrefix("1.2.3.4/"); in testConstructor()
81 p = new IpPrefix("foo/32"); in testConstructor()
86 p = new IpPrefix("1/32"); in testConstructor()
[all …]
DRouteInfoTest.java22 import android.net.IpPrefix;
35 private IpPrefix Prefix(String prefix) { in Prefix()
36 return new IpPrefix(prefix); in Prefix()
45 r = new RouteInfo((IpPrefix) null, null, "rmnet0"); in testConstructor()
50 r = new RouteInfo((IpPrefix) null, Address("2001:db8::1"), null); in testConstructor()
55 r = new RouteInfo((IpPrefix) null, Address("192.0.2.1"), "wlan0"); in testConstructor()
76 public PatchedRouteInfo(IpPrefix destination, InetAddress gateway, String iface) { in testMatches()
DStaticIpConfigurationTest.java19 import android.net.IpPrefix;
154 final RouteInfo connectedRoute = new RouteInfo(new IpPrefix(ADDRSTR), null, IFACE); in testToLinkProperties()
161 RouteInfo defaultRoute = new RouteInfo(new IpPrefix("0.0.0.0/0"), GATEWAY, IFACE); in testToLinkProperties()
167 defaultRoute = new RouteInfo(new IpPrefix("0.0.0.0/0"), OFFLINKGATEWAY, IFACE); in testToLinkProperties()
170 RouteInfo gatewayRoute = new RouteInfo(new IpPrefix("192.0.2.129/32"), null, IFACE); in testToLinkProperties()
DLinkPropertiesTest.java19 import android.net.IpPrefix;
583 new IpPrefix(NetworkUtils.numericToInetAddress("75.208.0.0"), 16)))); in testIsReachable()
611 new IpPrefix(NetworkUtils.numericToInetAddress("fe80::"), 64)))); in testIsReachable()
628 new IpPrefix(NetworkUtils.numericToInetAddress("2001:db8:85a3::"), 64)))); in testIsReachable()
/frameworks/base/core/java/android/net/
DIpPrefix.java46 public final class IpPrefix implements Parcelable { class
68 public IpPrefix(byte[] address, int prefixLength) { in IpPrefix() method in IpPrefix
83 public IpPrefix(InetAddress address, int prefixLength) { in IpPrefix() method in IpPrefix
100 public IpPrefix(String prefix) { in IpPrefix() method in IpPrefix
120 if (!(obj instanceof IpPrefix)) { in equals()
123 IpPrefix that = (IpPrefix) obj; in equals()
219 public static final Creator<IpPrefix> CREATOR =
220 new Creator<IpPrefix>() {
221 public IpPrefix createFromParcel(Parcel in) {
224 return new IpPrefix(address, prefixLength);
[all …]
DRouteInfo.java53 private final IpPrefix mDestination;
102 public RouteInfo(IpPrefix destination, InetAddress gateway, String iface, int type) { in RouteInfo()
125 destination = new IpPrefix(Inet4Address.ANY, 0); in RouteInfo()
127 destination = new IpPrefix(Inet6Address.ANY, 0); in RouteInfo()
163 public RouteInfo(IpPrefix destination, InetAddress gateway, String iface) { in RouteInfo()
172 new IpPrefix(destination.getAddress(), destination.getPrefixLength()), in RouteInfo()
191 public RouteInfo(IpPrefix destination, InetAddress gateway) { in RouteInfo()
212 this((IpPrefix) null, gateway, null); in RouteInfo()
223 public RouteInfo(IpPrefix destination) { in RouteInfo()
237 public RouteInfo(IpPrefix destination, int type) { in RouteInfo()
[all …]
DIpPrefix.aidl20 parcelable IpPrefix;
DStaticIpConfiguration.java93 routes.add(new RouteInfo((IpPrefix) null, gateway, iface)); in getRoutes()
DVpnService.java505 mRoutes.add(new RouteInfo(new IpPrefix(address, prefixLength), null)); in addRoute()
/frameworks/base/core/java/com/android/internal/net/
DVpnConfig.java27 import android.net.IpPrefix;
121 RouteInfo info = new RouteInfo(new IpPrefix(route), null); in addLegacyRoutes()
/frameworks/base/services/core/java/com/android/server/connectivity/
DVpn.java45 import android.net.IpPrefix;
392 lp.addRoute(new RouteInfo(new IpPrefix(Inet4Address.ANY, 0), RTN_UNREACHABLE)); in makeLinkProperties()
395 lp.addRoute(new RouteInfo(new IpPrefix(Inet6Address.ANY, 0), RTN_UNREACHABLE)); in makeLinkProperties()
1339 mConfig.routes.add(new RouteInfo(new IpPrefix(addr, 32), RTN_THROW)); in execute()
1341 mConfig.routes.add(new RouteInfo(new IpPrefix(addr, 128), RTN_THROW)); in execute()
/frameworks/base/services/core/java/com/android/server/
DNetworkManagementService.java53 import android.net.IpPrefix;
897 RouteInfo route = new RouteInfo(new IpPrefix(cooked[3]), gateway, dev); in onEvent()
/frameworks/base/
DAndroid.mk519 frameworks/base/core/java/android/net/IpPrefix.aidl \
Dpreloaded-classes1294 android.net.IpPrefix
1295 android.net.IpPrefix$1
/frameworks/base/docs/html/sdk/api_diff/21/
DmissingSinces.txt45 NO DOC BLOCK: android.net.IpPrefix Class
/frameworks/base/api/
Dcurrent.txt18221 public final class IpPrefix implements android.os.Parcelable {
18228 field public static final android.os.Parcelable.Creator<android.net.IpPrefix> CREATOR;
18475 method public android.net.IpPrefix getDestination();
Dsystem-current.txt19733 public final class IpPrefix implements android.os.Parcelable {
19740 field public static final android.os.Parcelable.Creator<android.net.IpPrefix> CREATOR;
20012 method public android.net.IpPrefix getDestination();