/frameworks/base/tests/net/common/java/android/net/ |
D | LinkAddressTest.java | 88 LinkAddress address; in testConstructors() 91 address = new LinkAddress(V4_ADDRESS, 25); in testConstructors() 98 address = new LinkAddress(V6_ADDRESS, 127); in testConstructors() 106 address = new LinkAddress(V6 + "/64", IFA_F_DEPRECATED | IFA_F_PERMANENT, RT_SCOPE_LINK); in testConstructors() 113 address = new LinkAddress(V4 + "/23", 123, 456); in testConstructors() 124 LinkAddress ipv4Loopback, ipv6Loopback; in testConstructors() 127 ipv4Loopback = new LinkAddress(addrs.get(0)); in testConstructors() 128 ipv6Loopback = new LinkAddress(addrs.get(1)); in testConstructors() 130 ipv4Loopback = new LinkAddress(addrs.get(1)); in testConstructors() 131 ipv6Loopback = new LinkAddress(addrs.get(0)); in testConstructors() [all …]
|
D | LinkPropertiesTest.java | 90 private static final LinkAddress LINKADDRV4 = new LinkAddress(ADDRV4, 32); 91 private static final LinkAddress LINKADDRV6 = new LinkAddress(ADDRV6, 128); 92 private static final LinkAddress LINKADDRV6LINKLOCAL = new LinkAddress("fe80::1/64"); 281 target.addLinkAddress(new LinkAddress(address("75.208.6.2"), 32)); in testEqualsSameOrder() 402 LinkAddress prefix1 = new LinkAddress(address("2001:db8:1::"), 48); in testRouteInterfaces() 403 LinkAddress prefix2 = new LinkAddress(address("2001:db8:2::"), 48); in testRouteInterfaces() 541 private LinkAddress getFirstLinkAddress(LinkProperties lp) { in getFirstLinkAddress() 616 LinkAddress deprecated = new LinkAddress(ADDRV6, 128, in testAddressMethods() 642 final List<LinkAddress> linkAddresses = Arrays.asList(LINKADDRV4); in testLinkAddresses() 817 assertTrue(v4lp.addLinkAddress(new LinkAddress(ADDRV4, 16))); in testIsReachable() [all …]
|
/frameworks/base/core/java/android/net/ |
D | LinkAddress.java | 63 public class LinkAddress implements Parcelable { class 247 public LinkAddress(@NonNull InetAddress address, @IntRange(from = 0, to = 128) int prefixLength, in LinkAddress() method in LinkAddress 279 public LinkAddress(@NonNull InetAddress address, @IntRange(from = 0, to = 128) int prefixLength, in LinkAddress() method in LinkAddress 293 public LinkAddress(@NonNull InetAddress address, in LinkAddress() method in LinkAddress 305 public LinkAddress(@NonNull InterfaceAddress interfaceAddress) { in LinkAddress() method in LinkAddress 318 public LinkAddress(@NonNull String address) { in LinkAddress() method in LinkAddress 333 public LinkAddress(@NonNull String address, int flags, int scope) { in LinkAddress() method in LinkAddress 361 if (!(obj instanceof LinkAddress)) { in equals() 364 LinkAddress linkAddress = (LinkAddress) obj; in equals() 394 public boolean isSameAddressAs(@Nullable LinkAddress other) { in isSameAddressAs() [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; 32 TestNetworkInterface createTunInterface(in LinkAddress[] linkAddrs); in createTunInterface()
|
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | PrivateAddressCoordinatorTest.java | 30 import android.net.LinkAddress; 77 LinkAddress address = mPrivateAddressCoordinator.requestDownstreamAddress( in testDownstreamPrefixRequest() 99 LinkAddress expectedAddress = new LinkAddress("192.168.43.42/24"); in testRequestDownstreamAddress() 102 LinkAddress actualAddress = mPrivateAddressCoordinator.requestDownstreamAddress( in testRequestDownstreamAddress() 121 expectedAddress = new LinkAddress("192.168.43.5/24"); in testRequestDownstreamAddress() 139 LinkAddress address = mPrivateAddressCoordinator.requestDownstreamAddress( in testReserveBluetoothPrefix() 151 LinkAddress address = mPrivateAddressCoordinator.requestDownstreamAddress( in testNoConflictDownstreamPrefix() 187 new LinkAddress(InetAddresses.parseNumericAddress(testIpv4Address), in buildUpstreamLinkProperties() 193 new LinkAddress(InetAddresses.parseNumericAddress("2001:db8::"), in buildUpstreamLinkProperties() 207 final LinkAddress hotspotAddr = mPrivateAddressCoordinator.requestDownstreamAddress( in testNoConflictUpstreamPrefix() [all …]
|
D | IPv6TetheringCoordinatorTest.java | 38 import android.net.LinkAddress; 88 linkProp.addLinkAddress(new LinkAddress(TEST_IPV6_ADDRESS)); in createDualStackUpstream() 89 linkProp.addLinkAddress(new LinkAddress(TEST_IPV4_ADDRESS)); in createDualStackUpstream() 100 final List<LinkAddress> addresses = lp.getLinkAddresses(); in assertOnlyOneV6AddressAndNoV4() 102 final LinkAddress v6Address = addresses.get(0); in assertOnlyOneV6AddressAndNoV4() 103 assertEquals(v6Address, new LinkAddress(TEST_IPV6_ADDRESS)); in assertOnlyOneV6AddressAndNoV4()
|
/frameworks/libs/net/common/tests/unit/src/android/net/util/ |
D | LinkPropertiesUtilsTest.java | 25 import android.net.LinkAddress; 57 private static final LinkAddress V4_LINKADDR = new LinkAddress(V4_ADDR, 32); 58 private static final LinkAddress V6_LINKADDR = new LinkAddress(V6_ADDR, 128); 109 final LinkAddress testLinkAddr = new LinkAddress(toInetAddress("75.208.6.2"), 32); in testLinkPropertiesIdenticalEqual() 174 final LinkAddress linkAddr1 = new LinkAddress(addr1, 32); in testCompareAddresses() 176 CompareResult<LinkAddress> results = LinkPropertiesUtils.compareAddresses(source, target); in testCompareAddresses() 187 final LinkAddress linkAddr2 = new LinkAddress(addr2, 32); in testCompareAddresses()
|
/frameworks/base/packages/Tethering/tests/unit/src/android/net/util/ |
D | TetheringUtilsTest.java | 24 import android.net.LinkAddress; 39 private static final LinkAddress TEST_SERVER_ADDR = new LinkAddress("192.168.43.1/24"); 40 private static final LinkAddress TEST_CLIENT_ADDR = new LinkAddress("192.168.43.5/24");
|
/frameworks/base/packages/Tethering/common/TetheringLib/src/android/net/ |
D | TetheringRequestParcel.aidl | 19 import android.net.LinkAddress; 27 LinkAddress localIPv4Address; 28 LinkAddress staticClientAddress;
|
/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/core/java/com/android/server/net/ |
D | BaseNetworkObserver.java | 21 import android.net.LinkAddress; 47 public void addressUpdated(String iface, LinkAddress address) { in addressUpdated() 52 public void addressRemoved(String iface, LinkAddress address) { in addressRemoved()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/ |
D | DataCallResponseTest.java | 26 import android.net.LinkAddress; 47 new LinkAddress(InetAddresses.parseNumericAddress(FAKE_ADDRESS), 0))) in testParcel() 74 new LinkAddress(InetAddresses.parseNumericAddress(FAKE_ADDRESS), 0))) in testEquals() 91 new LinkAddress(InetAddresses.parseNumericAddress(FAKE_ADDRESS), 0))) in testEquals() 111 new LinkAddress(InetAddresses.parseNumericAddress(FAKE_ADDRESS), 0))) in testEquals()
|
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/ |
D | PrivateAddressCoordinator.java | 23 import android.net.LinkAddress; 100 private ArrayList<IpPrefix> getIpv4Prefixes(final List<LinkAddress> linkAddresses) { in getIpv4Prefixes() 102 for (LinkAddress address : linkAddresses) { in getIpv4Prefixes() 149 public LinkAddress requestDownstreamAddress(final IpServer ipServer) { in requestDownstreamAddress() 174 return new LinkAddress(addr, PREFIX_LENGTH); in requestDownstreamAddress() 235 final LinkAddress address = downstream.getAddress(); in getDownstreamPrefix()
|
/frameworks/base/packages/Tethering/common/TetheringLib/api/ |
D | system-lint-baseline.txt | 20 ….TetheringRequest.Builder#setStaticIpv4Addresses(android.net.LinkAddress, android.net.LinkAddress): 21 …er.TetheringRequest.Builder.setStaticIpv4Addresses(android.net.LinkAddress,android.net.LinkAddress)
|
D | module-lib-lint-baseline.txt | 34 ….TetheringRequest.Builder#setStaticIpv4Addresses(android.net.LinkAddress, android.net.LinkAddress): 35 …er.TetheringRequest.Builder.setStaticIpv4Addresses(android.net.LinkAddress,android.net.LinkAddress)
|
/frameworks/base/packages/Tethering/src/android/net/util/ |
D | PrefixUtils.java | 20 import android.net.LinkAddress; 62 for (LinkAddress addr : lp.getAllLinkAddresses()) { in localPrefixesFrom() 73 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; 110 @Nullable List<LinkAddress> addresses, in DataCallResponse() 134 @Nullable String interfaceName, @Nullable List<LinkAddress> addresses, in DataCallResponse() 166 source.readList(mAddresses, LinkAddress.class.getClassLoader()); in DataCallResponse() 215 public List<LinkAddress> getAddresses() { return mAddresses; } in getAddresses() 384 private List<LinkAddress> mAddresses; 476 public @NonNull Builder setAddresses(@NonNull List<LinkAddress> addresses) { in setAddresses()
|
/frameworks/base/packages/Tethering/src/android/net/ip/ |
D | IpServer.java | 32 import android.net.LinkAddress; 264 private LinkAddress mStaticIpv4ServerAddr; 265 private LinkAddress mStaticIpv4ClientAddr; 280 private LinkAddress mIpv4Address; 359 public LinkAddress getAddress() { in getAddress() 473 final LinkAddress address = new LinkAddress( in onLeasesChanged() 518 private RouteInfo getDirectConnectedRoute(@NonNull final LinkAddress ipv4Address) { in getDirectConnectedRoute() 524 @NonNull final Inet4Address dnsServer, @NonNull LinkAddress serverAddr, in makeServingParams() 539 private boolean startDhcp(final LinkAddress serverLinkAddr, final LinkAddress clientLinkAddr) { in startDhcp() 582 private boolean configureDhcp(boolean enable, final LinkAddress serverAddr, in configureDhcp() [all …]
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | Nat464XlatTest.java | 34 import android.net.LinkAddress; 61 static final LinkAddress V6ADDR = new LinkAddress("2001:db8:1::f00/64"); 62 static final LinkAddress ADDR = new LinkAddress("192.0.2.5/29"); 157 mNai.linkProperties.addLinkAddress(new LinkAddress("fc00::1/64")); 161 mNai.linkProperties.addLinkAddress(new LinkAddress("2001:db8::1/64")); 173 mNai.linkProperties.addLinkAddress(new LinkAddress("192.0.2.2/24")); 177 mNai.linkProperties.removeLinkAddress(new LinkAddress("192.0.2.2/24")); 383 mNai.linkProperties.addLinkAddress(new LinkAddress("2001:db8::1/64")); 427 mNai.linkProperties.addLinkAddress(new LinkAddress("2001:db8::1/64"));
|
/frameworks/base/packages/Tethering/tests/integration/src/android/net/ |
D | EthernetTetheringTest.java | 223 assertEquals(new LinkAddress(clientAddr), dhcpResults.ipAddress); in testStaticIpv4() 515 public void assertLinkAddressMatches(LinkAddress l1, LinkAddress l2) { in assertLinkAddressMatches() 524 LinkAddress localAddr = local == null ? null : new LinkAddress(local); in requestWithStaticIpv4() 525 LinkAddress clientAddr = client == null ? null : new LinkAddress(client); in requestWithStaticIpv4() 540 LinkAddress expectedAddr = new LinkAddress(expected); in assertInterfaceHasIpAddress() 543 final LinkAddress addr = new LinkAddress(ia.getAddress(), ia.getNetworkPrefixLength()); in assertInterfaceHasIpAddress()
|
/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/services/core/java/com/android/server/ |
D | TestNetworkService.java | 29 import android.net.LinkAddress; 96 private TestNetworkInterface createInterface(boolean isTun, LinkAddress[] linkAddrs) { in createInterface() 108 for (LinkAddress addr : linkAddrs) { in createInterface() 129 public TestNetworkInterface createTunInterface(@NonNull LinkAddress[] linkAddrs) { 141 return createInterface(false, new LinkAddress[0]); 276 new LinkAddress(intfAddr.getAddress(), intfAddr.getNetworkPrefixLength()));
|
/frameworks/base/core/java/com/android/internal/net/ |
D | VpnConfig.java | 29 import android.net.LinkAddress; 95 public List<LinkAddress> addresses = new ArrayList<LinkAddress>(); 144 LinkAddress addr = new LinkAddress(address); in addLegacyAddresses() 188 in.readTypedList(config.addresses, LinkAddress.CREATOR);
|