Home
last modified time | relevance | path

Searched refs:mCalls (Results 1 – 15 of 15) sorted by relevance

/packages/services/Telecomm/src/com/android/server/telecom/
DCallIdMapper.java89 private final BiMap<String, Call> mCalls = new BiMap<>(); field in CallIdMapper
99 mCalls.put(callId, newCall); in replaceCall()
106 mCalls.put(id, call); in addCall()
117 mCalls.removeValue(call); in removeCall()
121 mCalls.remove(callId); in removeCall()
125 if (call == null || mCalls.getKey(call) == null) { in getCallId()
137 return mCalls.getValue(callId); in getCall()
141 return mCalls.getValues(); in getCalls()
145 mCalls.clear(); in clear()
DCallRecordingTonePlayer.java120 private List<Call> mCalls = new ArrayList<>(); field in CallRecordingTonePlayer
172 boolean isFirstCall = mCalls.isEmpty(); in addCall()
174 mCalls.add(toAdd); in addCall()
192 mCalls.remove(toRemove); in removeCall()
193 boolean isLastCall = mCalls.isEmpty(); in removeCall()
237 return !mCalls.isEmpty() && mCalls.stream() in hasActiveCall()
334 return mCalls.stream() in hasCallForPackage()
346 return mCalls.size() > 0; in hasCalls()
DConnectionServiceFocusManager.java189 private final List<CallFocus> mCalls; field in ConnectionServiceFocusManager
304 mCalls = new ArrayList<>(); in ConnectionServiceFocusManager()
381 public List<CallFocus> getAllCall() { return mCalls; } in getAllCall()
404 List<CallFocus> calls = mCalls in updateCurrentFocusCall()
490 if (!mCalls.contains(call)) { in handleAddedCall()
491 mCalls.add(call); in handleAddedCall()
500 mCalls.remove(call); in handleRemovedCall()
512 if (mCalls.contains(call) in handleCallStateChanged()
DCallAudioManager.java57 private final Set<Call> mCalls; field in CallAudioManager
94 mCalls = new HashSet<>(); in CallAudioManager()
181 if (mCalls.contains(call)) { in addCall()
194 mCalls.add(call); in addCall()
201 if (!mCalls.contains(call)) { in removeCall()
211 mCalls.remove(call); in removeCall()
219 boolean isInCall = !mAudioProcessingCalls.containsAll(mCalls); in sendCallStatusToBluetoothStateReceiver()
294 if (!mCalls.contains(call)) { in onIncomingCallAnswered()
389 mCalls.remove(call); in onIsConferencedChanged()
628 dumpCallsInCollection(pw, mCalls); in dump()
[all …]
DCallsManager.java411 private final Set<Call> mCalls = Collections.newSetFromMap( field in CallsManager
551 mCalls.stream()
931 if (!mCalls.contains(call)) { in onSuccessfulOutgoingCall()
1227 for (Call call : mCalls) { in shouldSilenceInsteadOfReject()
1439 return Collections.unmodifiableCollection(mCalls); in getCalls()
1513 for (Call call1 : mCalls) { in markAllAnsweredCallAsRinging()
1555 for (Call call : mCalls) { in hasEmergencyRttCall()
1565 if (mCalls.size() == 0) { in hasOnlyDisconnectedCalls()
1568 for (Call call : mCalls) { in hasOnlyDisconnectedCalls()
1577 for (Call call : mCalls) { in hasVideoCall()
[all …]
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DTestCallList.java102 private List<Call> mCalls = new LinkedList<Call>(); field in TestCallList
127 return (position < mCalls.size()) ? mCalls.get(position) : null; in getCall()
131 if (mCalls.contains(call)) { in addCall()
136 mCalls.add(call); in addCall()
145 if (!mCalls.contains(call)) { in removeCall()
150 mCalls.remove(call); in removeCall()
161 for (Call call : new LinkedList<Call>(mCalls)) { in clearCalls()
174 return mCalls.size(); in size()
187 for (Call call : mCalls) { in sendUpgradeToVideoRequest()
208 for (Call call : mCalls) { in sendUpgradeToVideoResponse()
DTestConnectionService.java337 private final List<TestConnection> mCalls = new ArrayList<>();
501 if (!mCalls.isEmpty()) {
502 TestConnection c = mCalls.get(0);
513 if (!mCalls.isEmpty()) {
514 TestConnection c = mCalls.get(0);
546 mCalls.remove(connection);
552 if (mCalls.isEmpty() && mMediaPlayer != null && mMediaPlayer.isPlaying()) {
562 mCalls.add(connection);
568 freeConnections.addAll(mCalls);
/packages/services/Telecomm/testapps/carmodedialer/src/com/android/server/telecom/carmodedialer/
DCarModeCallList.java102 private List<Call> mCalls = new LinkedList<Call>(); field in CarModeCallList
127 return mCalls.get(position); in getCall()
131 if (mCalls.contains(call)) { in addCall()
136 mCalls.add(call); in addCall()
145 if (!mCalls.contains(call)) { in removeCall()
150 mCalls.remove(call); in removeCall()
161 for (Call call : new LinkedList<Call>(mCalls)) { in clearCalls()
174 return mCalls.size(); in size()
187 for (Call call : mCalls) { in sendUpgradeToVideoRequest()
208 for (Call call : mCalls) { in sendUpgradeToVideoResponse()
/packages/modules/AdServices/shared/testing-libraries/side-less/java/com/android/adservices/shared/meta_testing/
DFakeDeviceGateway.java38 private final List<String> mCalls = new ArrayList<>(); field in FakeDeviceGateway
75 if (!mCalls.contains(cmd)) { in expectCalled()
77 "Command %s not called (commands called so far were: %s)", cmd, mCalls) in expectCalled()
84 expect.withMessage("calls so far").that(mCalls).isEmpty(); in expectNothingCalled()
104 mCalls.add(input.getCommand()); in runShellCommandRwe()
129 + mCalls in toString()
DAbstractFlagsPreparerClassRuleIntegrationTestCase.java75 private final List<Object> mCalls = new ArrayList<>(); field in AbstractFlagsPreparerClassRuleIntegrationTestCase
465 expect.withMessage("calls").that(mCalls).containsExactlyElementsIn(expectedCalls).inOrder(); in expectCalls()
476 mCalls.add(mode); in setSyncDisabledMode()
490 mCalls.add(state); in setState()
/packages/modules/AdServices/shared/testing-libraries/side-less/java/com/android/adservices/shared/testing/
DFakeNameValuePairContainer.java32 private final List<NameValuePair> mCalls = new ArrayList<>(); field in FakeNameValuePairContainer
61 mCalls.add(nvp); in set()
93 return ImmutableList.copyOf(mCalls); in getCalls()
99 mCalls.clear(); in getAndResetCalls()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfpclient/
DHeadsetClientStateMachine.java158 @VisibleForTesting final Map<Integer, HfpClientCall> mCalls = new ConcurrentHashMap<>(); field in HeadsetClientStateMachine
244 if (mCalls != null) { in dump()
245 for (HfpClientCall call : mCalls.values()) { in dump()
359 for (HfpClientCall c : mCalls.values()) { in getCall()
372 for (HfpClientCall c : mCalls.values()) { in callsInState()
454 currCallIdSet.addAll(mCalls.keySet()); in queryCallsDone()
478 + mCalls.keySet() in queryCallsDone()
490 if (mCalls.containsKey(HF_ORIGINATED_CALL_ID)) { in queryCallsDone()
491 HfpClientCall c = mCalls.get(HF_ORIGINATED_CALL_ID); in queryCallsDone()
496 mCalls.put(hfOriginatedAssoc, mCalls.get(HF_ORIGINATED_CALL_ID)); in queryCallsDone()
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/ui/
DIncomingCallNotifier.java87 private final Set<Call> mCalls = new ArraySet<>(); field in IncomingCallNotifier
110 if (!mCalls.contains(call)) { in onCallAdded()
111 mCalls.add(call); in onCallAdded()
121 if (mCalls.contains(call)) { in onCallRemoved()
122 mCalls.remove(call); in onCallRemoved()
140 incomingCallOp = mCalls.stream() in updateIncomingCall()
/packages/modules/Permission/service/java/com/android/ecm/
DEnhancedConfirmationService.java565 private final Map<String, TrackedCall> mCalls = new ConcurrentHashMap<>(); field in EnhancedConfirmationService.CallTracker
615 mCalls.put(call.getDetails().getId(), new TrackedCall(call)); in addCall()
619 TrackedCall trackedCall = mCalls.get(callId); in endCall()
628 mCalls.remove(callId); in endCall()
635 mCalls.remove(callId); in endCall()
651 for (String callId: mCalls.keySet()) { in endAllCalls()
663 for (TrackedCall current: mCalls.values()) { in onEcmInteraction()
757 for (TrackedCall call : mCalls.values()) { in getOngoingCallOfType()
782 mCalls.entrySet().removeIf( in pruneOldFinishedCalls()
820 for (TrackedCall otherCall : mCalls.values()) { in logInCallRestrictionEvent()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfpclient/
DHeadsetClientStateMachineTest.java710 mHeadsetClientStateMachine.mCalls.put(0, call); in testCallsInState()
721 mHeadsetClientStateMachine.mCalls.put(0, call); in testEnterPrivateMode()
740 mHeadsetClientStateMachine.mCalls.put(0, callOne); in testExplicitCallTransfer()
741 mHeadsetClientStateMachine.mCalls.put(1, callTwo); in testExplicitCallTransfer()
804 mHeadsetClientStateMachine.mCalls.put(0, call); in testGetCall_withMatchingState()
816 mHeadsetClientStateMachine.mCalls.put(0, call); in testGetCall_withNoMatchingState()
943 mHeadsetClientStateMachine.mCalls.put(0, call); in testGetCurrentCalls()
1301 mHeadsetClientStateMachine.mCalls.put(0, call); in testProcessHoldCall_onAudioOnState()