/frameworks/base/tests/net/common/java/android/net/ |
D | LinkAddressTest.java | 76 LinkAddress address; in testConstructors() 79 address = new LinkAddress(V4_ADDRESS, 25); in testConstructors() 86 address = new LinkAddress(V6_ADDRESS, 127); in testConstructors() 94 address = new LinkAddress(V6 + "/64", IFA_F_DEPRECATED | IFA_F_PERMANENT, RT_SCOPE_LINK); in testConstructors() 101 address = new LinkAddress(V4 + "/23", 123, 456); in testConstructors() 112 LinkAddress ipv4Loopback, ipv6Loopback; in testConstructors() 115 ipv4Loopback = new LinkAddress(addrs.get(0)); in testConstructors() 116 ipv6Loopback = new LinkAddress(addrs.get(1)); in testConstructors() 118 ipv4Loopback = new LinkAddress(addrs.get(1)); in testConstructors() 119 ipv6Loopback = new LinkAddress(addrs.get(0)); in testConstructors() [all …]
|
D | LinkPropertiesTest.java | 74 private static final LinkAddress LINKADDRV4 = new LinkAddress(ADDRV4, 32); 75 private static final LinkAddress LINKADDRV6 = new LinkAddress(ADDRV6, 128); 76 private static final LinkAddress LINKADDRV6LINKLOCAL = new LinkAddress("fe80::1/64"); 226 target.addLinkAddress(new LinkAddress(Address("75.208.6.2"), 32)); in testEqualsSameOrder() 347 LinkAddress prefix = new LinkAddress(Address("2001:db8::"), 32); in testRouteInterfaces() 467 private LinkAddress getFirstLinkAddress(LinkProperties lp) { in getFirstLinkAddress() 542 LinkAddress deprecated = new LinkAddress(ADDRV6, 128, in testAddressMethods() 568 final List<LinkAddress> linkAddresses = Arrays.asList(LINKADDRV4); in testLinkAddresses() 744 assertTrue(v4lp.addLinkAddress(new LinkAddress(ADDRV4, 16))); in testIsReachable() 789 assertTrue(v6lp.addLinkAddress(new LinkAddress(ADDRV6, 64))); in testIsReachable() [all …]
|
/frameworks/base/core/java/android/net/ |
D | LinkAddress.java | 60 public class LinkAddress implements Parcelable { class 182 public LinkAddress(@NonNull InetAddress address, @IntRange(from = 0, to = 128) int prefixLength, in LinkAddress() method in LinkAddress 196 public LinkAddress(@NonNull InetAddress address, in LinkAddress() method in LinkAddress 208 public LinkAddress(@NonNull InterfaceAddress interfaceAddress) { in LinkAddress() method in LinkAddress 221 public LinkAddress(@NonNull String address) { in LinkAddress() method in LinkAddress 236 public LinkAddress(@NonNull String address, int flags, int scope) { in LinkAddress() method in LinkAddress 264 if (!(obj instanceof LinkAddress)) { in equals() 267 LinkAddress linkAddress = (LinkAddress) obj; in equals() 295 public boolean isSameAddressAs(@Nullable LinkAddress other) { in isSameAddressAs() 381 public static final @android.annotation.NonNull Creator<LinkAddress> CREATOR = [all …]
|
D | INetworkManagementEventObserver.aidl | 19 import android.net.LinkAddress; 66 void addressUpdated(String iface, in LinkAddress address); in addressUpdated() 74 void addressRemoved(String iface, in LinkAddress address); in addressRemoved()
|
D | IIpSecService.aidl | 19 import android.net.LinkAddress; 53 in LinkAddress localAddr, in addAddressToTunnelInterface() 58 in LinkAddress localAddr, in removeAddressFromTunnelInterface()
|
D | ITestNetworkManager.aidl | 19 import android.net.LinkAddress; 31 TestNetworkInterface createTunInterface(in LinkAddress[] linkAddrs); in createTunInterface()
|
D | LinkProperties.java | 57 private final ArrayList<LinkAddress> mLinkAddresses = new ArrayList<>(); 249 for (LinkAddress linkAddress : mLinkAddresses) { in getAddresses() 262 for (LinkAddress linkAddress : mLinkAddresses) { in getAllAddresses() 271 private int findLinkAddressIndex(LinkAddress address) { in findLinkAddressIndex() 289 public boolean addLinkAddress(@NonNull LinkAddress address) { in addLinkAddress() 318 public boolean removeLinkAddress(@NonNull LinkAddress toRemove) { in removeLinkAddress() 333 public @NonNull List<LinkAddress> getLinkAddresses() { in getLinkAddresses() 342 public List<LinkAddress> getAllLinkAddresses() { in getAllLinkAddresses() 343 List<LinkAddress> addresses = new ArrayList<>(mLinkAddresses); in getAllLinkAddresses() 357 public void setLinkAddresses(@NonNull Collection<LinkAddress> addresses) { in setLinkAddresses() [all …]
|
D | InterfaceConfiguration.java | 34 private LinkAddress mAddr; 100 public LinkAddress getLinkAddress() { in getLinkAddress() 105 public void setLinkAddress(LinkAddress addr) { in setLinkAddress()
|
D | RouteInfo.java | 218 public RouteInfo(@Nullable LinkAddress destination, @Nullable InetAddress gateway, in RouteInfo() 250 public RouteInfo(@Nullable LinkAddress destination, @Nullable InetAddress gateway) { in RouteInfo() 281 public RouteInfo(@NonNull LinkAddress destination) { in RouteInfo() 336 public LinkAddress getDestinationLinkAddress() { in getDestinationLinkAddress() 337 return new LinkAddress(mDestination.getAddress(), mDestination.getPrefixLength()); in getDestinationLinkAddress()
|
/frameworks/base/services/net/java/android/net/shared/ |
D | InitialConfiguration.java | 26 import android.net.LinkAddress; 39 public final Set<LinkAddress> ipAddresses = new HashSet<>(); 79 for (LinkAddress addr : ipAddresses) { in isValid() 123 public boolean isProvisionedBy(List<LinkAddress> addresses, List<RouteInfo> routes) { in isProvisionedBy() 128 for (LinkAddress addr : ipAddresses) { in isProvisionedBy() 150 p.ipAddresses = ipAddresses.toArray(new LinkAddress[0]); in toStableParcelable() 184 private static boolean isPrefixLengthCompliant(LinkAddress addr) { in isPrefixLengthCompliant() 201 private static boolean isIPv4(LinkAddress addr) { in isIPv4() 209 private static boolean isIPv6GUA(LinkAddress addr) { in isIPv6GUA()
|
/frameworks/base/lowpan/java/android/net/lowpan/ |
D | LowpanInterface.java | 23 import android.net.LinkAddress; 178 public void onLinkAddressAdded(LinkAddress address) {} in onLinkAddressAdded() 180 public void onLinkAddressRemoved(LinkAddress address) {} in onLinkAddressRemoved() 612 LinkAddress la; in registerCallback() 614 la = new LinkAddress(value); in registerCallback() 626 LinkAddress la; in registerCallback() 628 la = new LinkAddress(value); in registerCallback() 718 public LinkAddress[] getLinkAddresses() throws LowpanException { in getLinkAddresses() 721 LinkAddress[] ret = new LinkAddress[linkAddressStrings.length]; in getLinkAddresses() 724 ret[i++] = new LinkAddress(str); in getLinkAddresses()
|
/frameworks/base/services/net/java/android/net/ip/ |
D | InterfaceController.java | 21 import android.net.LinkAddress; 51 private boolean setInterfaceAddress(LinkAddress addr) { in setInterfaceAddress() 71 public boolean setIPv4Address(LinkAddress address) { in setIPv4Address() 82 return setInterfaceAddress(new LinkAddress("0.0.0.0/0")); in clearIPv4Address() 147 public boolean addAddress(LinkAddress addr) { in addAddress()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/ |
D | DataCallResponseTest.java | 25 import android.net.LinkAddress; 41 Arrays.asList(new LinkAddress(NetworkUtils.numericToInetAddress(FAKE_ADDRESS), 0)), in testParcel() 59 Arrays.asList(new LinkAddress(NetworkUtils.numericToInetAddress(FAKE_ADDRESS), 0)), in testEquals() 67 Arrays.asList(new LinkAddress(NetworkUtils.numericToInetAddress(FAKE_ADDRESS), 0)), in testEquals() 78 Arrays.asList(new LinkAddress(NetworkUtils.numericToInetAddress(FAKE_ADDRESS), 0)), in testEquals()
|
/frameworks/base/tests/net/java/android/net/shared/ |
D | InitialConfigurationTest.java | 27 import android.net.LinkAddress; 51 new LinkAddress(parseNumericAddress("192.168.45.45"), 16), in setUp() 52 new LinkAddress(parseNumericAddress("2001:db8::45"), 33))); in setUp() 75 new LinkAddress(parseNumericAddress("192.168.47.47"), 24))); in testEquals()
|
D | ProvisioningConfigurationTest.java | 27 import android.net.LinkAddress; 59 new LinkAddress(parseNumericAddress("192.168.42.42"), 24)); in setUp() 62 new LinkAddress(parseNumericAddress("2001:db8::42"), 90); in setUp() 118 new LinkAddress(parseNumericAddress("192.168.47.47"), 16))); in testEquals() 121 new LinkAddress(parseNumericAddress("2001:db8::47"), 64)); in testEquals()
|
/frameworks/base/core/java/com/android/server/net/ |
D | BaseNetworkObserver.java | 21 import android.net.LinkAddress; 42 public void addressUpdated(String iface, LinkAddress address) { in addressUpdated() 47 public void addressRemoved(String iface, LinkAddress address) { in addressRemoved()
|
D | NetlinkTracker.java | 20 import android.net.LinkAddress; 93 private void maybeLog(String operation, String iface, LinkAddress address) { in maybeLog() 120 public void addressUpdated(String iface, LinkAddress address) { in addressUpdated() 134 public void addressRemoved(String iface, LinkAddress address) { in addressRemoved()
|
/frameworks/base/services/net/java/android/net/util/ |
D | PrefixUtils.java | 20 import android.net.LinkAddress; 59 for (LinkAddress addr : lp.getAllLinkAddresses()) { in localPrefixesFrom() 69 public static IpPrefix asIpPrefix(LinkAddress addr) { in asIpPrefix()
|
/frameworks/base/telephony/java/android/telephony/data/ |
D | DataCallResponse.java | 24 import android.net.LinkAddress; 76 private final List<LinkAddress> mAddresses; 109 @Nullable List<LinkAddress> addresses, in DataCallResponse() 140 source.readList(mAddresses, LinkAddress.class.getClassLoader()); in DataCallResponse() 187 public List<LinkAddress> getAddresses() { return mAddresses; } in getAddresses() 328 private List<LinkAddress> mAddresses; 416 public @NonNull Builder setAddresses(@NonNull List<LinkAddress> addresses) { in setAddresses()
|
/frameworks/base/services/net/java/android/net/ |
D | InitialConfigurationParcelable.aidl | 20 import android.net.LinkAddress; 23 LinkAddress[] ipAddresses;
|
/frameworks/base/tests/net/java/com/android/server/ |
D | NetworkManagementServiceTest.java | 31 import android.net.LinkAddress; 161 expectSoon(observer).addressUpdated("wlan0", new LinkAddress("fe80::1/64", 128, 253)); in testNetworkObservers() 164 expectSoon(observer).addressRemoved("wlan0", new LinkAddress("fe80::1/64", 128, 253)); in testNetworkObservers() 167 expectSoon(observer).addressRemoved("wlan0", new LinkAddress("2001:db8::1/64", 1, 0)); in testNetworkObservers()
|
/frameworks/base/core/java/com/android/internal/net/ |
D | VpnConfig.java | 29 import android.net.LinkAddress; 94 public List<LinkAddress> addresses = new ArrayList<LinkAddress>(); 139 LinkAddress addr = new LinkAddress(address); in addLegacyAddresses() 183 in.readTypedList(config.addresses, LinkAddress.CREATOR);
|
/frameworks/base/services/core/java/com/android/server/ |
D | TestNetworkService.java | 27 import android.net.LinkAddress; 94 private TestNetworkInterface createInterface(boolean isTun, LinkAddress[] linkAddrs) { in createInterface() 106 for (LinkAddress addr : linkAddrs) { in createInterface() 127 public TestNetworkInterface createTunInterface(@NonNull LinkAddress[] linkAddrs) { 139 return createInterface(false, new LinkAddress[0]); 260 new LinkAddress(intfAddr.getAddress(), intfAddr.getNetworkPrefixLength()));
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | Nat464Xlat.java | 25 import android.net.LinkAddress; 347 private LinkProperties makeLinkProperties(LinkAddress clatAddress) { in makeLinkProperties() 358 new LinkAddress(Inet4Address.ANY, 0), in makeLinkProperties() 365 private LinkAddress getLinkAddress(String iface) { in getLinkAddress() 397 LinkAddress clatAddress = getLinkAddress(iface); in handleInterfaceLinkStateChanged()
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | Nat464XlatTest.java | 34 import android.net.LinkAddress; 61 static final LinkAddress ADDR = new LinkAddress("192.0.2.5/29"); 146 mNai.linkProperties.addLinkAddress(new LinkAddress("fc00::1/64")); 150 mNai.linkProperties.addLinkAddress(new LinkAddress("2001:db8::1/64")); 162 mNai.linkProperties.addLinkAddress(new LinkAddress("192.0.2.2/24")); 166 mNai.linkProperties.removeLinkAddress(new LinkAddress("192.0.2.2/24"));
|