/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | FutureConnection.java | 35 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/ |
D | BatchResultCallbackAdapter.java | 26 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/ |
D | FutureServiceConnection.java | 30 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/ |
D | BlockingResultReceiver.java | 35 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/ |
D | AccountManagerFutureWrapper.java | 42 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/ |
D | RecordService.kt | 48 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/ |
D | BindUtils.java | 54 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/ |
D | VisualVoicemailServiceTest.java | 554 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/ |
D | CloseSystemDialogsTest.java | 519 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/ |
D | WebViewTest.java | 1318 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()
|