/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
H A D | DownloadUtils.java | 35 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 D | DecodeUtils.java | 51 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 D | ImageCacheRequest.java | 44 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 D | UriImage.java | 89 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 D | MtpImage.java | 80 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 D | DownloadCache.java | 141 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 D | LocalImage.java | 167 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 D | LocalVideo.java | 156 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 D | SlideshowDataAdapter.java | 95 public Void run(JobContext jc) { argument 131 .run(jc); 173 public Slide run(JobContext jc) { 174 jc.setMode(ThreadPool.MODE_NONE);
|
H A D | CropImage.java | 242 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 D | ManageCachePage.java | 249 public Void run(JobContext jc) { 250 mCacheStorageInfo.loadStorageInfo(jc); 251 if (!jc.isCancelled()) {
|
H A D | PhotoDataAdapter.java | 502 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 D | ActionModeHandler.java | 176 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 D | CacheStorageUsageInfo.java | 55 public void loadStorageInfo(JobContext jc) { argument
|
H A D | DetailsAddressResolver.java | 46 public Address run(JobContext jc) { argument
|
H A D | MenuExecutor.java | 254 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 D | TileImageView.java | 742 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 D | AlbumSlidingWindow.java | 376 public Bitmap run(JobContext jc) { argument 379 Bitmap bitmap = job.run(jc);
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
H A D | JobLimiter.java | 104 public T run(JobContext jc) { argument 112 result = job.run(jc);
|
H A D | GalleryUtils.java | 164 public static void fakeBusy(JobContext jc, int timeout) { argument 166 jc.setCancelListener(new CancelListener() { 172 jc.setCancelListener(null);
|
H A D | ThreadPool.java | 42 public T run(JobContext jc); argument
|