Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/animation/
DEventsTest.java55 protected FutureWaiter mFuture; // Mechanism for waiting for the UI test to complete field in EventsTest
67 FutureWaiter mFuture; field in EventsTest.Canceler
70 mFuture = future; in Canceler()
77 mFuture.setException(new RuntimeException(e)); in run()
95 FutureWaiter mFuture; field in EventsTest.Ender
98 mFuture = future; in Ender()
105 mFuture.setException(new RuntimeException(e)); in run()
116 FutureWaiter mFuture; field in EventsTest.Pauser
119 mFuture = future; in Pauser()
126 mFuture.setException(new RuntimeException(e)); in run()
[all …]
DViewPropertyAnimatorTest.java54 protected FutureWaiter mFuture; // Mechanism for waiting for the UI test to complete field in ViewPropertyAnimatorTest
66 FutureWaiter mFuture; field in ViewPropertyAnimatorTest.Canceler
69 mFuture = future; in Canceler()
76 mFuture.setException(new RuntimeException(e)); in run()
94 FutureWaiter mFuture; field in ViewPropertyAnimatorTest.FutureReleaseListener
97 mFuture = future; in FutureReleaseListener()
106 mFuture = future; in FutureReleaseListener()
111 mFuture.release(); in FutureReleaseListener()
122 mFuture.release(); in onAnimationEnd()
183 mFuture = new FutureWaiter(); in setUp()
[all …]
DAnimatorSetEventsTest.java58 mFutureListener = new FutureReleaseListener(mFuture); in testPlayingCancelDuringChildDelay()
67 handler.postDelayed(new Canceler(animSet, mFuture), ANIM_DURATION + 250); in testPlayingCancelDuringChildDelay()
69 mFuture.setException(new RuntimeException(e)); in testPlayingCancelDuringChildDelay()
73 mFuture.get(getTimeout(), TimeUnit.MILLISECONDS); in testPlayingCancelDuringChildDelay()
/frameworks/volley/src/test/java/com/android/volley/toolbox/
DAndroidAuthenticatorTest.java42 private AccountManagerFuture<Bundle> mFuture; field in AndroidAuthenticatorTest
48 mFuture = mock(AccountManagerFuture.class); in setUp()
55 … when(mAccountManager.getAuthToken(mAccount, "cooltype", false, null, null)).thenReturn(mFuture); in failedGetAuthToken()
56 when(mFuture.getResult()).thenThrow(new AuthenticatorException("sadness!")); in failedGetAuthToken()
65 … when(mAccountManager.getAuthToken(mAccount, "cooltype", false, null, null)).thenReturn(mFuture); in resultContainsIntent()
66 when(mFuture.getResult()).thenReturn(bundle); in resultContainsIntent()
67 when(mFuture.isDone()).thenReturn(true); in resultContainsIntent()
68 when(mFuture.isCancelled()).thenReturn(false); in resultContainsIntent()
75 … when(mAccountManager.getAuthToken(mAccount, "cooltype", false, null, null)).thenReturn(mFuture); in missingAuthToken()
76 when(mFuture.getResult()).thenReturn(bundle); in missingAuthToken()
[all …]
/frameworks/base/libs/hwui/thread/
DTask.h37 Task(): mFuture(new Future<T>()) { } in Task()
41 return mFuture->get(); in getResult()
45 mFuture->produce(result); in setResult()
50 return mFuture; in future()
54 sp<Future<T> > mFuture;
/frameworks/support/v4/java/android/support/v4/content/
DModernAsyncTask.java80 private final FutureTask<Result> mFuture; field in ModernAsyncTask
132 mFuture = new FutureTask<Result>(mWorker) { in ModernAsyncTask()
278 return mFuture.isCancelled(); in isCancelled()
311 return mFuture.cancel(mayInterruptIfRunning); in cancel()
326 return mFuture.get(); in get()
346 return mFuture.get(timeout, unit); in get()
428 exec.execute(mFuture); in executeOnExecutor()
/frameworks/base/core/java/android/os/
DSynchronousResultReceiver.java45 private final CompletableFuture<Result> mFuture = new CompletableFuture<>(); field in SynchronousResultReceiver
54 mFuture.complete(new Result(resultCode, resultData)); in onReceiveResult()
67 return mFuture.get(timeoutMillis, TimeUnit.MILLISECONDS); in awaitResult()
DAsyncTask.java228 private final FutureTask<Result> mFuture; field in AsyncTask
310 mFuture = new FutureTask<Result>(mWorker) { in AsyncTask()
492 return mFuture.cancel(mayInterruptIfRunning); in cancel()
507 return mFuture.get(); in get()
527 return mFuture.get(timeout, unit); in get()
616 exec.execute(mFuture); in executeOnExecutor()
/frameworks/base/core/java/android/accounts/
DAccountManager.java2219 volatile AccountManagerFuture<Bundle> mFuture = null;
2254 mFuture = addAccount(mAccountType, mAuthTokenType, mFeatures,
2272 mFuture = getAuthToken(accounts[0], mAuthTokenType,
2275 mFuture = getAuthToken(accounts[0],
2288mFuture = getAuthToken(account, mAuthTokenType, mLoginOptions,