/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/ |
D | ConnectedClientsTracker.java | 22 import android.net.TetheredClient; 23 import android.net.TetheredClient.AddressInfo; 52 private List<TetheredClient> mLastTetheredClients = Collections.emptyList(); 89 final Map<MacAddress, TetheredClient> clientsMap = new HashMap<>(); in updateConnectedClients() 91 for (TetheredClient client : server.getAllLeases()) { in updateConnectedClients() 97 final TetheredClient prunedClient = pruneExpired(client, now); in updateConnectedClients() 109 clientsMap.put(client, new TetheredClient( in updateConnectedClients() 113 final HashSet<TetheredClient> clients = new HashSet<>(clientsMap.values()); in updateConnectedClients() 120 private static void addLease(Map<MacAddress, TetheredClient> clientsMap, TetheredClient lease) { in addLease() 121 final TetheredClient aggregateClient = clientsMap.getOrDefault( in addLease() [all …]
|
D | Tethering.java | 90 import android.net.TetheredClient; 2164 private void reportTetherClientsChanged(List<TetheredClient> clients) { in reportTetherClientsChanged()
|
/frameworks/base/packages/Tethering/common/TetheringLib/src/android/net/ |
D | TetheredClient.java | 41 public final class TetheredClient implements Parcelable { class 49 public TetheredClient(@NonNull MacAddress macAddress, in TetheredClient() method in TetheredClient 56 private TetheredClient(@NonNull Parcel in) { in TetheredClient() method in TetheredClient 98 public TetheredClient addAddresses(@NonNull TetheredClient other) { in addAddresses() 103 return new TetheredClient(mMacAddress, newAddresses, mTetheringType); in addAddresses() 113 if (!(obj instanceof TetheredClient)) return false; in equals() 114 final TetheredClient other = (TetheredClient) obj; in equals() 222 public static final Creator<TetheredClient> CREATOR = new Creator<TetheredClient>() { 225 public TetheredClient createFromParcel(@NonNull Parcel in) { 226 return new TetheredClient(in); [all …]
|
D | TetheringCallbackStartedParcel.aidl | 20 import android.net.TetheredClient; 33 List<TetheredClient> tetheredClients;
|
D | ITetheringEventCallback.aidl | 20 import android.net.TetheredClient; 37 void onTetherClientsChanged(in List<TetheredClient> clients); in onTetherClientsChanged()
|
D | TetheredClient.aidl | 18 @JavaOnlyStableParcelable parcelable TetheredClient;
|
D | TetheringManager.java | 458 public void onTetherClientsChanged(List<TetheredClient> clients) { } in onTetherClientsChanged() 956 default void onClientsChanged(@NonNull Collection<TetheredClient> clients) {} 1122 public void onTetherClientsChanged(final List<TetheredClient> clients) {
|
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | ConnectedClientsTrackerTest.kt | 21 import android.net.TetheredClient 22 import android.net.TetheredClient.AddressInfo 48 private val client1 = TetheredClient(client1Addr, listOf( 55 private val client2 = TetheredClient(client2Addr, listOf( 61 private val client3 = TetheredClient(client3Addr, 73 doReturn(emptyList<TetheredClient>()).`when`(server1).allLeases in testUpdateConnectedClients() 74 doReturn(emptyList<TetheredClient>()).`when`(server2).allLeases in testUpdateConnectedClients() 84 val client2WithoutAddr = TetheredClient(client2Addr, emptyList(), TETHERING_WIFI) in testUpdateConnectedClients() 109 doReturn(emptyList<TetheredClient>()).`when`(server1).allLeases in testUpdateConnectedClients() 110 doReturn(emptyList<TetheredClient>()).`when`(server2).allLeases in testUpdateConnectedClients() [all …]
|
D | TetheringTest.java | 106 import android.net.TetheredClient; 1291 public void onTetherClientsChanged(List<TetheredClient> clients) { in onTetherClientsChanged()
|
/frameworks/base/packages/Tethering/tests/unit/common/android/net/ |
D | TetheredClientTest.kt | 20 import android.net.TetheredClient.AddressInfo 63 assertNotEquals(makeTestClient(), TetheredClient( in makeLinkAddress() 69 assertNotEquals(makeTestClient(), TetheredClient( in makeLinkAddress() 75 assertNotEquals(makeTestClient(), TetheredClient( in makeLinkAddress() 81 assertNotEquals(makeTestClient(), TetheredClient( in makeLinkAddress() 87 assertNotEquals(makeTestClient(), TetheredClient( in makeLinkAddress() 95 val client1 = TetheredClient(TEST_MACADDR, listOf(TEST_ADDRINFO1), TETHERING_USB) in makeLinkAddress() 96 val client2 = TetheredClient(TEST_OTHER_MACADDR, listOf(TEST_ADDRINFO2), TETHERING_USB) in makeLinkAddress() 97 assertEquals(TetheredClient( in makeLinkAddress() 118 private fun makeTestClient() = TetheredClient( in makeLinkAddress()
|
/frameworks/base/packages/Tethering/common/TetheringLib/api/ |
D | system-current.txt | 4 public final class TetheredClient implements android.os.Parcelable { 5 …ctor public TetheredClient(@NonNull android.net.MacAddress, @NonNull java.util.Collection<android.… 7 method @NonNull public java.util.List<android.net.TetheredClient.AddressInfo> getAddresses(); 11 …field @NonNull public static final android.os.Parcelable.Creator<android.net.TetheredClient> CREAT… 14 public static final class TetheredClient.AddressInfo implements android.os.Parcelable { 19 …field @NonNull public static final android.os.Parcelable.Creator<android.net.TetheredClient.Addres… 73 …od public default void onClientsChanged(@NonNull java.util.Collection<android.net.TetheredClient>);
|
D | module-lib-current.txt | 4 public final class TetheredClient implements android.os.Parcelable { 5 …ctor public TetheredClient(@NonNull android.net.MacAddress, @NonNull java.util.Collection<android.… 7 method @NonNull public java.util.List<android.net.TetheredClient.AddressInfo> getAddresses(); 11 …field @NonNull public static final android.os.Parcelable.Creator<android.net.TetheredClient> CREAT… 14 public static final class TetheredClient.AddressInfo implements android.os.Parcelable { 19 …field @NonNull public static final android.os.Parcelable.Creator<android.net.TetheredClient.Addres… 96 …od public default void onClientsChanged(@NonNull java.util.Collection<android.net.TetheredClient>);
|
/frameworks/base/api/ |
D | module-lib-current.txt | 4 public final class TetheredClient implements android.os.Parcelable { 5 …ctor public TetheredClient(@NonNull android.net.MacAddress, @NonNull java.util.Collection<android.… 7 method @NonNull public java.util.List<android.net.TetheredClient.AddressInfo> getAddresses(); 11 …field @NonNull public static final android.os.Parcelable.Creator<android.net.TetheredClient> CREAT… 14 public static final class TetheredClient.AddressInfo implements android.os.Parcelable { 19 …field @NonNull public static final android.os.Parcelable.Creator<android.net.TetheredClient.Addres… 96 …od public default void onClientsChanged(@NonNull java.util.Collection<android.net.TetheredClient>);
|
D | test-current.txt | 2197 public final class TetheredClient implements android.os.Parcelable { 2198 …ctor public TetheredClient(@NonNull android.net.MacAddress, @NonNull java.util.Collection<android.… 2200 method @NonNull public java.util.List<android.net.TetheredClient.AddressInfo> getAddresses(); 2204 …field @NonNull public static final android.os.Parcelable.Creator<android.net.TetheredClient> CREAT… 2207 public static final class TetheredClient.AddressInfo implements android.os.Parcelable { 2212 …field @NonNull public static final android.os.Parcelable.Creator<android.net.TetheredClient.Addres… 2266 …od public default void onClientsChanged(@NonNull java.util.Collection<android.net.TetheredClient>);
|
D | system-current.txt | 6446 public final class TetheredClient implements android.os.Parcelable { 6447 …ctor public TetheredClient(@NonNull android.net.MacAddress, @NonNull java.util.Collection<android.… 6449 method @NonNull public java.util.List<android.net.TetheredClient.AddressInfo> getAddresses(); 6453 …field @NonNull public static final android.os.Parcelable.Creator<android.net.TetheredClient> CREAT… 6456 public static final class TetheredClient.AddressInfo implements android.os.Parcelable { 6461 …field @NonNull public static final android.os.Parcelable.Creator<android.net.TetheredClient.Addres… 6515 …od public default void onClientsChanged(@NonNull java.util.Collection<android.net.TetheredClient>);
|
/frameworks/base/packages/Tethering/common/TetheringLib/ |
D | Android.bp | 44 "src/android/net/TetheredClient.aidl", 45 "src/android/net/TetheredClient.java",
|
/frameworks/base/packages/Tethering/tests/integration/src/android/net/ |
D | EthernetTetheringTest.java | 265 private volatile Collection<TetheredClient> mClients = null; 319 public void onClientsChanged(Collection<TetheredClient> clients) { in onClientsChanged() 330 public Collection<TetheredClient> awaitClientConnected() throws Exception { in awaitClientConnected() 410 final Collection<TetheredClient> clients = mTetheringEventCallback.awaitClientConnected(); in checkTetheredClientCallbacks() 412 final TetheredClient client = clients.iterator().next(); in checkTetheredClientCallbacks() 420 TetheredClient.AddressInfo info = client.getAddresses().get(0); in checkTetheredClientCallbacks()
|
/frameworks/base/packages/Tethering/src/android/net/ip/ |
D | IpServer.java | 37 import android.net.TetheredClient; 265 private List<TetheredClient> mDhcpLeases = Collections.emptyList(); 364 public List<TetheredClient> getAllLeases() { in getAllLeases() 464 final ArrayList<TetheredClient> leases = new ArrayList<>(); in onLeasesChanged() 480 final TetheredClient.AddressInfo addressInfo = new TetheredClient.AddressInfo( in onLeasesChanged() 482 leases.add(new TetheredClient( in onLeasesChanged()
|