/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | DecodeUtils.java | 60 public static Bitmap decode(JobContext jc, FileDescriptor fd, Options options) { in decode() argument 62 jc.setCancelListener(new DecodeCanceller(options)); in decode() 68 public static void decodeBounds(JobContext jc, FileDescriptor fd, in decodeBounds() argument 72 jc.setCancelListener(new DecodeCanceller(options)); in decodeBounds() 77 public static Bitmap decode(JobContext jc, byte[] bytes, Options options) { in decode() argument 78 return decode(jc, bytes, 0, bytes.length, options); in decode() 81 public static Bitmap decode(JobContext jc, byte[] bytes, int offset, in decode() argument 84 jc.setCancelListener(new DecodeCanceller(options)); in decode() 90 public static void decodeBounds(JobContext jc, byte[] bytes, int offset, in decodeBounds() argument 94 jc.setCancelListener(new DecodeCanceller(options)); in decodeBounds() [all …]
|
D | UriImage.java | 79 private void openFileOrDownloadTempFile(JobContext jc) { in openFileOrDownloadTempFile() argument 80 int state = openOrDownloadInner(jc); in openFileOrDownloadTempFile() 93 private int openOrDownloadInner(JobContext jc) { in openOrDownloadInner() argument 107 if (jc.isCancelled()) return STATE_INIT; in openOrDownloadInner() 116 mCacheEntry = mApplication.getDownloadCache().download(jc, url); in openOrDownloadInner() 117 if (jc.isCancelled()) return STATE_INIT; in openOrDownloadInner() 137 private boolean prepareInputFile(JobContext jc) { in prepareInputFile() argument 138 jc.setCancelListener(new CancelListener() { in prepareInputFile() 149 if (jc.isCancelled()) return false; in prepareInputFile() 167 openFileOrDownloadTempFile(jc); in prepareInputFile() [all …]
|
D | ImageCacheRequest.java | 53 public Bitmap run(JobContext jc) { in run() argument 59 if (jc.isCancelled()) return null; in run() 65 bitmap = DecodeUtils.decodeUsingPool(jc, in run() 68 bitmap = DecodeUtils.decodeUsingPool(jc, in run() 71 if (bitmap == null && !jc.isCancelled()) { in run() 79 Bitmap bitmap = onDecodeOriginal(jc, mType); in run() 80 if (jc.isCancelled()) return null; in run() 92 if (jc.isCancelled()) return null; in run() 95 if (jc.isCancelled()) return null; in run() 101 public abstract Bitmap onDecodeOriginal(JobContext jc, int targetSize); in onDecodeOriginal() argument
|
D | DownloadUtils.java | 34 public static boolean requestDownload(JobContext jc, URL url, File file) { in requestDownload() argument 38 return download(jc, url, fos); in requestDownload() 46 public static void dump(JobContext jc, InputStream is, OutputStream os) in dump() argument 51 jc.setCancelListener(new CancelListener() { in dump() 58 if (jc.isCancelled()) throw new InterruptedIOException(); in dump() 62 jc.setCancelListener(null); in dump() 66 public static boolean download(JobContext jc, URL url, OutputStream output) { in download() argument 70 dump(jc, input, output); in download()
|
D | BucketHelper.java | 75 JobContext jc, ContentResolver resolver, int type) { in loadBucketEntries() argument 77 return loadBucketEntriesFromFilesTable(jc, resolver, type); in loadBucketEntries() 79 return loadBucketEntriesFromImagesAndVideoTable(jc, resolver, type); in loadBucketEntries() 83 private static void updateBucketEntriesFromTable(JobContext jc, in updateBucketEntriesFromTable() argument 110 JobContext jc, ContentResolver resolver, int type) { in loadBucketEntriesFromImagesAndVideoTable() argument 114 jc, resolver, Images.Media.EXTERNAL_CONTENT_URI, buckets); in loadBucketEntriesFromImagesAndVideoTable() 118 jc, resolver, Video.Media.EXTERNAL_CONTENT_URI, buckets); in loadBucketEntriesFromImagesAndVideoTable() 132 JobContext jc, ContentResolver resolver, int type) { in loadBucketEntriesFromFilesTable() argument 158 if (jc.isCancelled()) return null; in loadBucketEntriesFromFilesTable()
|
D | DownloadCache.java | 114 public Entry download(JobContext jc, URL url) { in download() argument 148 return proxy.get(jc); in download() 315 public File run(JobContext jc) { in run() argument 317 jc.setMode(ThreadPool.MODE_NETWORK); in run() 323 jc.setMode(ThreadPool.MODE_NETWORK); in run() 324 boolean downloaded = DownloadUtils.requestDownload(jc, url, tempFile); in run() 325 jc.setMode(ThreadPool.MODE_NONE); in run() 330 jc.setMode(ThreadPool.MODE_NONE); in run() 348 public synchronized Entry get(JobContext jc) { in get() argument 349 jc.setCancelListener(new CancelListener() { in get() [all …]
|
D | LocalImage.java | 190 public Bitmap onDecodeOriginal(JobContext jc, final int type) { in onDecodeOriginal() argument 209 jc, thumbData, options, targetSize); in onDecodeOriginal() 214 return DecodeUtils.decodeThumbnail(jc, mLocalFilePath, options, targetSize, type); in onDecodeOriginal() 232 public BitmapRegionDecoder run(JobContext jc) { in run() argument 233 return DecodeUtils.createBitmapRegionDecoder(jc, mLocalFilePath, false); in run()
|
D | LocalAlbumSet.java | 105 public ArrayList<MediaSet> run(JobContext jc) { in run() argument 109 jc, mApplication.getContentResolver(), mType); in run() 111 if (jc.isCancelled()) return null; in run()
|
D | SnailItem.java | 43 public Bitmap run(JobContext jc) { in requestImage() 54 public BitmapRegionDecoder run(JobContext jc) {
|
D | BytesBufferPool.java | 40 public void readFrom(JobContext jc, FileDescriptor fd) throws IOException { in readFrom() argument 48 if (rc < 0 || jc.isCancelled()) return; in readFrom()
|
D | LocalVideo.java | 170 public Bitmap onDecodeOriginal(JobContext jc, int type) { in onDecodeOriginal() argument 172 if (bitmap == null || jc.isCancelled()) return null; in onDecodeOriginal()
|
D | PanoramaMetadataJob.java | 37 public PanoramaMetadata run(JobContext jc) { in run() argument
|
D | ActionImage.java | 60 public Bitmap run(JobContext jc) { in run() argument
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | ActionModeHandler.java | 90 public GetAllPanoramaSupports(ArrayList<MediaObject> mediaObjects, JobContext jc) { in GetAllPanoramaSupports() argument 91 mJobContext = jc; in GetAllPanoramaSupports() 265 private ArrayList<MediaObject> getSelectedMediaObjects(JobContext jc) { in getSelectedMediaObjects() argument 275 if (jc.isCancelled()) { in getSelectedMediaObjects() 320 private Intent computePanoramaSharingIntent(JobContext jc, int maxItems) { in computePanoramaSharingIntent() argument 329 if (jc.isCancelled()) return null; in computePanoramaSharingIntent() 350 private Intent computeSharingIntent(JobContext jc, int maxItems) { in computeSharingIntent() argument 361 if (jc.isCancelled()) return null; in computeSharingIntent() 408 public Void run(final JobContext jc) { in updateSupportedOperation() 410 ArrayList<MediaObject> selected = getSelectedMediaObjects(jc); in updateSupportedOperation() [all …]
|
D | AlbumLabelMaker.java | 144 public Bitmap run(JobContext jc) { in run() argument 174 if (jc.isCancelled()) return null; in run() 183 if (jc.isCancelled()) return null; in run() 191 if (jc.isCancelled()) return null; in run()
|
D | TileImageView.java | 768 public Void run(JobContext jc) { in run() argument 769 jc.setMode(ThreadPool.MODE_NONE); in run() 770 jc.setCancelListener(mNotifier); in run() 771 while (!jc.isCancelled()) { in run() 775 if (tile == null && !jc.isCancelled()) { in run()
|
D | MenuExecutor.java | 370 DataManager manager, JobContext jc, int cmd, Path path) { in execute() argument 426 public Void run(JobContext jc) { in run() argument 433 if (jc.isCancelled()) { in run() 437 if (!execute(manager, jc, mOperation, id)) { in run()
|
D | CacheStorageUsageInfo.java | 56 public void loadStorageInfo(JobContext jc) { in loadStorageInfo() argument
|
D | DetailsAddressResolver.java | 47 public Address run(JobContext jc) { in run() argument
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | SlideshowDataAdapter.java | 96 public Void run(JobContext jc) { in run() argument 132 .run(jc); in run() 177 public Slide run(JobContext jc) { in nextSlide() 178 jc.setMode(ThreadPool.MODE_NONE); in nextSlide()
|
D | ManageCachePage.java | 249 public Void run(JobContext jc) { 250 mCacheStorageInfo.loadStorageInfo(jc); 251 if (!jc.isCancelled()) {
|
D | PhotoDataAdapter.java | 699 public ScreenNail run(JobContext jc) { in run() argument 711 Bitmap bitmap = mItem.requestImage(MediaItem.TYPE_THUMBNAIL).run(jc); in run() 712 if (jc.isCancelled()) return null; in run() 729 public BitmapRegionDecoder run(JobContext jc) { in run() argument 733 return mItem.requestLargeImage().run(jc); in run()
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
D | JobLimiter.java | 104 public T run(JobContext jc) { in run() argument 112 result = job.run(jc); in run()
|
D | GalleryUtils.java | 191 public static void fakeBusy(JobContext jc, int timeout) { in fakeBusy() argument 193 jc.setCancelListener(new CancelListener() { in fakeBusy() 200 jc.setCancelListener(null); in fakeBusy()
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/util/ |
D | ThreadPool.java | 45 public T run(JobContext jc); in run() argument
|