/frameworks/base/core/java/android/net/ |
IpPrefix.aidl | 20 parcelable IpPrefix;
|
IpPrefix.java | 46 public final class IpPrefix implements Parcelable { 53 "IpPrefix has " + address.length + " bytes which is neither 4 nor 16"); 59 * Constructs a new {@code IpPrefix} from a byte array containing an IPv4 or IPv6 address in 68 public IpPrefix(byte[] address, int prefixLength) { 75 * Constructs a new {@code IpPrefix} from an IPv4 or IPv6 address and a prefix length. Silently 83 public IpPrefix(InetAddress address, int prefixLength) { 92 * Constructs a new IpPrefix from a string such as "192.0.2.1/24" or "2001:db8::1/64". 100 public IpPrefix(String prefix) { 112 * Compares this {@code IpPrefix} object against the specified object in {@code obj}. Two 120 if (!(obj instanceof IpPrefix)) { [all...] |
RouteInfo.java | 38 * <li>a destination {@link IpPrefix} specifying the network destinations covered by this route. 53 private final IpPrefix mDestination; 102 public RouteInfo(IpPrefix destination, InetAddress gateway, String iface, int type) { 125 destination = new IpPrefix(Inet4Address.ANY, 0); 127 destination = new IpPrefix(Inet6Address.ANY, 0); 153 mDestination = destination; // IpPrefix objects are immutable. 163 public RouteInfo(IpPrefix destination, InetAddress gateway, String iface) { 172 new IpPrefix(destination.getAddress(), destination.getPrefixLength()), 186 * @param destination the destination address and prefix in an {@link IpPrefix} 191 public RouteInfo(IpPrefix destination, InetAddress gateway) [all...] |
StaticIpConfiguration.java | 93 routes.add(new RouteInfo((IpPrefix) null, gateway, iface));
|
VpnService.java | 505 mRoutes.add(new RouteInfo(new IpPrefix(address, prefixLength), null)); [all...] |
/frameworks/base/core/tests/coretests/src/android/net/ |
IpPrefixTest.java | 19 import android.net.IpPrefix; 47 IpPrefix p; 49 p = new IpPrefix((byte[]) null, 9); 54 p = new IpPrefix((InetAddress) null, 10); 59 p = new IpPrefix((String) null); 66 p = new IpPrefix(b2, 29); 71 p = new IpPrefix("1.2.3.4"); 76 p = new IpPrefix("1.2.3.4/"); 81 p = new IpPrefix("foo/32"); 86 p = new IpPrefix("1/32") [all...] |
RouteInfoTest.java | 22 import android.net.IpPrefix; 35 private IpPrefix Prefix(String prefix) { 36 return new IpPrefix(prefix); 45 r = new RouteInfo((IpPrefix) null, null, "rmnet0"); 50 r = new RouteInfo((IpPrefix) null, Address("2001:db8::1"), null); 55 r = new RouteInfo((IpPrefix) null, Address("192.0.2.1"), "wlan0"); 76 public PatchedRouteInfo(IpPrefix destination, InetAddress gateway, String iface) {
|
StaticIpConfigurationTest.java | 19 import android.net.IpPrefix; 154 final RouteInfo connectedRoute = new RouteInfo(new IpPrefix(ADDRSTR), null, IFACE); 161 RouteInfo defaultRoute = new RouteInfo(new IpPrefix("0.0.0.0/0"), GATEWAY, IFACE); 167 defaultRoute = new RouteInfo(new IpPrefix("0.0.0.0/0"), OFFLINKGATEWAY, IFACE); 170 RouteInfo gatewayRoute = new RouteInfo(new IpPrefix("192.0.2.129/32"), null, IFACE);
|
LinkPropertiesTest.java | 19 import android.net.IpPrefix; 594 new IpPrefix(NetworkUtils.numericToInetAddress("75.208.0.0"), 16)))); 622 new IpPrefix(NetworkUtils.numericToInetAddress("fe80::"), 64)))); 639 new IpPrefix(NetworkUtils.numericToInetAddress("2001:db8:85a3::"), 64)))); 678 stacked.addRoute(new RouteInfo((IpPrefix) null, stackedAddress));
|
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/ |
IPv6TetheringInterfaceServices.java | 20 import android.net.IpPrefix; 49 private static final IpPrefix LINK_LOCAL_PREFIX = new IpPrefix("fe80::/64"); 128 final IpPrefix prefix = new IpPrefix( 147 HashSet<IpPrefix> deprecatedPrefixes, HashSet<IpPrefix> newPrefixes) { 164 HashSet<IpPrefix> addedPrefixes = (HashSet) newPrefixes.clone(); 260 private ArrayList<RouteInfo> getLocalRoutesFor(HashSet<IpPrefix> prefixes) { 262 for (IpPrefix ipp : prefixes) [all...] |
IPv6TetheringCoordinator.java | 20 import android.net.IpPrefix; 236 final IpPrefix destination = routeInfo.getDestination();
|
/frameworks/base/services/net/java/android/net/ip/ |
RouterAdvertisementDaemon.java | 21 import android.net.IpPrefix; 123 public HashSet<IpPrefix> prefixes; 129 prefixes = new HashSet<IpPrefix>(); 148 for (IpPrefix ipp : oldRa.prefixes) { 166 private final HashMap<IpPrefix, Integer> mPrefixes = new HashMap<>(); 169 Set<IpPrefix> getPrefixes() { return mPrefixes.keySet(); } 171 void putPrefixes(Set<IpPrefix> prefixes) { 172 for (IpPrefix ipp : prefixes) { 177 void removePrefixes(Set<IpPrefix> prefixes) { 178 for (IpPrefix ipp : prefixes) [all...] |
/frameworks/base/core/java/com/android/internal/net/ |
VpnConfig.java | 27 import android.net.IpPrefix; 121 RouteInfo info = new RouteInfo(new IpPrefix(route), null);
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
Vpn.java | 44 import android.net.IpPrefix; 621 lp.addRoute(new RouteInfo(new IpPrefix(Inet4Address.ANY, 0), RTN_UNREACHABLE)); 624 lp.addRoute(new RouteInfo(new IpPrefix(Inet6Address.ANY, 0), RTN_UNREACHABLE)); [all...] |
/frameworks/base/services/core/java/com/android/server/ |
NetworkManagementService.java | 56 import android.net.IpPrefix; [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
ConnectivityServiceTest.java | 41 import android.net.IpPrefix; [all...] |
/frameworks/base/ |
Android.mk | [all...] |
compiled-classes-phone | [all...] |
/prebuilts/sdk/21/ |
android.jar | |
/prebuilts/sdk/current/ |
android.jar | |
/prebuilts/sdk/system_current/ |
android.jar | |