/cts/tests/tests/media/src/android/media/cts/ |
D | MockPlaylistAgent.java | 33 public final CountDownLatch mCountDownLatch = new CountDownLatch(1); field in MockPlaylistAgent 63 mCountDownLatch.countDown(); in setPlaylist() 75 mCountDownLatch.countDown(); in updatePlaylistMetadata() 83 mCountDownLatch.countDown(); in addPlaylistItem() 90 mCountDownLatch.countDown(); in removePlaylistItem() 98 mCountDownLatch.countDown(); in replacePlaylistItem() 105 mCountDownLatch.countDown(); in skipToPlaylistItem() 111 mCountDownLatch.countDown(); in skipToPreviousItem() 117 mCountDownLatch.countDown(); in skipToNextItem() 129 mCountDownLatch.countDown(); in setRepeatMode() [all …]
|
D | MockPlayer.java | 33 public final CountDownLatch mCountDownLatch; field in MockPlayer 50 mCountDownLatch = (count > 0) ? new CountDownLatch(count) : null; in MockPlayer() 66 if (mCountDownLatch != null) { in play() 67 mCountDownLatch.countDown(); in play() 74 if (mCountDownLatch != null) { in pause() 75 mCountDownLatch.countDown(); in pause() 93 if (mCountDownLatch != null) { in prepare() 94 mCountDownLatch.countDown(); in prepare() 102 if (mCountDownLatch != null) { in seekTo() 103 mCountDownLatch.countDown(); in seekTo()
|
D | MediaSession2_PermissionTest.java | 142 assertTrue(mCallback.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testOnCommandRequest() 149 assertFalse(mCallback.mCountDownLatch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testOnCommandRequest() 271 assertTrue(mCallback.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testPlayFromMediaId() 279 assertFalse(mCallback.mCountDownLatch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testPlayFromMediaId() 290 assertTrue(mCallback.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testPlayFromUri() 298 assertFalse(mCallback.mCountDownLatch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testPlayFromUri() 309 assertTrue(mCallback.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testPlayFromSearch() 317 assertFalse(mCallback.mCountDownLatch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testPlayFromSearch() 328 assertTrue(mCallback.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testPrepareFromMediaId() 336 assertFalse(mCallback.mCountDownLatch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testPrepareFromMediaId() [all …]
|
D | MediaSessionManagerTest.java | 126 assertTrue(listener.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSetOnVolumeKeyLongPressListener() 139 assertFalse(listener.mCountDownLatch.await(WAIT_MS, TimeUnit.MILLISECONDS)); in testSetOnVolumeKeyLongPressListener() 145 assertFalse(listener.mCountDownLatch.await(WAIT_MS, TimeUnit.MILLISECONDS)); in testSetOnVolumeKeyLongPressListener() 175 assertTrue(listener.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSetOnMediaKeyListener() 181 assertFalse(callback.mCountDownLatch.await(WAIT_MS, TimeUnit.MILLISECONDS)); in testSetOnMediaKeyListener() 189 assertTrue(listener.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSetOnMediaKeyListener() 195 assertTrue(callback.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSetOnMediaKeyListener() 207 assertFalse(listener.mCountDownLatch.await(WAIT_MS, TimeUnit.MILLISECONDS)); in testSetOnMediaKeyListener() 248 assertTrue(callback.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testRemoteUserInfo() 268 private final CountDownLatch mCountDownLatch; field in MediaSessionManagerTest.VolumeKeyLongPressListener [all …]
|
D | Utils.java | 144 if (!callback.mCountDownLatch.await(TEST_TIMING_TOLERANCE_MS, TimeUnit.MILLISECONDS) in assertMediaPlaybackStarted() 162 private final CountDownLatch mCountDownLatch = new CountDownLatch(1); field in Utils.TestAudioPlaybackCallback 170 mCountDownLatch.countDown(); in onPlaybackConfigChanged()
|
D | MediaController2Test.java | 157 assertTrue(mPlayer.mCountDownLatch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testPlay() 168 assertTrue(mPlayer.mCountDownLatch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testPause() 180 assertTrue(mPlayer.mCountDownLatch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testStop() 191 assertTrue(mPlayer.mCountDownLatch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testPrepare() 213 assertTrue(mPlayer.mCountDownLatch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testSeekTo() 251 assertTrue(mMockAgent.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSetPlaylist() 310 assertTrue(mMockAgent.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testUpdatePlaylistMetadata() 416 assertTrue(mMockAgent.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testAddPlaylistItem() 434 assertTrue(mMockAgent.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testRemovePlaylistItem() 445 assertTrue(mMockAgent.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testReplacePlaylistItem() [all …]
|
D | MediaSessionManager_MediaSession2Test.java | 112 assertTrue(player.mCountDownLatch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testGetMediaSession2Tokens_hasMediaController()
|
D | MediaSession2Test.java | 630 assertFalse(mPlayer.mCountDownLatch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testOnCommandCallback() 637 assertTrue(mPlayer.mCountDownLatch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testOnCommandCallback()
|
/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 | 48 private final CountDownLatch mCountDownLatch; field in TestGnssMeasurementListener 76 mCountDownLatch = new CountDownLatch(eventsToCollect); in TestGnssMeasurementListener() 114 mCountDownLatch.countDown(); in onGnssMeasurementsReceived() 123 mCountDownLatch.countDown(); in onGnssMeasurementsReceived() 139 return TestUtils.waitFor(mCountDownLatch, MEAS_TIMEOUT_IN_SEC); in await()
|
/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 | 104 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/view/src/android/view/cts/surfacevalidator/ |
D | CapturedActivity.java | 80 private CountDownLatch mCountDownLatch; field in CapturedActivity 104 mCountDownLatch = new CountDownLatch(1); in onCreate() 154 mCountDownLatch.countDown(); in onActivityResult() 190 } while (!mCountDownLatch.await(timeOutMs, TimeUnit.MILLISECONDS)); in runTest()
|
/cts/tests/tests/telephony/src/android/telephony/euicc/cts/ |
D | EuiccManagerTest.java | 249 private CountDownLatch mCountDownLatch; field in EuiccManagerTest.CallbackReceiver 252 mCountDownLatch = latch; in CallbackReceiver() 260 mCountDownLatch.countDown(); in onReceive()
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | PhoneAccountTest.java | 337 private final CountDownLatch mCountDownLatch; field in PhoneAccountTest.CalllogContentObserver 341 mCountDownLatch = countDownLatch; in CalllogContentObserver() 347 mCountDownLatch.countDown(); in onChange()
|