Home
last modified time | relevance | path

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

123

/packages/apps/Gallery2/src/com/android/gallery3d/data/
DClusterAlbum.java27 private MediaItem mCover;
37 public void setCoverMediaItem(MediaItem cover) { in setCoverMediaItem()
42 public MediaItem getCoverMediaItem() { in getCoverMediaItem()
69 public ArrayList<MediaItem> getMediaItem(int start, int count) { in getMediaItem()
73 public static ArrayList<MediaItem> getMediaItemFromPath( in getMediaItemFromPath()
77 return new ArrayList<MediaItem>(); in getMediaItemFromPath()
81 final MediaItem[] buf = new MediaItem[end - start]; in getMediaItemFromPath()
83 public void consume(int index, MediaItem item) { in getMediaItemFromPath()
88 ArrayList<MediaItem> result = new ArrayList<MediaItem>(end - start); in getMediaItemFromPath()
126 public void consume(int index, MediaItem item) { in delete()
DLocalMergeAlbum.java38 private final Comparator<MediaItem> mComparator;
50 Path path, Comparator<MediaItem> comparator, MediaSet[] sources, int bucketId) { in LocalMergeAlbum()
63 int supported = mSources.length == 0 ? 0 : MediaItem.SUPPORT_ALL; in updateData()
100 public ArrayList<MediaItem> getMediaItem(int start, int count) { in getMediaItem()
106 MediaItem[] slot = new MediaItem[mSources.length]; in getMediaItem()
115 ArrayList<MediaItem> result = new ArrayList<MediaItem>(); in getMediaItem()
195 private SoftReference<ArrayList<MediaItem>> mCacheRef;
206 public MediaItem getItem(int index) { in getItem()
208 ArrayList<MediaItem> cache = null; in getItem()
221 mCacheRef = new SoftReference<ArrayList<MediaItem>>(cache); in getItem()
DImageCacheRequest.java47 ((mType == MediaItem.TYPE_THUMBNAIL) ? "THUMB" : in run()
48 (mType == MediaItem.TYPE_MICROTHUMBNAIL) ? "MICROTHUMB" : "?"); in run()
51 BytesBuffer buffer = MediaItem.getBytesBufferPool().get(); in run()
59 if (mType == MediaItem.TYPE_MICROTHUMBNAIL) { in run()
60 bitmap = MediaItem.getMicroThumbPool().decode(jc, in run()
63 bitmap = MediaItem.getThumbPool().decode(jc, in run()
72 MediaItem.getBytesBufferPool().recycle(buffer); in run()
82 if (mType == MediaItem.TYPE_MICROTHUMBNAIL) { in run()
DMediaSet.java71 public ArrayList<MediaItem> getMediaItem(int start, int count) { in getMediaItem()
72 return new ArrayList<MediaItem>(); in getMediaItem()
75 public MediaItem getCoverMediaItem() { in getCoverMediaItem()
76 ArrayList<MediaItem> items = getMediaItem(0, 1); in getCoverMediaItem()
79 MediaItem cover = getSubMediaSet(i).getCoverMediaItem(); in getCoverMediaItem()
119 ArrayList<MediaItem> list = getMediaItem( in getIndexOfItem()
136 protected int getIndexOf(Path path, ArrayList<MediaItem> list) { in getIndexOf()
195 void consume(int index, MediaItem item); in consume()
206 ArrayList<MediaItem> items = getMediaItem(start, count); in enumerateMediaItems()
208 MediaItem item = items.get(i); in enumerateMediaItems()
DSnailAlbum.java28 public SnailAlbum(Path path, MediaItem item) { in SnailAlbum()
39 public ArrayList<MediaItem> getMediaItem(int start, int count) { in getMediaItem()
40 ArrayList<MediaItem> result = new ArrayList<MediaItem>(); in getMediaItem()
DLocalAlbum.java107 public ArrayList<MediaItem> getMediaItem(int start, int count) { in getMediaItem()
111 ArrayList<MediaItem> list = new ArrayList<MediaItem>(); in getMediaItem()
126 MediaItem item = loadOrUpdateItem(childPath, cursor, in getMediaItem()
136 private static MediaItem loadOrUpdateItem(Path path, Cursor cursor, in loadOrUpdateItem()
152 public static MediaItem[] getMediaItemById( in getMediaItemById()
155 MediaItem[] result = new MediaItem[ids.size()]; in getMediaItemById()
202 MediaItem item = loadOrUpdateItem(childPath, cursor, dataManager, in getMediaItemById()
DComboAlbum.java41 public ArrayList<MediaItem> getMediaItem(int start, int count) { in getMediaItem()
42 ArrayList<MediaItem> items = new ArrayList<MediaItem>(); in getMediaItem()
48 ArrayList<MediaItem> fetchItems = set.getMediaItem(start, fetchCount); in getMediaItem()
DFaceClustering.java39 MediaItem mCoverItem;
47 public void add(MediaItem item, int faceIndex) { in add()
73 public MediaItem getCover() { in getCover()
97 public void consume(int index, MediaItem item) { in run()
138 public MediaItem getClusterCover(int index) { in getClusterCover()
DFilterDeleteSet.java108 public ArrayList<MediaItem> getMediaItem(int start, int count) { in getMediaItem()
109 if (count <= 0) return new ArrayList<MediaItem>(); in getMediaItem()
128 ArrayList<MediaItem> base = mBaseSet.getMediaItem(start + i, count + (j - i)); in getMediaItem()
197 ArrayList<MediaItem> items = mBaseSet.getMediaItem(from, to - from); in reload()
200 MediaItem item = items.get(i); in reload()
DFilterTypeSet.java62 public ArrayList<MediaItem> getMediaItem(int start, int count) { in getMediaItem()
103 public void consume(int index, MediaItem item) { in updateData()
127 public void consume(int index, MediaItem item) { in delete()
DSnailSource.java44 MediaItem item = in createMediaObject()
45 (MediaItem) dataManager.getMediaObject(itemPath); in createMediaObject()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DPhotoDataAdapter.java30 import com.android.gallery3d.data.MediaItem;
115 private final MediaItem mData[] = new MediaItem[DATA_CACHE_SIZE];
217 private MediaItem getItemInternal(int index) { in getItemInternal()
226 MediaItem item = getItemInternal(index); in getVersion()
232 MediaItem item = getItemInternal(index); in getPath()
373 private MediaItem getItem(int index) { in getItem()
388 MediaItem item = mData[index % DATA_CACHE_SIZE]; in updateCurrentIndex()
413 MediaItem item = getItem(index); in getScreenNail()
431 MediaItem item = getItem(mCurrentIndex + offset); in getImageSize()
443 MediaItem item = getItem(mCurrentIndex + offset); in getImageRotation()
[all …]
DSinglePhotoDataAdapter.java28 import com.android.gallery3d.data.MediaItem;
45 private MediaItem mItem;
55 GalleryActivity activity, PhotoView view, MediaItem item) { in SinglePhotoDataAdapter()
58 MediaItem.SUPPORT_FULL_IMAGE) != 0; in SinglePhotoDataAdapter()
147 mItem.requestImage(MediaItem.TYPE_THUMBNAIL), in resume()
205 return mItem.getMediaType() == MediaItem.MEDIA_TYPE_VIDEO; in isVideo()
210 return (mItem.getSupportedOperations() & MediaItem.SUPPORT_DELETE) != 0; in isDeletable()
214 public MediaItem getMediaItem(int offset) { in getMediaItem()
DSlideshowPage.java29 import com.android.gallery3d.data.MediaItem;
68 public MediaItem item;
71 public Slide(MediaItem item, int index, Bitmap bitmap) { in Slide()
218 private static MediaItem findMediaItem(MediaSet mediaSet, int index) { in findMediaItem()
227 ArrayList<MediaItem> list = mediaSet.getMediaItem(index, 1); in findMediaItem()
249 public MediaItem getMediaItem(int index) { in getMediaItem()
253 MediaItem item = findMediaItem(mMediaSet, mLastIndex); in getMediaItem()
299 private ArrayList<MediaItem> mData = new ArrayList<MediaItem>();
314 public MediaItem getMediaItem(int index) { in getMediaItem()
DSlideshowDataAdapter.java23 import com.android.gallery3d.data.MediaItem;
45 public MediaItem getMediaItem(int index); in getMediaItem()
77 private MediaItem loadItem() { in loadItem()
111 MediaItem item = loadItem(); in run()
130 .requestImage(MediaItem.TYPE_THUMBNAIL) in run()
DAlbumDataLoader.java26 import com.android.gallery3d.data.MediaItem;
50 private final MediaItem[] mData;
80 mData = new MediaItem[DATA_CACHE_SIZE]; in AlbumDataLoader()
116 public MediaItem get(int index) { in get()
224 public ArrayList<MediaItem> items;
271 ArrayList<MediaItem> items = info.items; in call()
280 MediaItem updateItem = items.get(i - info.reloadStart); in call()
DAbstractGalleryActivity.java36 import com.android.gallery3d.data.MediaItem;
191 MediaItem.getMicroThumbPool().clear(); in onPause()
192 MediaItem.getThumbPool().clear(); in onPause()
193 MediaItem.getBytesBufferPool().clear(); in onPause()
/packages/apps/Gallery2/tests/src/com/android/gallery3d/data/
DMockSet.java22 ArrayList<MediaItem> mItems = new ArrayList<MediaItem>();
50 public ArrayList<MediaItem> getMediaItem(int start, int count) { in getMediaItem()
51 ArrayList<MediaItem> result = new ArrayList<MediaItem>(); in getMediaItem()
DRealDataTest.java93 ArrayList<MediaItem> list = set.getMediaItem(i, 10); in dumpMediaSet()
95 for (MediaItem item : list) { in dumpMediaSet()
101 void dumpMediaItem(MediaItem item, String prefix) { in dumpMediaItem()
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/
DMediaSetSource.java25 import com.android.gallery3d.data.MediaItem;
38 private MediaItem mCache[] = new MediaItem[CACHE_SIZE];
61 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()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DSelectionManager.java21 import com.android.gallery3d.data.MediaItem;
162 ArrayList<MediaItem> list = set.getMediaItem(index, count); in expandMediaSet()
163 for (MediaItem item : list) { in expandMediaSet()
201 ArrayList<MediaItem> list = mSourceMediaSet.getMediaItem(index, count);
202 for (MediaItem item : list) {
DAlbumSlidingWindow.java25 import com.android.gallery3d.data.MediaItem;
45 public MediaItem item;
245 MediaItem item = mSource.get(slotIndex); // item could be null; in prepareSlotContent()
249 ? MediaItem.MEDIA_TYPE_UNKNOWN in prepareSlotContent()
271 private final MediaItem mItem;
273 public ThumbnailLoader(int slotIndex, MediaItem item) { in ThumbnailLoader()
280 MediaItem.getMicroThumbPool().recycle(bitmap); in recycleBitmap()
286 mItem.requestImage(MediaItem.TYPE_MICROTHUMBNAIL), this); in submitBitmapTask()
/packages/apps/VideoEditor/src/com/android/videoeditor/service/
DApiService.java47 import android.media.videoeditor.MediaItem;
60 import android.media.videoeditor.MediaItem.GetThumbnailListCallback;
248 } else if (item instanceof MediaItem) { in onProgress()
249 intent.putExtra(PARAM_STORYBOARD_ITEM_ID, ((MediaItem)item).getId()); in onProgress()
250 intent.putExtra(PARAM_ATTRIBUTES, MediaItem.class.getCanonicalName()); in onProgress()
1607 final MediaItem mediaItem = new MediaVideoItem(videoEditor, in processIntent()
1609 MediaItem.RENDERING_MODE_BLACK_BORDER); in processIntent()
1616 final MediaItem mediaItem = new MediaImageItem(videoEditor, in processIntent()
1619 MediaItem.RENDERING_MODE_BLACK_BORDER); in processIntent()
1631 final List<MediaItem> mediaItems = videoEditor.getAllMediaItems(); in processIntent()
[all …]
/packages/apps/Gallery2/src_pd/com/android/gallery3d/picasasource/
DPicasaSource.java26 import com.android.gallery3d.data.MediaItem;
85 public static MediaItem getFaceItem(Context context, MediaItem item, int faceIndex) { in getFaceItem()

123