Home
last modified time | relevance | path

Searched refs:waiter (Results 1 – 8 of 8) sorted by relevance

/cts/tests/app/src/android/app/cts/
DActivityManagerFgsBgStartTest.java228 WaitForBroadcast waiter = new WaitForBroadcast(mInstrumentation.getTargetContext()); in testFgsLocationStartFromBG() local
229 waiter.prepare(ACTION_START_FGSL_RESULT); in testFgsLocationStartFromBG()
250 waiter.doWait(WAITFOR_MSEC); in testFgsLocationStartFromBG()
259 waiter = new WaitForBroadcast(mInstrumentation.getTargetContext()); in testFgsLocationStartFromBG()
260 waiter.prepare(ACTION_START_FGS_RESULT); in testFgsLocationStartFromBG()
274 waiter.doWait(WAITFOR_MSEC); in testFgsLocationStartFromBG()
294 waiter = new WaitForBroadcast(mInstrumentation.getTargetContext()); in testFgsLocationStartFromBG()
295 waiter.prepare(ACTION_START_FGSL_RESULT); in testFgsLocationStartFromBG()
308 waiter.doWait(WAITFOR_MSEC); in testFgsLocationStartFromBG()
346 WaitForBroadcast waiter = new WaitForBroadcast(mInstrumentation.getTargetContext()); in testFgsLocationStartFromBGTwoProcesses() local
[all …]
DBroadcastOptionsIntegrationTest.java63 final WaitForBroadcast waiter = new WaitForBroadcast(instrumentation.getTargetContext()); in assertBroadcastSuccess() local
64 waiter.prepare(ACTION_START_FGS_RESULT); in assertBroadcastSuccess()
69 waiter.doWait(WAITFOR_MSEC); in assertBroadcastSuccess()
74 final WaitForBroadcast waiter = new WaitForBroadcast(instrumentation.getTargetContext()); in assertBroadcastFailure() local
75 waiter.prepare(ACTION_START_FGS_RESULT); in assertBroadcastFailure()
80 assertThrows(Exception.class, () -> waiter.doWait(WAITFOR_MSEC)); in assertBroadcastFailure()
DActivityManagerApi29Test.java253 WaitForBroadcast waiter = new WaitForBroadcast(sInstrumentation.getTargetContext()); in testAppOpsHistoricalOps() local
254 waiter.prepare(ACTION_SIMPLE_ACTIVITY_START_RESULT); in testAppOpsHistoricalOps()
258 waiter.doWait(WAITFOR_MSEC); in testAppOpsHistoricalOps()
260 waiter = new WaitForBroadcast(sInstrumentation.getTargetContext()); in testAppOpsHistoricalOps()
261 waiter.prepare(ACTION_SERVICE_START_RESULT); in testAppOpsHistoricalOps()
263 waiter.doWait(WAITFOR_MSEC); in testAppOpsHistoricalOps()
DActivityManagerProcessStateTest.java1019 WaitForBroadcast waiter = new WaitForBroadcast(mInstrumentation.getTargetContext()); in testBackgroundCheckActivityService() local
1020 waiter.prepare(ACTION_SIMPLE_ACTIVITY_START_SERVICE_RESULT); in testBackgroundCheckActivityService()
1023 Intent resultIntent = waiter.doWait(WAIT_TIME * 2); in testBackgroundCheckActivityService()
1278 WaitForBroadcast waiter = new WaitForBroadcast(mInstrumentation.getTargetContext()); in testBgRestrictedForegroundService() local
1279 waiter.prepare(ACTION_SIMPLE_ACTIVITY_START_FG_SERVICE_RESULT); in testBgRestrictedForegroundService()
1285 Intent resultIntent = waiter.doWait(WAIT_TIME); in testBgRestrictedForegroundService()
2317 (uidWatcher, waiter) -> { in testFgsSticky1()
2322 waiter.doWait(WAITFOR_MSEC); in testFgsSticky1()
2335 (uidWatcher, waiter) -> { in testFgsSticky2()
2340 waiter.doWait(WAITFOR_MSEC); in testFgsSticky2()
[all …]
/cts/tests/tests/display/src/android/display/cts/
DVirtualDisplayTest.java357 RotationChangeWaiter waiter = new RotationChangeWaiter(display); in testVirtualDisplayRotatesWithContent() local
359 assertTrue(waiter.rotationChanged()); in testVirtualDisplayRotatesWithContent()
363 RotationChangeWaiter waiter = new RotationChangeWaiter(display); in testVirtualDisplayRotatesWithContent() local
365 assertTrue(waiter.rotationChanged()); in testVirtualDisplayRotatesWithContent()
390 RotationChangeWaiter waiter = new RotationChangeWaiter(display); in testVirtualDisplayDoesNotRotateWithContent() local
392 assertFalse(waiter.rotationChanged()); in testVirtualDisplayDoesNotRotateWithContent()
396 RotationChangeWaiter waiter = new RotationChangeWaiter(display); in testVirtualDisplayDoesNotRotateWithContent() local
398 assertFalse(waiter.rotationChanged()); in testVirtualDisplayDoesNotRotateWithContent()
529 Runnable waiter = new Runnable() { in runOnUiThread() local
537 synchronized (waiter) { in runOnUiThread()
[all …]
/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/
DVirtualInputDeviceGenericTest.java120 try (InputDeviceRemovedWaiter waiter = in close_removesInputDevice() argument
123 assertThat(waiter.awaitDeviceRemoval()).isTrue(); in close_removesInputDevice()
136 try (InputDeviceRemovedWaiter waiter = in closeVirtualDevice_removesInputDevice() argument
139 assertThat(waiter.awaitDeviceRemoval()).isTrue(); in closeVirtualDevice_removesInputDevice()
/cts/tests/tests/hardware/src/android/hardware/input/cts/virtualcreators/
DVirtualInputDeviceCreator.java66 try (InputDeviceAddedWaiter waiter = in prepareInputDevice() argument
68 return new InputDeviceHolder<T>(deviceCreator.get(), waiter.await()); in prepareInputDevice()
/cts/tests/tests/media/codec/src/android/media/codec/cts/
DEncodeVirtualDisplayTest.java602 Runnable waiter = new Runnable() { in runOnUiThread() local
610 synchronized (waiter) { in runOnUiThread()
612 mUiHandler.post(waiter); in runOnUiThread()
614 waiter.wait(UI_TIMEOUT_MS); in runOnUiThread()