Home
last modified time | relevance | path

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

123

/packages/apps/Camera2/src/com/android/camera/data/
DPhotoDataQuery.java26 public static final String QUERY_ORDER = MediaStore.Images.ImageColumns._ID + " DESC";
27 public static final Uri CONTENT_URI = MediaStore.Images.Media.EXTERNAL_CONTENT_URI;
46 MediaStore.Images.ImageColumns._ID, // 0, int
47 MediaStore.Images.ImageColumns.TITLE, // 1, string
48 MediaStore.Images.ImageColumns.MIME_TYPE, // 2, string
49 MediaStore.Images.ImageColumns.DATE_TAKEN, // 3, int
50 MediaStore.Images.ImageColumns.DATE_MODIFIED, // 4, int
51 MediaStore.Images.ImageColumns.DATA, // 5, string
52 MediaStore.Images.ImageColumns.ORIENTATION, // 6, int, 0, 90, 180, 270
53 MediaStore.Images.ImageColumns.WIDTH, // 7, int
[all …]
DDataUtils.java31 MediaStore.Images.Media.DATA in getPathFromURI()
38 int columnIndex = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA); in getPathFromURI()
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DLocalSource.java71 Uri uri = internal ? MediaStore.Images.Media.INTERNAL_CONTENT_URI in findAlbums()
72 : MediaStore.Images.Media.EXTERNAL_CONTENT_URI; in findAlbums()
73 String[] projection = {MediaStore.Images.Media.DATA, MediaStore.Images.Media.BUCKET_ID, in findAlbums()
74 MediaStore.Images.Media.BUCKET_DISPLAY_NAME, MediaStore.Images.Media.DATE_TAKEN}; in findAlbums()
80 int dataIndex = cursor.getColumnIndex(MediaStore.Images.Media.DATA); in findAlbums()
81 int bucketIndex = cursor.getColumnIndex(MediaStore.Images.Media.BUCKET_ID); in findAlbums()
82 int nameIndex = cursor.getColumnIndex(MediaStore.Images.Media.BUCKET_DISPLAY_NAME); in findAlbums()
83 int updatedIndex = cursor.getColumnIndex(MediaStore.Images.Media.DATE_TAKEN); in findAlbums()
129 String[] projection = {MediaStore.Images.Media.DATA, MediaStore.Images.Media.ORIENTATION, in openCursor()
130 MediaStore.Images.Media.BUCKET_ID, MediaStore.Images.Media.BUCKET_DISPLAY_NAME}; in openCursor()
[all …]
/packages/apps/DevCamera/src/com/android/devcamera/
DMediaSaver.java141 values.put(MediaStore.Images.Media.TITLE, file.getName()); in insertImage()
142 values.put(MediaStore.Images.Media.DISPLAY_NAME, file.getName()); in insertImage()
143 values.put(MediaStore.Images.Media.DESCRIPTION, file.getName()); in insertImage()
144 values.put(MediaStore.Images.Media.MIME_TYPE, "image/jpeg"); in insertImage()
145 values.put(MediaStore.Images.Media.DATA, file.getAbsolutePath()); in insertImage()
147 values.put(MediaStore.Images.Media.DATE_ADDED, System.currentTimeMillis()); in insertImage()
148 values.put(MediaStore.Images.Media.DATE_TAKEN, System.currentTimeMillis()); in insertImage()
151 cr.insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, values); in insertImage()
/packages/apps/Gallery/src/com/android/camera/
DImageManager.java40 import android.provider.MediaStore.Images;
59 private static final Uri STORAGE_URI = Images.Media.EXTERNAL_CONTENT_URI;
61 = Images.Thumbnails.EXTERNAL_CONTENT_URI;
230 values.put(Images.Media.TITLE, title); in addImage()
235 values.put(Images.Media.DISPLAY_NAME, filename); in addImage()
236 values.put(Images.Media.DATE_TAKEN, dateTaken); in addImage()
237 values.put(Images.Media.MIME_TYPE, "image/jpeg"); in addImage()
238 values.put(Images.Media.ORIENTATION, degree[0]); in addImage()
239 values.put(Images.Media.DATA, filePath); in addImage()
242 values.put(Images.Media.LATITUDE, location.getLatitude()); in addImage()
[all …]
DBitmapManager.java22 import android.provider.MediaStore.Images;
128 Images.Thumbnails.cancelThumbnailRequest(cr, -1, t.getId()); in cancelThreadDecoding()
156 return Images.Thumbnails.getThumbnail(cr, origId, t.getId(), in getThumbnail()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/
DSaveImage.java28 import android.provider.MediaStore.Images;
29 import android.provider.MediaStore.Images.ImageColumns;
364 Images.Media.EXTERNAL_CONTENT_URI, values); in processAndSaveImage()
439 Images.Media.EXTERNAL_CONTENT_URI, values); in processAndSaveImage()
679 Images.Media.EXTERNAL_CONTENT_URI, values); in linkNewFileToUri()
700 values.put(Images.Media.TITLE, file.getName()); in getContentValues()
701 values.put(Images.Media.DISPLAY_NAME, file.getName()); in getContentValues()
702 values.put(Images.Media.MIME_TYPE, "image/jpeg"); in getContentValues()
703 values.put(Images.Media.DATE_TAKEN, time); in getContentValues()
704 values.put(Images.Media.DATE_MODIFIED, time); in getContentValues()
[all …]
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/model/
DImageCategory.java74 MediaStore.Images.ImageColumns._ID, in getThumbnail()
75 MediaStore.Images.ImageColumns.DATE_TAKEN, in getThumbnail()
77 String sortOrder = MediaStore.Images.ImageColumns.DATE_TAKEN + " DESC"; in getThumbnail()
79 MediaStore.Images.Media.EXTERNAL_CONTENT_URI, in getThumbnail()
89 … Uri.parse(MediaStore.Images.Media.EXTERNAL_CONTENT_URI + "/" + cursor.getString(0))); in getThumbnail()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/individual/
DMyPhotosViewHolder.java78 MediaStore.Images.ImageColumns._ID, in fetchThumbnail()
79 MediaStore.Images.ImageColumns.DATE_TAKEN, in fetchThumbnail()
81 String sortOrder = MediaStore.Images.ImageColumns.DATE_TAKEN + " DESC LIMIT 1"; in fetchThumbnail()
83 MediaStore.Images.Media.EXTERNAL_CONTENT_URI, in fetchThumbnail()
93 … MediaStore.Images.Media.EXTERNAL_CONTENT_URI + "/" + cursor.getString(0))); in fetchThumbnail()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DLocalImage.java28 import android.provider.MediaStore.Images;
29 import android.provider.MediaStore.Images.ImageColumns;
117 Uri uri = Images.Media.EXTERNAL_CONTENT_URI; in LocalImage()
268 Uri baseUri = Images.Media.EXTERNAL_CONTENT_URI; in delete()
278 Uri baseUri = Images.Media.EXTERNAL_CONTENT_URI; in rotate()
292 values.put(Images.Media.SIZE, fileSize); in rotate()
303 values.put(Images.Media.ORIENTATION, rotation); in rotate()
310 Uri baseUri = Images.Media.EXTERNAL_CONTENT_URI; in getContentUri()
DBucketHelper.java9 import android.provider.MediaStore.Images;
10 import android.provider.MediaStore.Images.ImageColumns;
114 jc, resolver, Images.Media.EXTERNAL_CONTENT_URI, buckets); in loadBucketEntriesFromImagesAndVideoTable()
195 resolver, Images.Media.EXTERNAL_CONTENT_URI, bucketId); in getBucketName()
DSecureAlbum.java22 import android.provider.MediaStore.Images;
49 {Images.Media.EXTERNAL_CONTENT_URI, Video.Media.EXTERNAL_CONTENT_URI};
62 mShowUnlockItem = (!isCameraBucketEmpty(Images.Media.EXTERNAL_CONTENT_URI) in SecureAlbum()
170 Images.Media.EXTERNAL_CONTENT_URI, mMinImageId, mMaxImageId); in updateExistingItems()
DLocalAlbum.java25 import android.provider.MediaStore.Images;
26 import android.provider.MediaStore.Images.ImageColumns;
74 mBaseUri = Images.Media.EXTERNAL_CONTENT_URI; in LocalAlbum()
104 return MediaStore.Images.Media.EXTERNAL_CONTENT_URI.buildUpon() in getContentUri()
175 baseUri = Images.Media.EXTERNAL_CONTENT_URI; in getMediaItemById()
/packages/apps/Gallery/src/com/android/camera/gallery/
DVideoList.java22 import android.provider.MediaStore.Images;
84 Cursor c = Images.Media.query( in getBucketIds()
104 ? Images.Media.BUCKET_ID + " = '" + mBucketId + "'" in whereClause()
114 Cursor c = Images.Media.query( in createCursor()
DImage.java29 import android.provider.MediaStore.Images;
30 import android.provider.MediaStore.Images.ImageColumns;
157 Images.Thumbnails.MINI_KIND, options, false); in thumbBitmap()
DVideoObject.java25 import android.provider.MediaStore.Images;
113 id, Images.Thumbnails.MICRO_KIND, null, true); in miniThumbBitmap()
DBaseImage.java27 import android.provider.MediaStore.Images;
173 Images.Thumbnails.MICRO_KIND, null, false); in miniThumbBitmap()
/packages/providers/MediaProvider/tests/client/src/com/android/providers/media/client/
DPublicVolumeTest.java80 MediaStore.Images.Media.getContentUri(volumeName), values); in testIncludeRecentlyUnmountedVolumes()
95 try (Cursor c = contentResolver.query(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, in testIncludeRecentlyUnmountedVolumes()
103 try (Cursor c = contentResolver.query(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, in testIncludeRecentlyUnmountedVolumes()
111 try (Cursor c = contentResolver.query(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, in testIncludeRecentlyUnmountedVolumes()
/packages/apps/Camera2/src/com/android/camera/session/
DPlaceholderManager.java185 MediaStore.Images.Media.DATE_TAKEN, MediaStore.Images.Media.DISPLAY_NAME, in createSessionFromUri()
192 int dateIndex = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATE_TAKEN); in createSessionFromUri()
193 int nameIndex = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DISPLAY_NAME); in createSessionFromUri()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/
DModernMediaScannerTest.java587 .query(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, null, null, null, null)) { in testScan_Common()
590 uri = ContentUris.withAppendedId(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, in testScan_Common()
608 .query(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, null, null, null, null)) { in testScan_Common()
618 assertQueryCount(0, MediaStore.Images.Media.EXTERNAL_CONTENT_URI); in testScan_Common()
662 assertQueryCount(2, MediaStore.Images.Media.EXTERNAL_CONTENT_URI); in testScan_Nomedia_Dir()
668 assertQueryCount(1, MediaStore.Images.Media.EXTERNAL_CONTENT_URI); in testScan_Nomedia_Dir()
674 assertQueryCount(2, MediaStore.Images.Media.EXTERNAL_CONTENT_URI); in testScan_Nomedia_Dir()
691 assertQueryCount(0, MediaStore.Images.Media.EXTERNAL_CONTENT_URI); in testScan_MaxExcludeNomediaDirs_DoesNotThrowException()
693 assertQueryCount(1, MediaStore.Images.Media.EXTERNAL_CONTENT_URI); in testScan_MaxExcludeNomediaDirs_DoesNotThrowException()
715 assertQueryCount(0, MediaStore.Images.Media.EXTERNAL_CONTENT_URI); in testScan_Nomedia_File()
[all …]
/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DMediaProviderTest.java61 import android.provider.MediaStore.Images.ImageColumns;
320 MediaStore.Images.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY, 42)); in testCreateRequest()
522 values.put(MediaStore.Images.Media.DISPLAY_NAME, in testInsertionWithFilePathOnAnotherUserVolume_throwsIllegalArgumentException()
538 values.put(MediaStore.Images.Media.DISPLAY_NAME, "data/media/test.txt"); in testInsertionWithInvalidFilePath_throwsIllegalArgumentException()
554 values.put(MediaStore.Images.Media.DISPLAY_NAME, "test.txt"); in testUpdationWithInvalidFilePath_throwsIllegalArgumentException()
691 final Uri uri = MediaStore.Images.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY); in testBuildData_Simple()
738 final Uri uri = MediaStore.Images.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY); in testBuildData_Primary()
746 final Uri uri = MediaStore.Images.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY); in testBuildData_Secondary()
753 final Uri uri = MediaStore.Images.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY); in testBuildData_InvalidNames()
779 … buildFile(MediaStore.Images.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY), in testBuildData_InvalidTypes()
[all …]
/packages/apps/LegacyCamera/src/com/android/camera/
DStorage.java25 import android.provider.MediaStore.Images;
26 import android.provider.MediaStore.Images.ImageColumns;
89 uri = resolver.insert(Images.Media.EXTERNAL_CONTENT_URI, values); in addImage()
DThumbnail.java27 import android.provider.MediaStore.Images;
28 import android.provider.MediaStore.Images.ImageColumns;
165 bitmap = Images.Thumbnails.getThumbnail(resolver, image.id, in getLastThumbnail()
166 Images.Thumbnails.MINI_KIND, null); in getLastThumbnail()
196 Uri baseUri = Images.Media.EXTERNAL_CONTENT_URI; in getLastImageThumbnail()
DMenuHelper.java28 import android.provider.MediaStore.Images;
150 Uri target = Images.Media.EXTERNAL_CONTENT_URI.buildUpon() in gotoGallery()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaDocumentsProvider.java59 import android.provider.MediaStore.Images;
60 import android.provider.MediaStore.Images.ImageColumns;
421 Images.Media.EXTERNAL_CONTENT_URI, ident.id); in getUriForDocumentId()
491 query = Images.Media.EXTERNAL_CONTENT_URI; in getDocumentMetadataFromIndex()
620 cursor = resolver.query(Images.Media.EXTERNAL_CONTENT_URI, in queryDocument()
623 result.setNotificationUri(resolver, Images.Media.EXTERNAL_CONTENT_URI); in queryDocument()
629 cursor = resolver.query(Images.Media.EXTERNAL_CONTENT_URI, in queryDocument()
632 result.setNotificationUri(resolver, Images.Media.EXTERNAL_CONTENT_URI); in queryDocument()
732 cursor = resolver.query(Images.Media.EXTERNAL_CONTENT_URI, in queryChildDocuments()
735 result.setNotificationUri(resolver, Images.Media.EXTERNAL_CONTENT_URI); in queryChildDocuments()
[all …]

123