Home
last modified time | relevance | path

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

12

/aosp12/frameworks/base/services/core/java/com/android/server/wm/
H A DActivityServiceConnectionsHolder.java52 private ArraySet<T> mConnections; field in ActivityServiceConnectionsHolder
73 if (mConnections == null) { in addConnection()
74 mConnections = new ArraySet<>(); in addConnection()
76 mConnections.add(c); in addConnection()
83 if (mConnections == null) { in removeConnection()
89 mConnections.remove(c); in removeConnection()
107 if (mConnections == null || mConnections.isEmpty()) { in forEachConnection()
110 for (int i = mConnections.size() - 1; i >= 0; i--) { in forEachConnection()
111 consumer.accept(mConnections.valueAt(i)); in forEachConnection()
122 if (mConnections == null || mConnections.isEmpty() || mIsDisconnecting) { in disconnectActivityFromServices()
[all …]
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
H A DContextMap.java263 synchronized (mConnections) { in addConnection()
275 synchronized (mConnections) { in removeConnection()
291 synchronized (mConnections) { in removeConnectionsByAppId()
393 synchronized (mConnections) { in getConnectedDevices()
408 synchronized (mConnections) { in getByConnId()
432 synchronized (mConnections) { in connIdByAddress()
448 synchronized (mConnections) { in addressByConnId()
462 synchronized (mConnections) { in getConnectionByApp()
488 synchronized (mConnections) { in clear()
489 mConnections.clear(); in clear()
[all …]
/aosp12/frameworks/base/services/core/java/com/android/server/storage/
H A DStorageSessionController.java122 connection = mConnections.get(userId); in onVolumeMount()
126 mConnections.put(userId, connection); in onVolumeMount()
178 int size = mConnections.size(); in freeCache()
180 int key = mConnections.keyAt(i); in freeCache()
199 connection = mConnections.get(userId); in notifyAnrDelayStarted()
291 connection = mConnections.get(userId); in onUserStopping()
318 connections.put(mConnections.keyAt(i), mConnections.valueAt(i)); in onReset()
352 mConnections.clear(); in onReset()
411 connection = mConnections.get(userId); in notifyAppIoBlocked()
430 connection = mConnections.get(userId); in notifyAppIoResumed()
[all …]
/aosp12/frameworks/native/services/sensorservice/
H A DSensorRecord.cpp26 mConnections.add(connection); in SensorRecord()
32 if (mConnections.indexOf(connection) < 0) { in addConnection()
33 mConnections.add(connection); in addConnection()
42 ssize_t index = mConnections.indexOf(connection); in removeConnection()
44 mConnections.removeItemsAt(index, 1); in removeConnection()
55 return mConnections.size() ? false : true; in removeConnection()
H A DSensorRecord.h31 size_t getNumConnections() const { return mConnections.size(); } in getNumConnections()
38 SortedVector< wp<const SensorEventConnection> > mConnections;
/aosp12/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
H A DDeviceAdminServiceController.java79 private final SparseArray<DevicePolicyServiceConnection> mConnections = new SparseArray<>(); field in DeviceAdminServiceController
125 mConnections.get(userId); in startServiceForOwner()
145 mConnections.put(userId, conn); in startServiceForOwner()
169 final DevicePolicyServiceConnection conn = mConnections.get(userId); in disconnectServiceOnUserLocked()
176 mConnections.remove(userId); in disconnectServiceOnUserLocked()
183 if (mConnections.size() == 0) { in dump()
188 for (int i = 0; i < mConnections.size(); i++) { in dump()
189 final int userId = mConnections.keyAt(i); in dump()
192 final DevicePolicyServiceConnection con = mConnections.valueAt(i); in dump()
/aosp12/packages/modules/Connectivity/service/src/com/android/server/connectivity/
H A DQosCallbackTracker.java71 private final List<QosCallbackAgentConnection> mConnections = new ArrayList<>(); field in QosCallbackTracker
110 mConnections.add(ac); in handleRegisterCallback()
121 if (CollectionUtils.any(mConnections, c -> c.getBinder().equals(binder))) { in handleRegisterCallbackInternal()
161 CollectionUtils.indexOf(mConnections, c -> c.getBinder().equals(binder)); in handleUnregisterCallback()
166 final QosCallbackAgentConnection agentConnection = mConnections.get(connIndex); in handleUnregisterCallback()
174 mConnections.remove(agentConnection); in handleUnregisterCallback()
246 for (int i = mConnections.size() - 1; i >= 0; i--) { in handleNetworkReleased()
247 final QosCallbackAgentConnection agentConnection = mConnections.get(i); in handleNetworkReleased()
266 final int acIndex = CollectionUtils.indexOf(mConnections, in runOnAgentConnection()
273 action.execute(mConnections.get(acIndex)); in runOnAgentConnection()
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/connserv/
H A DHfpClientDeviceBlock.java50 private final Map<UUID, HfpClientConnection> mConnections = new HashMap<>(); field in HfpClientDeviceBlock
99 HfpClientConnection connection = mConnections.get(call.getUUID()); in onCreateIncomingConnection()
123 for (HfpClientConnection connection : mConnections.values()) { in onAudioStateChange()
133 HfpClientConnection connection = mConnections.get(call.getUUID()); in onCreateUnknownConnection()
181 mConnections.remove(call.getUUID()); in handleCall()
217 mConnections.remove(call.getUUID()); in handleCall()
228 return mConnections.get(call.getUUID()); in findConnectionKey()
233 for (HfpClientConnection connection : mConnections.values()) { in disconnectAll()
237 mConnections.clear(); in disconnectAll()
286 mConnections.put(connection.getUUID(), connection); in buildConnection()
[all …]
/aosp12/frameworks/base/services/core/java/com/android/server/am/
H A DProcessServiceRecord.java102 private final ArraySet<ConnectionRecord> mConnections = new ArraySet<>(); field in ProcessServiceRecord
175 for (int i = mConnections.size() - 1; i >= 0; i--) { in updateHasAboveClientLocked()
176 ConnectionRecord cr = mConnections.valueAt(i); in updateHasAboveClientLocked()
307 mConnections.add(connection); in addConnection()
311 mConnections.remove(connection); in removeConnection()
315 mConnections.clear(); in removeAllConnections()
319 return mConnections.valueAt(index); in getConnectionAt()
323 return mConnections.size(); in numberOfConnections()
437 if (mConnections.size() > 0) { in dump()
439 for (int i = 0, size = mConnections.size(); i < size; i++) { in dump()
[all …]
/aosp12/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DCall.java89 public ArrayList<Connection> mConnections = new ArrayList<>(); field in Call
102 return (ArrayList<Connection>) mConnections.clone(); in getConnections()
111 mConnections = other.getConnections(); in copyConnectionFrom()
120 return mConnections.size(); in getConnectionsCount()
165 mConnections.remove(conn); in removeConnection()
176 mConnections.add(conn); in addConnection()
185 mConnections.clear(); in clearConnections()
H A DGsmCdmaCallTracker.java77 public GsmCdmaConnection[] mConnections; field in GsmCdmaCallTracker
215 mConnections = null; in reset()
858 ; i < mConnections.length; i++) { in handlePollCalls()
859 GsmCdmaConnection conn = mConnections[i]; in handlePollCalls()
888 mConnections[i] = mPendingMO; in handlePollCalls()
906 hangup(mConnections[i]); in handlePollCalls()
1007 mConnections[i] = null; in handlePollCalls()
1016 newRinging = mConnections[i]; in handlePollCalls()
1191 updateMetrics(mConnections); in handlePollCalls()
1728 if (mConnections == null) { in dispatchCsCallRadioTech()
[all …]
/aosp12/frameworks/base/media/java/android/service/media/
H A DMediaBrowserService.java106 private final ArrayMap<IBinder, ConnectionRecord> mConnections = new ArrayMap<>(); field in MediaBrowserService
129 mConnections.remove(callbacks.asBinder()); in binderDied()
220 mConnections.remove(b); in connect()
245 mConnections.put(b, connection); in connect()
254 mConnections.remove(b); in connect()
269 final ConnectionRecord old = mConnections.remove(b); in disconnect()
292 final ConnectionRecord connection = mConnections.get(b); in addSubscription()
318 ConnectionRecord connection = mConnections.get(b); in removeSubscription()
339 ConnectionRecord connection = mConnections.get(b); in getMediaItem()
586 for (IBinder binder : mConnections.keySet()) { in notifyChildrenChangedInternal()
[all …]
/aosp12/frameworks/base/services/core/java/com/android/server/appbinding/
H A DAppBindingService.java348 for (int i = 0; i < mConnections.size(); i++) { in findConnectionLock()
349 final AppServiceConnection conn = mConnections.get(i); in findConnectionLock()
407 mConnections.add(conn); in bindServicesLocked()
414 for (int i = mConnections.size() - 1; i >= 0; i--) { in unbindServicesLocked()
415 final AppServiceConnection conn = mConnections.get(i); in unbindServicesLocked()
425 mConnections.remove(i); in unbindServicesLocked()
484 for (int i = 0; i < mConnections.size(); i++) { in dump()
485 final AppServiceConnection conn = mConnections.get(i); in dump()
492 if (mConnections.size() == 0) { in dump()
507 for (int i = 0; i < mConnections.size(); i++) { in dumpSimple()
[all …]
/aosp12/packages/services/Car/service/src/com/android/car/pm/
H A DVendorServiceController.java69 private final HashMap<ConnectionKey, VendorServiceConnection> mConnections = field in VendorServiceController
122 for (ConnectionKey key : mConnections.keySet()) { in release()
126 mConnections.clear(); in release()
162 for (VendorServiceConnection connection : mConnections.values()) { in doSwitchUser()
186 for (ConnectionKey key : mConnections.keySet()) { in doUserLockChanged()
222 mConnections.remove(key); in startOrBindService()
228 VendorServiceConnection connection = mConnections.get(key); in stopOrUnbindService()
235 VendorServiceConnection connection = mConnections.get(key); in getOrCreateConnection()
239 mConnections.put(key, connection); in getOrCreateConnection()
/aosp12/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
H A DSelfManagedCallList.java74 private List<SelfManagedConnection> mConnections = new ArrayList<>(); field in SelfManagedCallList
164 mConnections.add(connection); in addConnection()
173 mConnections.remove(connection); in removeConnection()
181 return mConnections; in getConnections()
185 Optional<SelfManagedConnection> foundOptional = mConnections.stream() in getConnectionById()
H A DSelfManagedCallListAdapter.java135 private List<SelfManagedConnection> mConnections; field in SelfManagedCallListAdapter
141 mConnections = connections; in SelfManagedCallListAdapter()
146 return mConnections.size(); in getCount()
151 return mConnections.get(position); in getItem()
164 SelfManagedConnection connection = mConnections.get(position); in getView()
213 Log.i(TAG, "updateConnections "+ mConnections.size()); in updateConnections()
/aosp12/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DGsmCdmaCallTest.java52 assertEquals(0, mCallUnderTest.mConnections.size()); in testAttachDetach()
60 assertEquals(1, mCallUnderTest.mConnections.size()); in testAttachDetach()
67 assertEquals(0, mCallUnderTest.mConnections.size()); in testAttachDetach()
74 assertEquals(0, mCallUnderTest.mConnections.size()); in testMultiparty()
/aosp12/packages/services/Telephony/testapps/ImsTestService/src/com/android/phone/testapps/imstestapp/
H A DImsTestServiceApp.java31 private LinearLayout mConnections; field in ImsTestServiceApp
49 mConnections = findViewById(R.id.connections_list); in onCreate()
50 mConnections.addView(getLayoutInflater().inflate(R.layout.ims_connection, null, false)); in onCreate()
/aosp12/frameworks/base/services/core/java/com/android/server/tv/
H A DTvInputHardwareManager.java160 mConnections.put(info.getDeviceId(), connection); in onDeviceAvailable()
172 for (int i = 0; i < mConnections.size(); ++i) { in buildHardwareListLocked()
180 Connection connection = mConnections.get(deviceId); in onDeviceUnavailable()
186 mConnections.remove(deviceId); in onDeviceUnavailable()
209 Connection connection = mConnections.get(deviceId); in onStreamConfigurationChanged()
247 Connection connection = mConnections.get(deviceId); in onFirstFrameCaptured()
453 for (int i = 0; i < mConnections.size(); ++i) { in findDeviceIdForInputIdLocked()
454 Connection connection = mConnections.get(i); in findDeviceIdForInputIdLocked()
567 for (int i = 0; i < mConnections.size(); ++i) { in handleVolumeChange()
589 for (int i = 0; i < mConnections.size(); i++) { in dump()
[all …]
/aosp12/hardware/qcom/sm8150p/gps/gnss/
H A DXtraSystemStatusObserver.cpp102 mGpsLock(-1), mConnections(~0), mXtraThrottle(true), in XtraSystemStatusObserver()
134 mConnections = allConnections; in updateConnections()
136 LOC_LOGd("updateConnections mConnections:%" PRIx64, mConnections); in updateConnections()
148 ss << "connection" << endl << mConnections << endl in updateConnections()
216 (mConnections == (uint64_t)~0 ? ss : ss << mConnections) << endl in onStatusRequested()
/aosp12/hardware/qcom/sm7150/gps/gnss/
H A DXtraSystemStatusObserver.cpp103 mGpsLock(-1), mConnections(~0), mXtraThrottle(true), in XtraSystemStatusObserver()
135 mConnections = allConnections; in updateConnections()
137 LOC_LOGd("updateConnections mConnections:%" PRIx64, mConnections); in updateConnections()
149 ss << "connection" << endl << mConnections << endl in updateConnections()
217 (mConnections == (uint64_t)~0 ? ss : ss << mConnections) << endl in onStatusRequested()
/aosp12/frameworks/libs/service_entitlement/tests/utils/com/android/libraries/entitlement/testing/
H A DFakeURLStreamHandler.java46 private List<FakeHttpsURLConnection> mConnections = new ArrayList<>(); field in FakeURLStreamHandler
57 mConnections.add(connection); in openConnection()
72 mConnections = new ArrayList<>(); in stubResponse()
78 return ImmutableList.copyOf(mConnections); in getConnections()
/aosp12/hardware/qcom/sm7250/gps/gnss/
H A DXtraSystemStatusObserver.cpp109 mGpsLock(-1), mConnections(~0), mXtraThrottle(true), in XtraSystemStatusObserver()
141 mConnections = allConnections; in updateConnections()
143 LOC_LOGd("updateConnections mConnections:%" PRIx64, mConnections); in updateConnections()
155 ss << "connection" << endl << mConnections << endl in updateConnections()
223 (mConnections == (uint64_t)~0 ? ss : ss << mConnections) << endl in onStatusRequested()
/aosp12/hardware/qcom/sm8150/gps/gnss/
H A DXtraSystemStatusObserver.cpp109 mGpsLock(-1), mConnections(~0), mXtraThrottle(true), in XtraSystemStatusObserver()
141 mConnections = allConnections; in updateConnections()
143 LOC_LOGd("updateConnections mConnections:%" PRIx64, mConnections); in updateConnections()
155 ss << "connection" << endl << mConnections << endl in updateConnections()
223 (mConnections == (uint64_t)~0 ? ss : ss << mConnections) << endl in onStatusRequested()
/aosp12/frameworks/native/services/surfaceflinger/Scheduler/
H A DScheduler.cpp57 if (mConnections.count(handle) == 0) { \
285 mConnections.emplace(handle, Connection{connection, std::move(eventThread)}); in createConnection()
304 return mConnections[handle].connection; in getEventConnection()
313 thread = mConnections[handle].thread.get(); in onHotplugReceived()
324 thread = mConnections[handle].thread.get(); in onScreenAcquired()
335 thread = mConnections[handle].thread.get(); in onScreenReleased()
358 thread = mConnections[handle].thread.get(); in onFrameRateOverridesChanged()
410 thread = mConnections[handle].thread.get(); in onNonPrimaryDisplayModeChanged()
418 return mConnections[handle].thread->getEventThreadConnectionCount(); in getEventThreadConnectionCount()
426 thread = mConnections.at(handle).thread.get(); in dump()
[all …]

12