Home
last modified time | relevance | path

Searched refs:LinkAddress (Results 1 – 25 of 80) sorted by relevance

1234

/frameworks/base/tests/net/java/android/net/
DLinkAddressTest.java77 LinkAddress address; in testConstructors()
80 address = new LinkAddress(V4_ADDRESS, 25); in testConstructors()
87 address = new LinkAddress(V6_ADDRESS, 127); in testConstructors()
95 address = new LinkAddress(V6 + "/64", IFA_F_DEPRECATED | IFA_F_PERMANENT, RT_SCOPE_LINK); in testConstructors()
102 address = new LinkAddress(V4 + "/23", 123, 456); in testConstructors()
113 LinkAddress ipv4Loopback, ipv6Loopback; in testConstructors()
116 ipv4Loopback = new LinkAddress(addrs.get(0)); in testConstructors()
117 ipv6Loopback = new LinkAddress(addrs.get(1)); in testConstructors()
119 ipv4Loopback = new LinkAddress(addrs.get(1)); in testConstructors()
120 ipv6Loopback = new LinkAddress(addrs.get(0)); in testConstructors()
[all …]
DLinkPropertiesTest.java25 import android.net.LinkAddress;
63 private static LinkAddress LINKADDRV4 = new LinkAddress(ADDRV4, 32);
64 private static LinkAddress LINKADDRV6 = new LinkAddress(ADDRV6, 128);
65 private static LinkAddress LINKADDRV6LINKLOCAL = new LinkAddress("fe80::1/64");
165 target.addLinkAddress(new LinkAddress( in testEqualsSameOrder()
266 LinkAddress prefix = new LinkAddress( in testRouteInterfaces()
375 private LinkAddress getFirstLinkAddress(LinkProperties lp) { in getFirstLinkAddress()
450 LinkAddress deprecated = new LinkAddress(ADDRV6, 128, in testAddressMethods()
610 assertTrue(v4lp.addLinkAddress(new LinkAddress(ADDRV4, 16))); in testIsReachable()
657 assertTrue(v6lp.addLinkAddress(new LinkAddress(ADDRV6, 64))); in testIsReachable()
[all …]
/frameworks/base/core/java/android/net/
DLinkAddress.java53 public class LinkAddress implements Parcelable { class
155 public LinkAddress(InetAddress address, int prefixLength, int flags, int scope) { in LinkAddress() method in LinkAddress
166 public LinkAddress(InetAddress address, int prefixLength) { in LinkAddress() method in LinkAddress
177 public LinkAddress(InterfaceAddress interfaceAddress) { in LinkAddress() method in LinkAddress
188 public LinkAddress(String address) { in LinkAddress() method in LinkAddress
201 public LinkAddress(String address, int flags, int scope) { in LinkAddress() method in LinkAddress
229 if (!(obj instanceof LinkAddress)) { in equals()
232 LinkAddress linkAddress = (LinkAddress) obj; in equals()
258 public boolean isSameAddressAs(LinkAddress other) { in isSameAddressAs()
336 public static final Creator<LinkAddress> CREATOR =
[all …]
DLinkProperties.java51 private ArrayList<LinkAddress> mLinkAddresses = new ArrayList<LinkAddress>();
169 for (LinkAddress l : source.getLinkAddresses()) mLinkAddresses.add(l); in LinkProperties()
237 for (LinkAddress linkAddress : mLinkAddresses) { in getAddresses()
249 for (LinkAddress linkAddress : mLinkAddresses) { in getAllAddresses()
258 private int findLinkAddressIndex(LinkAddress address) { in findLinkAddressIndex()
274 public boolean addLinkAddress(LinkAddress address) { in addLinkAddress()
301 public boolean removeLinkAddress(LinkAddress toRemove) { in removeLinkAddress()
316 public List<LinkAddress> getLinkAddresses() { in getLinkAddresses()
324 public List<LinkAddress> getAllLinkAddresses() { in getAllLinkAddresses()
325 List<LinkAddress> addresses = new ArrayList<LinkAddress>(); in getAllLinkAddresses()
[all …]
DINetworkManagementEventObserver.aidl19 import android.net.LinkAddress;
66 void addressUpdated(String iface, in LinkAddress address); in addressUpdated()
74 void addressRemoved(String iface, in LinkAddress address); in addressRemoved()
DIIpSecService.aidl19 import android.net.LinkAddress;
53 in LinkAddress localAddr, in addAddressToTunnelInterface()
58 in LinkAddress localAddr, in removeAddressFromTunnelInterface()
DRouteInfo.java170 public RouteInfo(LinkAddress destination, InetAddress gateway, String iface) { in RouteInfo()
200 public RouteInfo(LinkAddress destination, InetAddress gateway) { in RouteInfo()
230 public RouteInfo(LinkAddress destination) { in RouteInfo()
281 public LinkAddress getDestinationLinkAddress() { in getDestinationLinkAddress()
282 return new LinkAddress(mDestination.getAddress(), mDestination.getPrefixLength()); in getDestinationLinkAddress()
DInterfaceConfiguration.java33 private LinkAddress mAddr;
91 public LinkAddress getLinkAddress() { in getLinkAddress()
95 public void setLinkAddress(LinkAddress addr) { in setLinkAddress()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DDataCallResponseTest.java25 import android.net.LinkAddress;
39 Arrays.asList(new LinkAddress(NetworkUtils.numericToInetAddress(FAKE_ADDRESS), 0)), in testParcel()
56 Arrays.asList(new LinkAddress(NetworkUtils.numericToInetAddress(FAKE_ADDRESS), 0)), in testEquals()
63 Arrays.asList(new LinkAddress(NetworkUtils.numericToInetAddress(FAKE_ADDRESS), 0)), in testEquals()
73 Arrays.asList(new LinkAddress(NetworkUtils.numericToInetAddress(FAKE_ADDRESS), 0)), in testEquals()
DCellularDataServiceTest.java23 import android.net.LinkAddress;
68 Arrays.asList(new LinkAddress(NetworkUtils.numericToInetAddress("10.0.2.15"), 32)), in testConvertDataCallResult()
91 Arrays.asList(new LinkAddress("2607:fb90:a620:651d:eabe:f8da:c107:44be/64")), in testConvertDataCallResult()
DDataConnectionTest.java45 import android.net.LinkAddress;
327 Arrays.asList(new LinkAddress(NetworkUtils.numericToInetAddress(FAKE_ADDRESS), 0)), in testModemSuggestRetry()
336 Arrays.asList(new LinkAddress(NetworkUtils.numericToInetAddress(FAKE_ADDRESS), 0)), in testModemSuggestRetry()
344 Arrays.asList(new LinkAddress(NetworkUtils.numericToInetAddress(FAKE_ADDRESS), 0)), in testModemSuggestRetry()
356 Arrays.asList(new LinkAddress(NetworkUtils.numericToInetAddress(FAKE_ADDRESS), 0)), in testModemNotSuggestRetry()
365 Arrays.asList(new LinkAddress(NetworkUtils.numericToInetAddress(FAKE_ADDRESS), 0)), in testModemNotSuggestRetry()
373 Arrays.asList(new LinkAddress(NetworkUtils.numericToInetAddress(FAKE_ADDRESS), 0)), in testModemNotSuggestRetry()
386 Arrays.asList(new LinkAddress(NetworkUtils.numericToInetAddress(FAKE_ADDRESS), 0)), in testModemSuggestNoRetry()
523 Arrays.asList(new LinkAddress(NetworkUtils.numericToInetAddress(FAKE_ADDRESS), 0)), in testSetLinkProperties()
579 Arrays.asList(new LinkAddress(NetworkUtils.numericToInetAddress(FAKE_ADDRESS), 0)), in testSetLinkPropertiesEmptyDns()
/frameworks/base/lowpan/java/android/net/lowpan/
DLowpanInterface.java23 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/
DBaseNetworkObserver.java20 import android.net.LinkAddress;
41 public void addressUpdated(String iface, LinkAddress address) { in addressUpdated()
46 public void addressRemoved(String iface, LinkAddress address) { in addressRemoved()
DNetlinkTracker.java19 import android.net.LinkAddress;
91 private void maybeLog(String operation, String iface, LinkAddress address) { in maybeLog()
118 public void addressUpdated(String iface, LinkAddress address) { in addressUpdated()
132 public void addressRemoved(String iface, LinkAddress address) { in addressRemoved()
/frameworks/base/services/net/java/android/net/ip/
DInterfaceController.java21 import android.net.LinkAddress;
55 public boolean setIPv4Address(LinkAddress address) { in setIPv4Address()
71 ifcg.setLinkAddress(new LinkAddress("0.0.0.0/0")); in clearIPv4Address()
125 public boolean addAddress(LinkAddress addr) { in addAddress()
/frameworks/base/services/net/java/android/net/util/
DPrefixUtils.java20 import android.net.LinkAddress;
59 for (LinkAddress addr : lp.getAllLinkAddresses()) { in localPrefixesFrom()
69 public static IpPrefix asIpPrefix(LinkAddress addr) { in asIpPrefix()
/frameworks/base/core/java/com/android/internal/net/
DVpnConfig.java28 import android.net.LinkAddress;
91 public List<LinkAddress> addresses = new ArrayList<LinkAddress>();
134 LinkAddress addr = new LinkAddress(address); in addLegacyAddresses()
176 in.readTypedList(config.addresses, LinkAddress.CREATOR);
/frameworks/base/tests/net/java/android/net/ip/
DIpClientTest.java40 import android.net.LinkAddress;
235 mObserver.addressUpdated(iface, new LinkAddress(addresses[i])); in testProvisioningWithInitialConfiguration()
241 mObserver.addressUpdated(iface, new LinkAddress(addresses[lastAddr])); in testProvisioningWithInitialConfiguration()
305 static IsProvisionedTestCase provisionedCase(Set<LinkAddress> lpAddrs, Set<RouteInfo> lpRoutes, in provisionedCase()
310 static IsProvisionedTestCase notProvisionedCase(Set<LinkAddress> lpAddrs, in notProvisionedCase()
315 static IsProvisionedTestCase provisioningTest(boolean isProvisioned, Set<LinkAddress> lpAddrs, in provisioningTest()
396 static InitialConfigurationTestCase validConf(String descr, Set<LinkAddress> links, in validConf()
401 static InitialConfigurationTestCase invalidConf(String descr, Set<LinkAddress> links, in invalidConf()
415 static LinkProperties linkproperties(Set<LinkAddress> addresses, Set<RouteInfo> routes) { in linkproperties()
424 static InitialConfiguration conf(Set<LinkAddress> links, Set<IpPrefix> prefixes) { in conf()
[all …]
/frameworks/base/telephony/java/android/telephony/data/
DDataCallResponse.java22 import android.net.LinkAddress;
43 private final List<LinkAddress> mAddresses;
74 @Nullable List<LinkAddress> addresses, in DataCallResponse()
99 source.readList(mAddresses, LinkAddress.class.getClassLoader()); in DataCallResponse()
146 public List<LinkAddress> getAddresses() { return mAddresses; } in getAddresses()
/frameworks/base/tests/net/java/com/android/server/
DNetworkManagementServiceTest.java28 import android.net.LinkAddress;
200 expectSoon(observer).addressUpdated("wlan0", new LinkAddress("fe80::1/64", 128, 253)); in testNetworkObservers()
204 expectSoon(observer).addressRemoved("wlan0", new LinkAddress("fe80::1/64", 128, 253)); in testNetworkObservers()
207 expectSoon(observer).addressRemoved("wlan0", new LinkAddress("2001:db8::1/64", 1, 0)); in testNetworkObservers()
/frameworks/base/services/core/java/com/android/server/connectivity/
DNat464Xlat.java21 import android.net.LinkAddress;
248 private LinkProperties makeLinkProperties(LinkAddress clatAddress) { in makeLinkProperties()
259 new LinkAddress(Inet4Address.ANY, 0), in makeLinkProperties()
266 private LinkAddress getLinkAddress(String iface) { in getLinkAddress()
284 LinkAddress clatAddress = getLinkAddress(iface); in handleInterfaceLinkStateChanged()
/frameworks/base/services/core/java/com/android/server/net/
DIpConfigStore.java22 import android.net.LinkAddress;
91 LinkAddress ipAddress = staticIpConfiguration.ipAddress; in writeConfig()
286 LinkAddress linkAddr = new LinkAddress( in readIpConfigurations()
295 LinkAddress dest = null; in readIpConfigurations()
307 dest = new LinkAddress( in readIpConfigurations()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DIpConfigStoreTest.java26 import android.net.LinkAddress;
80 staticIpConfiguration.ipAddress = new LinkAddress(IP_ADDR_1); in staticIpMultiNetworks()
89 expectedConfig2.getStaticIpConfiguration().ipAddress = new LinkAddress(IP_ADDR_2); in staticIpMultiNetworks()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DCellularDataService.java20 import android.net.LinkAddress;
249 List<LinkAddress> laList = new ArrayList<>(); in convertDataCallResult()
256 LinkAddress la; in convertDataCallResult()
260 la = new LinkAddress(address); in convertDataCallResult()
263 la = new LinkAddress(ia, (ia instanceof Inet4Address) ? 32 : 128); in convertDataCallResult()
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/
DOffloadControllerTest.java48 import android.net.LinkAddress;
274 lp.addLinkAddress(new LinkAddress(linkAddr)); in testSetUpstreamLinkPropertiesWorking()
332 stacked.addLinkAddress(new LinkAddress("192.0.2.129/25")); in testSetUpstreamLinkPropertiesWorking()
356 lp.addLinkAddress(new LinkAddress("2001:db8::6173:7369:676e:6564/64")); in testSetUpstreamLinkPropertiesWorking()
358 lp.addLinkAddress(new LinkAddress("2001:db8::7261:6e64:6f6d/64")); in testSetUpstreamLinkPropertiesWorking()
579 usbLinkProperties.addLinkAddress(new LinkAddress("192.168.42.1/24")); in testAddRemoveDownstreams()
593 usbLinkProperties.addLinkAddress(new LinkAddress("2001:db8::1/64")); in testAddRemoveDownstreams()
601 usbLinkProperties.addLinkAddress(new LinkAddress("2001:db8::2/64")); in testAddRemoveDownstreams()
685 usbLinkProperties.addLinkAddress(new LinkAddress("192.168.42.1/24")); in testControlCallbackOnSupportAvailableFetchesAllStatsAndPushesAllParameters()
691 wifiLinkProperties.addLinkAddress(new LinkAddress("192.168.43.1/24")); in testControlCallbackOnSupportAvailableFetchesAllStatsAndPushesAllParameters()
[all …]

1234