Searched refs:jc (Results 1 - 25 of 26) sorted by relevance

12

/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DDownloadUtils.java34 public static boolean requestDownload(JobContext jc, URL url, File file) { argument
38 return download(jc, url, fos);
46 public static void dump(JobContext jc, InputStream is, OutputStream os) argument
51 jc.setCancelListener(new CancelListener() {
57 if (jc.isCancelled()) throw new InterruptedIOException();
61 jc.setCancelListener(null);
65 public static boolean download(JobContext jc, URL url, OutputStream output) { argument
69 dump(jc, input, output);
H A DImageCacheRequest.java45 public Bitmap run(JobContext jc) { argument
54 if (jc.isCancelled()) return null;
60 bitmap = MediaItem.getMicroThumbPool().decode(jc,
63 bitmap = MediaItem.getThumbPool().decode(jc,
66 if (bitmap == null && !jc.isCancelled()) {
74 Bitmap bitmap = onDecodeOriginal(jc, mType);
75 if (jc.isCancelled()) return null;
87 if (jc.isCancelled()) return null;
90 if (jc.isCancelled()) return null;
96 public abstract Bitmap onDecodeOriginal(JobContext jc, in argument
[all...]
H A DDecodeUtils.java51 public static Bitmap decode(JobContext jc, FileDescriptor fd, Options options) { argument
53 jc.setCancelListener(new DecodeCanceller(options));
58 public static void decodeBounds(JobContext jc, FileDescriptor fd, argument
62 jc.setCancelListener(new DecodeCanceller(options));
67 public static Bitmap decode(JobContext jc, byte[] bytes, Options options) { argument
68 return decode(jc, bytes, 0, bytes.length, options);
71 public static Bitmap decode(JobContext jc, byte[] bytes, int offset, argument
74 jc.setCancelListener(new DecodeCanceller(options));
79 public static void decodeBounds(JobContext jc, byte[] bytes, int offset, argument
83 jc
88 decodeThumbnail( JobContext jc, String filePath, Options options, int targetSize, int type) argument
103 decodeThumbnail( JobContext jc, FileDescriptor fd, Options options, int targetSize, int type) argument
156 decodeIfBigEnough(JobContext jc, byte[] data, Options options, int targetSize) argument
184 createBitmapRegionDecoder( JobContext jc, byte[] bytes, int offset, int length, boolean shareable) argument
202 createBitmapRegionDecoder( JobContext jc, String filePath, boolean shareable) argument
212 createBitmapRegionDecoder( JobContext jc, FileDescriptor fd, boolean shareable) argument
222 createBitmapRegionDecoder( JobContext jc, InputStream is, boolean shareable) argument
[all...]
H A DUriImage.java77 private void openFileOrDownloadTempFile(JobContext jc) { argument
78 int state = openOrDownloadInner(jc);
91 private int openOrDownloadInner(JobContext jc) { argument
105 if (jc.isCancelled()) return STATE_INIT;
114 mCacheEntry = mApplication.getDownloadCache().download(jc, url);
115 if (jc.isCancelled()) return STATE_INIT;
135 private boolean prepareInputFile(JobContext jc) { argument
136 jc.setCancelListener(new CancelListener() {
146 if (jc.isCancelled()) return false;
164 openFileOrDownloadTempFile(jc);
169 run(JobContext jc) argument
187 run(JobContext jc) argument
[all...]
H A DSnailItem.java41 public Bitmap run(JobContext jc) {
51 public BitmapRegionDecoder run(JobContext jc) {
H A DBitmapPool.java97 private Bitmap findCachedBitmap(JobContext jc, argument
100 DecodeUtils.decodeBounds(jc, data, offset, length, options);
104 private Bitmap findCachedBitmap(JobContext jc, argument
107 DecodeUtils.decodeBounds(jc, fileDescriptor, options);
111 public Bitmap decode(JobContext jc, argument
117 ? findCachedBitmap(jc, data, offset, length, options) : null;
119 Bitmap bitmap = DecodeUtils.decode(jc, data, offset, length, options);
131 return DecodeUtils.decode(jc, data, offset, length, options);
137 public Bitmap decode(JobContext jc, argument
143 ? findCachedBitmap(jc, fileDescripto
[all...]
H A DBytesBufferPool.java40 public void readFrom(JobContext jc, FileDescriptor fd) throws IOException { argument
48 if (rc < 0 || jc.isCancelled()) return;
H A DMtpImage.java80 public Bitmap run(JobContext jc) {
87 return DecodeUtils.decode(jc, thumbnail, null);
95 public BitmapRegionDecoder run(JobContext jc) {
99 jc, bytes, 0, bytes.length, false);
H A DDownloadCache.java114 public Entry download(JobContext jc, URL url) { argument
148 return proxy.get(jc);
313 public File run(JobContext jc) { argument
315 jc.setMode(ThreadPool.MODE_NETWORK);
321 jc.setMode(ThreadPool.MODE_NETWORK);
322 boolean downloaded = DownloadUtils.requestDownload(jc, url, tempFile);
323 jc.setMode(ThreadPool.MODE_NONE);
328 jc.setMode(ThreadPool.MODE_NONE);
346 public synchronized Entry get(JobContext jc) { argument
347 jc
[all...]
H A DLocalAlbumSet.java142 private BucketEntry[] loadBucketEntries(JobContext jc) { argument
170 if (jc.isCancelled()) return null;
191 public ArrayList<MediaSet> run(JobContext jc) { argument
194 BucketEntry[] entries = loadBucketEntries(jc);
196 if (jc.isCancelled()) return null;
H A DLocalImage.java164 public Bitmap onDecodeOriginal(JobContext jc, final int type) { argument
183 jc, thumbData, options, targetSize);
188 return DecodeUtils.decodeThumbnail(jc, mLocalFilePath, options, targetSize, type);
205 public BitmapRegionDecoder run(JobContext jc) { argument
206 return DecodeUtils.createBitmapRegionDecoder(jc, mLocalFilePath, false);
H A DLocalVideo.java166 public Bitmap onDecodeOriginal(JobContext jc, int type) { argument
168 if (bitmap == null || jc.isCancelled()) return null;
H A DMtpDeviceSet.java63 public ArrayList<MediaSet> run(JobContext jc) { argument
/packages/apps/Gallery2/src/com/android/gallery3d/app/
H A DSlideshowDataAdapter.java95 public Void run(JobContext jc) { argument
131 .run(jc);
173 public Slide run(JobContext jc) {
174 jc.setMode(ThreadPool.MODE_NONE);
H A DCropImage.java252 public Intent run(JobContext jc) { argument
267 if (jc.isCancelled()) return null;
270 if (!saveBitmapToUri(jc, cropped, uri)) return null;
273 if (jc.isCancelled()) return null;
279 if (jc.isCancelled()) return null;
282 if (!setAsWallpaper(jc, cropped)) return null;
286 if (jc.isCancelled()) return null;
288 Uri data = saveToMediaProvider(jc, cropped);
308 private boolean setAsWallpaper(JobContext jc, Bitmap wallpaper) { argument
318 JobContext jc, Bitma
317 saveMedia( JobContext jc, Bitmap cropped, File directory, String filename) argument
364 saveToMediaProvider(JobContext jc, Bitmap cropped) argument
374 savePicasaImage(JobContext jc, Bitmap cropped) argument
411 saveLocalImage(JobContext jc, Bitmap cropped) argument
448 saveGenericImage(JobContext jc, Bitmap cropped) argument
477 saveBitmapToOutputStream( JobContext jc, Bitmap bitmap, CompressFormat format, OutputStream os) argument
495 saveBitmapToUri(JobContext jc, Bitmap bitmap, Uri uri) argument
920 run(JobContext jc) argument
931 run(JobContext jc) argument
[all...]
H A DManageCachePage.java243 public Void run(JobContext jc) {
244 mCacheStorageInfo.loadStorageInfo(jc);
245 if (!jc.isCancelled()) {
H A DPhotoDataAdapter.java646 public ScreenNail run(JobContext jc) { argument
658 Bitmap bitmap = mItem.requestImage(MediaItem.TYPE_THUMBNAIL).run(jc);
659 if (jc.isCancelled()) return null;
676 public BitmapRegionDecoder run(JobContext jc) { argument
680 return mItem.requestLargeImage().run(jc);
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DActionModeHandler.java196 private int computeMenuOptions(JobContext jc) { argument
207 if (jc.isCancelled()) return 0;
229 private Intent computeSharingIntent(JobContext jc) { argument
242 if (jc.isCancelled()) return null;
297 public Void run(final JobContext jc) {
299 final int operation = computeMenuOptions(jc);
302 final Intent intent = supportShare ? computeSharingIntent(jc) : null;
306 if (!jc.isCancelled()) {
H A DAlbumLabelMaker.java153 public Bitmap run(JobContext jc) { argument
183 if (jc.isCancelled()) return null;
189 if (jc.isCancelled()) return null;
197 if (jc.isCancelled()) return null;
H A DCacheStorageUsageInfo.java55 public void loadStorageInfo(JobContext jc) { argument
H A DDetailsAddressResolver.java46 public Address run(JobContext jc) { argument
H A DMenuExecutor.java323 DataManager manager, JobContext jc, int cmd, Path path) {
383 public Void run(JobContext jc) { argument
389 if (jc.isCancelled()) {
393 if (!execute(manager, jc, mOperation, id)) {
322 execute( DataManager manager, JobContext jc, int cmd, Path path) argument
/packages/apps/Gallery2/src/com/android/gallery3d/util/
H A DJobLimiter.java104 public T run(JobContext jc) { argument
112 result = job.run(jc);
H A DGalleryUtils.java164 public static void fakeBusy(JobContext jc, int timeout) { argument
166 jc.setCancelListener(new CancelListener() {
172 jc.setCancelListener(null);
H A DThreadPool.java42 public T run(JobContext jc); argument

Completed in 200 milliseconds

12