Home
last modified time | relevance | path

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

/packages/modules/Connectivity/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.java95 import android.net.TetheredClient;
2290 private void reportTetherClientsChanged(List<TetheredClient> clients) { in reportTetherClientsChanged()
/packages/modules/Connectivity/Tethering/common/TetheringLib/src/android/net/
DTetheredClient.java36 public final class TetheredClient implements Parcelable { class
44 public TetheredClient(@NonNull MacAddress macAddress, in TetheredClient() method in TetheredClient
51 private TetheredClient(@NonNull Parcel in) { in TetheredClient() method in TetheredClient
93 public TetheredClient addAddresses(@NonNull TetheredClient other) { in addAddresses()
98 return new TetheredClient(mMacAddress, newAddresses, mTetheringType); in addAddresses()
108 if (!(obj instanceof TetheredClient)) return false; in equals()
109 final TetheredClient other = (TetheredClient) obj; in equals()
217 public static final Creator<TetheredClient> CREATOR = new Creator<TetheredClient>() {
220 public TetheredClient createFromParcel(@NonNull Parcel in) {
221 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.java460 public void onTetherClientsChanged(List<TetheredClient> clients) { } in onTetherClientsChanged()
1101 default void onClientsChanged(@NonNull Collection<TetheredClient> clients) {}
1306 public void onTetherClientsChanged(final List<TetheredClient> clients) {
/packages/modules/Connectivity/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.java137 import android.net.TetheredClient;
138 import android.net.TetheredClient.AddressInfo;
1676 private final ArrayList<List<TetheredClient>> mTetheredClients = new ArrayList<>();
1722 public void expectTetheredClientChanged(List<TetheredClient> leases) { in expectTetheredClientChanged()
1724 final List<TetheredClient> result = mTetheredClients.remove(0); in expectTetheredClientChanged()
1745 public void onTetherClientsChanged(List<TetheredClient> clients) { in onTetherClientsChanged()
2475 final List<TetheredClient> clients = toTetheredClients(p2pLeases, TETHERING_WIFI_P2P); in testUpdateConnectedClients()
2492 final TetheredClient noAddrClient = new TetheredClient(testMac2, in testUpdateConnectedClients()
2521 private List<TetheredClient> toTetheredClients(List<DhcpLeaseParcelable> leaseParcelables, in toTetheredClients()
2523 final ArrayList<TetheredClient> leases = new ArrayList<>(); in toTetheredClients()
[all …]
/packages/modules/Connectivity/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()
/packages/modules/Connectivity/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…
84 …od public default void onClientsChanged(@NonNull java.util.Collection<android.net.TetheredClient>);
/packages/modules/Connectivity/Tethering/tests/integration/src/android/net/
DEthernetTetheringTest.java358 private volatile Collection<TetheredClient> mClients = null;
448 public void onClientsChanged(Collection<TetheredClient> clients) { in onClientsChanged()
459 public Collection<TetheredClient> awaitClientConnected() throws Exception { in awaitClientConnected()
551 final Collection<TetheredClient> clients = mTetheringEventCallback.awaitClientConnected(); in checkTetheredClientCallbacks()
553 final TetheredClient client = clients.iterator().next(); in checkTetheredClientCallbacks()
561 TetheredClient.AddressInfo info = client.getAddresses().get(0); in checkTetheredClientCallbacks()
/packages/modules/Connectivity/Tethering/src/android/net/ip/
DIpServer.java38 import android.net.TetheredClient;
270 private List<TetheredClient> mDhcpLeases = Collections.emptyList();
369 public List<TetheredClient> getAllLeases() { in getAllLeases()
473 final ArrayList<TetheredClient> leases = new ArrayList<>(); in onLeasesChanged()
489 final TetheredClient.AddressInfo addressInfo = new TetheredClient.AddressInfo( in onLeasesChanged()
491 leases.add(new TetheredClient( in onLeasesChanged()
/packages/modules/Connectivity/Tethering/common/TetheringLib/
DAndroid.bp49 "src/android/net/TetheredClient.aidl",
50 "src/android/net/TetheredClient.java",
/packages/modules/Connectivity/tests/cts/net/util/java/android/net/cts/util/
DCtsTetheringUtils.java37 import android.net.TetheredClient;
252 public void onClientsChanged(Collection<TetheredClient> clients) { in onClientsChanged()
/packages/modules/Scheduling/service/java/com/android/server/scheduling/
DRebootReadinessManagerService.java29 import android.net.TetheredClient;
169 public void onClientsChanged(Collection<TetheredClient> clients) {