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

/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DDownloadUtils.java35 public static boolean requestDownload(JobContext jc, URL url, File file) { argument
39 return download(jc, url, fos);
47 public static byte[] requestDownload(JobContext jc, URL url) { argument
51 if (!download(jc, url, baos)) {
63 public static void dump(JobContext jc, InputStream is, OutputStream os) argument
68 jc.setCancelListener(new CancelListener() {
74 if (jc.isCancelled()) throw new InterruptedIOException();
78 jc.setCancelListener(null);
82 public static boolean download(JobContext jc, URL url, OutputStream output) { argument
86 dump(jc, inpu
[all...]
H A DDecodeUtils.java51 public static Bitmap requestDecode(JobContext jc, final String filePath, argument
54 jc.setCancelListener(new DecodeCanceller(options));
59 public static Bitmap requestDecode(JobContext jc, FileDescriptor fd, Options options) { argument
61 jc.setCancelListener(new DecodeCanceller(options));
66 public static Bitmap requestDecode(JobContext jc, byte[] bytes, argument
68 return requestDecode(jc, bytes, 0, bytes.length, options);
71 public static Bitmap requestDecode(JobContext jc, byte[] bytes, int offset, argument
74 jc.setCancelListener(new DecodeCanceller(options));
79 public static Bitmap requestDecode(JobContext jc, final String filePath, argument
85 return requestDecode(jc, f
94 requestDecode(JobContext jc, FileDescriptor fd, Options options, int targetSize) argument
121 requestDecodeIfBigEnough(JobContext jc, byte[] data, Options options, int targetSize) argument
139 requestDecode(JobContext jc, FileDescriptor fileDescriptor, Rect paddings, Options options) argument
157 requestCreateBitmapRegionDecoder( JobContext jc, byte[] bytes, int offset, int length, boolean shareable) argument
175 requestCreateBitmapRegionDecoder( JobContext jc, String filePath, boolean shareable) argument
185 requestCreateBitmapRegionDecoder( JobContext jc, FileDescriptor fd, boolean shareable) argument
195 requestCreateBitmapRegionDecoder( JobContext jc, InputStream is, boolean shareable) argument
207 requestCreateBitmapRegionDecoder( JobContext jc, Uri uri, ContentResolver resolver, boolean shareable) argument
[all...]
H A DImageCacheRequest.java44 public Bitmap run(JobContext jc) { argument
51 if (jc.isCancelled()) return null;
56 Bitmap bitmap = DecodeUtils.requestDecode(jc, data.mData,
58 if (bitmap == null && !jc.isCancelled()) {
63 Bitmap bitmap = onDecodeOriginal(jc, mType);
64 if (jc.isCancelled()) return null;
78 if (jc.isCancelled()) return null;
81 if (jc.isCancelled()) return null;
88 public abstract Bitmap onDecodeOriginal(JobContext jc, int targetSize); argument
H A DUriImage.java89 private void openFileOrDownloadTempFile(JobContext jc) { argument
90 int state = openOrDownloadInner(jc);
103 private int openOrDownloadInner(JobContext jc) { argument
117 if (jc.isCancelled()) return STATE_INIT;
126 mCacheEntry = mApplication.getDownloadCache().download(jc, url);
127 if (jc.isCancelled()) return STATE_INIT;
147 private boolean prepareInputFile(JobContext jc) { argument
148 jc.setCancelListener(new CancelListener() {
158 if (jc.isCancelled()) return false;
176 openFileOrDownloadTempFile(jc);
181 run(JobContext jc) argument
198 run(JobContext jc) argument
[all...]
H A DMtpImage.java80 public Bitmap run(JobContext jc) {
87 return DecodeUtils.requestDecode(jc, thumbnail, null);
95 public BitmapRegionDecoder run(JobContext jc) {
99 jc, bytes, 0, bytes.length, false);
H A DDownloadCache.java141 public Entry download(JobContext jc, URL url) { argument
175 return proxy.get(jc);
344 public File run(JobContext jc) { argument
346 jc.setMode(ThreadPool.MODE_NETWORK);
352 jc.setMode(ThreadPool.MODE_NETWORK);
353 boolean downloaded = DownloadUtils.requestDownload(jc, url, tempFile);
354 jc.setMode(ThreadPool.MODE_NONE);
359 jc.setMode(ThreadPool.MODE_NONE);
377 public synchronized Entry get(JobContext jc) { argument
378 jc
[all...]
H A DLocalImage.java167 public Bitmap onDecodeOriginal(JobContext jc, int type) { argument
185 jc, thumbData, options, getTargetSize(type));
190 jc, mLocalFilePath, options, getTargetSize(type));
219 public BitmapRegionDecoder run(JobContext jc) { argument
221 jc, mLocalFilePath, false);
H A DLocalVideo.java156 public Bitmap onDecodeOriginal(JobContext jc, int type) { argument
158 if (bitmap == null || jc.isCancelled()) return null;
/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.java242 public Intent run(JobContext jc) { argument
257 if (jc.isCancelled()) return null;
260 if (!saveBitmapToUri(jc, cropped, uri)) return null;
263 if (jc.isCancelled()) return null;
269 if (jc.isCancelled()) return null;
272 if (!setAsWallpaper(jc, cropped)) return null;
276 if (jc.isCancelled()) return null;
278 Uri data = saveToMediaProvider(jc, cropped);
298 private boolean setAsWallpaper(JobContext jc, Bitmap wallpaper) { argument
308 JobContext jc, Bitma
307 saveMedia( JobContext jc, Bitmap cropped, File directory, String filename) argument
354 saveToMediaProvider(JobContext jc, Bitmap cropped) argument
364 savePicasaImage(JobContext jc, Bitmap cropped) argument
401 saveLocalImage(JobContext jc, Bitmap cropped) argument
438 saveGenericImage(JobContext jc, Bitmap cropped) argument
467 saveBitmapToOutputStream( JobContext jc, Bitmap bitmap, CompressFormat format, OutputStream os) argument
485 saveBitmapToUri(JobContext jc, Bitmap bitmap, Uri uri) argument
909 run(JobContext jc) argument
920 run(JobContext jc) argument
[all...]
H A DManageCachePage.java249 public Void run(JobContext jc) {
250 mCacheStorageInfo.loadStorageInfo(jc);
251 if (!jc.isCancelled()) {
H A DPhotoDataAdapter.java502 public Bitmap run(JobContext jc) { argument
503 Bitmap bitmap = mItem.requestImage(MediaItem.TYPE_THUMBNAIL).run(jc);
504 if (jc.isCancelled()) return null;
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DActionModeHandler.java176 private void updateMenuOptions(JobContext jc) { argument
183 if (jc.isCancelled()) return;
213 private void updateSharingIntent(JobContext jc) { argument
273 public Void run(JobContext jc) {
274 updateMenuOptions(jc);
275 updateSharingIntent(jc);
H A DCacheStorageUsageInfo.java55 public void loadStorageInfo(JobContext jc) { argument
H A DDetailsAddressResolver.java46 public Address run(JobContext jc) { argument
H A DMenuExecutor.java254 DataManager manager, JobContext jc, int cmd, Path path) {
330 public Void run(JobContext jc) { argument
336 if (jc.isCancelled()) {
340 if (!execute(manager, jc, mOperation, id)) {
253 execute( DataManager manager, JobContext jc, int cmd, Path path) argument
H A DTileImageView.java742 public Void run(JobContext jc) { argument
743 jc.setMode(ThreadPool.MODE_NONE);
744 jc.setCancelListener(mNotifier);
745 while (!jc.isCancelled()) {
749 if (tile == null && !jc.isCancelled()) {
H A DAlbumSlidingWindow.java376 public Bitmap run(JobContext jc) { argument
379 Bitmap bitmap = job.run(jc);
/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 138 milliseconds