/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()
|
/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()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaSession2ServiceTest.java | 120 final CountDownLatch latch = new CountDownLatch(1); in testOnGetSessionIsCalled() local 125 latch.countDown(); in testOnGetSessionIsCalled() 139 assertTrue(latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testOnGetSessionIsCalled() 153 final CountDownLatch latch = new CountDownLatch(1); in testOnGetSession_returnsSession() local 163 latch.countDown(); in testOnGetSession_returnsSession() 189 assertTrue(latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testOnGetSession_returnsSession() 241 final CountDownLatch latch = new CountDownLatch(1); in testOnGetSession_rejectsConnection() local 246 latch.countDown(); in testOnGetSession_rejectsConnection() 252 assertTrue(latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testOnGetSession_rejectsConnection() 258 final CountDownLatch latch = new CountDownLatch(1); in testAllControllersDisconnected_oneSession() local [all …]
|
/cts/tests/app/src/android/app/cts/ |
D | WallpaperManagerTest.java | 120 CountDownLatch latch = new CountDownLatch(1); in wallpaperChangedBroadcastTest() local 124 latch.countDown(); in wallpaperChangedBroadcastTest() 133 if (!latch.await(5, TimeUnit.SECONDS)) { in wallpaperChangedBroadcastTest() 145 CountDownLatch latch = new CountDownLatch(1); in wallpaperClearBroadcastTest() local 149 latch.countDown(); in wallpaperClearBroadcastTest() 158 if (!latch.await(5, TimeUnit.SECONDS)) { in wallpaperClearBroadcastTest() 202 final CountDownLatch latch = new CountDownLatch(1); in addRemoveOnColorsChangedListenerTest_onlyInvokeAdded() local 203 WallpaperManager.OnColorsChangedListener counter = (colors, whichWp) -> latch.countDown(); in addRemoveOnColorsChangedListenerTest_onlyInvokeAdded() 214 if (!latch.await(5, TimeUnit.SECONDS)) { in addRemoveOnColorsChangedListenerTest_onlyInvokeAdded() 336 final CountDownLatch latch = new CountDownLatch(expected); in verifyColorListenerInvoked() local [all …]
|
D | Instrumentation_ActivityMonitorTest.java | 153 final CountDownLatch latch = new CountDownLatch(1); in testActivityMonitor_onStartActivityBlocks() local 163 latch.countDown(); in testActivityMonitor_onStartActivityBlocks() 167 if (!latch.await(TIMEOUT_FOR_ACTIVITY_LAUNCH_MS, TimeUnit.MILLISECONDS)) { in testActivityMonitor_onStartActivityBlocks() 205 final CountDownLatch latch = new CountDownLatch(1); in testActivityMonitor_onStartActivityAndIntentFilter() local 215 latch.countDown(); in testActivityMonitor_onStartActivityAndIntentFilter() 219 if (!latch.await(TIMEOUT_FOR_ACTIVITY_LAUNCH_MS, TimeUnit.MILLISECONDS)) { in testActivityMonitor_onStartActivityAndIntentFilter() 257 final CountDownLatch latch = new CountDownLatch(1); in testActivityMonitor_onStartActivityAndActivityClass() local 267 latch.countDown(); in testActivityMonitor_onStartActivityAndActivityClass() 271 if (!latch.await(TIMEOUT_FOR_ACTIVITY_LAUNCH_MS, TimeUnit.MILLISECONDS)) { in testActivityMonitor_onStartActivityAndActivityClass()
|
/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/AlarmManager/src/android/alarmmanager/cts/ |
D | InstantAppsTests.java | 63 final CountDownLatch latch = new CountDownLatch(1); in elapsedRealtimeAlarm() local 65 () -> latch.countDown(), null); in elapsedRealtimeAlarm() 67 assertTrue("Alarm did not fire as expected", latch.await(500, TimeUnit.MILLISECONDS)); in elapsedRealtimeAlarm() 74 final CountDownLatch latch = new CountDownLatch(1); in rtcAlarm() local 75 mAlarmManager.setExact(AlarmManager.RTC, triggerRtc, TAG, () -> latch.countDown(), null); in rtcAlarm() 77 assertTrue("Alarm did not fire as expected", latch.await(500, TimeUnit.MILLISECONDS)); in rtcAlarm()
|
/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/tests/tests/appwidget/src/android/appwidget/cts/ |
D | BlockingBroadcastReceiver.java | 34 private final CountDownLatch latch = new CountDownLatch(1); field in BlockingBroadcastReceiver 44 latch.countDown(); in onReceive() 48 latch.await(timeout, unit); in getParam() 53 assertTrue(latch.await(20, TimeUnit.SECONDS)); in await()
|
/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 | 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 | 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 | 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/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/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/ |
D | DirectActionsTest.java | 142 final CountDownLatch latch = new CountDownLatch(1); in startVoiceInteractionSession() local 146 latch.countDown(); in startVoiceInteractionSession() 160 if (!latch.await(OPERATION_TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in startVoiceInteractionSession() 203 final CountDownLatch latch = new CountDownLatch(1); in executeCommand() local 209 latch.countDown(); in executeCommand() 227 if (!latch.await(OPERATION_TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in executeCommand() 241 final CountDownLatch latch = new CountDownLatch(1); in startActivity() local 247 latch.countDown(); in startActivity() 266 if (!latch.await(OPERATION_TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in startActivity() 296 final CountDownLatch latch = new CountDownLatch(1); in executeRemoteCommand() local [all …]
|
/cts/tests/tests/accounts/src/android/accounts/cts/ |
D | AccountManagerTest.java | 519 final CountDownLatch latch = new CountDownLatch(1); in testAddAccountWithCallbackAndHandler() local 546 latch.countDown(); in testAddAccountWithCallbackAndHandler() 561 latch.await(LATCH_TIMEOUT_MS, TimeUnit.MILLISECONDS); in testAddAccountWithCallbackAndHandler() 1374 final CountDownLatch latch = new CountDownLatch(1); in testGetAuthTokenWithCallback_Options_Handler_DefaultToken_Success() 1390 latch.countDown(); in testGetAuthTokenWithCallback_Options_Handler_DefaultToken_Success() 1404 latch.await(LATCH_TIMEOUT_MS, TimeUnit.MILLISECONDS); in testGetAuthTokenWithCallback_Options_Handler_DefaultToken_Success() 1434 final CountDownLatch latch = new CountDownLatch(1); in testGetAuthTokenWithCallback_Options_Handler_CustomToken_Success() 1450 latch.countDown(); in testGetAuthTokenWithCallback_Options_Handler_CustomToken_Success() 1464 latch.await(LATCH_TIMEOUT_MS, TimeUnit.MILLISECONDS); in testGetAuthTokenWithCallback_Options_Handler_CustomToken_Success() 1495 final CountDownLatch latch = new CountDownLatch(1); in testGetAuthTokenWithCallbackAndHandler() local [all …]
|
/cts/hostsidetests/statsd/apps/statsdapp/src/com/android/server/cts/device/statsd/ |
D | AtomTests.java | 168 CountDownLatch latch = new CountDownLatch(1); in testCameraState() local 178 latch.countDown(); in testCameraState() 197 waitForReceiver(context, 10_000, latch, null); in testCameraState() 239 CountDownLatch latch = new CountDownLatch(1); in testGpsScan() local 264 latch.countDown(); in testGpsScan() 269 waitForReceiver(context, 59_000, latch, null); in testGpsScan() 298 CountDownLatch latch = StatsdSyncAdapter.resetCountDownLatch(); in testSyncState() local 309 waitForReceiver(context, 120_000, latch, null); in testSyncState() 315 latch = StatsdSyncAdapter.resetCountDownLatch(); in testSyncState() 317 waitForReceiver(context, 120_000, latch, null); in testSyncState() [all …]
|
D | WakelockLoadTestRunnable.java | 27 CountDownLatch latch; field in WakelockLoadTestRunnable 30 latch = l; in WakelockLoadTestRunnable() 47 latch.countDown(); in run()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ViewAnimationMatrixTest.java | 108 final CountDownLatch latch = new CountDownLatch(1); in captureView() local 116 latch.countDown(); in captureView() 120 assertTrue(latch.await(1, TimeUnit.SECONDS)); in captureView() 125 final CountDownLatch latch = new CountDownLatch(1); in waitForDraw() local 127 view.getViewTreeObserver().registerFrameCommitCallback(latch::countDown); in waitForDraw() 130 assertTrue(latch.await(1, TimeUnit.SECONDS)); in waitForDraw()
|
/cts/tests/tests/telephonyprovider/src/android/telephonyprovider/cts/ |
D | DefaultSmsAppHelper.java | 42 CountDownLatch latch = new CountDownLatch(1); in ensureDefaultSmsApp() local 54 latch.countDown(); in ensureDefaultSmsApp() 59 latch.await(); in ensureDefaultSmsApp()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | ContentResolverSyncTestCase.java | 99 private CountDownLatch setNewLatch(CountDownLatch latch) { in setNewLatch() argument 101 getMockSyncAdapter().setLatch(latch); in setNewLatch() 102 return latch; in setNewLatch() 108 CountDownLatch latch = setNewLatch(new CountDownLatch(1)); in addAccountAndVerifyInitSync() local 114 if (!latch.await(INITIAL_SYNC_TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in addAccountAndVerifyInitSync() 129 CountDownLatch latch = setNewLatch(new CountDownLatch(1)); in cancelSync() local 138 latch.await(latchTimeoutMillis, TimeUnit.MILLISECONDS); in cancelSync() 159 CountDownLatch latch = setNewLatch(new CountDownLatch(1)); in requestSync() local 168 latch.await(latchTimeoutMillis, TimeUnit.MILLISECONDS); in requestSync()
|