Home
last modified time | relevance | path

Searched refs:MediaObject (Results 1 – 25 of 40) sorted by relevance

12

/aosp12/packages/apps/Gallery2/src_pd/com/android/gallery3d/picasasource/
H A DPicasaSource.java26 import com.android.gallery3d.data.MediaObject;
75 public MediaObject createMediaObject(Path path) { in createMediaObject()
88 public static boolean isPicasaImage(MediaObject object) { in isPicasaImage()
92 public static String getImageTitle(MediaObject image) { in getImageTitle()
96 public static int getImageSize(MediaObject image) { in getImageSize()
100 public static String getContentType(MediaObject image) { in getContentType()
104 public static long getDateTaken(MediaObject image) { in getDateTaken()
108 public static double getLatitude(MediaObject image) { in getLatitude()
112 public static double getLongitude(MediaObject image) { in getLongitude()
116 public static int getRotation(MediaObject image) { in getRotation()
[all …]
/aosp12/packages/apps/Gallery2/src/com/android/photos/
H A DSelectionManager.java29 import com.android.gallery3d.data.MediaObject;
87 if ((itemSupportedOperations & MediaObject.SUPPORT_EDIT) > 0) { in onItemSelectedStateChanged()
90 if ((itemSupportedOperations & MediaObject.SUPPORT_CROP) > 0) { in onItemSelectedStateChanged()
96 if ((itemSupportedOperations & MediaObject.SUPPORT_TRIM) > 0) { in onItemSelectedStateChanged()
145 supported |= MediaObject.SUPPORT_CROP; in getSupportedOperations()
148 supported |= MediaObject.SUPPORT_EDIT; in getSupportedOperations()
151 supported |= MediaObject.SUPPORT_SETAS; in getSupportedOperations()
154 supported |= MediaObject.SUPPORT_TRIM; in getSupportedOperations()
157 supported |= MediaObject.SUPPORT_MUTE; in getSupportedOperations()
161 supported |= MediaObject.SUPPORT_DELETE; in getSupportedOperations()
[all …]
H A DMultiChoiceManager.java36 import com.android.gallery3d.data.MediaObject;
116 if ((supported & MediaObject.SUPPORT_SHARE) > 0) { in onItemCheckedStateChanged()
142 editItem.setVisible((supportedOperations & MediaObject.SUPPORT_EDIT) > 0); in updateActionItemVisibilities()
143 deleteItem.setVisible((supportedOperations & MediaObject.SUPPORT_DELETE) > 0); in updateActionItemVisibilities()
144 shareItem.setVisible((supportedOperations & MediaObject.SUPPORT_SHARE) > 0); in updateActionItemVisibilities()
145 cropItem.setVisible((supportedOperations & MediaObject.SUPPORT_CROP) > 0); in updateActionItemVisibilities()
146 trimItem.setVisible((supportedOperations & MediaObject.SUPPORT_TRIM) > 0); in updateActionItemVisibilities()
147 muteItem.setVisible((supportedOperations & MediaObject.SUPPORT_MUTE) > 0); in updateActionItemVisibilities()
148 setAsItem.setVisible((supportedOperations & MediaObject.SUPPORT_SETAS) > 0); in updateActionItemVisibilities()
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DMediaObject.java21 public abstract class MediaObject { class
75 void panoramaInfoAvailable(MediaObject mediaObject, boolean isPanorama, in panoramaInfoAvailable()
79 public MediaObject(Path path, long version) { in MediaObject() method in MediaObject
149 return ++MediaObject.sVersionSerial; in nextVersionNumber()
153 if (MEDIA_TYPE_ALL_STRING.equals(s)) return MediaObject.MEDIA_TYPE_ALL; in getTypeFromString()
154 if (MEDIA_TYPE_IMAGE_STRING.equals(s)) return MediaObject.MEDIA_TYPE_IMAGE; in getTypeFromString()
155 if (MEDIA_TYPE_VIDEO_STRING.equals(s)) return MediaObject.MEDIA_TYPE_VIDEO; in getTypeFromString()
H A DDataManager.java27 import com.android.gallery3d.data.MediaObject.PanoramaSupportCallback;
162 public MediaObject peekMediaObject(Path path) { in peekMediaObject()
166 public MediaObject getMediaObject(Path path) { in getMediaObject()
168 MediaObject obj = path.getObject(); in getMediaObject()
178 MediaObject object = source.createMediaObject(path); in getMediaObject()
190 public MediaObject getMediaObject(String s) { in getMediaObject()
360 MediaObject mediaObject = getMediaObject(path); in onStitchingResult()
H A DPath.java31 private WeakReference<MediaObject> mObject;
68 public void setObject(MediaObject object) { in setObject()
71 mObject = new WeakReference<MediaObject>(object); in setObject()
75 MediaObject getObject() { in getObject()
219 MediaObject obj = p.getObject(); in dumpAll()
H A DBucketHelper.java112 if ((type & MediaObject.MEDIA_TYPE_IMAGE) != 0) { in loadBucketEntriesFromImagesAndVideoTable()
116 if ((type & MediaObject.MEDIA_TYPE_VIDEO) != 0) { in loadBucketEntriesFromImagesAndVideoTable()
142 if ((type & MediaObject.MEDIA_TYPE_IMAGE) != 0) { in loadBucketEntriesFromFilesTable()
145 if ((type & MediaObject.MEDIA_TYPE_VIDEO) != 0) { in loadBucketEntriesFromFilesTable()
H A DMediaSource.java41 public abstract MediaObject createMediaObject(Path path); in createMediaObject()
80 MediaObject obj; in mapMediaItems()
H A DComboSource.java37 public MediaObject createMediaObject(Path path) { in createMediaObject()
H A DSecureSource.java42 public MediaObject createMediaObject(Path path) { in createMediaObject()
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DActionModeHandler.java40 import com.android.gallery3d.data.MediaObject;
41 import com.android.gallery3d.data.MediaObject.PanoramaSupportCallback;
60 | MediaObject.SUPPORT_ROTATE | MediaObject.SUPPORT_SHARE
61 | MediaObject.SUPPORT_CACHE;
93 for (MediaObject mediaObject : mediaObjects) { in GetAllPanoramaSupports()
272 ArrayList<MediaObject> selected = new ArrayList<MediaObject>(); in getSelectedMediaObjects()
287 private int computeMenuOptions(ArrayList<MediaObject> selected) { in computeMenuOptions()
288 int operation = MediaObject.SUPPORT_ALL; in computeMenuOptions()
290 for (MediaObject mediaObject: selected) { in computeMenuOptions()
300 operation &= ~MediaObject.SUPPORT_EDIT; in computeMenuOptions()
[all …]
H A DMenuExecutor.java38 import com.android.gallery3d.data.MediaObject;
171 boolean supportCrop = (supported & MediaObject.SUPPORT_CROP) != 0; in updateMenuOperation()
172 boolean supportTrim = (supported & MediaObject.SUPPORT_TRIM) != 0; in updateMenuOperation()
173 boolean supportMute = (supported & MediaObject.SUPPORT_MUTE) != 0; in updateMenuOperation()
178 boolean supportEdit = (supported & MediaObject.SUPPORT_EDIT) != 0; in updateMenuOperation()
361 case MediaObject.MEDIA_TYPE_IMAGE : in getMimeType()
363 case MediaObject.MEDIA_TYPE_VIDEO : in getMimeType()
386 MediaObject obj = manager.getMediaObject(path); in execute()
388 if (cacheFlag == MediaObject.CACHE_FLAG_FULL) { in execute()
389 cacheFlag = MediaObject.CACHE_FLAG_SCREENNAIL; in execute()
[all …]
H A DAlbumSlotRenderer.java21 import com.android.gallery3d.data.MediaObject;
126 if (entry.mediaType == MediaObject.MEDIA_TYPE_VIDEO) { in renderSlot()
H A DAlbumSlidingWindow.java26 import com.android.gallery3d.data.MediaObject;
27 import com.android.gallery3d.data.MediaObject.PanoramaSupportCallback;
85 public void panoramaInfoAvailable(MediaObject mediaObject, boolean isPanorama, in panoramaInfoAvailable()
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/app/
H A DAlbumDataLoader.java26 import com.android.gallery3d.data.MediaObject;
65 private long mSourceVersion = MediaObject.INVALID_DATA_VERSION;
76 private long mFailedVersion = MediaObject.INVALID_DATA_VERSION;
84 Arrays.fill(mItemVersion, MediaObject.INVALID_DATA_VERSION); in AlbumDataLoader()
85 Arrays.fill(mSetVersion, MediaObject.INVALID_DATA_VERSION); in AlbumDataLoader()
100 (mFailedVersion != MediaObject.INVALID_DATA_VERSION); in AlbumDataLoader()
154 mItemVersion[slotIndex] = MediaObject.INVALID_DATA_VERSION; in clearSlot()
155 mSetVersion[slotIndex] = MediaObject.INVALID_DATA_VERSION; in clearSlot()
295 mFailedVersion = MediaObject.INVALID_DATA_VERSION; in call()
359 if (mFailedVersion != MediaObject.INVALID_DATA_VERSION) { in run()
[all …]
H A DPanoramaMetadataSupport.java18 import com.android.gallery3d.data.MediaObject;
19 import com.android.gallery3d.data.MediaObject.PanoramaSupportCallback;
38 private MediaObject mMediaObject;
40 public PanoramaMetadataSupport(MediaObject mediaObject) { in PanoramaMetadataSupport()
H A DPhotoPage.java52 import com.android.gallery3d.data.MediaObject;
53 import com.android.gallery3d.data.MediaObject.PanoramaSupportCallback;
640 private static Intent createShareIntent(MediaObject mediaObject) { in createShareIntent()
681 & MediaObject.SUPPORT_EDIT) == 0) { in launchPhotoEditor()
703 & MediaObject.SUPPORT_EDIT) == 0) { in launchSimpleEditor()
776 supportedOperations ^= MediaObject.SUPPORT_EDIT; in updateMenuOperations()
779 supportedOperations &= MediaObject.SUPPORT_DELETE; in updateMenuOperations()
783 supportedOperations &= ~MediaObject.SUPPORT_EDIT; in updateMenuOperations()
1472 MediaObject currentPhoto = mCurrentPhoto; in refreshBottomControlsWhenReady()
1524 if (item.getMediaType() == MediaObject.MEDIA_TYPE_VIDEO) { in getMediaTypeString()
[all …]
H A DAlbumSetDataLoader.java26 import com.android.gallery3d.data.MediaObject;
66 private long mSourceVersion = MediaObject.INVALID_DATA_VERSION;
84 Arrays.fill(mItemVersion, MediaObject.INVALID_DATA_VERSION); in AlbumSetDataLoader()
85 Arrays.fill(mSetVersion, MediaObject.INVALID_DATA_VERSION); in AlbumSetDataLoader()
168 mItemVersion[slotIndex] = MediaObject.INVALID_DATA_VERSION; in clearSlot()
169 mSetVersion[slotIndex] = MediaObject.INVALID_DATA_VERSION; in clearSlot()
H A DFilterUtils.java20 import com.android.gallery3d.data.MediaObject;
180 mediaType = MediaObject.MEDIA_TYPE_IMAGE; in newFilterPath()
183 mediaType = MediaObject.MEDIA_TYPE_VIDEO; in newFilterPath()
H A DPhotoDataAdapter.java29 import com.android.gallery3d.data.MediaObject;
147 private long mSourceVersion = MediaObject.INVALID_DATA_VERSION;
185 Arrays.fill(mChanges, MediaObject.INVALID_DATA_VERSION); in PhotoDataAdapter()
231 if (item == null) return MediaObject.INVALID_DATA_VERSION; in getVersion()
681 entry.requestedScreenNail = MediaObject.INVALID_DATA_VERSION; in updateImageRequests()
686 entry.requestedFullImage = MediaObject.INVALID_DATA_VERSION; in updateImageRequests()
823 entry.requestedFullImage = MediaObject.INVALID_DATA_VERSION; in updateImageCache()
900 public long requestedScreenNail = MediaObject.INVALID_DATA_VERSION;
901 public long requestedFullImage = MediaObject.INVALID_DATA_VERSION;
H A DSlideshowDataAdapter.java24 import com.android.gallery3d.data.MediaObject;
63 private long mDataVersion = MediaObject.INVALID_DATA_VERSION;
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/provider/
H A DGalleryProvider.java36 import com.android.gallery3d.data.MediaObject;
119 MediaObject object = mDataManager.getMediaObject(path); in query()
135 private Cursor queryPicasaItem(MediaObject image, String[] projection, in queryPicasaItem()
181 MediaObject object = mDataManager.getMediaObject(path); in openFile()
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/gadget/
H A DMediaSetSource.java27 import com.android.gallery3d.data.MediaObject;
133 private long mSourceVersion = MediaObject.INVALID_DATA_VERSION;
/aosp12/packages/apps/Gallery2/src/com/android/photos/shims/
H A DMediaItemsLoader.java31 import com.android.gallery3d.data.MediaObject;
174 MediaObject o = mDataManager.getMediaObject((Path) path); in deleteItemWithPath()
H A DMediaSetLoader.java29 import com.android.gallery3d.data.MediaObject;
176 MediaObject o = mDataManager.getMediaObject((Path) path); in deleteItemWithPath()

12