Home
last modified time | relevance | path

Searched refs:future (Results 1 – 7 of 7) 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.java222 FutureTask<MediaPlayer> future = new FutureTask<MediaPlayer>(callable); in createMediaPlayerOnMainThread() local
223 getInstrumentation().runOnMainSync(future); in createMediaPlayerOnMainThread()
224 return future.get(); in createMediaPlayerOnMainThread()
/cts/tests/tests/permission/src/android/permission/cts/
DFileSystemPermissionTest.java703 Future<Boolean> future = null; in tryFileOpenRead() local
707 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()
/cts/tools/cts-tradefed/
DREADME82 be forthcoming in the near future.
/cts/tools/tradefed-host/
DREADME82 be forthcoming in the near future.
/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyPairGeneratorTest.java1423 Future<Certificate[]> future = executor.submit(new Callable<Certificate[]>() { in assertSSLConnectionWithClientAuth() local
1438 Certificate[] usedClientCerts = future.get(); in assertSSLConnectionWithClientAuth()