Searched refs:futureTask (Results 1 – 5 of 5) sorted by relevance
149 final RunOnMainSyncFutureTask<V> futureTask = new RunOnMainSyncFutureTask<>(callable); in runOnMainSyncWithTimeout() local153 futureTask.runOnMainSyncNoThrow(); in runOnMainSyncWithTimeout()159 futureTask.runOnMainSyncNoThrow(); in runOnMainSyncWithTimeout()165 return futureTask.get(runOnMainSyncTimeoutMillis, TimeUnit.MILLISECONDS); in runOnMainSyncWithTimeout()175 futureTask.cancel(false); in runOnMainSyncWithTimeout()
99 private <T> Future<T> schedule(final FutureTask<T> futureTask) { in schedule() argument103 futureTask.run(); in schedule()110 return futureTask; in schedule()
190 protected abstract void doPerformAndWait(FutureTask<Boolean> futureTask, long timeoutMillis); in doPerformAndWait() argument193 FutureTask<Boolean> futureTask = new FutureTask<Boolean>(new Callable<Boolean>() { in performAndWait() local199 doPerformAndWait(futureTask, action.getTimeoutMillis()); in performAndWait()202 return futureTask.get(); in performAndWait()
185 protected void doPerformAndWait(final FutureTask<Boolean> futureTask, final long timeoutMillis) { in doPerformAndWait() argument191 uiAutomation.executeAndWaitForEvent(futureTask, ANY_EVENT_FILTER, timeoutMillis); in doPerformAndWait()
108 protected void doPerformAndWait(FutureTask<Boolean> futureTask, long timeoutMillis) { in doPerformAndWait() argument109 futureTask.run(); in doPerformAndWait()