Home
last modified time | relevance | path

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

12

/packages/apps/Gallery2/src_pd/com/android/gallery3d/picasasource/
DPicasaSource.java26 import com.android.gallery3d.data.MediaObject;
75 public MediaObject createMediaObject(Path path) { in createMediaObject()
78 return new EmptyAlbumSet(path, MediaObject.nextVersionNumber()); 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()
[all …]
/packages/apps/Gallery2/src/com/android/photos/
DSelectionManager.java29 import com.android.gallery3d.data.MediaObject;
84 if ((itemSupportedOperations & MediaObject.SUPPORT_DELETE) > 0) { in onItemSelectedStateChanged()
87 if ((itemSupportedOperations & MediaObject.SUPPORT_EDIT) > 0) { in onItemSelectedStateChanged()
90 if ((itemSupportedOperations & MediaObject.SUPPORT_CROP) > 0) { in onItemSelectedStateChanged()
93 if ((itemSupportedOperations & MediaObject.SUPPORT_SETAS) > 0) { in onItemSelectedStateChanged()
96 if ((itemSupportedOperations & MediaObject.SUPPORT_TRIM) > 0) { in onItemSelectedStateChanged()
99 if ((itemSupportedOperations & MediaObject.SUPPORT_MUTE) > 0) { in onItemSelectedStateChanged()
102 if ((itemSupportedOperations & MediaObject.SUPPORT_SHARE) > 0) { in onItemSelectedStateChanged()
145 supported |= MediaObject.SUPPORT_CROP; in getSupportedOperations()
148 supported |= MediaObject.SUPPORT_EDIT; in getSupportedOperations()
[all …]
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()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DMenuExecutor.java38 import com.android.gallery3d.data.MediaObject;
169 boolean supportDelete = (supported & MediaObject.SUPPORT_DELETE) != 0; in updateMenuOperation()
170 boolean supportRotate = (supported & MediaObject.SUPPORT_ROTATE) != 0; in updateMenuOperation()
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()
174 boolean supportShare = (supported & MediaObject.SUPPORT_SHARE) != 0; in updateMenuOperation()
175 boolean supportSetAs = (supported & MediaObject.SUPPORT_SETAS) != 0; in updateMenuOperation()
176 boolean supportShowOnMap = (supported & MediaObject.SUPPORT_SHOW_ON_MAP) != 0; in updateMenuOperation()
177 boolean supportCache = (supported & MediaObject.SUPPORT_CACHE) != 0; in updateMenuOperation()
[all …]
DActionModeHandler.java40 import com.android.gallery3d.data.MediaObject;
41 import com.android.gallery3d.data.MediaObject.PanoramaSupportCallback;
59 private static final int SUPPORT_MULTIPLE_MASK = MediaObject.SUPPORT_DELETE
60 | MediaObject.SUPPORT_ROTATE | MediaObject.SUPPORT_SHARE
61 | MediaObject.SUPPORT_CACHE;
90 public GetAllPanoramaSupports(ArrayList<MediaObject> mediaObjects, JobContext jc) { in GetAllPanoramaSupports()
93 for (MediaObject mediaObject : mediaObjects) { in GetAllPanoramaSupports()
99 public void panoramaInfoAvailable(MediaObject mediaObject, boolean isPanorama, in panoramaInfoAvailable()
265 private ArrayList<MediaObject> getSelectedMediaObjects(JobContext jc) { in getSelectedMediaObjects()
272 ArrayList<MediaObject> selected = new ArrayList<MediaObject>(); in getSelectedMediaObjects()
[all …]
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()
DAlbumSlotRenderer.java21 import com.android.gallery3d.data.MediaObject;
126 if (entry.mediaType == MediaObject.MEDIA_TYPE_VIDEO) { in renderSlot()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
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 …]
DPhotoPage.java52 import com.android.gallery3d.data.MediaObject;
53 import com.android.gallery3d.data.MediaObject.PanoramaSupportCallback;
191 public void panoramaInfoAvailable(MediaObject mediaObject, boolean isPanorama,
202 public void panoramaInfoAvailable(MediaObject mediaObject, boolean isPanorama,
213 public void panoramaInfoAvailable(MediaObject mediaObject, boolean isPanorama,
341 … && (mCurrentPhoto.getSupportedOperations() & MediaObject.SUPPORT_ACTION) != 0) { in onCreate()
591 && mCurrentPhoto.getMediaType() == MediaObject.MEDIA_TYPE_IMAGE; in canDisplayBottomControl()
640 private static Intent createShareIntent(MediaObject mediaObject) { in createShareIntent()
681 & MediaObject.SUPPORT_EDIT) == 0) { in launchPhotoEditor()
703 & MediaObject.SUPPORT_EDIT) == 0) { in launchSimpleEditor()
[all …]
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()
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()
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;
DFilterUtils.java20 import com.android.gallery3d.data.MediaObject;
180 mediaType = MediaObject.MEDIA_TYPE_IMAGE; in newFilterPath()
183 mediaType = MediaObject.MEDIA_TYPE_VIDEO; in newFilterPath()
DSlideshowDataAdapter.java24 import com.android.gallery3d.data.MediaObject;
63 private long mDataVersion = MediaObject.INVALID_DATA_VERSION;
/packages/apps/Gallery2/src/com/android/gallery3d/data/
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()
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()
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()
DBucketHelper.java126 if ((type & MediaObject.MEDIA_TYPE_IMAGE) != 0) { in loadBucketEntriesFromImagesAndVideoTable()
130 if ((type & MediaObject.MEDIA_TYPE_VIDEO) != 0) { in loadBucketEntriesFromImagesAndVideoTable()
158 if ((type & MediaObject.MEDIA_TYPE_IMAGE) != 0) { in loadBucketEntriesFromFilesTable()
161 if ((type & MediaObject.MEDIA_TYPE_VIDEO) != 0) { in loadBucketEntriesFromFilesTable()
DMediaSource.java41 public abstract MediaObject createMediaObject(Path path); in createMediaObject()
80 MediaObject obj; in mapMediaItems()
DMediaSet.java34 public abstract class MediaSet extends MediaObject {
144 MediaObject item = list.get(i); in getIndexOf()
DLocalSource.java83 public MediaObject createMediaObject(Path path) { in createMediaObject()
183 MediaObject object = mApplication.getDataManager().getMediaObject(item); in getDefaultSetOf()
/packages/apps/Gallery2/src/com/android/gallery3d/provider/
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()
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/
DMediaSetSource.java27 import com.android.gallery3d.data.MediaObject;
133 private long mSourceVersion = MediaObject.INVALID_DATA_VERSION;
/packages/apps/Gallery2/src/com/android/photos/shims/
DMediaItemsLoader.java31 import com.android.gallery3d.data.MediaObject;
174 MediaObject o = mDataManager.getMediaObject((Path) path); in deleteItemWithPath()
DMediaSetLoader.java29 import com.android.gallery3d.data.MediaObject;
176 MediaObject o = mDataManager.getMediaObject((Path) path); in deleteItemWithPath()

12