Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/wm/
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 …]
/frameworks/native/services/sensorservice/
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()
DSensorRecord.h31 size_t getNumConnections() const { return mConnections.size(); } in getNumConnections()
38 SortedVector< wp<const SensorEventConnection> > mConnections;
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDeviceAdminServiceController.java87 private final SparseArray<DevicePolicyServiceConnection> mConnections = new SparseArray<>(); field in DeviceAdminServiceController
132 mConnections.get(userId); in startServiceForOwner()
149 mConnections.put(userId, conn); in startServiceForOwner()
173 final DevicePolicyServiceConnection conn = mConnections.get(userId); in disconnectServiceOnUserLocked()
178 mConnections.remove(userId); in disconnectServiceOnUserLocked()
185 if (mConnections.size() == 0) { in dump()
190 for (int i = 0; i < mConnections.size(); i++) { in dump()
191 final int userId = mConnections.keyAt(i); in dump()
194 final DevicePolicyServiceConnection con = mConnections.valueAt(i); in dump()
/frameworks/base/services/core/java/com/android/server/storage/
DStorageSessionController.java55 private final SparseArray<StorageUserConnection> mConnections = new SparseArray<>(); field in StorageSessionController
95 connection = mConnections.get(userId); in onVolumeMount()
99 mConnections.put(userId, connection); in onVolumeMount()
127 connection = mConnections.get(userId); in notifyVolumeStateChanged()
157 StorageUserConnection connection = mConnections.get(userId); in onVolumeRemove()
223 connection = mConnections.get(userId); in onUserStopping()
249 for (int i = 0; i < mConnections.size(); i++) { in onReset()
250 connections.put(mConnections.keyAt(i), mConnections.valueAt(i)); in onReset()
284 mConnections.clear(); in onReset()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCall.java88 public ArrayList<Connection> mConnections = new ArrayList<>(); field in Call
101 return (ArrayList<Connection>) mConnections.clone(); in getConnections()
110 mConnections = other.getConnections(); in copyConnectionFrom()
119 return mConnections.size(); in getConnectionsCount()
164 mConnections.remove(conn); in removeConnection()
175 mConnections.add(conn); in addConnection()
184 mConnections.clear(); in clearConnections()
DGsmCdmaCallTracker.java75 public GsmCdmaConnection[] mConnections; field in GsmCdmaCallTracker
179 mConnections = new GsmCdmaConnection[MAX_CONNECTIONS_GSM]; in updatePhoneType()
187 mConnections = new GsmCdmaConnection[MAX_CONNECTIONS_CDMA]; in updatePhoneType()
200 for (GsmCdmaConnection gsmCdmaConnection : mConnections) { in reset()
213 mConnections = null; in reset()
817 ; i < mConnections.length; i++) { in handlePollCalls()
818 GsmCdmaConnection conn = mConnections[i]; in handlePollCalls()
847 mConnections[i] = mPendingMO; in handlePollCalls()
865 hangup(mConnections[i]); in handlePollCalls()
879 mConnections[i] = new GsmCdmaConnection(mPhone, dc, this, i); in handlePollCalls()
[all …]
/frameworks/base/media/java/android/service/media/
DMediaBrowserService.java105 private final ArrayMap<IBinder, ConnectionRecord> mConnections = new ArrayMap<>(); field in MediaBrowserService
128 mConnections.remove(callbacks.asBinder()); in binderDied()
219 mConnections.remove(b); in connect()
244 mConnections.put(b, connection); in connect()
253 mConnections.remove(b); in connect()
268 final ConnectionRecord old = mConnections.remove(b); in disconnect()
291 final ConnectionRecord connection = mConnections.get(b); in addSubscription()
317 ConnectionRecord connection = mConnections.get(b); in removeSubscription()
338 ConnectionRecord connection = mConnections.get(b); in getMediaItem()
490 Iterator<ConnectionRecord> iter = mConnections.values().iterator(); in setSessionToken()
[all …]
/frameworks/base/services/core/java/com/android/server/appbinding/
DAppBindingService.java90 private final ArrayList<AppServiceConnection> mConnections = new ArrayList<>(); field in AppBindingService
347 for (int i = 0; i < mConnections.size(); i++) { in findConnectionLock()
348 final AppServiceConnection conn = mConnections.get(i); in findConnectionLock()
406 mConnections.add(conn); in bindServicesLocked()
413 for (int i = mConnections.size() - 1; i >= 0; i--) { in unbindServicesLocked()
414 final AppServiceConnection conn = mConnections.get(i); in unbindServicesLocked()
424 mConnections.remove(i); in unbindServicesLocked()
483 for (int i = 0; i < mConnections.size(); i++) { in dump()
484 final AppServiceConnection conn = mConnections.get(i); in dump()
491 if (mConnections.size() == 0) { in dump()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
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()
DGsmCdmaCallTrackerTest.java415 mCTUT.mConnections[0] = mConnection; in testUpdatePhoneTypeWithActiveCall()
429 mCTUT.mConnections[0] = mConnection; in testDispatchCsCallRadioTech()
/frameworks/base/services/core/java/com/android/server/tv/
DTvInputHardwareManager.java90 private final SparseArray<Connection> mConnections = new SparseArray<>(); field in TvInputHardwareManager
159 mConnections.put(info.getDeviceId(), connection); in onDeviceAvailable()
171 for (int i = 0; i < mConnections.size(); ++i) { in buildHardwareListLocked()
172 mHardwareList.add(mConnections.valueAt(i).getHardwareInfoLocked()); in buildHardwareListLocked()
179 Connection connection = mConnections.get(deviceId); in onDeviceUnavailable()
185 mConnections.remove(deviceId); in onDeviceUnavailable()
207 Connection connection = mConnections.get(deviceId); in onStreamConfigurationChanged()
235 Connection connection = mConnections.get(deviceId); in onFirstFrameCaptured()
303 Connection connection = mConnections.get(deviceId); in addHardwareInput()
377 Connection connection = mConnections.get(deviceId); in acquireHardware()
[all …]
/frameworks/native/services/surfaceflinger/Scheduler/
DScheduler.cpp57 if (mConnections.count(handle) == 0) { \
195 mConnections.emplace(handle, Connection{connection, std::move(eventThread)}); in createConnection()
207 return createConnectionInternal(mConnections[handle].thread.get(), configChanged); in createDisplayEventConnection()
212 return mConnections[handle].connection; in getEventConnection()
218 mConnections[handle].thread->onHotplugReceived(displayId, connected); in onHotplugReceived()
223 mConnections[handle].thread->onScreenAcquired(); in onScreenAcquired()
228 mConnections[handle].thread->onScreenReleased(); in onScreenReleased()
262 mConnections[handle].thread->onConfigChanged(displayId, configId, vsyncPeriod); in onNonPrimaryDisplayConfigChanged()
267 return mConnections[handle].thread->getEventThreadConnectionCount(); in getEventThreadConnectionCount()
272 mConnections.at(handle).thread->dump(result); in dump()
[all …]
DScheduler.h215 std::unordered_map<ConnectionHandle, Connection> mConnections; variable
/frameworks/base/services/core/jni/
Dcom_android_server_tv_TvInputHal.cpp308 KeyedVector<int, KeyedVector<int, Connection> > mConnections; member in android::JTvInputHal
343 KeyedVector<int, Connection>& connections = mConnections.editValueFor(deviceId); in addOrUpdateStream()
418 KeyedVector<int, Connection>& connections = mConnections.editValueFor(deviceId); in removeStream()
464 mConnections.add(info.deviceId, KeyedVector<int, Connection>()); in onDeviceAvailable()
508 KeyedVector<int, Connection>& connections = mConnections.editValueFor(deviceId); in onDeviceUnavailable()
513 mConnections.removeItem(deviceId); in onDeviceUnavailable()
525 KeyedVector<int, Connection>& connections = mConnections.editValueFor(deviceId); in onStreamConfigurationsChanged()
542 KeyedVector<int, Connection>& connections = mConnections.editValueFor(deviceId); in onCaptured()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/
DImsPhoneCallTest.java76 assertEquals(0, mImsCallUT.mConnections.size()); in testAttachDetach()
83 assertEquals(1, mImsCallUT.mConnections.size()); in testAttachDetach()
90 assertEquals(0, mImsCallUT.mConnections.size()); in testAttachDetach()
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbHostManager.java89 private final LinkedList<ConnectionRecord> mConnections = new LinkedList<ConnectionRecord>(); field in UsbHostManager
297 while (mConnections.size() >= MAX_CONNECT_RECORDS) { in addConnectionRecord()
298 mConnections.removeFirst(); in addConnectionRecord()
302 mConnections.add(rec); in addConnectionRecord()
529 for (ConnectionRecord rec : mConnections) { in dump()
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/
DActivityTestMain.java70 ArrayList<ServiceConnection> mConnections = new ArrayList<ServiceConnection>(); field in ActivityTestMain
243 mConnections.add(conn); in onCreateOptionsMenu()
345 mConnections.add(conn); in onCreateOptionsMenu()
369 mConnections.add(conn); in onCreateOptionsMenu()
564 for (ServiceConnection conn : mConnections) { in onStop()
567 mConnections.clear(); in onStop()
/frameworks/native/services/surfaceflinger/tests/unittests/
DTestableScheduler.h89 mConnections.clear(); in ~TestableScheduler()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsPhoneCallTracker.java300 for (ImsPhoneConnection conn : mConnections) { in onRequestStatsUpdate()
420 private ArrayList<ImsPhoneConnection> mConnections = new ArrayList<ImsPhoneConnection>(); field in ImsPhoneCallTracker
2276 mConnections.clear(); in callEndCleanupHandOverCallIfAny()
2329 for (ImsPhoneConnection conn : mConnections) { in findConnection()
2339 mConnections.remove(conn); in removeConnection()
2344 for (ImsPhoneConnection imsPhoneConnection : mConnections) { in removeConnection()
2363 mConnections.add(conn); in addConnection()
3769 mHandoverCall.mConnections = call.mConnections; in transferHandoverConnections()
3771 mHandoverCall.mConnections.addAll(call.mConnections); in transferHandoverConnections()
4188 if (mConnections != null && mConnections.size() > 0) { in dump()
[all …]
/frameworks/av/media/codec2/hidl/1.0/utils/
Dtypes.cpp981 mConnections.clear(); in setReceiver()
1008 auto foundConnection = mConnections.find(connectionId); in send()
1009 bool isNewConnection = foundConnection == mConnections.end(); in send()
1030 foundConnection = mConnections.try_emplace( in send()
1048 mConnections.erase(foundConnection); in send()
1053 mConnections.erase(foundConnection); in send()
/frameworks/av/media/codec2/hidl/1.0/utils/include/codec2/hidl/1.0/
Dtypes.h225 std::map<int64_t, Connection> mConnections; member
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DTelephonyMetrics.java1533 private RilCall[] convertConnectionsToRilCalls(ArrayList<GsmCdmaConnection> mConnections, in convertConnectionsToRilCalls() argument
1535 RilCall[] calls = new RilCall[mConnections.size()]; in convertConnectionsToRilCalls()
1536 for (int i = 0; i < mConnections.size(); i++) { in convertConnectionsToRilCalls()
1539 convertConnectionToRilCall(mConnections.get(i), calls[i], countryIso); in convertConnectionsToRilCalls()