/cts/tests/tests/media/src/android/media/cts/ |
D | MediaSessionManagerTest.java | 121 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 …]
|
D | Utils.java | 182 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/ |
D | TestGnssNavigationMessageListener.java | 42 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()
|
D | TestLocationListener.java | 36 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()
|
D | TestGpsStatusListener.java | 37 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()
|
D | TestGnssMeasurementListener.java | 42 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/ |
D | NetworkLoggingTest.java | 75 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/ |
D | SignificantMotionTestActivity.java | 330 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);
|
D | OffBodySensorTestActivity.java | 103 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/ |
D | CapturedActivity.java | 79 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/ |
D | PhoneAccountTest.java | 297 private final CountDownLatch mCountDownLatch; field in PhoneAccountTest.CalllogContentObserver 301 mCountDownLatch = countDownLatch; in CalllogContentObserver() 307 mCountDownLatch.countDown(); in onChange()
|