Home
last modified time | relevance | path

Searched refs:futureTask (Results 1 – 7 of 7) sorted by relevance

/external/droiddriver/src/com/google/android/droiddriver/base/
DDroidDriverContext.java82 FutureTask<?> futureTask = new FutureTask<Void>(new Runnable() { in tryWaitForIdleSync() local
86 instrumentation.waitForIdle(futureTask); in tryWaitForIdleSync()
89 futureTask.get(timeoutMillis, TimeUnit.MILLISECONDS); in tryWaitForIdleSync()
109 final FutureTask<?> futureTask = new FutureTask<Void>(runnable, null); in tryRunOnMainSync() local
113 instrumentation.runOnMainSync(futureTask); in tryRunOnMainSync()
118 futureTask.get(timeoutMillis, TimeUnit.MILLISECONDS); in tryRunOnMainSync()
DBaseUiElement.java184 protected abstract void doPerformAndWait(FutureTask<Boolean> futureTask, long timeoutMillis); in doPerformAndWait() argument
187 FutureTask<Boolean> futureTask = new FutureTask<Boolean>(new Callable<Boolean>() { in performAndWait() local
193 doPerformAndWait(futureTask, action.getTimeoutMillis()); in performAndWait()
196 return futureTask.get(); in performAndWait()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/util/
DRobolectricBackgroundExecutorService.java56 private <T> Future<T> schedule(final FutureTask<T> futureTask) { in schedule() argument
60 futureTask.run(); in schedule()
64 return futureTask; in schedule()
/external/droiddriver/src/com/google/android/droiddriver/runner/
DTestRunner.java194 final FutureTask<?> futureTask = new FutureTask<Void>(runnable, null); in runOnMainSyncWithTimeLimit() local
198 runOnMainSync(futureTask); in runOnMainSyncWithTimeLimit()
203 futureTask.get(timeoutMillis, TimeUnit.MILLISECONDS); in runOnMainSyncWithTimeLimit()
209 futureTask.cancel(false); in runOnMainSyncWithTimeLimit()
/external/smack/src/org/jivesoftware/smackx/bytestreams/socks5/
DSocks5Client.java73 FutureTask<Socket> futureTask = new FutureTask<Socket>(new Callable<Socket>() { in getSocket() local
96 Thread executor = new Thread(futureTask); in getSocket()
101 return futureTask.get(timeout, TimeUnit.MILLISECONDS); in getSocket()
/external/droiddriver/src/com/google/android/droiddriver/uiautomation/
DUiAutomationElement.java183 protected void doPerformAndWait(final FutureTask<Boolean> futureTask, final long timeoutMillis) { in doPerformAndWait() argument
189 uiAutomation.executeAndWaitForEvent(futureTask, ANY_EVENT_FILTER, timeoutMillis); in doPerformAndWait()
/external/droiddriver/src/com/google/android/droiddriver/instrumentation/
DViewElement.java277 protected void doPerformAndWait(FutureTask<Boolean> futureTask, long timeoutMillis) { in doPerformAndWait() argument
278 futureTask.run(); in doPerformAndWait()