Home
last modified time | relevance | path

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

/packages/modules/Connectivity/Tethering/common/TetheringLib/src/android/net/
DTetheredClient.java40 private final List<AddressInfo> mAddresses;
45 @NonNull Collection<AddressInfo> addresses, int tetheringType) { in TetheredClient()
52 this(in.readParcelable(null), in.createTypedArrayList(AddressInfo.CREATOR), in.readInt()); in TetheredClient()
74 public List<AddressInfo> getAddresses() { in getAddresses()
94 final LinkedHashSet<AddressInfo> newAddresses = new LinkedHashSet<>( in addAddresses()
118 public static final class AddressInfo implements Parcelable { class in TetheredClient
125 public AddressInfo(@NonNull LinkAddress address, @Nullable String hostname) { in AddressInfo() method in TetheredClient.AddressInfo
130 private AddressInfo(Parcel in) { in AddressInfo() method in TetheredClient.AddressInfo
178 if (!(obj instanceof AddressInfo)) return false; in equals()
179 final AddressInfo other = (AddressInfo) obj; in equals()
[all …]
/packages/modules/Connectivity/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()
/packages/modules/Connectivity/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()
/packages/modules/Connectivity/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;
/packages/modules/Connectivity/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()
DTetheringTest.java138 import android.net.TetheredClient.AddressInfo;
2532 final AddressInfo addressInfo = new TetheredClient.AddressInfo(address, lease.hostname); in toTetheredClients()
/packages/modules/Connectivity/Tethering/src/android/net/ip/
DIpServer.java489 final TetheredClient.AddressInfo addressInfo = new TetheredClient.AddressInfo( in onLeasesChanged()
/packages/modules/Connectivity/Tethering/tests/integration/src/android/net/
DEthernetTetheringTest.java561 TetheredClient.AddressInfo info = client.getAddresses().get(0); in checkTetheredClientCallbacks()