/cts/tests/tests/opengl/src/android/opengl/cts/ |
D | OpenGLES20ActivityOne.java | 96 public OpenGLES20View(Context context, int type, int index, CountDownLatch latch) { in OpenGLES20View() argument 102 mRenderer = new RendererOneShaderTest(latch); in OpenGLES20View() 104 mRenderer = new RendererTwoShaderTest(latch); in OpenGLES20View() 106 mRenderer = new RendererThreeShaderTest(latch); in OpenGLES20View() 108 mRenderer = new RendererFourShaderTest(latch); in OpenGLES20View() 110 mRenderer = new RendererFiveShaderTest(latch); in OpenGLES20View() 112 mRenderer = new RendererSixShaderTest(latch); in OpenGLES20View() 114 mRenderer = new RendererSevenShaderTest(latch); in OpenGLES20View() 116 mRenderer = new RendererEightShaderTest(latch); in OpenGLES20View() 118 mRenderer = new RendererNineShaderTest(latch); in OpenGLES20View() [all …]
|
D | NativeRendererOneColorBufferTest.java | 57 public NativeRendererOneColorBufferTest(Context context, CountDownLatch latch) { in NativeRendererOneColorBufferTest() argument 58 super(latch); in NativeRendererOneColorBufferTest() 61 public NativeRendererOneColorBufferTest(Context context, float[] color, CountDownLatch latch) { in NativeRendererOneColorBufferTest() argument 62 super(latch); in NativeRendererOneColorBufferTest()
|
D | RendererNineShaderTest.java | 25 public RendererNineShaderTest(CountDownLatch latch) { in RendererNineShaderTest() argument 26 super(latch); in RendererNineShaderTest()
|
D | RendererEightShaderTest.java | 25 public RendererEightShaderTest(CountDownLatch latch) { in RendererEightShaderTest() argument 26 super(latch); in RendererEightShaderTest()
|
/cts/tests/sensor/src/android/hardware/cts/helpers/ |
D | TestSensorEventListener.java | 107 for (CountDownLatch latch : mEventLatches) { in onSensorChanged() 108 latch.countDown(); in onSensorChanged() 109 if (latch.getCount() == 0 && !mTestSensorEventListenerWakeLock.isHeld()) { in onSensorChanged() 130 CountDownLatch latch = new CountDownLatch(eventCount); in getLatchForSensorEvents() local 132 mEventLatches.add(latch); in getLatchForSensorEvents() 134 return latch; in getLatchForSensorEvents() 142 CountDownLatch latch = new CountDownLatch(1); in getLatchForFlushCompleteEvent() local 144 mFlushLatches.add(latch); in getLatchForFlushCompleteEvent() 146 return latch; in getLatchForFlushCompleteEvent() 160 for (CountDownLatch latch : mFlushLatches) { in onFlushCompleted() [all …]
|
D | SuspendStateMonitor.java | 44 CountDownLatch latch = new CountDownLatch(1); in waitForWakeUp() local 46 mWaitForWakeUpLatch.add(latch); in waitForWakeUp() 50 latch.await(); in waitForWakeUp() 53 boolean countZero = latch.await(numSeconds, TimeUnit.SECONDS); in waitForWakeUp() 70 for (CountDownLatch latch : mWaitForWakeUpLatch) { in run() 71 latch.countDown(); in run()
|
D | ActivityResultMultiplexedLatch.java | 54 mEntry.latch.await(); in await() 70 public final CountDownLatch latch = new CountDownLatch(1); field in ActivityResultMultiplexedLatch.Entry 113 entry.latch.countDown(); in onActivityResult()
|
D | TestSensorManager.java | 107 CountDownLatch latch = listener.getLatchForSensorEvents(eventCount); in registerListener() local 127 return latch; in registerListener() 170 CountDownLatch latch = mTestSensorEventListener.getLatchForFlushCompleteEvent(); in requestFlush() local 174 return latch; in requestFlush()
|
/cts/tests/app/src/android/app/cts/ |
D | WallpaperManagerTest.java | 121 CountDownLatch latch = new CountDownLatch(1); in wallpaperChangedBroadcastTest() local 125 latch.countDown(); in wallpaperChangedBroadcastTest() 134 if (!latch.await(5, TimeUnit.SECONDS)) { in wallpaperChangedBroadcastTest() 146 CountDownLatch latch = new CountDownLatch(1); in wallpaperClearBroadcastTest() local 150 latch.countDown(); in wallpaperClearBroadcastTest() 159 if (!latch.await(5, TimeUnit.SECONDS)) { in wallpaperClearBroadcastTest() 203 final CountDownLatch latch = new CountDownLatch(1); in addRemoveOnColorsChangedListenerTest_onlyInvokeAdded() local 204 WallpaperManager.OnColorsChangedListener counter = (colors, whichWp) -> latch.countDown(); in addRemoveOnColorsChangedListenerTest_onlyInvokeAdded() 215 if (!latch.await(5, TimeUnit.SECONDS)) { in addRemoveOnColorsChangedListenerTest_onlyInvokeAdded() 280 final CountDownLatch latch = new CountDownLatch(expected); in verifyColorListenerInvoked() local [all …]
|
D | NewDocumentTest.java | 52 private final CountDownLatch latch = new CountDownLatch(1); field in NewDocumentTest.Receiver 61 latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in await() 66 latch.countDown(); in onReceive()
|
/cts/tests/app/app/src/android/app/stubs/ |
D | OrientationTestUtils.java | 79 final CountDownLatch latch = new CountDownLatch(1); in startObserving() local 80 assertTrue(mLatch.compareAndSet(null, latch)); in startObserving() 100 final CountDownLatch latch = mLatch.get(); in onObserved() local 101 if (latch != null) { in onObserved() 102 latch.countDown(); in onObserved()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaBrowser2Test.java | 109 final CountDownLatch latch = new CountDownLatch(1); in testGetLibraryRoot() local 117 latch.countDown(); in testGetLibraryRoot() 125 assertTrue(latch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testGetLibraryRoot() 132 final CountDownLatch latch = new CountDownLatch(1); in testGetItem() local 139 latch.countDown(); in testGetItem() 146 assertTrue(latch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testGetItem() 153 final CountDownLatch latch = new CountDownLatch(1); in testGetItemNullResult() local 159 latch.countDown(); in testGetItemNullResult() 166 assertTrue(latch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testGetItemNullResult() 177 final CountDownLatch latch = new CountDownLatch(1); in testGetChildren() local [all …]
|
D | MediaController2Test.java | 272 final CountDownLatch latch = new CountDownLatch(1); in testGetPlaylist() local 283 latch.countDown(); in testGetPlaylist() 301 assertTrue(latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testGetPlaylist() 321 final CountDownLatch latch = new CountDownLatch(1); in testGetPlaylistMetadata() local 329 latch.countDown(); in testGetPlaylistMetadata() 346 assertTrue(latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testGetPlaylistMetadata() 363 final CountDownLatch latch = new CountDownLatch(2); in testControllerCallback_onPlaylistMetadataChanged() local 370 latch.countDown(); in testControllerCallback_onPlaylistMetadataChanged() 407 assertTrue(latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testControllerCallback_onPlaylistMetadataChanged() 489 final CountDownLatch latch = new CountDownLatch(1); in testGetShuffleMode() local [all …]
|
D | MediaSession2Test.java | 267 final CountDownLatch latch = new CountDownLatch(1); in testUpdatePlayer() local 276 latch.countDown(); in testUpdatePlayer() 295 assertTrue(latch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testUpdatePlayer() 312 final CountDownLatch latch = new CountDownLatch(1); in testSetPlayer_playbackInfo() local 322 latch.countDown(); in testSetPlayer_playbackInfo() 341 assertTrue(latch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testSetPlayer_playbackInfo() 452 final CountDownLatch latch = new CountDownLatch(1); in testSessionCallback_onPlaylistChanged() local 466 latch.countDown(); in testSessionCallback_onPlaylistChanged() 476 assertTrue(latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSessionCallback_onPlaylistChanged() 521 final CountDownLatch latch = new CountDownLatch(1); in testGetShuffleMode() local [all …]
|
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
D | MultipleTimesTimeListener.java | 33 private final CountDownLatch latch; field in MultipleTimesTimeListener 44 this.latch = new CountDownLatch(times); in MultipleTimesTimeListener() 49 latch.countDown(); in onTimeChanged() 53 final boolean set = latch.await(FILL_TIMEOUT.ms(), TimeUnit.MILLISECONDS); in assertAutoFilled()
|
D | OneTimeSpinnerListener.java | 36 private final CountDownLatch latch = new CountDownLatch(1); field in OneTimeSpinnerListener 47 final boolean set = latch.await(FILL_TIMEOUT.ms(), TimeUnit.MILLISECONDS); in assertAutoFilled() 57 latch.countDown(); in onItemSelected() 62 latch.countDown(); in onNothingSelected()
|
D | OneTimeCompoundButtonListener.java | 34 private final CountDownLatch latch = new CountDownLatch(1); field in OneTimeCompoundButtonListener 47 latch.countDown(); in onCheckedChanged() 51 final boolean set = latch.await(FILL_TIMEOUT.ms(), TimeUnit.MILLISECONDS); in assertAutoFilled()
|
D | OneTimeRadioGroupListener.java | 34 private final CountDownLatch latch = new CountDownLatch(1); field in OneTimeRadioGroupListener 46 latch.countDown(); in onCheckedChanged() 50 final boolean set = latch.await(FILL_TIMEOUT.ms(), TimeUnit.MILLISECONDS); in assertAutoFilled()
|
D | OneTimeDateListener.java | 33 private final CountDownLatch latch = new CountDownLatch(1); field in OneTimeDateListener 50 latch.countDown(); in onDateChanged() 54 final boolean set = latch.await(FILL_TIMEOUT.ms(), TimeUnit.MILLISECONDS); in assertAutoFilled()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | EventSanitizationTestActivity.java | 75 final CountDownLatch latch = new CountDownLatch(1); in testNoTriggerEventsWhileUidIdle() local 79 latch.countDown(); in testNoTriggerEventsWhileUidIdle() 91 latch.await(EVENT_TIMEOUT, TimeUnit.SECONDS)); in testNoTriggerEventsWhileUidIdle() 119 final CountDownLatch latch = new CountDownLatch(1); in testNoOnChangeEventsWhileUidIdle() local 123 latch.countDown(); in testNoOnChangeEventsWhileUidIdle() 141 latch.await(EVENT_TIMEOUT, TimeUnit.SECONDS)); in testNoOnChangeEventsWhileUidIdle()
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | SetTimeTest.java | 59 final CountDownLatch latch = new CountDownLatch(1); in testSetTimeWithValue() local 63 latch.countDown(); in testSetTimeWithValue() 71 latch.await(TIMEOUT_SEC, TimeUnit.SECONDS)); in testSetTimeWithValue() 91 final CountDownLatch latch = new CountDownLatch(1); in testSetTimeZoneWithValue() local 96 latch.countDown(); in testSetTimeZoneWithValue() 106 latch.await(TIMEOUT_SEC, TimeUnit.SECONDS)); in testSetTimeZoneWithValue()
|
/cts/hostsidetests/statsd/apps/statsdapp/src/com/android/server/cts/device/statsd/ |
D | WakelockLoadTestRunnable.java | 26 CountDownLatch latch; field in WakelockLoadTestRunnable 29 latch = l; in WakelockLoadTestRunnable() 46 latch.countDown(); in run()
|
D | AtomTests.java | 166 CountDownLatch latch = new CountDownLatch(1); in testCameraState() local 176 latch.countDown(); in testCameraState() 195 waitForReceiver(context, 10_000, latch, null); in testCameraState() 237 CountDownLatch latch = new CountDownLatch(1); in testGpsScan() local 262 latch.countDown(); in testGpsScan() 267 waitForReceiver(context, 59_000, latch, null); in testGpsScan() 296 CountDownLatch latch = StatsdSyncAdapter.resetCountDownLatch(); in testSyncState() local 307 waitForReceiver(context, 120_000, latch, null); in testSyncState() 313 latch = StatsdSyncAdapter.resetCountDownLatch(); in testSyncState() 315 waitForReceiver(context, 120_000, latch, null); in testSyncState() [all …]
|
/cts/tests/vr/src/android/vr/cts/ |
D | RendererRefreshRateTest.java | 23 public RendererRefreshRateTest(CountDownLatch latch) { in RendererRefreshRateTest() argument 24 super(latch); in RendererRefreshRateTest()
|
/cts/tests/tests/telephony/src/android/telephony/cts/ |
D | SubscriptionManagerTest.java | 189 final CountDownLatch latch = waitForNetworkCapabilities(net, caps -> { in testSubscriptionPlansOverrideCongested() local 193 assertTrue(latch.await(10, TimeUnit.SECONDS)); in testSubscriptionPlansOverrideCongested() 198 final CountDownLatch latch = waitForNetworkCapabilities(net, caps -> { in testSubscriptionPlansOverrideCongested() local 202 assertTrue(latch.await(10, TimeUnit.SECONDS)); in testSubscriptionPlansOverrideCongested() 232 final CountDownLatch latch = waitForNetworkCapabilities(net, caps -> { in testSubscriptionPlansOverrideUnmetered() local 236 assertTrue(latch.await(10, TimeUnit.SECONDS)); in testSubscriptionPlansOverrideUnmetered() 241 final CountDownLatch latch = waitForNetworkCapabilities(net, caps -> { in testSubscriptionPlansOverrideUnmetered() local 245 assertTrue(latch.await(10, TimeUnit.SECONDS)); in testSubscriptionPlansOverrideUnmetered() 306 final CountDownLatch latch = new CountDownLatch(1); in waitForNetworkCapabilities() local 314 latch.countDown(); in waitForNetworkCapabilities() [all …]
|