/frameworks/base/services/core/java/com/android/server/wm/ |
D | ActivityServiceConnectionsHolder.java | 47 private HashSet<T> mConnections; field in ActivityServiceConnectionsHolder 57 if (mConnections == null) { in addConnection() 58 mConnections = new HashSet<>(); in addConnection() 60 mConnections.add(c); in addConnection() 67 if (mConnections == null) { in removeConnection() 70 mConnections.remove(c); in removeConnection() 88 if (mConnections == null || mConnections.isEmpty()) { in forEachConnection() 91 final Iterator<T> it = mConnections.iterator(); in forEachConnection() 101 if (mConnections == null || mConnections.isEmpty()) { in disconnectActivityFromServices() 108 final Object disc = mConnections; in disconnectActivityFromServices() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | GsmCdmaCall.java | 41 return mConnections; in getConnections() 51 return mConnections.size() > 1; in isMultiparty() 71 mConnections.add(conn); in attach() 78 mConnections.add(conn); in attachFake() 92 for (int i = 0, s = mConnections.size(); i < s; i ++) { in connectionDisconnected() 93 if (mConnections.get(i).getState() != State.DISCONNECTED) { in connectionDisconnected() 109 mConnections.remove(conn); in detach() 111 if (mConnections.size() == 0) { in detach() 135 return mConnections.size() == mOwner.getMaxConnectionsPerCall(); in isFull() 147 for (int i = 0, s = mConnections.size(); i < s; i++) { in onHangupLocal() [all …]
|
D | GsmCdmaCallTracker.java | 75 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() 267 connCopy = (List<Connection>) mForegroundCall.mConnections.clone(); in fakeHoldForegroundBeforeDial() 826 ; i < mConnections.length; i++) { in handlePollCalls() 827 GsmCdmaConnection conn = mConnections[i]; in handlePollCalls() 856 mConnections[i] = mPendingMO; in handlePollCalls() 873 hangup(mConnections[i]); in handlePollCalls() [all …]
|
D | Call.java | 77 public ArrayList<Connection> mConnections = new ArrayList<Connection>(); field in Call 279 for (int i = mConnections.size() - 1 ; i >= 0 ; i--) { 280 Connection c = mConnections.get(i); 282 mConnections.remove(i); 286 if (mConnections.size() == 0) {
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/ |
D | ImsPhoneCall.java | 82 for(int i = 0, s = mConnections.size(); i < s; i++) { in dispose() 83 ImsPhoneConnection c = (ImsPhoneConnection) mConnections.get(i); in dispose() 95 return mConnections; in getConnections() 133 if (mConnections.size() > 1) { in toString() 136 for (Connection conn : mConnections) { in toString() 161 mConnections.add(conn); in attach() 190 for (int i = 0, s = mConnections.size() ; i < s; i ++) { in connectionDisconnected() 191 if (mConnections.get(i).getState() != State.DISCONNECTED) { in connectionDisconnected() 214 mConnections.remove(conn); in detach() 226 return mConnections.size() == ImsPhoneCallTracker.MAX_CONNECTIONS_PER_CALL; in isFull() [all …]
|
D | ImsExternalCall.java | 40 mConnections.add(connection); in ImsExternalCall() 45 return mConnections; in getConnections()
|
D | ImsPhoneCallTracker.java | 333 private ArrayList<ImsPhoneConnection> mConnections = new ArrayList<ImsPhoneConnection>(); field in ImsPhoneCallTracker 1780 if (mHandoverCall.mConnections.size() > 0) { in callEndCleanupHandOverCallIfAny() 1782 + mHandoverCall.mConnections); in callEndCleanupHandOverCallIfAny() 1783 mHandoverCall.mConnections.clear(); in callEndCleanupHandOverCallIfAny() 1784 mConnections.clear(); in callEndCleanupHandOverCallIfAny() 1836 for (ImsPhoneConnection conn : mConnections) { in findConnection() 1846 mConnections.remove(conn); in removeConnection() 1851 for (ImsPhoneConnection imsPhoneConnection : mConnections) { in removeConnection() 1867 mConnections.add(conn); in addConnection() 3194 if (call.mConnections != null) { in transferHandoverConnections() [all …]
|
D | ImsPhone.java | 1309 connList.addAll(getForegroundCall().mConnections); in getHandoverConnection() 1311 connList.addAll(getBackgroundCall().mConnections); in getHandoverConnection() 1313 connList.addAll(getRingingCall().mConnections); in getHandoverConnection()
|
/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/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | DeviceAdminServiceController.java | 88 private final SparseArray<DevicePolicyServiceConnection> mConnections = new SparseArray<>(); field in DeviceAdminServiceController 133 mConnections.get(userId); in startServiceForOwner() 150 mConnections.put(userId, conn); in startServiceForOwner() 174 final DevicePolicyServiceConnection conn = mConnections.get(userId); in disconnectServiceOnUserLocked() 179 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/opt/telephony/src/java/com/android/internal/telephony/sip/ |
D | SipPhone.java | 457 mConnections.clear(); in reset() 473 mConnections = that.mConnections; in takeOver() 475 for (Connection c : mConnections) { in takeOver() 490 return mConnections; in getConnections() 509 mConnections.add(c); in dial() 525 for (Connection c : mConnections) { in hangup() 543 mConnections.add(c); in initIncomingCall() 563 if (mConnections.size() != 1) { in acceptCall() 566 ((SipConnection) mConnections.get(0)).acceptCall(); in acceptCall() 600 for (Connection c : mConnections) ((SipConnection) c).hold(); in hold() [all …]
|
D | SipCallBase.java | 29 return mConnections; in getConnections() 34 return mConnections.size() > 1; in isMultiparty()
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | TestableScheduler.h | 39 mConnections.emplace(id, in addConnection() 43 return mConnections[id]->handle; in addConnection() 62 mConnections.clear(); in ~TestableScheduler()
|
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | Scheduler.cpp | 54 if (handle == nullptr || mConnections.count(handle->id) == 0) return value 56 if (handle == nullptr || mConnections.count(handle->id) == 0) return 133 mConnections.emplace(id, in createConnection() 137 return mConnections[id]->handle; in createConnection() 157 return createConnectionInternal(mConnections[handle->id]->thread.get(), in createDisplayEventConnection() 163 return mConnections[handle->id]->thread.get(); in getEventThread() 168 return mConnections[handle->id]->eventConnection; in getEventConnection() 174 mConnections[handle->id]->thread->onHotplugReceived(displayId, connected); in hotplugReceived() 179 mConnections[handle->id]->thread->onScreenAcquired(); in onScreenAcquired() 184 mConnections[handle->id]->thread->onScreenReleased(); in onScreenReleased() [all …]
|
D | Scheduler.h | 241 std::unordered_map<int64_t, std::unique_ptr<Connection>> mConnections; variable
|
/frameworks/base/media/java/android/service/media/ |
D | MediaBrowserService.java | 105 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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | GsmCdmaCallTest.java | 52 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()
|
D | GsmCdmaCallTrackerTest.java | 448 mCTUT.mConnections[0] = mConnection; in testUpdatePhoneTypeWithActiveCall() 468 mCTUT.mConnections[0] = mConnection; in testDispatchCsCallRadioTech()
|
/frameworks/base/services/core/java/com/android/server/appbinding/ |
D | AppBindingService.java | 90 private final ArrayList<AppServiceConnection> mConnections = new ArrayList<>(); field in AppBindingService 343 for (int i = 0; i < mConnections.size(); i++) { in findConnectionLock() 344 final AppServiceConnection conn = mConnections.get(i); in findConnectionLock() 402 mConnections.add(conn); in bindServicesLocked() 409 for (int i = mConnections.size() - 1; i >= 0; i--) { in unbindServicesLocked() 410 final AppServiceConnection conn = mConnections.get(i); in unbindServicesLocked() 420 mConnections.remove(i); in unbindServicesLocked() 479 for (int i = 0; i < mConnections.size(); i++) { in dump() 480 final AppServiceConnection conn = mConnections.get(i); in dump() 487 if (mConnections.size() == 0) { in dump() [all …]
|
/frameworks/base/services/core/java/com/android/server/tv/ |
D | TvInputHardwareManager.java | 87 private final SparseArray<Connection> mConnections = new SparseArray<>(); field in TvInputHardwareManager 156 mConnections.put(info.getDeviceId(), connection); in onDeviceAvailable() 168 for (int i = 0; i < mConnections.size(); ++i) { in buildHardwareListLocked() 169 mHardwareList.add(mConnections.valueAt(i).getHardwareInfoLocked()); in buildHardwareListLocked() 176 Connection connection = mConnections.get(deviceId); in onDeviceUnavailable() 182 mConnections.remove(deviceId); in onDeviceUnavailable() 204 Connection connection = mConnections.get(deviceId); in onStreamConfigurationChanged() 232 Connection connection = mConnections.get(deviceId); in onFirstFrameCaptured() 300 Connection connection = mConnections.get(deviceId); in addHardwareInput() 371 Connection connection = mConnections.get(deviceId); in acquireHardware() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/ |
D | ImsPhoneCallTest.java | 74 assertEquals(0, mImsCallUT.mConnections.size()); in testAttachDetach() 81 assertEquals(1, mImsCallUT.mConnections.size()); in testAttachDetach() 88 assertEquals(0, mImsCallUT.mConnections.size()); in testAttachDetach()
|
/frameworks/base/services/core/jni/ |
D | com_android_server_tv_TvInputHal.cpp | 307 KeyedVector<int, KeyedVector<int, Connection> > mConnections; member in android::JTvInputHal 341 KeyedVector<int, Connection>& connections = mConnections.editValueFor(deviceId); in addOrUpdateStream() 415 KeyedVector<int, Connection>& connections = mConnections.editValueFor(deviceId); in removeStream() 461 mConnections.add(info.deviceId, KeyedVector<int, Connection>()); in onDeviceAvailable() 505 KeyedVector<int, Connection>& connections = mConnections.editValueFor(deviceId); in onDeviceUnavailable() 510 mConnections.removeItem(deviceId); in onDeviceUnavailable() 522 KeyedVector<int, Connection>& connections = mConnections.editValueFor(deviceId); in onStreamConfigurationsChanged() 539 KeyedVector<int, Connection>& connections = mConnections.editValueFor(deviceId); in onCaptured()
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbHostManager.java | 89 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() 526 for (ConnectionRecord rec : mConnections) { in dump()
|
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/ |
D | ActivityTestMain.java | 69 ArrayList<ServiceConnection> mConnections = new ArrayList<ServiceConnection>(); field in ActivityTestMain 242 mConnections.add(conn); in onCreateOptionsMenu() 344 mConnections.add(conn); in onCreateOptionsMenu() 368 mConnections.add(conn); in onCreateOptionsMenu() 563 for (ServiceConnection conn : mConnections) { in onStop() 566 mConnections.clear(); in onStop()
|