Searched refs:future (Results 1 – 6 of 6) sorted by relevance
98 Future<SensorOperation> future = executor.submit(new Callable<SensorOperation>() { in execute() local105 futures.add(future); in execute()118 Future<SensorOperation> future = futures.get(i); in execute() local120 SensorOperation operation = getFutureResult(future, executionTimeNs); in execute()131 future.cancel(true /* mayInterruptIfRunning */); in execute()164 private SensorOperation getFutureResult(Future<SensorOperation> future, Long timeoutNs) in getFutureResult() argument167 return future.get(); in getFutureResult()171 return future.get(waitTimeNs, TimeUnit.NANOSECONDS); in getFutureResult()
210 AccountManagerFuture<Account[]> future = mAccountManager.getAccountsByTypeAndFeatures( in testGetAccountsByTypeAndFeatures() local215 Account[] accounts = future.getResult(); in testGetAccountsByTypeAndFeatures()
231 FutureTask<MediaPlayer> future = new FutureTask<MediaPlayer>(callable); in createMediaPlayerOnMainThread() local232 getInstrumentation().runOnMainSync(future); in createMediaPlayerOnMainThread()233 return future.get(); in createMediaPlayerOnMainThread()
658 Future<Boolean> future = null; in tryFileOpenRead() local662 future = executor.submit(readFile); in tryFileOpenRead()665 completed = future.get(3, TimeUnit.SECONDS); in tryFileOpenRead()675 if (future != null) { in tryFileOpenRead()676 future.cancel(true); in tryFileOpenRead()
82 be forthcoming in the near future.
1396 Future<Certificate[]> future = executor.submit(new Callable<Certificate[]>() { in assertSSLConnectionWithClientAuth() local1411 Certificate[] usedClientCerts = future.get(); in assertSSLConnectionWithClientAuth()