Searched refs:future (Results 1 – 7 of 7) 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()
222 FutureTask<MediaPlayer> future = new FutureTask<MediaPlayer>(callable); in createMediaPlayerOnMainThread() local223 getInstrumentation().runOnMainSync(future); in createMediaPlayerOnMainThread()224 return future.get(); in createMediaPlayerOnMainThread()
703 Future<Boolean> future = null; in tryFileOpenRead() local707 future = executor.submit(readFile); in tryFileOpenRead()710 completed = future.get(3, TimeUnit.SECONDS); in tryFileOpenRead()720 if (future != null) { in tryFileOpenRead()721 future.cancel(true); in tryFileOpenRead()
82 be forthcoming in the near future.
1423 Future<Certificate[]> future = executor.submit(new Callable<Certificate[]>() { in assertSSLConnectionWithClientAuth() local1438 Certificate[] usedClientCerts = future.get(); in assertSSLConnectionWithClientAuth()