Home
last modified time | relevance | path

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

/cts/tests/tests/telephony/current/src/android/telephony/euicc/cts/
DEuiccServiceTest.java79 private CountDownLatch mCountDownLatch; field in EuiccServiceTest
191 mCountDownLatch = new CountDownLatch(1); in testOnGetEid()
199 mCountDownLatch.countDown(); in testOnGetEid()
204 mCountDownLatch.await(CALLBACK_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testOnGetEid()
214 mCountDownLatch = new CountDownLatch(1); in testOnGetOtaStatus()
222 mCountDownLatch.countDown(); in testOnGetOtaStatus()
227 mCountDownLatch.await(CALLBACK_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testOnGetOtaStatus()
240 mCountDownLatch = new CountDownLatch(1); in testOnGetDownloadableSubscriptionMetadata()
255 mCountDownLatch.await(CALLBACK_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testOnGetDownloadableSubscriptionMetadata()
265 mCountDownLatch = new CountDownLatch(1); in testOnStartOtaIfNecessary()
[all …]
DEuiccManagerTest.java330 private CountDownLatch mCountDownLatch; field in EuiccManagerTest.CallbackReceiver
333 mCountDownLatch = latch; in CallbackReceiver()
341 mCountDownLatch.countDown(); in onReceive()
/cts/tests/tests/media/src/android/media/cts/
DMediaSessionManagerTest.java134 assertTrue(listener.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSetOnVolumeKeyLongPressListener()
147 assertFalse(listener.mCountDownLatch.await(WAIT_MS, TimeUnit.MILLISECONDS)); in testSetOnVolumeKeyLongPressListener()
153 assertFalse(listener.mCountDownLatch.await(WAIT_MS, TimeUnit.MILLISECONDS)); in testSetOnVolumeKeyLongPressListener()
182 assertTrue(listener.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSetOnMediaKeyListener()
188 assertFalse(callback.mCountDownLatch.await(WAIT_MS, TimeUnit.MILLISECONDS)); in testSetOnMediaKeyListener()
196 assertTrue(listener.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSetOnMediaKeyListener()
202 assertTrue(callback.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSetOnMediaKeyListener()
214 assertFalse(listener.mCountDownLatch.await(WAIT_MS, TimeUnit.MILLISECONDS)); in testSetOnMediaKeyListener()
259 assertTrue(callback.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testRemoteUserInfo()
309 assertTrue(sessionCallback.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testGetSession2Tokens()
[all …]
DAudioPlaybackCaptureActivity.java54 private CountDownLatch mCountDownLatch; field in AudioPlaybackCaptureActivity
78 mCountDownLatch = new CountDownLatch(1); in onCreate()
107 mCountDownLatch.countDown(); in onActivityResult()
123 } while (!mCountDownLatch.await(timeOutMs, TimeUnit.MILLISECONDS)); in waitForMediaProjection()
DUtils.java165 if (!callback.mCountDownLatch.await(TEST_TIMING_TOLERANCE_MS, TimeUnit.MILLISECONDS) in assertMediaPlaybackStarted()
183 private final CountDownLatch mCountDownLatch = new CountDownLatch(1); field in Utils.TestAudioPlaybackCallback
191 mCountDownLatch.countDown(); in onPlaybackConfigChanged()
DAudioRecordingConfigurationTest.java263 private CountDownLatch mCountDownLatch; field in AudioRecordingConfigurationTest.MyAudioRecordingCallback
266 mCountDownLatch = new CountDownLatch(1); in reset()
281 mCountDownLatch.countDown(); in onRecordingConfigChanged()
286 mCountDownLatch.await(timeoutMs, TimeUnit.MILLISECONDS); in await()
/cts/tests/tests/location/src/android/location/cts/
DTestLocationListener.java37 private final CountDownLatch mCountDownLatch; field in TestLocationListener
41 mCountDownLatch = new CountDownLatch(locationToCollect); in TestLocationListener()
49 mCountDownLatch.countDown(); in onLocationChanged()
71 return TestUtils.waitFor(mCountDownLatch, TIMEOUT_IN_SEC); in await()
75 return TestUtils.waitFor(mCountDownLatch, timeInSec); in await()
DTestGnssNavigationMessageListener.java42 private final CountDownLatch mCountDownLatch; field in TestGnssNavigationMessageListener
46 mCountDownLatch = new CountDownLatch(1); in TestGnssNavigationMessageListener()
55 mCountDownLatch.countDown(); in onGnssNavigationMessageReceived()
63 mCountDownLatch.countDown(); in onStatusChanged()
69 return TestUtils.waitFor(mCountDownLatch, TIMEOUT_IN_SEC); in await()
DTestGnssMeasurementListener.java47 private final CountDownLatch mCountDownLatch; field in TestGnssMeasurementListener
75 mCountDownLatch = new CountDownLatch(eventsToCollect); in TestGnssMeasurementListener()
113 mCountDownLatch.countDown(); in onGnssMeasurementsReceived()
122 mCountDownLatch.countDown(); in onGnssMeasurementsReceived()
138 return TestUtils.waitFor(mCountDownLatch, MEAS_TIMEOUT_IN_SEC); in await()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DSignificantMotionTestActivity.java328 private volatile CountDownLatch mCountDownLatch;
346 mCountDownLatch.countDown();
350 if (mCountDownLatch != null) {
351 mCountDownLatch.countDown();
412 mCountDownLatch = new CountDownLatch(1);
413 mCountDownLatch.await(TRIGGER_MAX_DELAY_SECONDS, TimeUnit.SECONDS);
DOffBodySensorTestActivity.java104 private volatile CountDownLatch mCountDownLatch; field in OffBodySensorTestActivity.SensorEventVerifier
146 if (mCountDownLatch != null) { in releaseLatch()
147 mCountDownLatch.countDown(); in releaseLatch()
240 mCountDownLatch = new CountDownLatch(1); in waitForEvent()
246 mCountDownLatch.await(LLOB_EVENT_MAX_DELAY_SEC, TimeUnit.SECONDS); in waitForEvent()
266 mCountDownLatch = new CountDownLatch(1); in waitForSensorEvent()
267 mCountDownLatch.await(LLOB_EVENT_MAX_DELAY_SEC, TimeUnit.SECONDS); in waitForSensorEvent()
/cts/tests/tests/provider/src/android/provider/cts/
DMediaStore_DownloadsTest.java75 private CountDownLatch mCountDownLatch; field in MediaStore_DownloadsTest
289 mCountDownLatch.countDown(); in testNotifyChange()
299 mCountDownLatch = new CountDownLatch(1); in testNotifyChange()
315 mCountDownLatch.await(NOTIFY_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testNotifyChange()
317 mCountDownLatch = new CountDownLatch(1); in testNotifyChange()
322 mCountDownLatch.await(NOTIFY_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testNotifyChange()
324 mCountDownLatch = new CountDownLatch(1); in testNotifyChange()
326 mCountDownLatch.await(NOTIFY_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testNotifyChange()
/cts/tests/tests/view/surfacevalidator/src/android/view/cts/surfacevalidator/
DCapturedActivity.java87 private CountDownLatch mCountDownLatch; field in CapturedActivity
114 mCountDownLatch = new CountDownLatch(1); in onCreate()
179 mCountDownLatch.countDown(); in onActivityResult()
217 } while (!mCountDownLatch.await(timeOutMs, TimeUnit.MILLISECONDS)); in runTest()
/cts/tests/tests/database/src/android/database/cts/
DAbstractCursorTest.java639 private CountDownLatch mCountDownLatch; field in AbstractCursorTest.MockContentObserver
644 mCountDownLatch = new CountDownLatch(1); in MockContentObserver()
650 mCountDownLatch.countDown(); in onChange()
659 mCountDownLatch = new CountDownLatch(1); in resetOnChangeWatch()
663 if (!mCountDownLatch.await(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForOnChange()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DPhoneAccountTest.java337 private final CountDownLatch mCountDownLatch; field in PhoneAccountTest.CalllogContentObserver
341 mCountDownLatch = countDownLatch; in CalllogContentObserver()
347 mCountDownLatch.countDown(); in onChange()