Home
last modified time | relevance | path

Searched refs:jc (Results 1 – 25 of 28) sorted by relevance

12

/packages/apps/Gallery2/src/com/android/gallery3d/data/
DDecodeUtils.java60 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 …]
DUriImage.java79 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 …]
DImageCacheRequest.java53 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
DDownloadUtils.java34 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()
DBucketHelper.java89 JobContext jc, ContentResolver resolver, int type) { in loadBucketEntries() argument
91 return loadBucketEntriesFromFilesTable(jc, resolver, type); in loadBucketEntries()
93 return loadBucketEntriesFromImagesAndVideoTable(jc, resolver, type); in loadBucketEntries()
97 private static void updateBucketEntriesFromTable(JobContext jc, in updateBucketEntriesFromTable() argument
124 JobContext jc, ContentResolver resolver, int type) { in loadBucketEntriesFromImagesAndVideoTable() argument
128 jc, resolver, Images.Media.EXTERNAL_CONTENT_URI, buckets); in loadBucketEntriesFromImagesAndVideoTable()
132 jc, resolver, Video.Media.EXTERNAL_CONTENT_URI, buckets); in loadBucketEntriesFromImagesAndVideoTable()
146 JobContext jc, ContentResolver resolver, int type) { in loadBucketEntriesFromFilesTable() argument
174 if (jc.isCancelled()) return null; in loadBucketEntriesFromFilesTable()
DDownloadCache.java114 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 …]
DLocalImage.java190 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()
DLocalAlbumSet.java105 public ArrayList<MediaSet> run(JobContext jc) { in run() argument
109 jc, mApplication.getContentResolver(), mType); in run()
111 if (jc.isCancelled()) return null; in run()
DSnailItem.java43 public Bitmap run(JobContext jc) { in requestImage()
54 public BitmapRegionDecoder run(JobContext jc) {
DBytesBufferPool.java40 public void readFrom(JobContext jc, FileDescriptor fd) throws IOException { in readFrom() argument
48 if (rc < 0 || jc.isCancelled()) return; in readFrom()
DLocalVideo.java170 public Bitmap onDecodeOriginal(JobContext jc, int type) { in onDecodeOriginal() argument
172 if (bitmap == null || jc.isCancelled()) return null; in onDecodeOriginal()
DPanoramaMetadataJob.java37 public PanoramaMetadata run(JobContext jc) { in run() argument
DActionImage.java60 public Bitmap run(JobContext jc) { in run() argument
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DActionModeHandler.java90 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 …]
DAlbumLabelMaker.java144 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()
DTileImageView.java768 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()
DMenuExecutor.java370 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()
DCacheStorageUsageInfo.java56 public void loadStorageInfo(JobContext jc) { in loadStorageInfo() argument
DDetailsAddressResolver.java47 public Address run(JobContext jc) { in run() argument
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DSlideshowDataAdapter.java96 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()
DManageCachePage.java249 public Void run(JobContext jc) {
250 mCacheStorageInfo.loadStorageInfo(jc);
251 if (!jc.isCancelled()) {
DPhotoDataAdapter.java699 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/
DJobLimiter.java104 public T run(JobContext jc) { in run() argument
112 result = job.run(jc); in run()
DGalleryUtils.java191 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/
DThreadPool.java45 public T run(JobContext jc); in run() argument

12