Home
last modified time | relevance | path

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

/packages/apps/Gallery2/src/com/android/gallery3d/util/
DJobLimiter.java53 public synchronized void setFuture(Future<T> future) { in setFuture() argument
55 mDelegate = future; in setFuture()
137 JobWrapper<T> future = new JobWrapper<T>(Utils.checkNotNull(job), listener); in submit() local
138 mJobs.addLast(future); in submit()
140 return future; in submit()
155 public synchronized void onFutureDone(Future future) { in onFutureDone() argument
DFutureListener.java20 public void onFutureDone(Future<T> future); in onFutureDone() argument
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DSinglePhotoDataAdapter.java87 public void onFutureDone(Future<BitmapRegionDecoder> future) {
88 BitmapRegionDecoder decoder = future.get();
103 public void onFutureDone(Future<Bitmap> future) {
105 mHandler.obtainMessage(MSG_UPDATE_IMAGE, future));
124 private void onDecodeThumbComplete(Future<Bitmap> future) { in onDecodeThumbComplete() argument
126 Bitmap backup = future.get(); in onDecodeThumbComplete()
DPhotoDataAdapter.java291 private void updateScreenNail(Path path, Future<ScreenNail> future) { in updateScreenNail() argument
293 ScreenNail screenNail = future.get(); in updateScreenNail()
295 if (entry == null || entry.screenNailTask != future) { in updateScreenNail()
325 private void updateFullImage(Path path, Future<BitmapRegionDecoder> future) { in updateFullImage() argument
327 if (entry == null || entry.fullImageTask != future) { in updateFullImage()
328 BitmapRegionDecoder fullImage = future.get(); in updateFullImage()
334 entry.fullImage = future.get(); in updateFullImage()
806 public void onFutureDone(Future<BitmapRegionDecoder> future) { in onFutureDone() argument
807 mFuture = future; in onFutureDone()
828 public void onFutureDone(Future<ScreenNail> future) { in onFutureDone() argument
[all …]
DCropImage.java540 public void onFutureDone(Future<Intent> future) { in onSaveClicked()
542 if (future.isCancelled()) return; in onSaveClicked()
543 Intent intent = future.get(); in onSaveClicked()
822 public void onFutureDone(Future<BitmapRegionDecoder> future) { in initializeData()
824 BitmapRegionDecoder decoder = future.get(); in initializeData()
825 if (future.isCancelled()) { in initializeData()
836 public void onFutureDone(Future<Bitmap> future) { in initializeData()
838 Bitmap bitmap = future.get(); in initializeData()
839 if (future.isCancelled()) { in initializeData()
DSlideshowPage.java137 public void onFutureDone(Future<Slide> future) { in loadNextBitmap()
138 mPendingSlide = future.get(); in loadNextBitmap()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DBitmapLoader.java48 public void onFutureDone(Future<Bitmap> future) { in onFutureDone() argument
51 mBitmap = future.get(); in onFutureDone()
59 if (future.isCancelled() && mBitmap == null) { in onFutureDone()
DDetailsAddressResolver.java66 public void onFutureDone(final Future<Address> future) { in resolveAddress()
68 if (!future.isCancelled()) { in resolveAddress()
71 updateLocation(future.get()); in resolveAddress()
/packages/apps/Contacts/src/com/android/contacts/util/
DAccountPromptUtils.java107 public void run(AccountManagerFuture<Bundle> future) { in getAccountManagerCallback()
108 if (future.isCancelled()) { in getAccountManagerCallback()
114 Bundle result = future.getResult(); in getAccountManagerCallback()
/packages/apps/Contacts/tests/src/com/android/contacts/util/
DIntegrationTestUtils.java94 FutureTask<T> future = new FutureTask<T>(callable);
95 mInstrumentation.waitForIdle(future);
97 return future.get();
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DMtpDeviceSet.java140 public synchronized void onFutureDone(Future<ArrayList<MediaSet>> future) { in onFutureDone() argument
141 if (future != mLoadTask) return; in onFutureDone()
142 mLoadBuffer = future.get(); in onFutureDone()
DLocalAlbumSet.java292 public synchronized void onFutureDone(Future<ArrayList<MediaSet>> future) { in onFutureDone() argument
293 if (mLoadTask != future) return; // ignore, wait for the latest task in onFutureDone()
294 mLoadBuffer = future.get(); in onFutureDone()
DDownloadCache.java285 public void onFutureDone(Future<File> future) { in onFutureDone() argument
286 File file = future.get(); in onFutureDone()
292 if (future.isCancelled()) { in onFutureDone()
DMediaSet.java300 for (Future<Integer> future : mFutures) future.cancel(); in cancel()
/packages/apps/Settings/src/com/android/settings/accounts/
DAddAccountSettings.java69 public void run(AccountManagerFuture<Bundle> future) {
71 Bundle bundle = future.getResult();
DAccountSyncSettings.java98 public void run(AccountManagerFuture<Boolean> future) { in onCreateDialog()
105 if (future.getResult() == true) { in onCreateDialog()
/packages/apps/Email/tests/src/com/android/email/
DAccountTestCase.java85 AccountManagerFuture<Boolean> future = in deleteAccountManagerAccount() local
88 future.getResult(); in deleteAccountManagerAccount()
/packages/apps/Exchange/tests/src/com/android/exchange/
DCalendarSyncEnablerTest.java251 AccountManagerFuture<Boolean> future = in deleteAccountManagerAccount() local
254 future.getResult(); in deleteAccountManagerAccount()
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/
DCalendarSyncEnablerTest.java251 AccountManagerFuture<Boolean> future = in deleteAccountManagerAccount() local
254 future.getResult(); in deleteAccountManagerAccount()
/packages/apps/Email/src/com/android/email/activity/setup/
DAccountSetupOptions.java275 public void run(AccountManagerFuture<Bundle> future) {
277 Bundle bundle = future.getResult();
/packages/apps/Calendar/src/com/android/calendar/
DAllInOneActivity.java223 public void run(AccountManagerFuture<Bundle> future) { in onQueryComplete()
224 if (future.isCancelled()) { in onQueryComplete()
228 Bundle result = future.getResult(); in onQueryComplete()