Home
last modified time | relevance | path

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

/cts/tests/tests/telecom/src/android/telecom/cts/carmodetestapp/
DCtsCarModeInCallService.java42 private List<Call> mCalls = new ArrayList<>(); field in CtsCarModeInCallService
68 mCalls.add(call); in onCallAdded()
76 mCalls.remove(call); in onCallRemoved()
104 for (Call call : mCalls) { in disconnectCalls()
110 if (!mCalls.isEmpty()) { in getLastCall()
111 return mCalls.get(mCalls.size() - 1); in getLastCall()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DDomainSelectionCallingBase.java84 private final ConcurrentHashMap<String, Call> mCalls = new ConcurrentHashMap<String, Call>(); field in DomainSelectionCallingBase
207 synchronized (mCalls) { in getCurrentCallId()
208 if (mCalls.isEmpty()) { in getCurrentCallId()
216 synchronized (mCalls) { in clearCalls()
218 mCalls.forEach((k, v) -> v.disconnect()); in clearCalls()
219 mCalls.clear(); in clearCalls()
224 synchronized (mCalls) { in getCall()
225 if (mCalls.isEmpty() || callId == null) { in getCall()
229 return mCalls.get(callId); in getCall()
242 synchronized (mCalls) { in addCall()
[all …]
DInCallServiceStateValidator.java39 private final List<Call> mCalls = Collections.synchronizedList(new ArrayList<>()); field in InCallServiceStateValidator
133 mCalls.clear(); in onUnbind()
146 if (!mCalls.contains(call)) { in onCallAdded()
147 mCalls.add(call); in onCallAdded()
153 getCallbacks().onCallAdded(call, mCalls.size()); in onCallAdded()
163 mCalls.remove(call); in onCallRemoved()
167 getCallbacks().onCallRemoved(call, mCalls.size()); in onCallRemoved()
176 return mCalls.size(); in getCallCount()
DSmsManagerTest.java1002 private int mCalls; field in SmsManagerTest.SmsBroadcastReceiver
1015 mCalls = 0; in reset()
1046 mCalls += 1; in onReceive()
1055 return mCalls == 0; in verifyNoCalls()
1064 while (mCalls < mExpectedCalls) { in waitForCalls()
/cts/tests/app/shared/src/android/app/stubs/shared/
DFakeView.java28 private final BlockingQueue<String> mCalls = new ArrayBlockingQueue<>(3); field in FakeView
37 mCalls.add(reason); in onCloseSystemDialogs()
41 return mCalls.poll(timeoutMs, TimeUnit.MILLISECONDS); in getNextCloseSystemDialogsCallReason()
/cts/tests/framework/base/locale/src/android/localemanager/cts/
DBlockingBroadcastReceiver.java45 private int mCalls; field in BlockingBroadcastReceiver
58 mCalls += 1; in onReceive()
80 mCalls = 0; in reset()
91 Assert.assertEquals(0, mCalls); in assertNoBroadcastReceived()
/cts/tests/tests/telecom3/src/android/telecom/cts/
DSelfManagedAwareInCallService.java84 private List<Call> mCalls = new ArrayList<Call>(); field in SelfManagedAwareInCallService
116 if (!mCalls.contains(call)) { in onCallAdded()
117 mCalls.add(call); in onCallAdded()
130 mCalls.remove(call); in onCallRemoved()
140 return mCalls.get(mCalls.size() - 1); in waitForCallAdded()
/cts/tests/tests/telecom/src/android/telecom/cts/
DCtsCallDiagnosticService.java45 private List<CtsCallDiagnostics> mCalls = new ArrayList<>(); field in CtsCallDiagnosticService
149 mCalls.add(diagCall); in onInitializeCallDiagnostics()
158 mCalls.remove(call); in onRemoveCallDiagnostics()
205 return mCalls; in getCalls()
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/
DImsCallingBase.java119 protected ConcurrentHashMap<String, Call> mCalls = new ConcurrentHashMap<String, Call>(); field in ImsCallingBase
457 synchronized (mCalls) { in addCall()
458 mCalls.put(callid, call); in addCall()
471 synchronized (mCalls) { in getCall()
472 if (mCalls.isEmpty()) { in getCall()
476 for (Map.Entry<String, Call> entry : mCalls.entrySet()) { in getCall()
488 if (mCalls.isEmpty()) { in removeCall()
493 Map.Entry<String, Call>[] entries = mCalls.entrySet().toArray(new Map.Entry[mCalls.size()]); in removeCall()
496 mCalls.remove(entry.getKey()); in removeCall()
DImsCallingTestOnMockModem.java181 if (!mCalls.isEmpty() && (mCurrentCallId != null)) { in afterTest()
182 Call call = mCalls.get(mCurrentCallId); in afterTest()
DDomainSelectionCrossSimRedialingTestOnMockModem.java261 if (!mCalls.isEmpty() && (mCurrentCallId != null)) { in afterTest()
262 Call call = mCalls.get(mCurrentCallId); in afterTest()
DCallDomainSelectionTestOnMockModem.java203 if (!mCalls.isEmpty() && (mCurrentCallId != null)) { in afterTest()
204 Call call = mCalls.get(mCurrentCallId); in afterTest()
DEmergencyCallDomainSelectionTestOnMockModem.java271 if (!mCalls.isEmpty() && (mCurrentCallId != null)) { in afterTest()
272 Call call = mCalls.get(mCurrentCallId); in afterTest()
DImsCallingTest.java188 if (!mCalls.isEmpty() && (mCurrentCallId != null)) { in afterTest()
189 Call call = mCalls.get(mCurrentCallId); in afterTest()
/cts/tests/tests/telephony/current/src/android/telephony/embms/cts/
DMbmsDownloadCallbackTest.java39 private final BlockingQueue<SomeArgs> mCalls = new LinkedBlockingQueue<>(); field in MbmsDownloadCallbackTest.TestDSCallback
48 mCalls.add(args); in onStatusUpdated()
53 return mCalls.poll(timeout, TimeUnit.MILLISECONDS); in waitOnStatusUpdated()
/cts/tests/tests/telecom-apps/Utils/src/android/telecom/cts/apps/
DWaitForInCallService.java46 List<Call> mCalls = verifierMethods.getOngoingCalls(); in verifyCallState() local
47 Call targetCall = getCallWithId(mCalls, id); in verifyCallState()
/cts/tests/backup/src/android/backup/cts/
DAppLocalesBackupTest.java519 private int mCalls; field in AppLocalesBackupTest.BlockingBroadcastReceiver
529 mCalls += 1; in onReceive()
539 mCalls = 0; in reset()
545 assertEquals(1, mCalls); in assertOneBroadcastReceived()
549 assertEquals(0, mCalls); in assertNoBroadcastReceived()