/frameworks/base/services/core/java/com/android/server/wm/ |
D | ActivityServiceConnectionsHolder.java | 51 private ArraySet<T> mConnections; field in ActivityServiceConnectionsHolder 71 if (mConnections == null) { in addConnection() 72 mConnections = new ArraySet<>(); in addConnection() 74 mConnections.add(c); in addConnection() 81 if (mConnections == null) { in removeConnection() 87 mConnections.remove(c); in removeConnection() 104 if (mConnections == null || mConnections.isEmpty()) { in forEachConnection() 107 connections = new ArraySet<>(mConnections); in forEachConnection() 121 if (mConnections == null || mConnections.isEmpty() || mIsDisconnecting) { in disconnectActivityFromServices() 145 return String.valueOf(mConnections); in toString()
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | DeviceAdminServiceController.java | 82 private final SparseArray<Map<String, DevicePolicyServiceConnection>> mConnections = field in DeviceAdminServiceController 129 mConnections.contains(userId) in startServiceForAdmin() 130 ? mConnections.get(userId).get(packageName) : null; in startServiceForAdmin() 150 if (!mConnections.contains(userId)) { in startServiceForAdmin() 151 mConnections.put(userId, new HashMap<>()); in startServiceForAdmin() 153 mConnections.get(userId).put(packageName, conn); in startServiceForAdmin() 193 final DevicePolicyServiceConnection conn = mConnections.contains(userId) in disconnectServiceOnUserLocked() 194 ? mConnections.get(userId).get(packageName) : null; in disconnectServiceOnUserLocked() 203 mConnections.get(userId).remove(packageName); in disconnectServiceOnUserLocked() 204 if (mConnections.get(userId).isEmpty()) { in disconnectServiceOnUserLocked() [all …]
|
/frameworks/native/services/sensorservice/ |
D | SensorRecord.cpp | 26 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()
|
D | SensorRecord.h | 31 size_t getNumConnections() const { return mConnections.size(); } in getNumConnections() 38 SortedVector< wp<const SensorEventConnection> > mConnections;
|
/frameworks/native/libs/binder/ |
D | RpcSession.cpp | 66 LOG_ALWAYS_FATAL_IF(mConnections.mIncoming.size() != 0, in ~RpcSession() 252 LOG_ALWAYS_FATAL_IF(!mConnections.mThreads.empty(), "Shutdown failed"); in shutdownAndWait() 324 while (mShutdownCount < session->mConnections.mMaxIncoming) { in waitForShutdown() 328 session->mConnections.mIncoming.size(), mShutdownCount.load(), in waitForShutdown() 329 session->mConnections.mMaxIncoming); in waitForShutdown() 339 mConnections.mThreads[thread.get_id()] = std::move(thread); in preJoinThreadOwnership() 449 auto it = session->mConnections.mThreads.find(rpc_this_thread::get_id()); in join() 450 LOG_ALWAYS_FATAL_IF(it == session->mConnections.mThreads.end()); in join() 452 session->mConnections.mThreads.erase(it); in join() 515 mConnections = {}; in setupClient() [all …]
|
/frameworks/base/services/core/java/com/android/server/storage/ |
D | StorageSessionController.java | 62 private final SparseArray<StorageUserConnection> mConnections = new SparseArray<>(); field in StorageSessionController 124 connection = mConnections.get(userId); in onVolumeMount() 128 mConnections.put(userId, connection); in onVolumeMount() 156 connection = mConnections.get(connectionUserId); in notifyVolumeStateChanged() 180 int size = mConnections.size(); in freeCache() 182 int key = mConnections.keyAt(i); in freeCache() 183 StorageUserConnection connection = mConnections.get(key); in freeCache() 201 connection = mConnections.get(userId); in notifyAnrDelayStarted() 227 StorageUserConnection connection = mConnections.get(userId); in onVolumeRemove() 289 connection = mConnections.get(userId); in onUserStopping() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | Call.java | 90 public ArrayList<Connection> mConnections = new ArrayList<>(); field in Call 103 return (ArrayList<Connection>) mConnections.clone(); in getConnections() 112 mConnections = other.getConnections(); in copyConnectionFrom() 121 return mConnections.size(); in getConnectionsCount() 130 return mConnections.stream() in getConnectionSummary() 177 mConnections.remove(conn); in removeConnection() 188 mConnections.add(conn); in addConnection() 197 mConnections.clear(); in clearConnections()
|
D | GsmCdmaCallTracker.java | 81 public GsmCdmaConnection[] mConnections; field in GsmCdmaCallTracker 193 mConnections = new GsmCdmaConnection[MAX_CONNECTIONS_GSM]; in updatePhoneType() 198 mConnections = new GsmCdmaConnection[MAX_CONNECTIONS_CDMA]; in updatePhoneType() 211 for (GsmCdmaConnection gsmCdmaConnection : mConnections) { in reset() 224 mConnections = null; in reset() 879 ; i < mConnections.length; i++) { in handlePollCalls() 880 GsmCdmaConnection conn = mConnections[i]; in handlePollCalls() 909 mConnections[i] = mPendingMO; in handlePollCalls() 927 hangup(mConnections[i]); in handlePollCalls() 941 mConnections[i] = new GsmCdmaConnection(mPhone, dc, this, i); in handlePollCalls() [all …]
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ProcessServiceRecord.java | 137 private final ArraySet<ConnectionRecord> mConnections = new ArraySet<>(); field in ProcessServiceRecord 355 for (int i = mConnections.size() - 1; i >= 0; i--) { in updateHasAboveClientLocked() 356 ConnectionRecord cr = mConnections.valueAt(i); in updateHasAboveClientLocked() 507 mConnections.add(connection); in addConnection() 512 mConnections.remove(connection); in removeConnection() 517 for (int i = 0, size = mConnections.size(); i < size; i++) { in removeAllConnections() 518 removeSdkSandboxConnectionIfNecessary(mConnections.valueAt(i)); in removeAllConnections() 520 mConnections.clear(); in removeAllConnections() 524 return mConnections.valueAt(index); in getConnectionAt() 528 return mConnections.size(); in numberOfConnections() [all …]
|
/frameworks/base/media/java/android/service/media/ |
D | MediaBrowserService.java | 152 () -> serviceState.mConnections.remove(callbacks.asBinder())); in binderDied() 656 @NonNull private final ArrayMap<IBinder, ConnectionRecord> mConnections = new ArrayMap<>(); field in MediaBrowserService.ServiceState 671 Iterator<ConnectionRecord> iterator = mConnections.values().iterator(); in clearConnectionsOnHandler() 689 ConnectionRecord old = mConnections.remove(b); in removeConnectionRecordOnHandler() 696 Iterator<ConnectionRecord> iter = mConnections.values().iterator(); in notifySessionTokenInitializedOnHandler() 710 for (IBinder binder : mConnections.keySet()) { in notifyChildrenChangeOnHandler() 711 ConnectionRecord connection = mConnections.get(binder); in notifyChildrenChangeOnHandler() 728 ConnectionRecord connection = mConnections.get(b); in addSubscriptionOnHandler() 759 mConnections.remove(b); in connectOnHandler() 794 mConnections.put(b, connection); in connectOnHandler() [all …]
|
/frameworks/base/services/core/java/com/android/server/appbinding/ |
D | AppBindingService.java | 91 private final ArrayList<AppServiceConnection> mConnections = new ArrayList<>(); field in AppBindingService 348 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() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | GsmCdmaCallTest.java | 54 assertEquals(0, mCallUnderTest.mConnections.size()); in testAttachDetach() 62 assertEquals(1, mCallUnderTest.mConnections.size()); in testAttachDetach() 69 assertEquals(0, mCallUnderTest.mConnections.size()); in testAttachDetach() 76 assertEquals(0, mCallUnderTest.mConnections.size()); in testMultiparty()
|
/frameworks/av/media/codec2/hal/aidl/ |
D | BufferTypes.cpp | 255 mConnections.clear(); in setReceiver() 282 auto foundConnection = mConnections.find(connectionId); in send() 283 bool isNewConnection = foundConnection == mConnections.end(); in send() 305 if (foundConnection == mConnections.end()) { in send() 306 foundConnection = mConnections.try_emplace( in send() 324 mConnections.erase(foundConnection); in send() 329 mConnections.erase(foundConnection); in send()
|
/frameworks/libs/service_entitlement/tests/utils/com/android/libraries/entitlement/testing/ |
D | FakeURLStreamHandler.java | 48 private List<FakeHttpsURLConnection> mConnections = new ArrayList<>(); field in FakeURLStreamHandler 59 mConnections.add(connection); in openConnection() 74 mConnections = new ArrayList<>(); in stubResponse() 80 return ImmutableList.copyOf(mConnections); in getConnections()
|
/frameworks/base/services/core/java/com/android/server/tv/ |
D | TvInputHardwareManager.java | 96 private final SparseArray<Connection> mConnections = new SparseArray<>(); field in TvInputHardwareManager 178 mConnections.put(info.getDeviceId(), connection); in onDeviceAvailable() 191 for (int i = 0; i < mConnections.size(); ++i) { in buildHardwareListLocked() 192 mHardwareList.add(mConnections.valueAt(i).getHardwareInfoLocked()); in buildHardwareListLocked() 199 Connection connection = mConnections.get(deviceId); in onDeviceUnavailable() 205 mConnections.remove(deviceId); in onDeviceUnavailable() 228 Connection connection = mConnections.get(deviceId); in onStreamConfigurationChanged() 271 Connection connection = mConnections.get(deviceId); in onFirstFrameCaptured() 381 Connection connection = mConnections.get(deviceId); in addHardwareInput() 479 Connection connection = mConnections.get(deviceId); in acquireHardware() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/domainselection/ |
D | DomainSelectionController.java | 94 private final ArrayList<DomainSelectionConnection> mConnections = new ArrayList<>(); field in DomainSelectionController 318 mConnections.add(c); in addConnection() 327 mConnections.remove(c); in removeConnection() 442 for (DomainSelectionConnection c : mConnections) { in notifyServiceConnected() 455 for (DomainSelectionConnection c : mConnections) { in notifyServiceDisconnected()
|
/frameworks/av/media/codec2/hal/hidl/1.0/utils/ |
D | types.cpp | 337 mConnections.clear(); in setReceiver() 364 auto foundConnection = mConnections.find(connectionId); in send() 365 bool isNewConnection = foundConnection == mConnections.end(); in send() 386 foundConnection = mConnections.try_emplace( in send() 404 mConnections.erase(foundConnection); in send() 409 mConnections.erase(foundConnection); in send()
|
/frameworks/base/core/java/android/hardware/camera2/ |
D | CameraExtensionCharacteristics.java | 625 private Map<Integer, ExtensionConnection> mConnections = new HashMap<>(); field in CameraExtensionCharacteristics.CameraExtensionManagerGlobal.ExtensionConnectionManager 636 mConnections.put(extensionType, new ExtensionConnection()); in ExtensionConnectionManager() 641 return mConnections.get(extension).mProxy; in getProxy() 645 return mConnections.get(extension).mConnection; in getConnection() 649 return mConnections.get(extension).mConnectionCount; in getConnectionCount() 653 return mConnections.get(extension).mSupportsAdvancedExtensions; in areAdvancedExtensionsSupported() 661 mConnections.get(extension).mProxy = proxy; in setProxy() 665 mConnections.get(extension).mConnection = connection; in setConnection() 669 mConnections.get(extension).mConnectionCount++; in incrementConnectionCount() 673 mConnections.get(extension).mConnectionCount--; in decrementConnectionCount() [all …]
|
/frameworks/base/services/core/jni/tvinput/ |
D | JTvInputHal.cpp | 63 KeyedVector<int, Connection>& connections = mConnections.editValueFor(deviceId); in addOrUpdateStream() 122 KeyedVector<int, Connection>& connections = mConnections.editValueFor(deviceId); in removeStream() 191 mConnections.add(info.deviceId, KeyedVector<int, Connection>()); in onDeviceAvailable() 278 KeyedVector<int, Connection>& connections = mConnections.editValueFor(deviceId); in onDeviceUnavailable() 283 mConnections.removeItem(deviceId); in onDeviceUnavailable() 292 KeyedVector<int, Connection>& connections = mConnections.editValueFor(deviceId); in onStreamConfigurationsChanged() 333 KeyedVector<int, Connection>& connections = mConnections.editValueFor(deviceId); in onCaptured()
|
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/ |
D | ActivityTestMain.java | 70 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/base/services/usb/java/com/android/server/usb/ |
D | UsbHostManager.java | 95 private final LinkedList<ConnectionRecord> mConnections = new LinkedList<ConnectionRecord>(); field in UsbHostManager 308 while (mConnections.size() >= MAX_CONNECT_RECORDS) { in addConnectionRecord() 309 mConnections.removeFirst(); in addConnectionRecord() 313 mConnections.add(rec); in addConnectionRecord() 594 for (ConnectionRecord rec : mConnections) { in dump()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/ |
D | ImsPhoneCallTest.java | 82 assertEquals(0, mImsCallUT.mConnections.size()); in testAttachDetach() 89 assertEquals(1, mImsCallUT.mConnections.size()); in testAttachDetach() 96 assertEquals(0, mImsCallUT.mConnections.size()); in testAttachDetach()
|
/frameworks/av/media/codec2/hal/aidl/include/codec2/aidl/ |
D | BufferTypes.h | 103 std::map<int64_t, Connection> mConnections; member
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/ |
D | ImsPhoneCallTracker.java | 550 for (ImsPhoneConnection conn : mConnections) { in onRequestStatsUpdate() 705 private ArrayList<ImsPhoneConnection> mConnections = new ArrayList<ImsPhoneConnection>(); field in ImsPhoneCallTracker 1515 for (ImsPhoneConnection connection : mConnections) { in hangupAllOrphanedConnections() 1520 mConnections.clear(); in hangupAllOrphanedConnections() 2947 mConnections.clear(); in callEndCleanupHandOverCallIfAny() 2999 for (ImsPhoneConnection conn : mConnections) { in findConnection() 3034 mConnections.remove(conn); in removeConnection() 3040 for (ImsPhoneConnection imsPhoneConnection : mConnections) { in removeConnection() 3059 mConnections.add(conn); in addConnection() 4732 mHandoverCall.mConnections = call.mConnections; in transferHandoverConnections() [all …]
|
/frameworks/av/media/codec2/hal/hidl/1.0/utils/include/codec2/hidl/1.0/ |
D | types.h | 201 std::map<int64_t, Connection> mConnections; member
|