Home
last modified time | relevance | path

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

/frameworks/support/media/src/androidTest/java/androidx/media/
DMockPlaylistAgent.java29 public final CountDownLatch mCountDownLatch = new CountDownLatch(1); field in MockPlaylistAgent
60 mCountDownLatch.countDown(); in setPlaylist()
72 mCountDownLatch.countDown(); in updatePlaylistMetadata()
85 mCountDownLatch.countDown(); in addPlaylistItem()
92 mCountDownLatch.countDown(); in removePlaylistItem()
100 mCountDownLatch.countDown(); in replacePlaylistItem()
107 mCountDownLatch.countDown(); in skipToPlaylistItem()
113 mCountDownLatch.countDown(); in skipToPreviousItem()
119 mCountDownLatch.countDown(); in skipToNextItem()
131 mCountDownLatch.countDown(); in setRepeatMode()
[all …]
DMockPlayer.java30 public final CountDownLatch mCountDownLatch; field in MockPlayer
51 mCountDownLatch = (count > 0) ? new CountDownLatch(count) : null; in MockPlayer()
62 if (mCountDownLatch != null) { in reset()
63 mCountDownLatch.countDown(); in reset()
70 if (mCountDownLatch != null) { in play()
71 mCountDownLatch.countDown(); in play()
78 if (mCountDownLatch != null) { in pause()
79 mCountDownLatch.countDown(); in pause()
86 if (mCountDownLatch != null) { in prepare()
87 mCountDownLatch.countDown(); in prepare()
[all …]
DMediaSession2_PermissionTest.java139 assertTrue(mCallback.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testOnCommandRequest()
146 assertFalse(mCallback.mCountDownLatch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testOnCommandRequest()
319 assertTrue(mCallback.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testFastForward()
325 assertFalse(mCallback.mCountDownLatch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testFastForward()
336 assertTrue(mCallback.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testRewind()
342 assertFalse(mCallback.mCountDownLatch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testRewind()
354 assertTrue(mCallback.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testPlayFromMediaId()
362 assertFalse(mCallback.mCountDownLatch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testPlayFromMediaId()
374 assertTrue(mCallback.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testPlayFromUri()
382 assertFalse(mCallback.mCountDownLatch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testPlayFromUri()
[all …]
DMediaController2Test.java154 assertTrue(mPlayer.mCountDownLatch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testPlay()
166 assertTrue(mPlayer.mCountDownLatch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testPause()
178 assertTrue(mPlayer.mCountDownLatch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testReset()
190 assertTrue(mPlayer.mCountDownLatch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testPrepare()
203 assertTrue(mPlayer.mCountDownLatch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testSeekTo()
295 assertTrue(mMockAgent.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSetPlaylist()
356 assertTrue(mMockAgent.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testUpdatePlaylistMetadata()
404 assertTrue(mPlayer.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSetPlaybackSpeed()
543 assertTrue(mMockAgent.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testAddPlaylistItem()
562 assertTrue(mMockAgent.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testRemovePlaylistItem()
[all …]
DMediaSession2Test.java862 assertFalse(mPlayer.mCountDownLatch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testOnCommandCallback()
869 assertTrue(mPlayer.mCountDownLatch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testOnCommandCallback()
/frameworks/support/media/version-compat-tests/current/client/src/androidTest/java/androidx/media/test/client/
DMockPlaylistAgent.java33 public final CountDownLatch mCountDownLatch = new CountDownLatch(1); field in MockPlaylistAgent
64 mCountDownLatch.countDown(); in setPlaylist()
76 mCountDownLatch.countDown(); in updatePlaylistMetadata()
89 mCountDownLatch.countDown(); in addPlaylistItem()
96 mCountDownLatch.countDown(); in removePlaylistItem()
104 mCountDownLatch.countDown(); in replacePlaylistItem()
111 mCountDownLatch.countDown(); in skipToPlaylistItem()
117 mCountDownLatch.countDown(); in skipToPreviousItem()
123 mCountDownLatch.countDown(); in skipToNextItem()
135 mCountDownLatch.countDown(); in setRepeatMode()
[all …]
DMockPlayer.java33 public final CountDownLatch mCountDownLatch; field in MockPlayer
54 mCountDownLatch = (count > 0) ? new CountDownLatch(count) : null; in MockPlayer()
65 if (mCountDownLatch != null) { in reset()
66 mCountDownLatch.countDown(); in reset()
73 if (mCountDownLatch != null) { in play()
74 mCountDownLatch.countDown(); in play()
81 if (mCountDownLatch != null) { in pause()
82 mCountDownLatch.countDown(); in pause()
89 if (mCountDownLatch != null) { in prepare()
90 mCountDownLatch.countDown(); in prepare()
[all …]
DTestHelper.java49 private CountDownLatch mCountDownLatch; field in TestHelper
53 mCountDownLatch = new CountDownLatch(1); in TestHelper()
76 mCountDownLatch.await(timeoutMs, TimeUnit.MILLISECONDS); in connect()
109 mCountDownLatch.countDown(); in onServiceConnected()
DMediaController2Test_copied.java165 assertTrue(mPlayer.mCountDownLatch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testPlay()
177 assertTrue(mPlayer.mCountDownLatch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testPause()
189 assertTrue(mPlayer.mCountDownLatch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testReset()
201 assertTrue(mPlayer.mCountDownLatch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testPrepare()
214 assertTrue(mPlayer.mCountDownLatch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testSeekTo()
307 assertTrue(mMockAgent.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSetPlaylist()
368 assertTrue(mMockAgent.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testUpdatePlaylistMetadata()
416 assertTrue(mPlayer.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSetPlaybackSpeed()
558 assertTrue(mMockAgent.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testAddPlaylistItem()
577 assertTrue(mMockAgent.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testRemovePlaylistItem()
[all …]
/frameworks/support/media/version-compat-tests/current/service/src/androidTest/java/androidx/media/test/service/
DMockPlayer.java33 public final CountDownLatch mCountDownLatch; field in MockPlayer
54 mCountDownLatch = (count > 0) ? new CountDownLatch(count) : null; in MockPlayer()
65 if (mCountDownLatch != null) { in reset()
66 mCountDownLatch.countDown(); in reset()
73 if (mCountDownLatch != null) { in play()
74 mCountDownLatch.countDown(); in play()
81 if (mCountDownLatch != null) { in pause()
82 mCountDownLatch.countDown(); in pause()
89 if (mCountDownLatch != null) { in prepare()
90 mCountDownLatch.countDown(); in prepare()
[all …]
/frameworks/base/services/robotests/src/com/android/server/location/
DNtpTimeHelperTest.java44 private CountDownLatch mCountDownLatch; field in NtpTimeHelperTest
49 mCountDownLatch = new CountDownLatch(1); in setUp()
53 mCountDownLatch.countDown(); in setUp()
68 assertThat(mCountDownLatch.await(2, TimeUnit.SECONDS)).isTrue(); in handleInjectNtpTime_cachedAgeLow_injectTime()
79 assertThat(mCountDownLatch.await(2, TimeUnit.SECONDS)).isFalse(); in handleInjectNtpTime_injectTimeFailed_injectTimeDelayed()
87 assertThat(mCountDownLatch.await(2, TimeUnit.SECONDS)).isTrue(); in handleInjectNtpTime_injectTimeFailed_injectTimeDelayed()
96 mCountDownLatch.await(1, TimeUnit.SECONDS); in waitForTasksToBePostedOnHandlerAndRunThem()
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
DAppTimeLimitControllerTests.java80 private final CountDownLatch mCountDownLatch = new CountDownLatch(1); field in AppTimeLimitControllerTests
94 mCountDownLatch.countDown();
185 assertFalse(mCountDownLatch.await(100L, TimeUnit.MILLISECONDS)); in testAccumulation()
193 assertTrue(mCountDownLatch.await(100L, TimeUnit.MILLISECONDS)); in testAccumulation()
202 assertFalse(mCountDownLatch.await(6_000L, TimeUnit.MILLISECONDS)); in testTimeoutOtherApp()
205 assertFalse(mCountDownLatch.await(100L, TimeUnit.MILLISECONDS)); in testTimeoutOtherApp()
215 assertTrue(mCountDownLatch.await(6_000L, TimeUnit.MILLISECONDS)); in testTimeout()
230 assertFalse(mCountDownLatch.await(1000L, TimeUnit.MILLISECONDS)); in testAlreadyRunning()
235 assertTrue(mCountDownLatch.await(1000L, TimeUnit.MILLISECONDS)); in testAlreadyRunning()
250 assertFalse(mCountDownLatch.await(6_000L, TimeUnit.MILLISECONDS)); in testAlreadyRunningTimeout()
[all …]
/frameworks/base/tests/ActivityManagerPerfTests/utils/src/com/android/frameworks/perftests/am/util/
DCountDownResultReceiver.java25 private CountDownLatch mCountDownLatch; field in CountDownResultReceiver
29 mCountDownLatch = countDownLatch; in CountDownResultReceiver()
34 mCountDownLatch.countDown(); in onReceiveResult()
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
DUnitTest.java69 private CountDownLatch mCountDownLatch; field in UnitTest
79 mCountDownLatch = null; in UnitTest()
114 mCountDownLatch.countDown(); in createRenderScript()
118 mCountDownLatch = new CountDownLatch(1); in createRenderScript()
161 if (mCountDownLatch != null) { in runTest()
163 boolean success = mCountDownLatch.await(5 * 60, TimeUnit.SECONDS); in runTest()
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
DUnitTest.java67 private CountDownLatch mCountDownLatch; field in UnitTest
77 mCountDownLatch = null; in UnitTest()
112 mCountDownLatch.countDown(); in createRenderScript()
116 mCountDownLatch = new CountDownLatch(1); in createRenderScript()
159 if (mCountDownLatch != null) { in runTest()
161 boolean success = mCountDownLatch.await(5 * 60, TimeUnit.SECONDS); in runTest()
/frameworks/base/services/core/java/com/android/server/connectivity/
DNetworkDiagnostics.java112 private final CountDownLatch mCountDownLatch; field in NetworkDiagnostics
133 if (mCountDownLatch != null) { in recordSuccess()
134 mCountDownLatch.countDown(); in recordSuccess()
142 if (mCountDownLatch != null) { in recordFailure()
143 mCountDownLatch.countDown(); in recordFailure()
207 mCountDownLatch = new CountDownLatch(totalMeasurementCount()); in NetworkDiagnostics()
274 mCountDownLatch.await(mDeadlineTime - now(), TimeUnit.MILLISECONDS); in waitForMeasurements()
325 final long unfinished = mCountDownLatch.getCount(); in dump()
455 mCountDownLatch.countDown(); in run()
542 mCountDownLatch.countDown(); in run()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DNotificationEntryManagerTest.java106 private CountDownLatch mCountDownLatch; field in NotificationEntryManagerTest
109 private final CountDownLatch mCountDownLatch; field in NotificationEntryManagerTest.TestableNotificationEntryManager
114 mCountDownLatch = new CountDownLatch(1); in TestableNotificationEntryManager()
122 mCountDownLatch.countDown(); in onAsyncInflationFinished()
126 return mCountDownLatch; in getCountDownLatch()
165 mCountDownLatch = new CountDownLatch(1); in setUp()
195 mCountDownLatch.countDown(); in testAddNotification()
203 assertTrue(mCountDownLatch.await(10, TimeUnit.SECONDS)); in testAddNotification()