Home
last modified time | relevance | path

Searched refs:latchIndex (Results 1 – 22 of 22) sorted by relevance

/cts/tests/tests/wifi/mockWifi/src/android/wifi/mockwifi/
DMockWifiModemService.java90 public void countDownLatch(int latchIndex) { in countDownLatch() argument
91 if (latchIndex < 0 || latchIndex >= sLatches.length) { in countDownLatch()
92 Log.e(TAG, "invalid latch index: " + latchIndex); in countDownLatch()
96 sLatches[latchIndex].countDown(); in countDownLatch()
100 public boolean waitForLatchCountdown(int latchIndex) { in waitForLatchCountdown() argument
101 return waitForLatchCountdown(latchIndex, TEST_TIMEOUT_MS); in waitForLatchCountdown()
104 public boolean waitForLatchCountdown(int latchIndex, long waitMs) { in waitForLatchCountdown() argument
105 if (latchIndex < 0 || latchIndex >= sLatches.length) { in waitForLatchCountdown()
106 Log.e(TAG, "invalid latch index: " + latchIndex); in waitForLatchCountdown()
113 latch = sLatches[latchIndex]; in waitForLatchCountdown()
[all …]
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/
DTestSipTransport.java103 public boolean isLatchCountDownFinished(int latchIndex) { in isLatchCountDownFinished() argument
106 latch = sLatches[latchIndex]; in isLatchCountDownFinished()
111 public boolean waitForLatchCountdownAndReset(int latchIndex) { in waitForLatchCountdownAndReset() argument
116 latch = sLatches[latchIndex]; in waitForLatchCountdownAndReset()
123 sLatches[latchIndex] = new CountDownLatch(1); in waitForLatchCountdownAndReset()
128 private void countDownLatch(int latchIndex) { in countDownLatch() argument
130 sLatches[latchIndex].countDown(); in countDownLatch()
DTestImsRegistration.java99 public void resetLatch(int latchIndex, int newCount) { in resetLatch() argument
101 sLatches[latchIndex] = new CountDownLatch(newCount); in resetLatch()
105 public boolean waitForLatchCountDown(int latchIndex, int timeoutMs) { in waitForLatchCountDown() argument
108 latch = sLatches[latchIndex]; in waitForLatchCountDown()
DTestImsService.java675 public boolean waitForLatchCountdown(int latchIndex) { in waitForLatchCountdown() argument
676 return waitForLatchCountdown(latchIndex, ImsUtils.TEST_TIMEOUT_MS); in waitForLatchCountdown()
679 public boolean waitForLatchCountdown(int latchIndex, long waitMs) { in waitForLatchCountdown() argument
684 latch = sLatches[latchIndex]; in waitForLatchCountdown()
689 Log.i(TAG, "Latch " + latchIndex + " took " in waitForLatchCountdown()
696 sLatches[latchIndex] = new CountDownLatch(1); in waitForLatchCountdown()
701 public void countDownLatch(int latchIndex) { in countDownLatch() argument
703 sLatches[latchIndex].countDown(); in countDownLatch()
DDomainSelectionCrossSimRedialingTestOnMockModem.java441 private boolean waitForVoiceLatchCountdown(int slotId, int latchIndex) { in waitForVoiceLatchCountdown() argument
442 return waitForVoiceLatchCountdown(slotId, latchIndex, WAIT_LATCH_TIMEOUT_MS); in waitForVoiceLatchCountdown()
445 private boolean waitForVoiceLatchCountdown(int slotId, int latchIndex, int waitMs) { in waitForVoiceLatchCountdown() argument
446 return sMockModemManager.waitForVoiceLatchCountdown(slotId, latchIndex, waitMs); in waitForVoiceLatchCountdown()
461 private boolean waitForNetworkLatchCountdown(int slotId, int latchIndex) { in waitForNetworkLatchCountdown() argument
462 return waitForNetworkLatchCountdown(slotId, latchIndex, WAIT_LATCH_TIMEOUT_MS); in waitForNetworkLatchCountdown()
465 public boolean waitForNetworkLatchCountdown(int slotId, int latchIndex, int waitMs) { in waitForNetworkLatchCountdown() argument
466 return sMockModemManager.waitForNetworkLatchCountdown(slotId, latchIndex, waitMs); in waitForNetworkLatchCountdown()
DImsCallingBase.java133 protected static void overrideLatchCount(int latchIndex, int count) { in overrideLatchCount() argument
135 sLatches[latchIndex] = new CountDownLatch(count); in overrideLatchCount()
140 public boolean callingTestLatchCountdown(int latchIndex, int waitMs) { in callingTestLatchCountdown() argument
145 latch = sLatches[latchIndex]; in callingTestLatchCountdown()
152 sLatches[latchIndex] = new CountDownLatch(1); in callingTestLatchCountdown()
157 public void countDownLatch(int latchIndex) { in countDownLatch() argument
159 sLatches[latchIndex].countDown(); in countDownLatch()
DImsCallingTestOnMockModem.java540 public boolean waitForMockImsStateLatchCountdown(int latchIndex) { in waitForMockImsStateLatchCountdown() argument
541 return waitForMockImsStateLatchCountdown(latchIndex, WAIT_UPDATE_TIMEOUT_MS); in waitForMockImsStateLatchCountdown()
544 public boolean waitForMockImsStateLatchCountdown(int latchIndex, int waitMs) { in waitForMockImsStateLatchCountdown() argument
545 return sMockModemManager.waitForImsLatchCountdown(latchIndex, waitMs); in waitForMockImsStateLatchCountdown()
DEmergencyCallDomainSelectionTestOnMockModem.java1459 public boolean waitForNetworkLatchCountdown(int latchIndex) { in waitForNetworkLatchCountdown() argument
1460 return waitForNetworkLatchCountdown(latchIndex, WAIT_LATCH_TIMEOUT_MS); in waitForNetworkLatchCountdown()
1463 public boolean waitForNetworkLatchCountdown(int latchIndex, int waitMs) { in waitForNetworkLatchCountdown() argument
1464 return sMockModemManager.waitForNetworkLatchCountdown(sTestSlot, latchIndex, waitMs); in waitForNetworkLatchCountdown()
1467 public boolean waitForVoiceLatchCountdown(int latchIndex) { in waitForVoiceLatchCountdown() argument
1468 return waitForVoiceLatchCountdown(latchIndex, WAIT_LATCH_TIMEOUT_MS); in waitForVoiceLatchCountdown()
1471 public boolean waitForVoiceLatchCountdown(int latchIndex, int waitMs) { in waitForVoiceLatchCountdown() argument
1472 return sMockModemManager.waitForVoiceLatchCountdown(sTestSlot, latchIndex, waitMs); in waitForVoiceLatchCountdown()
DMmTelFeatureTestOnMockModem.java725 public boolean waitForMockImsStateLatchCountdown(int latchIndex) {
726 return waitForMockImsStateLatchCountdown(latchIndex, WAIT_UPDATE_TIMEOUT_MS);
729 public boolean waitForMockImsStateLatchCountdown(int latchIndex, int waitMs) {
730 return sMockModemManager.waitForImsLatchCountdown(latchIndex, waitMs);
/cts/tests/tests/telephony/current/mockmodem/src/android/telephony/mockmodem/
DMockImsService.java225 private void countDownLatch(int latchIndex) { in countDownLatch() argument
227 mLatches[latchIndex].countDown(); in countDownLatch()
231 private void resetLatch(int latchIndex) { in resetLatch() argument
233 mLatches[latchIndex] = new CountDownLatch(1); in resetLatch()
244 public boolean waitForLatchCountdown(int latchIndex, long waitMs) { in waitForLatchCountdown() argument
249 latch = mLatches[latchIndex]; in waitForLatchCountdown()
253 Log.i(TAG, "Latch " + latchIndex + " took " in waitForLatchCountdown()
258 mLatches[latchIndex] = new CountDownLatch(1); in waitForLatchCountdown()
DMockModemService.java232 public boolean waitForLatchCountdown(int latchIndex) { in waitForLatchCountdown() argument
237 latch = sLatches[latchIndex]; in waitForLatchCountdown()
243 sLatches[latchIndex] = new CountDownLatch(1); in waitForLatchCountdown()
248 public boolean waitForLatchCountdown(int latchIndex, long waitMs) { in waitForLatchCountdown() argument
253 latch = sLatches[latchIndex]; in waitForLatchCountdown()
259 sLatches[latchIndex] = new CountDownLatch(1); in waitForLatchCountdown()
264 public void countDownLatch(int latchIndex) { in countDownLatch() argument
266 sLatches[latchIndex].countDown(); in countDownLatch()
DMockNetworkService.java742 private void countDownLatch(int latchIndex) { in countDownLatch() argument
744 mLatches[latchIndex].countDown(); in countDownLatch()
755 public boolean waitForLatchCountdown(int latchIndex, long waitMs) { in waitForLatchCountdown() argument
760 latch = mLatches[latchIndex]; in waitForLatchCountdown()
764 Log.i(TAG, "Latch " + latchIndex + " took " in waitForLatchCountdown()
767 Log.e(TAG, "Waiting latch " + latchIndex + " interrupted, e=" + e); in waitForLatchCountdown()
770 mLatches[latchIndex] = new CountDownLatch(1); in waitForLatchCountdown()
DMockModemManager.java821 public boolean waitForNetworkLatchCountdown(int slotId, int latchIndex, int waitMs) { in waitForNetworkLatchCountdown() argument
824 .waitForLatchCountdown(latchIndex, waitMs); in waitForNetworkLatchCountdown()
844 public boolean waitForVoiceLatchCountdown(int slotId, int latchIndex, int waitMs) { in waitForVoiceLatchCountdown() argument
847 .waitForLatchCountdown(latchIndex, waitMs); in waitForVoiceLatchCountdown()
965 public boolean waitForImsLatchCountdown(int latchIndex, int waitMs) { in waitForImsLatchCountdown() argument
966 return mMockModemService.getIRadioIms().waitForLatchCountdown(latchIndex, waitMs); in waitForImsLatchCountdown()
DIRadioModemImpl.java580 public boolean waitForLatchCountdown(int latchIndex, long waitMs) { in waitForLatchCountdown() argument
585 latch = mLatches[latchIndex]; in waitForLatchCountdown()
589 Log.i(TAG, "Latch " + latchIndex + " took " in waitForLatchCountdown()
592 Log.e(TAG, "Waiting latch " + latchIndex + " interrupted, e=" + e); in waitForLatchCountdown()
595 mLatches[latchIndex] = new CountDownLatch(1); in waitForLatchCountdown()
DIRadioVoiceImpl.java1141 private void countDownLatch(int latchIndex) { in countDownLatch() argument
1143 mLatches[latchIndex].countDown(); in countDownLatch()
1147 private void resetLatch(int latchIndex) { in resetLatch() argument
1149 mLatches[latchIndex] = new CountDownLatch(1); in resetLatch()
1160 public boolean waitForLatchCountdown(int latchIndex, long waitMs) { in waitForLatchCountdown() argument
1165 latch = mLatches[latchIndex]; in waitForLatchCountdown()
1169 Log.i(TAG, "Latch " + latchIndex + " took " in waitForLatchCountdown()
1172 Log.e(TAG, "Waiting latch " + latchIndex + " interrupted, e=" + e); in waitForLatchCountdown()
1175 mLatches[latchIndex] = new CountDownLatch(1); in waitForLatchCountdown()
DIRadioImsImpl.java350 public boolean waitForLatchCountdown(int latchIndex, int waitMs) { in waitForLatchCountdown() argument
351 return mImsState.waitForLatchCountdown(latchIndex, waitMs); in waitForLatchCountdown()
DIRadioNetworkImpl.java1253 public boolean waitForLatchCountdown(int latchIndex, int waitMs) { in waitForLatchCountdown() argument
1254 return mServiceState.waitForLatchCountdown(latchIndex, waitMs); in waitForLatchCountdown()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DTestDomainSelectionService.java240 public boolean waitForLatchCountdown(int latchIndex) { in waitForLatchCountdown() argument
241 return waitForLatchCountdown(latchIndex, TEST_TIMEOUT_MS); in waitForLatchCountdown()
249 public boolean waitForLatchCountdown(int latchIndex, long waitMs) { in waitForLatchCountdown() argument
254 latch = sLatches[latchIndex]; in waitForLatchCountdown()
258 Log.i(TAG, "Latch " + latchIndex + " took " in waitForLatchCountdown()
264 sLatches[latchIndex] = new CountDownLatch(1); in waitForLatchCountdown()
270 private void countDownLatch(int latchIndex) { in countDownLatch() argument
272 sLatches[latchIndex].countDown(); in countDownLatch()
DDomainSelectionCallingBase.java96 protected static void overrideLatchCount(int latchIndex, int count) { in overrideLatchCount() argument
98 sLatches[latchIndex] = new CountDownLatch(count); in overrideLatchCount()
102 protected boolean callingTestLatchCountdown(int latchIndex, int waitMs) { in callingTestLatchCountdown() argument
107 latch = sLatches[latchIndex]; in callingTestLatchCountdown()
114 sLatches[latchIndex] = new CountDownLatch(1); in callingTestLatchCountdown()
119 private void countDownLatch(int latchIndex) { in countDownLatch() argument
121 sLatches[latchIndex].countDown(); in countDownLatch()
DDomainSelectionServiceTestOnMockModem.java443 private boolean waitForNetworkLatchCountdown(int latchIndex) { in waitForNetworkLatchCountdown() argument
444 return waitForNetworkLatchCountdown(latchIndex, WAIT_UPDATE_TIMEOUT_MS); in waitForNetworkLatchCountdown()
447 private boolean waitForNetworkLatchCountdown(int latchIndex, int waitMs) { in waitForNetworkLatchCountdown() argument
448 return sMockModemManager.waitForNetworkLatchCountdown(sTestSlot, latchIndex, waitMs); in waitForNetworkLatchCountdown()
451 private boolean waitForVoiceLatchCountdown(int latchIndex) { in waitForVoiceLatchCountdown() argument
452 return waitForVoiceLatchCountdown(latchIndex, WAIT_UPDATE_TIMEOUT_MS); in waitForVoiceLatchCountdown()
455 private boolean waitForVoiceLatchCountdown(int latchIndex, int waitMs) { in waitForVoiceLatchCountdown() argument
456 return sMockModemManager.waitForVoiceLatchCountdown(sTestSlot, latchIndex, waitMs); in waitForVoiceLatchCountdown()
/cts/tests/tests/telephony/current/TestExternalImsServiceApp/src/android/telephony/cts/externalimsservice/
DTestExternalImsService.java41 public boolean waitForLatchCountdown(int latchIndex) { in waitForLatchCountdown() argument
42 return TestExternalImsService.this.waitForLatchCountdown(latchIndex); in waitForLatchCountdown()
/cts/tests/tests/telephony/current/TestExternalImsServiceApp/aidl/android/telephony/cts/externalimsservice/
DITestExternalImsService.aidl27 boolean waitForLatchCountdown(int latchIndex); in waitForLatchCountdown() argument