Home
last modified time | relevance | path

Searched refs:TetheredClient (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/
DConnectedClientsTracker.java22 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 …]
DTethering.java90 import android.net.TetheredClient;
2164 private void reportTetherClientsChanged(List<TetheredClient> clients) { in reportTetherClientsChanged()
/frameworks/base/packages/Tethering/common/TetheringLib/src/android/net/
DTetheredClient.java41 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 …]
DTetheringCallbackStartedParcel.aidl20 import android.net.TetheredClient;
33 List<TetheredClient> tetheredClients;
DITetheringEventCallback.aidl20 import android.net.TetheredClient;
37 void onTetherClientsChanged(in List<TetheredClient> clients); in onTetherClientsChanged()
DTetheredClient.aidl18 @JavaOnlyStableParcelable parcelable TetheredClient;
DTetheringManager.java458 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/
DConnectedClientsTrackerTest.kt21 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 …]
DTetheringTest.java106 import android.net.TetheredClient;
1291 public void onTetherClientsChanged(List<TetheredClient> clients) { in onTetherClientsChanged()
/frameworks/base/packages/Tethering/tests/unit/common/android/net/
DTetheredClientTest.kt20 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/
Dsystem-current.txt4 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>);
Dmodule-lib-current.txt4 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/
Dmodule-lib-current.txt4 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>);
Dtest-current.txt2197 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>);
Dsystem-current.txt6446 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/
DAndroid.bp44 "src/android/net/TetheredClient.aidl",
45 "src/android/net/TetheredClient.java",
/frameworks/base/packages/Tethering/tests/integration/src/android/net/
DEthernetTetheringTest.java265 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/
DIpServer.java37 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()