Searched refs:waiter (Results 1 – 5 of 5) sorted by relevance
172 WaitForBroadcast waiter = new WaitForBroadcast(mInstrumentation.getTargetContext()); in testFgsLocationStartFromBG() local173 waiter.prepare(ACTION_START_FGSL_RESULT); in testFgsLocationStartFromBG()187 waiter.doWait(WAITFOR_MSEC); in testFgsLocationStartFromBG()196 waiter = new WaitForBroadcast(mInstrumentation.getTargetContext()); in testFgsLocationStartFromBG()197 waiter.prepare(ACTION_START_FGS_RESULT); in testFgsLocationStartFromBG()210 waiter.doWait(WAITFOR_MSEC); in testFgsLocationStartFromBG()230 waiter = new WaitForBroadcast(mInstrumentation.getTargetContext()); in testFgsLocationStartFromBG()231 waiter.prepare(ACTION_START_FGSL_RESULT); in testFgsLocationStartFromBG()244 waiter.doWait(WAITFOR_MSEC); in testFgsLocationStartFromBG()279 WaitForBroadcast waiter = new WaitForBroadcast(mInstrumentation.getTargetContext()); in testFgsLocationStartFromBGTwoProcesses() local[all …]
252 WaitForBroadcast waiter = new WaitForBroadcast(sInstrumentation.getTargetContext()); in testAppOpsHistoricalOps() local253 waiter.prepare(ACTION_SIMPLE_ACTIVITY_START_RESULT); in testAppOpsHistoricalOps()257 waiter.doWait(WAITFOR_MSEC); in testAppOpsHistoricalOps()259 waiter = new WaitForBroadcast(sInstrumentation.getTargetContext()); in testAppOpsHistoricalOps()260 waiter.prepare(ACTION_SERVICE_START_RESULT); in testAppOpsHistoricalOps()262 waiter.doWait(WAITFOR_MSEC); in testAppOpsHistoricalOps()
976 WaitForBroadcast waiter = new WaitForBroadcast(mInstrumentation.getTargetContext()); in testBackgroundCheckActivityService() local977 waiter.prepare(ACTION_SIMPLE_ACTIVITY_START_SERVICE_RESULT); in testBackgroundCheckActivityService()980 Intent resultIntent = waiter.doWait(WAIT_TIME * 2); in testBackgroundCheckActivityService()1235 WaitForBroadcast waiter = new WaitForBroadcast(mInstrumentation.getTargetContext()); in testBgRestrictedForegroundService() local1236 waiter.prepare(ACTION_SIMPLE_ACTIVITY_START_FG_SERVICE_RESULT); in testBgRestrictedForegroundService()1242 Intent resultIntent = waiter.doWait(WAIT_TIME); in testBgRestrictedForegroundService()2224 (uidWatcher, waiter) -> { in testFgsSticky1()2229 waiter.doWait(WAITFOR_MSEC); in testFgsSticky1()2242 (uidWatcher, waiter) -> { in testFgsSticky2()2247 waiter.doWait(WAITFOR_MSEC); in testFgsSticky2()[all …]
380 Runnable waiter = new Runnable() { in runOnUiThread() local388 synchronized (waiter) { in runOnUiThread()390 mHandler.post(waiter); in runOnUiThread()392 waiter.wait(TIMEOUT); in runOnUiThread()
582 Runnable waiter = new Runnable() { in runOnUiThread() local590 synchronized (waiter) { in runOnUiThread()592 mUiHandler.post(waiter); in runOnUiThread()594 waiter.wait(UI_TIMEOUT_MS); in runOnUiThread()