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