Home
last modified time | relevance | path

Searched refs:AddressInfo (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/packages/Tethering/common/TetheringLib/src/android/net/
DTetheredClient.java45 private final List<AddressInfo> mAddresses;
50 @NonNull Collection<AddressInfo> addresses, int tetheringType) { in TetheredClient()
57 this(in.readParcelable(null), in.createTypedArrayList(AddressInfo.CREATOR), in.readInt()); in TetheredClient()
79 public List<AddressInfo> getAddresses() { in getAddresses()
99 final LinkedHashSet<AddressInfo> newAddresses = new LinkedHashSet<>( in addAddresses()
123 public static final class AddressInfo implements Parcelable { class in TetheredClient
130 public AddressInfo(@NonNull LinkAddress address, @Nullable String hostname) { in AddressInfo() method in TetheredClient.AddressInfo
135 private AddressInfo(Parcel in) { in AddressInfo() method in TetheredClient.AddressInfo
183 if (!(obj instanceof AddressInfo)) return false; in equals()
184 final AddressInfo other = (AddressInfo) obj; in equals()
[all …]
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/
DConnectedClientsTracker.java23 import android.net.TetheredClient.AddressInfo;
147 private static boolean hasExpiredAddress(List<AddressInfo> addresses, long now) { in hasExpiredAddress()
148 for (AddressInfo info : addresses) { in hasExpiredAddress()
158 final List<AddressInfo> addresses = client.getAddresses(); in pruneExpired()
162 final ArrayList<AddressInfo> newAddrs = new ArrayList<>(addresses.size() - 1); in pruneExpired()
163 for (AddressInfo info : addresses) { in pruneExpired()
/frameworks/base/packages/Tethering/tests/unit/common/android/net/
DTetheredClientTest.kt20 import android.net.TetheredClient.AddressInfo
38 private val TEST_ADDRINFO1 = AddressInfo(TEST_ADDR1, TEST_HOSTNAME)
39 private val TEST_ADDRINFO2 = AddressInfo(TEST_ADDR2, null)
71 listOf(AddressInfo(TEST_ADDR1, TEST_OTHER_HOSTNAME), TEST_ADDRINFO2), in makeLinkAddress()
77 listOf(AddressInfo(TEST_ADDR1, null), TEST_ADDRINFO2), in makeLinkAddress()
/frameworks/base/packages/Tethering/common/TetheringLib/api/
Dsystem-current.txt5 …ndroid.net.MacAddress, @NonNull java.util.Collection<android.net.TetheredClient.AddressInfo>, int);
7 method @NonNull public java.util.List<android.net.TetheredClient.AddressInfo> getAddresses();
14 public static final class TetheredClient.AddressInfo implements android.os.Parcelable {
19 … public static final android.os.Parcelable.Creator<android.net.TetheredClient.AddressInfo> CREATOR;
Dmodule-lib-current.txt5 …ndroid.net.MacAddress, @NonNull java.util.Collection<android.net.TetheredClient.AddressInfo>, int);
7 method @NonNull public java.util.List<android.net.TetheredClient.AddressInfo> getAddresses();
14 public static final class TetheredClient.AddressInfo implements android.os.Parcelable {
19 … public static final android.os.Parcelable.Creator<android.net.TetheredClient.AddressInfo> CREATOR;
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/
DConnectedClientsTrackerTest.kt22 import android.net.TetheredClient.AddressInfo
67 AddressInfo(LinkAddress(it.address, it.prefixLength, it.flags, it.scope, in makeAddrInfo()
/frameworks/base/api/
Dmodule-lib-current.txt5 …ndroid.net.MacAddress, @NonNull java.util.Collection<android.net.TetheredClient.AddressInfo>, int);
7 method @NonNull public java.util.List<android.net.TetheredClient.AddressInfo> getAddresses();
14 public static final class TetheredClient.AddressInfo implements android.os.Parcelable {
19 … public static final android.os.Parcelable.Creator<android.net.TetheredClient.AddressInfo> CREATOR;
Dtest-current.txt2198 …ndroid.net.MacAddress, @NonNull java.util.Collection<android.net.TetheredClient.AddressInfo>, int);
2200 method @NonNull public java.util.List<android.net.TetheredClient.AddressInfo> getAddresses();
2207 public static final class TetheredClient.AddressInfo implements android.os.Parcelable {
2212 … public static final android.os.Parcelable.Creator<android.net.TetheredClient.AddressInfo> CREATOR;
Dsystem-current.txt6447 …ndroid.net.MacAddress, @NonNull java.util.Collection<android.net.TetheredClient.AddressInfo>, int);
6449 method @NonNull public java.util.List<android.net.TetheredClient.AddressInfo> getAddresses();
6456 public static final class TetheredClient.AddressInfo implements android.os.Parcelable {
6461 … public static final android.os.Parcelable.Creator<android.net.TetheredClient.AddressInfo> CREATOR;
/frameworks/base/packages/Tethering/src/android/net/ip/
DIpServer.java480 final TetheredClient.AddressInfo addressInfo = new TetheredClient.AddressInfo( in onLeasesChanged()
/frameworks/base/packages/Tethering/tests/integration/src/android/net/
DEthernetTetheringTest.java420 TetheredClient.AddressInfo info = client.getAddresses().get(0); in checkTetheredClientCallbacks()