Home
last modified time | relevance | path

Searched refs:clients (Results 1 – 25 of 44) sorted by relevance

12

/packages/services/Car/service/src/com/android/car/watchdog/
DWatchdogProcessHandler.java109 ArrayList<ClientInfo> clients = mClientMap.get(timeout); in dump() local
111 for (ClientInfo clientInfo : clients) { in dump()
133 ArrayList<ClientInfo> clients = mClientMap.get(timeout); in registerClient() local
134 if (clients == null) { in registerClient()
139 for (int i = 0; i < clients.size(); i++) { in registerClient()
140 ClientInfo clientInfo = clients.get(i); in registerClient()
158 clients.add(clientInfo); in registerClient()
170 ArrayList<ClientInfo> clients = mClientMap.get(timeout); in unregisterClient() local
171 for (int i = 0; i < clients.size(); i++) { in unregisterClient()
172 ClientInfo clientInfo = clients.get(i); in unregisterClient()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareMetricsTest.java238 final SparseArray<WifiAwareClientState> clients = new SparseArray<>(); in testAttachSessionMetrics() local
244 clients.put(10, in testAttachSessionMetrics()
247 mDut.recordAttachSession(uid1, false, clients); in testAttachSessionMetrics()
250 clients.put(11, in testAttachSessionMetrics()
253 mDut.recordAttachSession(uid1, false, clients); in testAttachSessionMetrics()
256 clients.put(12, in testAttachSessionMetrics()
259 mDut.recordAttachSession(uid2, false, clients); in testAttachSessionMetrics()
262 clients.put(13, in testAttachSessionMetrics()
265 mDut.recordAttachSession(uid2, true, clients); in testAttachSessionMetrics()
269 mDut.recordAttachSessionDuration(clients.get(12).getCreationTime()); in testAttachSessionMetrics()
[all …]
/packages/services/Car/cpp/watchdog/server/src/
DWatchdogProcessService.cpp317 std::vector<ClientInfo>& clients = mClients[timeout]; in dump() local
318 for (auto it = clients.begin(); it != clients.end(); it++, count++) { in dump()
403 std::vector<ClientInfo>& clients = mClients[timeout]; in terminate() local
404 for (auto it = clients.begin(); it != clients.end();) { in terminate()
406 it = clients.erase(it); in terminate()
433 std::vector<ClientInfo>& clients = mClients[timeout]; in registerClientLocked() local
434 clients.emplace_back(clientInfo); in registerClientLocked()
437 if (clients.size() == 1) { in registerClientLocked()
451 [&](std::vector<ClientInfo>& clients, in unregisterClientLocked()
454 clients.erase(it); in unregisterClientLocked()
[all …]
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/
DRenderOverlay.java46 private List<Renderer> clients; field in RenderOverlay
56 clients = new ArrayList<>(10); in RenderOverlay()
64 for (Renderer renderer : clients) { in getPieRenderer()
73 clients.add(renderer); in addRenderer()
82 clients.add(pos, renderer); in addRenderer()
88 clients.remove(renderer); in remove()
129 if (clients == null) { in onLayout()
132 for (Renderer renderer : clients) { in onLayout()
140 if (clients == null) { in draw()
144 for (Renderer renderer : clients) { in draw()
/packages/apps/Camera2/src/com/android/camera/one/v2/core/
DObservableFrameServer.java70 int clients = mClientCount.decrementAndGet(); in close() local
71 mAvailability.update(clients == 0); in close()
86 int clients = mClientCount.incrementAndGet(); in createExclusiveSession() local
87 mAvailability.update(clients == 0); in createExclusiveSession()
96 clients = mClientCount.decrementAndGet(); in createExclusiveSession()
97 mAvailability.update(clients == 0); in createExclusiveSession()
109 int clients = mClientCount.incrementAndGet(); in tryCreateExclusiveSession() local
110 mAvailability.update(clients == 0); in tryCreateExclusiveSession()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DConnectedClientsTracker.java113 final HashSet<TetheredClient> clients = new HashSet<>(clientsMap.values()); in updateConnectedClients() local
114 final boolean clientsChanged = clients.size() != mLastTetheredClients.size() in updateConnectedClients()
115 || !clients.containsAll(mLastTetheredClients); in updateConnectedClients()
116 mLastTetheredClients = Collections.unmodifiableList(new ArrayList<>(clients)); in updateConnectedClients()
176 private static Set<MacAddress> getClientMacs(@NonNull List<WifiClient> clients) { in getClientMacs() argument
177 final Set<MacAddress> macs = new HashSet<>(clients.size()); in getClientMacs()
178 for (WifiClient c : clients) { in getClientMacs()
DBpfCoordinator.java696 HashMap<Inet4Address, ClientInfo> clients = mTetherClients.get(ipServer); in tetherOffloadClientAdd() local
697 clients.put(client.clientAddress, client); in tetherOffloadClientAdd()
709 HashMap<Inet4Address, ClientInfo> clients = mTetherClients.get(ipServer); in tetherOffloadClientRemove()
710 if (clients == null) return; in tetherOffloadClientRemove()
713 if (clients.remove(client.clientAddress) == null) return; in tetherOffloadClientRemove()
720 if (clients.isEmpty()) { in tetherOffloadClientRemove()
732 final HashMap<Inet4Address, ClientInfo> clients = mTetherClients.get(ipServer); in tetherOffloadClientClear()
733 if (clients == null) return; in tetherOffloadClientClear()
736 for (final ClientInfo c : new ArrayList<ClientInfo>(clients.values())) { in tetherOffloadClientClear()
801 final HashMap<Inet4Address, ClientInfo> clients = mTetherClients.get(ipServer); in tetherOffloadRule4Clear()
[all …]
/packages/services/Car/service/src/com/android/car/
DCarPropertyService.java240 List<Client> clients = mPropIdClientMap.get(propId); in registerListener() local
241 if (clients == null) { in registerListener()
242 clients = new CopyOnWriteArrayList<Client>(); in registerListener()
243 mPropIdClientMap.put(propId, clients); in registerListener()
245 if (!clients.contains(client)) { in registerListener()
246 clients.add(client); in registerListener()
552 List<Client> clients = mPropIdClientMap.get(propId); in onPropertyChange() local
553 if (clients == null) { in onPropertyChange()
559 for (Client c : clients) { in onPropertyChange()
DInputCaptureClientController.java677 ClientsToDispatch clients; in dispatchClientCallbackLocked() local
682 clients = mClientDispatchQueue.pop(); in dispatchClientCallbackLocked()
687 + clients.mClientsToDispatch.size() in dispatchClientCallbackLocked()
688 + ", display:" + clients.mDisplayType); in dispatchClientCallbackLocked()
690 for (int i = 0; i < clients.mClientsToDispatch.size(); i++) { in dispatchClientCallbackLocked()
691 ICarInputCallback callback = clients.mClientsToDispatch.keyAt(i); in dispatchClientCallbackLocked()
692 int[] inputTypes = clients.mClientsToDispatch.valueAt(i); in dispatchClientCallbackLocked()
699 callback.onCaptureStateChanged(clients.mDisplayType, inputTypes); in dispatchClientCallbackLocked()
DCarProjectionService.java742 List<WirelessClient> clients; in sendApStatusMessage() local
744 clients = new ArrayList<>(mWirelessClients.values()); in sendApStatusMessage()
746 for (WirelessClient client : clients) { in sendApStatusMessage()
991 public void onConnectedClientsChanged(List<WifiClient> clients) { in onConnectedClientsChanged() argument
994 + clients.size() + " clients"); in onConnectedClientsChanged()
/packages/apps/Settings/src/com/android/settings/wifi/tether/
DWifiTetherSoftApManager.java25 public void onConnectedClientsChanged(List<WifiClient> clients) {
26 mWifiTetherSoftApCallback.onConnectedClientsChanged(clients);
54 void onConnectedClientsChanged(List<WifiClient> clients); in onConnectedClientsChanged() argument
DWifiTetherPreferenceController.java130 public void onConnectedClientsChanged(List<WifiClient> clients) { in initWifiTetherSoftApManager()
135 R.plurals.wifi_tether_connected_summary, clients.size(), in initWifiTetherSoftApManager()
136 clients.size())); in initWifiTetherSoftApManager()
/packages/modules/Wifi/service/java/com/android/server/wifi/aware/
DWifiAwareMetrics.java214 SparseArray<WifiAwareClientState> clients) { in recordAttachSession() argument
217 for (int i = 0; i < clients.size(); ++i) { in recordAttachSession()
218 if (clients.valueAt(i).getUid() == uid) { in recordAttachSession()
258 public void recordDiscoverySession(int uid, SparseArray<WifiAwareClientState> clients) { in recordDiscoverySession() argument
259 recordDiscoverySessionInternal(uid, clients, false, -1, -1); in recordDiscoverySession()
266 int minRange, int maxRange, SparseArray<WifiAwareClientState> clients) { in recordDiscoverySessionWithRanging() argument
267 recordDiscoverySessionInternal(uid, clients, isSubscriberWithRanging, minRange, maxRange); in recordDiscoverySessionWithRanging()
273 private void recordDiscoverySessionInternal(int uid, SparseArray<WifiAwareClientState> clients, in recordDiscoverySessionInternal() argument
286 for (int i = 0; i < clients.size(); ++i) { in recordDiscoverySessionInternal()
287 WifiAwareClientState client = clients.valueAt(i); in recordDiscoverySessionInternal()
/packages/modules/adb/client/pairing/tests/
Dpairing_connection_test.cpp325 std::vector<std::unique_ptr<PairingClient>> clients; in TEST_F() local
331 while (clients.size() < test_num_clients) { in TEST_F()
347 clients.push_back(std::move(client)); in TEST_F()
398 std::vector<std::unique_ptr<PairingClient>> clients; in TEST_F() local
405 while (clients.size() < test_num_clients) { in TEST_F()
407 if (clients.size() == test_num_clients - 1) { in TEST_F()
455 clients.push_back(std::move(client)); in TEST_F()
/packages/services/Car/tests/carservice_test/src/com/android/car/watchdog/
DCarWatchdogServiceTest.java163 ArrayList<TestClient> clients = new ArrayList<>(Arrays.asList( in testMultipleClients() local
169 for (int i = 0; i < clients.size(); i++) { in testMultipleClients()
170 clients.get(i).registerClient(); in testMultipleClients()
174 for (int i = 0; i < clients.size(); i++) { in testMultipleClients()
175 assertThat(clients.get(i).mAndroidClient.makeSureHealthCheckDone()).isEqualTo(true); in testMultipleClients()
/packages/modules/Connectivity/Tethering/tests/integration/src/android/net/
DEthernetTetheringTest.java448 public void onClientsChanged(Collection<TetheredClient> clients) { in onClientsChanged() argument
452 Log.d(TAG, "Got clients changed: " + clients); in onClientsChanged()
453 mClients = clients; in onClientsChanged()
454 if (clients.size() > 0) { in onClientsChanged()
551 final Collection<TetheredClient> clients = mTetheringEventCallback.awaitClientConnected(); in checkTetheredClientCallbacks() local
552 assertEquals(1, clients.size()); in checkTetheredClientCallbacks()
553 final TetheredClient client = clients.iterator().next(); in checkTetheredClientCallbacks()
/packages/modules/adb/
DOVERVIEW.TXT11 for the benefit of clients (command-line users, or helper programs like
27 to orchestrate the exchange of data (packets, really) between clients,
36 few services for clients that run on the host.
80 This details the protocol used between ADB clients and the ADB
132 Each transport can carry one or more multiplexed streams between clients
/packages/modules/Connectivity/tests/cts/net/util/java/android/net/cts/util/
DCtsTetheringUtils.java252 public void onClientsChanged(Collection<TetheredClient> clients) { in onClientsChanged() argument
253 mHistory.add(new CallbackValue(CallbackType.ON_CLIENTS, clients, 0)); in onClientsChanged()
487 public void onConnectedClientsChanged(List<WifiClient> clients) { } in onConnectedClientsChanged() argument
/packages/modules/Connectivity/Tethering/common/TetheringLib/src/android/net/
DTetheringManager.java460 public void onTetherClientsChanged(List<TetheredClient> clients) { } in onTetherClientsChanged() argument
1101 default void onClientsChanged(@NonNull Collection<TetheredClient> clients) {}
1306 public void onTetherClientsChanged(final List<TetheredClient> clients) {
1307 executor.execute(() -> callback.onClientsChanged(clients));
/packages/services/Car/cpp/watchdog/sepolicy/public/
Dattributes1 # All car watchdog clients
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/
DSupplicantP2pIfaceHal.java2404 ArrayList<byte[]> clients = new ArrayList<>(); in setClientList() local
2406 clients.add(NativeUtil.macAddressToByteArray(clientStr)); in setClientList()
2408 result.setResult(network.setClientList(clients)); in setClientList()
2438 (SupplicantStatus status, ArrayList<byte[]> clients) -> { in getClientList() argument
2439 result.setResult(status, clients); in getClientList()
2448 ArrayList<byte[]> clients = result.getResult(); in getClientList() local
2449 return clients.stream() in getClientList()
/packages/services/Car/cpp/computepipe/sepolicy/public/
Dattributes1 # All computepipe clients
/packages/services/Car/cpp/computepipe/sepolicy/private/
Dcomputepiperunnerdomain.te2 ### Rules for all domains which are computepipe clients
Dcomputepipeclientdomain.te2 ### Rules for all domains which are computepipe clients
/packages/modules/Wifi/framework/java/android/net/wifi/
DISoftApCallback.aidl51 in Map<String, List<WifiClient>> clients, boolean isBridged, in onConnectedClientsOrInfoChanged() argument

12