Home
last modified time | relevance | path

Searched refs:mFuture (Results 1 – 10 of 10) sorted by relevance

/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DFutureConnection.java35 private volatile CompletableFuture<IBinder> mFuture = new CompletableFuture<>(); field in FutureConnection
42 return mConverter.apply(mFuture.get(timeoutMs, TimeUnit.MILLISECONDS)); in get()
47 return mConverter.apply(mFuture.getNow(null)); in getCurrent()
52 mFuture.complete(service); in onServiceConnected()
58 mFuture = new CompletableFuture<>(); in onServiceDisconnected()
/cts/tests/appsearch/testutils/src/android/app/appsearch/testutil/
DBatchResultCallbackAdapter.java26 private final SettableFuture<AppSearchBatchResult<K, V>> mFuture; field in BatchResultCallbackAdapter
29 mFuture = future; in BatchResultCallbackAdapter()
34 mFuture.set(result); in onResult()
39 mFuture.setException(t); in onSystemError()
/cts/tests/app/shared/src/android/app/stubs/shared/
DFutureServiceConnection.java30 private volatile CompletableFuture<IBinder> mFuture = new CompletableFuture<>(); field in FutureServiceConnection
33 return mFuture.get(timeoutMs, TimeUnit.MILLISECONDS); in get()
38 mFuture.complete(service); in onServiceConnected()
44 mFuture = new CompletableFuture<>(); in onServiceDisconnected()
/cts/tests/framework/base/windowmanager/shared/src/android/server/wm/shared/
DBlockingResultReceiver.java35 private final CompletableFuture<Pair<Integer, Bundle>> mFuture = new CompletableFuture<>(); field in BlockingResultReceiver
43 mFuture.complete(new Pair<>(code, data)); in onReceiveResult()
48 return mFuture.get(timeoutMs, TimeUnit.MILLISECONDS).second; in getData()
53 return mFuture.get(timeoutMs, TimeUnit.MILLISECONDS).first; in getCode()
/cts/common/device-side/bedstead/remoteframeworkclasses/src/types/main/java/com/android/bedstead/remoteframeworkclasses/
DAccountManagerFutureWrapper.java42 private final SimpleAccountManagerFuture<V> mFuture = new SimpleAccountManagerFuture<>(); field in AccountManagerFutureWrapper
83 return mFuture; in getFuture()
88 mFuture.setResult(result); in onResult()
93 mFuture.setException(throwable); in onException()
/cts/tests/tests/media/audio/modules/audiorecordpermissiontests/lib/src/android/media/audio/cts/audiorecordpermissiontests/common/
DRecordService.kt48 var mFuture : Future<Any>? = null variable in android.media.audio.cts.audiorecordpermissiontests.common.RecordService
65 mFuture = mExecutor.submit(::record, Object()) in onStartCommand()
100 mFuture!!.get() in cleanup()
101 mFuture = null in cleanup()
/cts/tests/tests/telecom-apps/Utils/src/android/telecom/cts/apps/
DBindUtils.java54 private final CompletableFuture<IAppControl> mFuture; field in BindUtils.TelecomAppServiceConnection
57 mFuture = future; in TelecomAppServiceConnection()
63 mFuture.complete(IAppControl.Stub.asInterface(service)); in onServiceConnected()
69 mFuture.complete(null); in onServiceDisconnected()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DVisualVoicemailServiceTest.java554 private CompletableFuture<Boolean> mFuture = new CompletableFuture<>(); field in VisualVoicemailServiceTest.SmsBroadcastReceiver
592 mFuture.complete(true); in onReceive()
597 mFuture.get(timeoutMillis, TimeUnit.MILLISECONDS); in assertReceived()
605 mFuture.get(timeoutMillis, TimeUnit.MILLISECONDS); in assertNotReceived()
620 public CompletableFuture<Boolean> mFuture = new CompletableFuture<>(); field in VisualVoicemailServiceTest.SentSmsObserver
631 mFuture.get(EVENT_NOT_RECEIVED_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in assertNotChanged()
653 mFuture.complete(true); in onChange()
/cts/tests/app/src/android/app/cts/
DCloseSystemDialogsTest.java519 private final CompletableFuture<Integer> mFuture; field in FutureReceiver
523 mFuture = future; in FutureReceiver()
528 mFuture.complete(resultCode); in onReceiveResult()
/cts/tests/tests/webkit/src/android/webkit/cts/
DWebViewTest.java1318 private final SettableFuture<Integer> mFuture; field in WebViewTest.WaitForFindResultsListener
1325 mFuture = SettableFuture.create(); in WaitForFindResultsListener()
1333 return mFuture; in future()
1345 mFuture.setException(t); in onFindResultReceived()
1352 mFuture.set(numberOfMatches); in onFindResultReceived()
1448 private SettableFuture<Integer> mFuture; in testDocumentHasImages() field in WebViewTest.DocumentHasImageCheckHandler
1452 mFuture = SettableFuture.create(); in testDocumentHasImages()
1457 mFuture.set(msg.arg1); in testDocumentHasImages()
1461 return mFuture; in testDocumentHasImages()