Home
last modified time | relevance | path

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

1234

/frameworks/base/core/tests/coretests/src/android/animation/
DAutoCancelTest.java66 private void setupAnimators(long startDelay, boolean startLater, final FutureWaiter future) { in setupAnimators() argument
88 future.set(false); in setupAnimators()
102 future.set(false); in setupAnimators()
110 future.release(); in setupAnimators()
132 final FutureWaiter future = new FutureWaiter(); in testAutoCancel() local
135 setupAnimators(0, false, future); in testAutoCancel()
137 future.setException(e); in testAutoCancel()
140 assertTrue(future.get(FUTURE_TIMEOUT, TimeUnit.MILLISECONDS)); in testAutoCancel()
146 final FutureWaiter future = new FutureWaiter(); in testAutoCancelDelayed() local
149 setupAnimators(START_DELAY, false, future); in testAutoCancelDelayed()
[all …]
DEventsTest.java81 public Canceler(Animator anim, FutureWaiter future) { in Canceler() argument
83 mFuture = future; in Canceler()
111 public Ender(Animator anim, FutureWaiter future) { in Ender() argument
113 mFuture = future; in Ender()
134 public Pauser(Animator anim, FutureWaiter future) { in Pauser() argument
136 mFuture = future; in Pauser()
157 public Resumer(Animator anim, FutureWaiter future) { in Resumer() argument
159 mFuture = future; in Resumer()
180 public FutureReleaseListener(FutureWaiter future) { in FutureReleaseListener() argument
181 mFuture = future; in FutureReleaseListener()
[all …]
DViewPropertyAnimatorTest.java80 public Canceler(ViewPropertyAnimator anim, FutureWaiter future) { in Canceler() argument
82 mFuture = future; in Canceler()
109 public FutureReleaseListener(FutureWaiter future) { in FutureReleaseListener() argument
110 mFuture = future; in FutureReleaseListener()
118 public FutureReleaseListener(FutureWaiter future, long timeout) { in FutureReleaseListener() argument
119 mFuture = future; in FutureReleaseListener()
/frameworks/base/services/core/java/com/android/server/role/
DRoleManagerShellCommand.java114 CallbackFuture future = new CallbackFuture(); in runAddRoleHolder() local
116 future.createCallback()); in runAddRoleHolder()
117 return future.waitForResult(); in runAddRoleHolder()
126 CallbackFuture future = new CallbackFuture(); in runRemoveRoleHolder() local
128 future.createCallback()); in runRemoveRoleHolder()
129 return future.waitForResult(); in runRemoveRoleHolder()
137 CallbackFuture future = new CallbackFuture(); in runClearRoleHolders() local
138 mRoleManager.clearRoleHoldersAsUser(roleName, flags, userId, future.createCallback()); in runClearRoleHolders()
139 return future.waitForResult(); in runClearRoleHolders()
/frameworks/base/libs/usb/api/
Dcurrent.txt2 package com.android.future.usb {
14 method public static com.android.future.usb.UsbAccessory getAccessory(android.content.Intent);
15 method public com.android.future.usb.UsbAccessory[] getAccessoryList();
16 method public static com.android.future.usb.UsbManager getInstance(android.content.Context);
17 method public boolean hasPermission(com.android.future.usb.UsbAccessory);
18 … method public android.os.ParcelFileDescriptor openAccessory(com.android.future.usb.UsbAccessory);
19 …method public void requestPermission(com.android.future.usb.UsbAccessory, android.app.PendingInten…
/frameworks/base/services/robotests/backup/src/com/android/server/backup/remote/
DFutureBackupCallbackTest.java34 CompletableFuture<RemoteResult> future = new CompletableFuture<>(); in testOperationComplete_completesFuture() local
35 FutureBackupCallback callback = new FutureBackupCallback(future); in testOperationComplete_completesFuture()
39 assertThat(future.get()).isEqualTo(RemoteResult.of(7)); in testOperationComplete_completesFuture()
DRemoteCallTest.java253 CompletableFuture<T> future = new CompletableFuture<>(); in runInWorkerThreadAsync() local
254 new Thread(() -> future.complete(uncheck(supplier)), "test-worker-thread").start(); in runInWorkerThreadAsync()
255 return future; in runInWorkerThreadAsync()
/frameworks/base/keystore/java/android/security/
DKeyStore.java533 final private CompletableFuture<KeyCharacteristicsCallbackResult> future = field in KeyStore.KeyCharacteristicsPromise
539 future.complete( in onFinished()
543 return future; in getFuture()
547 future.completeExceptionally(new RemoteException("Keystore died")); in binderDied()
800 … final private CompletableFuture<ExportResult> future = new CompletableFuture<ExportResult>(); field in KeyStore.ExportKeyPromise
803 future.complete(exportKeyResult); in onFinished()
806 return future; in getFuture()
810 future.completeExceptionally(new RemoteException("Keystore died")); in binderDied()
845 …final private CompletableFuture<OperationResult> future = new CompletableFuture<OperationResult>(); field in KeyStore.OperationPromise
848 future.complete(operationResult); in onFinished()
[all …]
/frameworks/base/libs/hwui/hwui/
DAnimatedImageThread.h35 std::future<AnimatedImageDrawable::Snapshot> decodeNextFrame(
37 std::future<AnimatedImageDrawable::Snapshot> reset(const sk_sp<AnimatedImageDrawable>&);
DAnimatedImageThread.cpp34 std::future<AnimatedImageDrawable::Snapshot> AnimatedImageThread::decodeNextFrame( in decodeNextFrame()
39 std::future<AnimatedImageDrawable::Snapshot> AnimatedImageThread::reset( in reset()
/frameworks/base/services/backup/java/com/android/server/backup/remote/
DFutureBackupCallback.java31 FutureBackupCallback(CompletableFuture<RemoteResult> future) { in FutureBackupCallback() argument
32 mFuture = future; in FutureBackupCallback()
/frameworks/base/telecomm/java/android/telecom/
DDefaultDialerManager.java79 CompletableFuture<Void> future = new CompletableFuture<>(); in setDefaultDialerApplication() local
82 future.complete(null); in setDefaultDialerApplication()
84 future.completeExceptionally(new RuntimeException()); in setDefaultDialerApplication()
90 future.get(5, TimeUnit.SECONDS); in setDefaultDialerApplication()
/frameworks/base/libs/usb/
DAndroid.bp18 name: "com.android.future.usb.accessory",
20 api_packages: ["com.android.future.usb"],
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/
DMtpManagerTest.java63 final FutureTask<Boolean> future = new FutureTask<Boolean>( in testCancelEvent() local
76 final Thread thread = new Thread(future); in testCancelEvent()
80 assertTrue(future.get(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testCancelEvent()
/frameworks/base/services/net/java/android/net/
DIpMemoryStore.java72 mTailNode.getAndUpdate(future -> future.handle((store, exception) -> { in runWhenServiceReady()
/frameworks/base/core/java/com/android/internal/util/
DConcurrentUtils.java81 public static <T> T waitForFutureNoInterrupt(Future<T> future, String description) {
83 return future.get();
/frameworks/base/packages/Tethering/common/TetheringLib/api/
Dsystem-lint-baseline.txt13 …Callbacks must be abstract class instead of interface to enable extension in future API levels: St…
15 …Callbacks must be abstract class instead of interface to enable extension in future API levels: Te…
Dmodule-lib-lint-baseline.txt23 …Callbacks must be abstract class instead of interface to enable extension in future API levels: St…
25 …Callbacks must be abstract class instead of interface to enable extension in future API levels: Te…
/frameworks/av/services/audioflinger/
DNBAIO_Tee.cpp173 std::string, std::future<status_t>>> mFutures; // GUARDED_BY(mLock)
370 std::future<status_t> &future = it->second; in launch() local
371 if (!future.valid() || in launch()
372 future.wait_for(std::chrono::seconds(0)) == std::future_status::ready) { in launch()
/frameworks/base/core/java/android/accounts/
DAccountManagerCallback.java19 void run(AccountManagerFuture<V> future); in run() argument
DGrantCredentialsPermissionActivity.java91 public void run(AccountManagerFuture<String> future) { in onCreate()
93 final String authTokenLabel = future.getResult(); in onCreate()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DSysuiTestCase.java113 Future<?> future = Dependency.get(UiOffloadThread.class).submit(() -> {}); in waitForUiOffloadThread() local
115 future.get(); in waitForUiOffloadThread()
/frameworks/base/libs/hwui/tests/unit/
DCommonPoolTests.cpp43 std::array<std::future<pid_t>, 64> futures; in TEST()
106 std::array<std::future<void>, QUEUE_COUNT> futures; in TEST()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DPictureCaptureDemo.java145 Future<Picture> future = mExecutor.submit(() -> Picture.createFromStream(inputStream)); in deepCopy() local
148 return future.get(); in deepCopy()
/frameworks/compile/slang/tests/P_warnings_deprecated/
Dstderr.txt.expect3 …n' is deprecated: This function is deprecated and will be removed from the SDK in a future release.

1234