Home
last modified time | relevance | path

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

12

/frameworks/base/core/tests/coretests/src/android/net/
DLinkAddressTest.java30 import android.net.LinkAddress;
69 LinkAddress address; in testConstructors()
72 address = new LinkAddress(V4_ADDRESS, 25); in testConstructors()
78 address = new LinkAddress(V6_ADDRESS, 127); in testConstructors()
85 address = new LinkAddress(V6 + "/64", IFA_F_DEPRECATED | IFA_F_PERMANENT, RT_SCOPE_LINK); in testConstructors()
91 address = new LinkAddress(V4 + "/23", 123, 456); in testConstructors()
101 LinkAddress ipv4Loopback, ipv6Loopback; in testConstructors()
104 ipv4Loopback = new LinkAddress(addrs.get(0)); in testConstructors()
105 ipv6Loopback = new LinkAddress(addrs.get(1)); in testConstructors()
107 ipv4Loopback = new LinkAddress(addrs.get(1)); in testConstructors()
[all …]
DLinkPropertiesTest.java20 import android.net.LinkAddress;
47 private static LinkAddress LINKADDRV4 = new LinkAddress(ADDRV4, 32);
48 private static LinkAddress LINKADDRV6 = new LinkAddress(ADDRV6, 128);
49 private static LinkAddress LINKADDRV6LINKLOCAL = new LinkAddress("fe80::1/64");
141 target.addLinkAddress(new LinkAddress( in testEqualsSameOrder()
255 LinkAddress prefix = new LinkAddress( in testRouteInterfaces()
364 private LinkAddress getFirstLinkAddress(LinkProperties lp) { in getFirstLinkAddress()
439 LinkAddress deprecated = new LinkAddress(ADDRV6, 128, in testAddressMethods()
600 assertTrue(v4lp.addLinkAddress(new LinkAddress(ADDRV4, 16))); in testIsReachable()
647 assertTrue(v6lp.addLinkAddress(new LinkAddress(ADDRV6, 64))); in testIsReachable()
[all …]
DStaticIpConfigurationTest.java20 import android.net.LinkAddress;
37 private static final LinkAddress ADDR = new LinkAddress(ADDRSTR);
130 s.ipAddress = new LinkAddress(DNS1, 32); in testHashCodeAndEquals()
DRouteInfoTest.java219 LinkAddress l; in testTruncation()
222 l = new LinkAddress("192.0.2.5/30"); in testTruncation()
226 l = new LinkAddress("2001:db8:1:f::5/63"); in testTruncation()
/frameworks/base/core/java/android/net/
DLinkAddress.java53 public class LinkAddress implements Parcelable { class
139 public LinkAddress(InetAddress address, int prefixLength, int flags, int scope) { in LinkAddress() method in LinkAddress
150 public LinkAddress(InetAddress address, int prefixLength) { in LinkAddress() method in LinkAddress
161 public LinkAddress(InterfaceAddress interfaceAddress) { in LinkAddress() method in LinkAddress
172 public LinkAddress(String address) { in LinkAddress() method in LinkAddress
185 public LinkAddress(String address, int flags, int scope) { in LinkAddress() method in LinkAddress
212 if (!(obj instanceof LinkAddress)) { in equals()
215 LinkAddress linkAddress = (LinkAddress) obj; in equals()
241 public boolean isSameAddressAs(LinkAddress other) { in isSameAddressAs()
319 public static final Creator<LinkAddress> CREATOR =
[all …]
DLinkProperties.java52 private ArrayList<LinkAddress> mLinkAddresses = new ArrayList<LinkAddress>();
152 for (LinkAddress l : source.getLinkAddresses()) mLinkAddresses.add(l); in LinkProperties()
215 for (LinkAddress linkAddress : mLinkAddresses) { in getAddresses()
227 for (LinkAddress linkAddress : mLinkAddresses) { in getAllAddresses()
236 private int findLinkAddressIndex(LinkAddress address) { in findLinkAddressIndex()
252 public boolean addLinkAddress(LinkAddress address) { in addLinkAddress()
279 public boolean removeLinkAddress(LinkAddress toRemove) { in removeLinkAddress()
294 public List<LinkAddress> getLinkAddresses() { in getLinkAddresses()
302 public List<LinkAddress> getAllLinkAddresses() { in getAllLinkAddresses()
303 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()
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;
83 public LinkAddress getLinkAddress() { in getLinkAddress()
87 public void setLinkAddress(LinkAddress addr) { in setLinkAddress()
DLinkAddress.aidl20 parcelable LinkAddress;
DVpnService.java406 private final List<LinkAddress> mAddresses = new ArrayList<LinkAddress>();
464 mAddresses.add(new LinkAddress(address, prefixLength)); in addAddress()
DStaticIpConfiguration.java19 import android.net.LinkAddress;
49 public LinkAddress ipAddress;
/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/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/services/tests/servicestests/src/com/android/server/
DNetworkManagementServiceTest.java20 import android.net.LinkAddress;
168 expectSoon(observer).addressUpdated("wlan0", new LinkAddress("fe80::1/64", 128, 253)); in testNetworkObservers()
172 expectSoon(observer).addressRemoved("wlan0", new LinkAddress("fe80::1/64", 128, 253)); in testNetworkObservers()
175 expectSoon(observer).addressRemoved("wlan0", new LinkAddress("2001:db8::1/64", 1, 0)); in testNetworkObservers()
/frameworks/base/services/core/java/com/android/server/connectivity/
DNat464Xlat.java24 import android.net.LinkAddress;
201 private LinkProperties makeLinkProperties(LinkAddress clatAddress) { in makeLinkProperties()
212 new LinkAddress(Inet4Address.ANY, 0), in makeLinkProperties()
219 private LinkAddress getLinkAddress(String iface) { in getLinkAddress()
248 LinkAddress clatAddress = getLinkAddress(iface); in interfaceLinkStateChanged()
/frameworks/base/services/core/java/com/android/server/net/
DLockdownVpnTracker.java34 import android.net.LinkAddress;
85 private List<LinkAddress> mAcceptedSourceAddr;
182 final List<LinkAddress> sourceAddrs = vpnConfig.addresses; in handleStateChangedLocked()
198 for (LinkAddress addr : sourceAddrs) { in handleStateChangedLocked()
288 for (LinkAddress addr : mAcceptedSourceAddr) { in clearSourceRulesLocked()
303 LinkAddress address, boolean allow) throws RemoteException { in setFirewallEgressSourceRule()
DIpConfigStore.java22 import android.net.LinkAddress;
82 LinkAddress ipAddress = staticIpConfiguration.ipAddress; in writeConfig()
207 LinkAddress linkAddr = new LinkAddress( in readIpAndProxyConfigurations()
216 LinkAddress dest = null; in readIpAndProxyConfigurations()
228 dest = new LinkAddress( in readIpAndProxyConfigurations()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDcController.java20 import android.net.LinkAddress;
300 CompareResult<LinkAddress> car = in onDataStateChanged()
307 for (LinkAddress added : car.added) { in onDataStateChanged()
308 for (LinkAddress removed : car.removed) { in onDataStateChanged()
DDataCallResponse.java20 import android.net.LinkAddress;
140 LinkAddress la; in setLinkProperties()
163 la = new LinkAddress(ia, addrPrefixLen); in setLinkProperties()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DSoftApManager.java29 import android.net.LinkAddress;
222 ifcg.setLinkAddress(new LinkAddress( in startTethering()
254 new LinkAddress( in stopTethering()
/frameworks/base/services/tests/servicestests/src/android/net/dhcp/
DDhcpPacketTest.java21 import android.net.LinkAddress;
232 LinkAddress expectedAddress = new LinkAddress(expected); in checkIpAddress()
265 assertEquals(new LinkAddress(ipAddress), dhcpResults.ipAddress); in assertDhcpResults()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DSoftApManagerTest.java33 import android.net.LinkAddress;
215 verify(mInterfaceConfiguration).setLinkAddress(any(LinkAddress.class)); in verifyTetheringRequested()
/frameworks/base/services/net/java/android/net/ip/
DIpManager.java27 import android.net.LinkAddress;
831 private boolean setIPv4Address(LinkAddress address) { in setIPv4Address()
847 ifcg.setLinkAddress(new LinkAddress("0.0.0.0/0")); in clearIPv4Address()
1188 final LinkAddress ipAddress = (LinkAddress) msg.obj; in processMessage()

12