Home
last modified time | relevance | path

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

/cts/tests/tests/media/src/android/media/cts/
DMediaSessionManagerTest.java121 assertTrue(listener.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSetOnVolumeKeyLongPressListener()
134 assertFalse(listener.mCountDownLatch.await(WAIT_MS, TimeUnit.MILLISECONDS)); in testSetOnVolumeKeyLongPressListener()
140 assertFalse(listener.mCountDownLatch.await(WAIT_MS, TimeUnit.MILLISECONDS)); in testSetOnVolumeKeyLongPressListener()
168 assertTrue(listener.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSetOnMediaKeyListener()
174 assertFalse(callback.mCountDownLatch.await(WAIT_MS, TimeUnit.MILLISECONDS)); in testSetOnMediaKeyListener()
182 assertTrue(listener.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSetOnMediaKeyListener()
188 assertTrue(callback.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSetOnMediaKeyListener()
200 assertFalse(listener.mCountDownLatch.await(WAIT_MS, TimeUnit.MILLISECONDS)); in testSetOnMediaKeyListener()
207 private final CountDownLatch mCountDownLatch; field in MediaSessionManagerTest.VolumeKeyLongPressListener
211 mCountDownLatch = new CountDownLatch(count); in VolumeKeyLongPressListener()
[all …]
DUtils.java182 if (!callback.mCountDownLatch.await(TEST_TIMING_TOLERANCE_MS, TimeUnit.MILLISECONDS) in assertMediaPlaybackStarted()
200 private final CountDownLatch mCountDownLatch = new CountDownLatch(1); field in Utils.TestAudioPlaybackCallback
208 mCountDownLatch.countDown(); in onPlaybackConfigChanged()
/cts/tests/tests/location/src/android/location/cts/
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()
DTestLocationListener.java36 private final CountDownLatch mCountDownLatch; field in TestLocationListener
40 mCountDownLatch = new CountDownLatch(locationToCollect); in TestLocationListener()
48 mCountDownLatch.countDown(); in onLocationChanged()
70 return TestUtils.waitFor(mCountDownLatch, TIMEOUT_IN_SEC); in await()
DTestGpsStatusListener.java37 private final CountDownLatch mCountDownLatch; field in TestGpsStatusListener
43 mCountDownLatch = new CountDownLatch(gpsStatusCountToCollect); in TestGpsStatusListener()
60 mCountDownLatch.countDown(); in onGpsStatusChanged()
94 return TestUtils.waitFor(mCountDownLatch, TIMEOUT_IN_SEC); in await()
DTestGnssMeasurementListener.java42 private final CountDownLatch mCountDownLatch; field in TestGnssMeasurementListener
51 mCountDownLatch = new CountDownLatch(eventsToCollect); in TestGnssMeasurementListener()
64 mCountDownLatch.countDown(); in onGnssMeasurementsReceived()
79 return TestUtils.waitFor(mCountDownLatch, MEAS_TIMEOUT_IN_SEC); in await()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DNetworkLoggingTest.java75 if (mCountDownLatch != null) {
76 mCountDownLatch.countDown();
82 private CountDownLatch mCountDownLatch; field in NetworkLoggingTest
124 mCountDownLatch = new CountDownLatch(1); in testNetworkLoggingAndRetrieval()
155 mCountDownLatch.await(3, TimeUnit.MINUTES); in testNetworkLoggingAndRetrieval()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DSignificantMotionTestActivity.java330 private volatile CountDownLatch mCountDownLatch;
348 mCountDownLatch.countDown();
352 if (mCountDownLatch != null) {
353 mCountDownLatch.countDown();
414 mCountDownLatch = new CountDownLatch(1);
415 mCountDownLatch.await(TRIGGER_MAX_DELAY_SECONDS, TimeUnit.SECONDS);
DOffBodySensorTestActivity.java103 private volatile CountDownLatch mCountDownLatch; field in OffBodySensorTestActivity.SensorEventVerifier
145 if (mCountDownLatch != null) { in releaseLatch()
146 mCountDownLatch.countDown(); in releaseLatch()
239 mCountDownLatch = new CountDownLatch(1); in waitForEvent()
245 mCountDownLatch.await(LLOB_EVENT_MAX_DELAY_SEC, TimeUnit.SECONDS); in waitForEvent()
265 mCountDownLatch = new CountDownLatch(1); in waitForSensorEvent()
266 mCountDownLatch.await(LLOB_EVENT_MAX_DELAY_SEC, TimeUnit.SECONDS); in waitForSensorEvent()
/cts/tests/tests/view/src/android/view/cts/surfacevalidator/
DCapturedActivity.java79 private CountDownLatch mCountDownLatch; field in CapturedActivity
96 mCountDownLatch = new CountDownLatch(1); in onCreate()
146 mCountDownLatch.countDown(); in onActivityResult()
174 } while (!mCountDownLatch.await(TIME_OUT_MS, TimeUnit.MILLISECONDS)); in runTest()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DPhoneAccountTest.java297 private final CountDownLatch mCountDownLatch; field in PhoneAccountTest.CalllogContentObserver
301 mCountDownLatch = countDownLatch; in CalllogContentObserver()
307 mCountDownLatch.countDown(); in onChange()