Home
last modified time | relevance | path

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

/cts/tests/tests/media/src/android/media/cts/
DMockPlaylistAgent.java33 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 …]
DMockPlayer.java33 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()
DMediaSession2_PermissionTest.java142 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 …]
DMediaSessionManagerTest.java126 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 …]
DUtils.java144 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()
DMediaController2Test.java157 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 …]
DMediaSessionManager_MediaSession2Test.java112 assertTrue(player.mCountDownLatch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testGetMediaSession2Tokens_hasMediaController()
DMediaSession2Test.java630 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/
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.java48 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/
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.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/view/src/android/view/cts/surfacevalidator/
DCapturedActivity.java80 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/
DEuiccManagerTest.java249 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/
DPhoneAccountTest.java337 private final CountDownLatch mCountDownLatch; field in PhoneAccountTest.CalllogContentObserver
341 mCountDownLatch = countDownLatch; in CalllogContentObserver()
347 mCountDownLatch.countDown(); in onChange()