Searched refs:waiter (Results 1 – 8 of 8) sorted by relevance
228 WaitForBroadcast waiter = new WaitForBroadcast(mInstrumentation.getTargetContext()); in testFgsLocationStartFromBG() local229 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 …]
63 final WaitForBroadcast waiter = new WaitForBroadcast(instrumentation.getTargetContext()); in assertBroadcastSuccess() local64 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() local75 waiter.prepare(ACTION_START_FGS_RESULT); in assertBroadcastFailure()80 assertThrows(Exception.class, () -> waiter.doWait(WAITFOR_MSEC)); in assertBroadcastFailure()
253 WaitForBroadcast waiter = new WaitForBroadcast(sInstrumentation.getTargetContext()); in testAppOpsHistoricalOps() local254 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()
1019 WaitForBroadcast waiter = new WaitForBroadcast(mInstrumentation.getTargetContext()); in testBackgroundCheckActivityService() local1020 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() local1279 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 …]
357 RotationChangeWaiter waiter = new RotationChangeWaiter(display); in testVirtualDisplayRotatesWithContent() local359 assertTrue(waiter.rotationChanged()); in testVirtualDisplayRotatesWithContent()363 RotationChangeWaiter waiter = new RotationChangeWaiter(display); in testVirtualDisplayRotatesWithContent() local365 assertTrue(waiter.rotationChanged()); in testVirtualDisplayRotatesWithContent()390 RotationChangeWaiter waiter = new RotationChangeWaiter(display); in testVirtualDisplayDoesNotRotateWithContent() local392 assertFalse(waiter.rotationChanged()); in testVirtualDisplayDoesNotRotateWithContent()396 RotationChangeWaiter waiter = new RotationChangeWaiter(display); in testVirtualDisplayDoesNotRotateWithContent() local398 assertFalse(waiter.rotationChanged()); in testVirtualDisplayDoesNotRotateWithContent()529 Runnable waiter = new Runnable() { in runOnUiThread() local537 synchronized (waiter) { in runOnUiThread()[all …]
120 try (InputDeviceRemovedWaiter waiter = in close_removesInputDevice() argument123 assertThat(waiter.awaitDeviceRemoval()).isTrue(); in close_removesInputDevice()136 try (InputDeviceRemovedWaiter waiter = in closeVirtualDevice_removesInputDevice() argument139 assertThat(waiter.awaitDeviceRemoval()).isTrue(); in closeVirtualDevice_removesInputDevice()
66 try (InputDeviceAddedWaiter waiter = in prepareInputDevice() argument68 return new InputDeviceHolder<T>(deviceCreator.get(), waiter.await()); in prepareInputDevice()
602 Runnable waiter = new Runnable() { in runOnUiThread() local610 synchronized (waiter) { in runOnUiThread()612 mUiHandler.post(waiter); in runOnUiThread()614 waiter.wait(UI_TIMEOUT_MS); in runOnUiThread()