Home
last modified time | relevance | path

Searched refs:MediaItem (Results 1 – 25 of 60) sorted by relevance

123

/packages/apps/Gallery2/src/com/android/gallery3d/data/
DClusterAlbum.java28 private MediaItem mCover;
38 public void setCoverMediaItem(MediaItem cover) { in setCoverMediaItem()
43 public MediaItem getCoverMediaItem() { in getCoverMediaItem()
70 public ArrayList<MediaItem> getMediaItem(int start, int count) { in getMediaItem()
74 public static ArrayList<MediaItem> getMediaItemFromPath( in getMediaItemFromPath()
78 return new ArrayList<MediaItem>(); in getMediaItemFromPath()
82 final MediaItem[] buf = new MediaItem[end - start]; in getMediaItemFromPath()
85 public void consume(int index, MediaItem item) { in getMediaItemFromPath()
90 ArrayList<MediaItem> result = new ArrayList<MediaItem>(end - start); in getMediaItemFromPath()
130 public void consume(int index, MediaItem item) { in delete()
DLocalMergeAlbum.java41 private final Comparator<MediaItem> mComparator;
52 Path path, Comparator<MediaItem> comparator, MediaSet[] sources, int bucketId) { in LocalMergeAlbum()
74 int supported = mSources.length == 0 ? 0 : MediaItem.SUPPORT_ALL; in updateData()
120 public ArrayList<MediaItem> getMediaItem(int start, int count) { in getMediaItem()
126 MediaItem[] slot = new MediaItem[mSources.length]; in getMediaItem()
135 ArrayList<MediaItem> result = new ArrayList<MediaItem>(); in getMediaItem()
215 private SoftReference<ArrayList<MediaItem>> mCacheRef;
226 public MediaItem getItem(int index) { in getItem()
228 ArrayList<MediaItem> cache = null; in getItem()
241 mCacheRef = new SoftReference<ArrayList<MediaItem>>(cache); in getItem()
DSingleItemAlbum.java24 private final MediaItem mItem;
27 public SingleItemAlbum(Path path, MediaItem item) { in SingleItemAlbum()
39 public ArrayList<MediaItem> getMediaItem(int start, int count) { in getMediaItem()
40 ArrayList<MediaItem> result = new ArrayList<MediaItem>(); in getMediaItem()
50 public MediaItem getItem() { in getItem()
DMediaSet.java72 public ArrayList<MediaItem> getMediaItem(int start, int count) { in getMediaItem()
73 return new ArrayList<MediaItem>(); in getMediaItem()
76 public MediaItem getCoverMediaItem() { in getCoverMediaItem()
77 ArrayList<MediaItem> items = getMediaItem(0, 1); in getCoverMediaItem()
80 MediaItem cover = getSubMediaSet(i).getCoverMediaItem(); in getCoverMediaItem()
124 ArrayList<MediaItem> list = getMediaItem( in getIndexOfItem()
141 protected int getIndexOf(Path path, ArrayList<MediaItem> list) { in getIndexOf()
196 void consume(int index, MediaItem item); in consume()
207 ArrayList<MediaItem> items = getMediaItem(start, count); in enumerateMediaItems()
209 MediaItem item = items.get(i); in enumerateMediaItems()
DSecureAlbum.java53 private MediaItem mUnlockItem;
56 public SecureAlbum(Path path, GalleryApp application, MediaItem unlock) { in SecureAlbum()
87 public ArrayList<MediaItem> getMediaItem(int start, int count) { in getMediaItem()
90 return new ArrayList<MediaItem>(); in getMediaItem()
98 final MediaItem[] buf = new MediaItem[end - start]; in getMediaItem()
101 public void consume(int index, MediaItem item) { in getMediaItem()
106 ArrayList<MediaItem> result = new ArrayList<MediaItem>(end - start); in getMediaItem()
DImageCacheRequest.java48 ((mType == MediaItem.TYPE_THUMBNAIL) ? "THUMB" : in debugTag()
49 (mType == MediaItem.TYPE_MICROTHUMBNAIL) ? "MICROTHUMB" : "?"); in debugTag()
56 BytesBuffer buffer = MediaItem.getBytesBufferPool().get(); in run()
64 if (mType == MediaItem.TYPE_MICROTHUMBNAIL) { in run()
77 MediaItem.getBytesBufferPool().recycle(buffer); in run()
87 if (mType == MediaItem.TYPE_MICROTHUMBNAIL) { in run()
DLocalAlbum.java115 public ArrayList<MediaItem> getMediaItem(int start, int count) { in getMediaItem()
119 ArrayList<MediaItem> list = new ArrayList<MediaItem>(); in getMediaItem()
134 MediaItem item = loadOrUpdateItem(childPath, cursor, in getMediaItem()
144 private static MediaItem loadOrUpdateItem(Path path, Cursor cursor, in loadOrUpdateItem()
162 public static MediaItem[] getMediaItemById( in getMediaItemById()
165 MediaItem[] result = new MediaItem[ids.size()]; in getMediaItemById()
212 MediaItem item = loadOrUpdateItem(childPath, cursor, dataManager, in getMediaItemById()
DFilterEmptyPromptSet.java25 private ArrayList<MediaItem> mEmptyItem;
28 public FilterEmptyPromptSet(Path path, MediaSet baseSet, MediaItem emptyItem) { in FilterEmptyPromptSet()
30 mEmptyItem = new ArrayList<MediaItem>(1); in FilterEmptyPromptSet()
47 public ArrayList<MediaItem> getMediaItem(int start, int count) { in getMediaItem()
DFaceClustering.java39 MediaItem mCoverItem;
47 public void add(MediaItem item, int faceIndex) { in add()
73 public MediaItem getCover() { in getCover()
98 public void consume(int index, MediaItem item) { in run()
139 public MediaItem getClusterCover(int index) { in getClusterCover()
DComboAlbum.java42 public ArrayList<MediaItem> getMediaItem(int start, int count) { in getMediaItem()
43 ArrayList<MediaItem> items = new ArrayList<MediaItem>(); in getMediaItem()
49 ArrayList<MediaItem> fetchItems = set.getMediaItem(start, fetchCount); in getMediaItem()
DFilterDeleteSet.java113 public ArrayList<MediaItem> getMediaItem(int start, int count) { in getMediaItem()
114 if (count <= 0) return new ArrayList<MediaItem>(); in getMediaItem()
133 ArrayList<MediaItem> base = mBaseSet.getMediaItem(start + i, count + (j - i)); in getMediaItem()
202 ArrayList<MediaItem> items = mBaseSet.getMediaItem(from, to - from); in reload()
205 MediaItem item = items.get(i); in reload()
DActionImage.java30 public class ActionImage extends MediaItem {
61 int targetSize = MediaItem.getTargetSize(mType); in run()
65 if (mType == MediaItem.TYPE_MICROTHUMBNAIL) { in run()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DPhotoDataAdapter.java28 import com.android.gallery3d.data.MediaItem;
114 private final MediaItem mData[] = new MediaItem[DATA_CACHE_SIZE];
221 private MediaItem getItemInternal(int index) { in getItemInternal()
230 MediaItem item = getItemInternal(index); in getVersion()
236 MediaItem item = getItemInternal(index); in getPath()
385 private MediaItem getItem(int index) { in getItem()
400 MediaItem item = mData[index % DATA_CACHE_SIZE]; in updateCurrentIndex()
418 MediaItem item = getItem(index); in uploadScreenNail()
451 MediaItem item = getItem(index); in getScreenNail()
469 MediaItem item = getItem(mCurrentIndex + offset); in getImageSize()
[all …]
DSinglePhotoDataAdapter.java28 import com.android.gallery3d.data.MediaItem;
46 private MediaItem mItem;
57 AbstractGalleryActivity activity, PhotoView view, MediaItem item) { in SinglePhotoDataAdapter()
60 MediaItem.SUPPORT_FULL_IMAGE) != 0; in SinglePhotoDataAdapter()
158 mItem.requestImage(MediaItem.TYPE_THUMBNAIL), in resume()
226 return mItem.getMediaType() == MediaItem.MEDIA_TYPE_VIDEO; in isVideo()
231 return (mItem.getSupportedOperations() & MediaItem.SUPPORT_DELETE) != 0; in isDeletable()
235 public MediaItem getMediaItem(int offset) { in getMediaItem()
DSlideshowPage.java30 import com.android.gallery3d.data.MediaItem;
69 public MediaItem item;
72 public Slide(MediaItem item, int index, Bitmap bitmap) { in Slide()
226 private static MediaItem findMediaItem(MediaSet mediaSet, int index) { in findMediaItem()
235 ArrayList<MediaItem> list = mediaSet.getMediaItem(index, 1); in findMediaItem()
259 public MediaItem getMediaItem(int index) { in getMediaItem()
263 MediaItem item = findMediaItem(mMediaSet, mLastIndex); in getMediaItem()
312 private ArrayList<MediaItem> mData = new ArrayList<MediaItem>();
329 public MediaItem getMediaItem(int index) { in getMediaItem()
DAlbumDataLoader.java25 import com.android.gallery3d.data.MediaItem;
49 private final MediaItem[] mData;
81 mData = new MediaItem[DATA_CACHE_SIZE]; in AlbumDataLoader()
121 public MediaItem get(int index) { in get()
144 MediaItem item = mData[i % DATA_CACHE_SIZE]; in findItem()
241 public ArrayList<MediaItem> items;
293 ArrayList<MediaItem> items = info.items; in call()
309 MediaItem updateItem = items.get(i - info.reloadStart); in call()
DPhotoPage.java51 import com.android.gallery3d.data.MediaItem;
149 private MediaItem mCurrentPhoto = null;
347 final MediaItem photo = mCurrentPhoto; in onCreate()
506 MediaItem photo = mModel.getMediaItem(0); in onCreate()
518 MediaItem photo = mModel.getMediaItem(0); in onCreate()
536 MediaItem mediaItem = (MediaItem) in onCreate()
590 && (mCurrentPhoto.getSupportedOperations() & MediaItem.SUPPORT_EDIT) != 0 in canDisplayBottomControl()
662 MediaItem current = mModel.getMediaItem(0); in launchTinyPlanet()
679 MediaItem current = mModel.getMediaItem(0); in launchPhotoEditor()
701 MediaItem current = mModel.getMediaItem(0); in launchSimpleEditor()
[all …]
DSlideshowDataAdapter.java23 import com.android.gallery3d.data.MediaItem;
45 public MediaItem getMediaItem(int index); in getMediaItem()
77 private MediaItem loadItem() { in loadItem()
112 MediaItem item = loadItem(); in run()
131 .requestImage(MediaItem.TYPE_THUMBNAIL) in run()
/packages/apps/Gallery2/src/com/android/photos/shims/
DMediaItemsLoader.java30 import com.android.gallery3d.data.MediaItem;
62 private SparseArray<MediaItem> mMediaItems;
113 final SparseArray<MediaItem> mediaItems = new SparseArray<MediaItem>(); in loadInBackground()
116 public void consume(int index, MediaItem item) { in loadInBackground()
125 if (rawMediaType == MediaItem.MEDIA_TYPE_IMAGE) { in loadInBackground()
127 } else if (rawMediaType == MediaItem.MEDIA_TYPE_VIDEO) { in loadInBackground()
157 return MediaItem.getTargetSize(MediaItem.TYPE_MICROTHUMBNAIL); in getThumbnailSize()
163 MediaItem mi = mMediaItems.get(index); in uriForItem()
183 MediaItem mi = mMediaItems.get(index); in getPathForItem()
DBitmapJobDrawable.java28 import com.android.gallery3d.data.MediaItem;
39 private MediaItem mItem;
48 public void setMediaItem(MediaItem item) { in setMediaItem()
130 return MediaItem.getTargetSize(MediaItem.TYPE_MICROTHUMBNAIL); in getIntrinsicWidth()
135 return MediaItem.getTargetSize(MediaItem.TYPE_MICROTHUMBNAIL); in getIntrinsicHeight()
171 mParent.mItem.requestImage(MediaItem.TYPE_MICROTHUMBNAIL), this); in submitBitmapTask()
DMediaSetLoader.java28 import com.android.gallery3d.data.MediaItem;
60 private ArrayList<MediaItem> mCoverItems;
112 ArrayList<MediaItem> coverItems = new ArrayList<MediaItem>(count); in loadInBackground()
120 MediaItem coverItem = m.getCoverMediaItem(); in loadInBackground()
147 return MediaItem.getTargetSize(MediaItem.TYPE_MICROTHUMBNAIL); in getThumbnailSize()
165 public void consume(int index, MediaItem item) { in urisForSubItems()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DSelectionManager.java21 import com.android.gallery3d.data.MediaItem;
165 ArrayList<MediaItem> list = set.getMediaItem(index, count); in expandMediaSet()
170 for (MediaItem item : list) { in expandMediaSet()
224 ArrayList<MediaItem> list = mSourceMediaSet.getMediaItem(index, count); in getSelected()
225 for (MediaItem item : list) { in getSelected()
DAlbumSlidingWindow.java25 import com.android.gallery3d.data.MediaItem;
48 public MediaItem item;
265 MediaItem item = mSource.get(slotIndex); // item could be null; in prepareSlotContent()
268 ? MediaItem.MEDIA_TYPE_UNKNOWN in prepareSlotContent()
290 private final MediaItem mItem;
292 public ThumbnailLoader(int slotIndex, MediaItem item) { in ThumbnailLoader()
300 mItem.requestImage(MediaItem.TYPE_MICROTHUMBNAIL), this); in submitBitmapTask()
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/
DMediaSetSource.java26 import com.android.gallery3d.data.MediaItem;
130 private MediaItem mCache[] = new MediaItem[CACHE_SIZE];
153 ArrayList<MediaItem> items = mSource.getMediaItem(mCacheStart, CACHE_SIZE); in ensureCacheRange()
DWidgetUtils.java28 import com.android.gallery3d.data.MediaItem;
47 public static Bitmap createWidgetBitmap(MediaItem image) { in createWidgetBitmap()
48 Bitmap bitmap = image.requestImage(MediaItem.TYPE_THUMBNAIL) in createWidgetBitmap()

123