Home
last modified time | relevance | path

Searched refs:future (Results 1 – 6 of 6) sorted by relevance

/cts/tests/tests/hardware/src/android/hardware/cts/helpers/sensoroperations/
DParallelSensorOperation.java98 Future<SensorOperation> future = executor.submit(new Callable<SensorOperation>() { in execute() local
105 futures.add(future); in execute()
118 Future<SensorOperation> future = futures.get(i); in execute() local
120 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() argument
167 return future.get(); in getFutureResult()
171 return future.get(waitTimeNs, TimeUnit.NANOSECONDS); in getFutureResult()
/cts/tests/tests/accounts/src/android/accounts/cts/
DAccountManagerUnaffiliatedAuthenticatorTests.java210 AccountManagerFuture<Account[]> future = mAccountManager.getAccountsByTypeAndFeatures( in testGetAccountsByTypeAndFeatures() local
215 Account[] accounts = future.getResult(); in testGetAccountsByTypeAndFeatures()
/cts/tests/tests/media/src/android/media/cts/
DMediaPlayerFlakyNetworkTest.java231 FutureTask<MediaPlayer> future = new FutureTask<MediaPlayer>(callable); in createMediaPlayerOnMainThread() local
232 getInstrumentation().runOnMainSync(future); in createMediaPlayerOnMainThread()
233 return future.get(); in createMediaPlayerOnMainThread()
/cts/tests/tests/permission/src/android/permission/cts/
DFileSystemPermissionTest.java658 Future<Boolean> future = null; in tryFileOpenRead() local
662 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()
/cts/tools/tradefed-host/
DREADME82 be forthcoming in the near future.
/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyPairGeneratorTest.java1396 Future<Certificate[]> future = executor.submit(new Callable<Certificate[]>() { in assertSSLConnectionWithClientAuth() local
1411 Certificate[] usedClientCerts = future.get(); in assertSSLConnectionWithClientAuth()