Searched refs:androidFuture (Results 1 – 2 of 2) sorted by relevance
62 AndroidFuture<R> androidFuture = new AndroidFuture(); in postForResult() local64 androidFuture.complete(job.run(mService)); in postForResult()66 androidFuture.completeExceptionally(ex); in postForResult()68 return androidFuture; in postForResult()75 AndroidFuture<R> androidFuture = new AndroidFuture(); in postAsync() local81 androidFuture.completeExceptionally(exception); in postAsync()83 androidFuture.complete(result); in postAsync()87 androidFuture.completeExceptionally(ex); in postAsync()90 return androidFuture; in postAsync()
167 private static void waitForDone(AndroidFuture<?> androidFuture) { in waitForDone() argument168 if (androidFuture.isDone()) { in waitForDone()173 androidFuture.get(10, TimeUnit.SECONDS); in waitForDone()