/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
D | LocalSource.java | 71 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/UniversalMediaPlayer/java/com/android/pump/db/ |
D | VideoStore.java | 75 mContentResolver.registerContentObserver(MediaStore.Video.Media.EXTERNAL_CONTENT_URI, in VideoStore() 102 Uri contentUri = MediaStore.Video.Media.EXTERNAL_CONTENT_URI; in load() 106 MediaStore.Video.Media._ID, in load() 107 MediaStore.Video.Media.MIME_TYPE, in load() 109 MediaStore.Video.Media.DISPLAY_NAME in load() 113 MediaStore.Video.Media._ID, in load() 114 MediaStore.Video.Media.MIME_TYPE, in load() 115 MediaStore.Video.Media.DATA in load() 118 String sortOrder = MediaStore.Video.Media._ID; in load() 122 int idColumn = cursor.getColumnIndexOrThrow(MediaStore.Video.Media._ID); in load() [all …]
|
D | AudioStore.java | 66 mContentResolver.registerContentObserver(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, in AudioStore() 110 MediaStore.Audio.Media.ARTIST_ID // TODO MediaStore.Audio.Albums.ARTIST_ID in load() 118 … MediaStore.Audio.Media.ARTIST_ID); // TODO MediaStore.Audio.Albums.ARTIST_ID in load() 141 Uri contentUri = MediaStore.Audio.Media.EXTERNAL_CONTENT_URI; in load() 143 MediaStore.Audio.Media._ID, in load() 144 MediaStore.Audio.Media.MIME_TYPE, in load() 145 MediaStore.Audio.Media.ARTIST_ID, in load() 146 MediaStore.Audio.Media.ALBUM_ID in load() 148 String selection = MediaStore.Audio.Media.IS_MUSIC + " != 0"; in load() 149 String sortOrder = MediaStore.Audio.Media._ID; in load() [all …]
|
/packages/apps/Gallery/src/com/android/camera/gallery/ |
D | ImageList.java | 22 import android.provider.MediaStore.Images.Media; 41 Cursor cursor = Media.query( in getBucketIds() 44 Media.BUCKET_DISPLAY_NAME, in getBucketIds() 45 Media.BUCKET_ID}, in getBucketIds() 67 "(" + Media.MIME_TYPE + " in (?, ?, ?))"; 69 WHERE_CLAUSE + " AND " + Media.BUCKET_ID + " = ?"; 89 Cursor c = Media.query( in createCursor() 96 Media._ID, 97 Media.DATA, 98 Media.DATE_TAKEN, [all …]
|
D | VideoList.java | 23 import android.provider.MediaStore.Video.Media; 36 Media._ID, 37 Media.DATA, 38 Media.DATE_TAKEN, 39 Media.TITLE, 40 Media.MINI_THUMB_MAGIC, 41 Media.MIME_TYPE, 42 Media.DATE_MODIFIED}; 84 Cursor c = Images.Media.query( in getBucketIds() 87 Media.BUCKET_DISPLAY_NAME, in getBucketIds() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
D | SaveVideoFileUtils.java | 96 values.put(Video.Media.TITLE, mDstFileInfo.mFileName); in insertContent() 97 values.put(Video.Media.DISPLAY_NAME, mDstFileInfo.mFile.getName()); in insertContent() 98 values.put(Video.Media.MIME_TYPE, "video/mp4"); in insertContent() 99 values.put(Video.Media.DATE_TAKEN, nowInMs); in insertContent() 100 values.put(Video.Media.DATE_MODIFIED, nowInSec); in insertContent() 101 values.put(Video.Media.DATE_ADDED, nowInSec); in insertContent() 102 values.put(Video.Media.DATA, mDstFileInfo.mFile.getAbsolutePath()); in insertContent() 103 values.put(Video.Media.SIZE, mDstFileInfo.mFile.length()); in insertContent() 105 values.put(Video.Media.DURATION, durationMs); in insertContent() 121 values.put(Video.Media.DATE_TAKEN, timeTaken); in insertContent() [all …]
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | Thumbnail.java | 156 Media image = getLastImageThumbnail(resolver); in getLastThumbnail() 157 Media video = getLastVideoThumbnail(resolver); in getLastThumbnail() 161 Media lastMedia; in getLastThumbnail() 181 private static class Media { class in Thumbnail 182 public Media(long id, int orientation, long dateTaken, Uri uri) { in Media() method in Thumbnail.Media 195 public static Media getLastImageThumbnail(ContentResolver resolver) { in getLastImageThumbnail() 196 Uri baseUri = Images.Media.EXTERNAL_CONTENT_URI; in getLastImageThumbnail() 210 return new Media(id, cursor.getInt(1), cursor.getLong(2), in getLastImageThumbnail() 221 private static Media getLastVideoThumbnail(ContentResolver resolver) { in getLastVideoThumbnail() 222 Uri baseUri = Video.Media.EXTERNAL_CONTENT_URI; in getLastVideoThumbnail() [all …]
|
/packages/apps/DevCamera/src/com/android/devcamera/ |
D | MediaSaver.java | 141 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/ |
D | ImageManager.java | 59 private static final Uri STORAGE_URI = Images.Media.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() 243 values.put(Images.Media.LONGITUDE, location.getLongitude()); in addImage() 314 Images.Media.INTERNAL_CONTENT_URI, sort, bucketId)); in makeImageList() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/ |
D | SaveImage.java | 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() 705 values.put(Images.Media.DATE_ADDED, time); in getContentValues() 706 values.put(Images.Media.ORIENTATION, 0); in getContentValues() [all …]
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | MediaDocumentsProvider.java | 382 Images.Media.EXTERNAL_CONTENT_URI, ident.id); in getUriForDocumentId() 385 Video.Media.EXTERNAL_CONTENT_URI, ident.id); in getUriForDocumentId() 388 Audio.Media.EXTERNAL_CONTENT_URI, ident.id); in getUriForDocumentId() 448 query = Images.Media.EXTERNAL_CONTENT_URI; in getDocumentMetadataFromIndex() 453 query = Video.Media.EXTERNAL_CONTENT_URI; in getDocumentMetadataFromIndex() 458 query = Audio.Media.EXTERNAL_CONTENT_URI; in getDocumentMetadataFromIndex() 568 cursor = resolver.query(Images.Media.EXTERNAL_CONTENT_URI, in queryDocument() 577 cursor = resolver.query(Images.Media.EXTERNAL_CONTENT_URI, in queryDocument() 589 cursor = resolver.query(Video.Media.EXTERNAL_CONTENT_URI, in queryDocument() 598 cursor = resolver.query(Video.Media.EXTERNAL_CONTENT_URI, in queryDocument() [all …]
|
/packages/apps/Camera2/src/com/android/camera/ |
D | Storage.java | 29 import android.provider.MediaStore.Images.Media; 167 uri = resolver.insert(Media.EXTERNAL_CONTENT_URI, values); in addImageToMediaStore() 194 publishValues.put(Media.IS_PENDING, 0); in writeBitmap() 204 values.put(Media.TITLE, title); in getContentValuesForData() 205 values.put(Media.DISPLAY_NAME, title + JPEG_POSTFIX); in getContentValuesForData() 206 values.put(Media.DATE_TAKEN, date); in getContentValuesForData() 207 values.put(Media.MIME_TYPE, mimeType); in getContentValuesForData() 210 values.put(Media.IS_PENDING, 1); in getContentValuesForData() 212 values.put(Media.IS_PENDING, 0); in getContentValuesForData() 216 values.put(Media.LATITUDE, location.getLatitude()); in getContentValuesForData() [all …]
|
D | VideoModule.java | 1229 mCurrentVideoValues.put(Video.Media.TITLE, title); in generateVideoFilename() 1230 mCurrentVideoValues.put(Video.Media.DISPLAY_NAME, filename); in generateVideoFilename() 1231 mCurrentVideoValues.put(Video.Media.DATE_TAKEN, dateTaken); in generateVideoFilename() 1233 mCurrentVideoValues.put(Video.Media.MIME_TYPE, mime); in generateVideoFilename() 1234 mCurrentVideoValues.put(Video.Media.DATA, path); in generateVideoFilename() 1235 mCurrentVideoValues.put(Video.Media.WIDTH, mProfile.videoFrameWidth); in generateVideoFilename() 1236 mCurrentVideoValues.put(Video.Media.HEIGHT, mProfile.videoFrameHeight); in generateVideoFilename() 1237 mCurrentVideoValues.put(Video.Media.RESOLUTION, in generateVideoFilename() 1242 mCurrentVideoValues.put(Video.Media.LATITUDE, loc.getLatitude()); in generateVideoFilename() 1243 mCurrentVideoValues.put(Video.Media.LONGITUDE, loc.getLongitude()); in generateVideoFilename() [all …]
|
/packages/apps/Music/kotlin/src/com/android/music/ |
D | AudioPreview.kt | 122 val titleIdx: Int = cursor.getColumnIndex(MediaStore.Audio.Media.TITLE) in onCreate() 123 val artistIdx: Int = cursor.getColumnIndex(MediaStore.Audio.Media.ARTIST) in onCreate() 124 val idIdx: Int = cursor.getColumnIndex(MediaStore.Audio.Media._ID) in onCreate() 155 …startQuery(0, null, mUri, arrayOf<String>(MediaStore.Audio.Media.TITLE, MediaStore.Audio.Media.ART… in onCreate() 167 …ry(0, null, MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, arrayOf<String>(MediaStore.Audio.Media._I… in onCreate() 168 …MediaStore.Audio.Media.ARTIST), MediaStore.Audio.Media.DATA.toString() + "=?", arrayOf(path), null) in onCreate()
|
/packages/apps/Music/src/com/android/music/ |
D | AudioPreview.java | 133 int titleIdx = cursor.getColumnIndex(MediaStore.Audio.Media.TITLE); in onCreate() 134 int artistIdx = cursor.getColumnIndex(MediaStore.Audio.Media.ARTIST); in onCreate() 135 int idIdx = cursor.getColumnIndex(MediaStore.Audio.Media._ID); in onCreate() 171 new String[] {MediaStore.Audio.Media.TITLE, MediaStore.Audio.Media.ARTIST}, in onCreate() 183 mAsyncQueryHandler.startQuery(0, null, MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, in onCreate() 184 new String[] {MediaStore.Audio.Media._ID, MediaStore.Audio.Media.TITLE, in onCreate() 185 MediaStore.Audio.Media.ARTIST}, in onCreate() 186 MediaStore.Audio.Media.DATA + "=?", new String[] {path}, null); in onCreate()
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/ |
D | ModernMediaScannerTest.java | 311 .query(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, null, null, null, null)) { in testScan_Common() 314 uri = ContentUris.withAppendedId(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, in testScan_Common() 336 .query(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, null, null, null, null)) { in testScan_Common() 346 assertQueryCount(0, MediaStore.Images.Media.EXTERNAL_CONTENT_URI); in testScan_Common() 363 assertQueryCount(2, MediaStore.Images.Media.EXTERNAL_CONTENT_URI); in testScan_Nomedia_Dir() 369 assertQueryCount(1, MediaStore.Images.Media.EXTERNAL_CONTENT_URI); in testScan_Nomedia_Dir() 374 assertQueryCount(2, MediaStore.Images.Media.EXTERNAL_CONTENT_URI); in testScan_Nomedia_Dir() 388 assertQueryCount(0, MediaStore.Images.Media.EXTERNAL_CONTENT_URI); in testScan_Nomedia_File() 394 assertQueryCount(1, MediaStore.Images.Media.EXTERNAL_CONTENT_URI); in testScan_Nomedia_File() 399 assertQueryCount(0, MediaStore.Images.Media.EXTERNAL_CONTENT_URI); in testScan_Nomedia_File()
|
D | MediaScannerTest.java | 129 MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, in testCorrectness() 130 MediaStore.Video.Media.EXTERNAL_CONTENT_URI, in testCorrectness() 131 MediaStore.Images.Media.EXTERNAL_CONTENT_URI, in testCorrectness() 216 getCount(context, MediaStore.Audio.Media.EXTERNAL_CONTENT_URI), in getCounts() 217 getCount(context, MediaStore.Video.Media.EXTERNAL_CONTENT_URI), in getCounts() 218 getCount(context, MediaStore.Images.Media.EXTERNAL_CONTENT_URI), in getCounts()
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/ |
D | GalleryGridItemData.java | 23 import android.provider.MediaStore.Images.Media; 33 new String[] {Media._ID, Media.DATA, Media.MIME_TYPE, Media.DATE_MODIFIED};
|
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/ |
D | LocalPhotoSource.java | 27 import android.provider.MediaStore.Images.Media; 50 private static final Uri CONTENT_URI = Media.EXTERNAL_CONTENT_URI; 51 private static final String DATE_TAKEN = Media.DATE_TAKEN; 52 private static final String[] PROJECTION = {Media._ID}; 56 String.format("%s != %s", Media.BUCKET_ID, getDownloadBucketId()); 146 String.format("%s in (%s)", Media._ID, builder.toString()), in isContentSound()
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | SecureAlbum.java | 49 {Images.Media.EXTERNAL_CONTENT_URI, Video.Media.EXTERNAL_CONTENT_URI}; 62 mShowUnlockItem = (!isCameraBucketEmpty(Images.Media.EXTERNAL_CONTENT_URI) in SecureAlbum() 63 || !isCameraBucketEmpty(Video.Media.EXTERNAL_CONTENT_URI)); in SecureAlbum() 170 Images.Media.EXTERNAL_CONTENT_URI, mMinImageId, mMaxImageId); in updateExistingItems() 172 Video.Media.EXTERNAL_CONTENT_URI, mMinVideoId, mMaxVideoId); in updateExistingItems()
|
D | LocalAlbum.java | 74 mBaseUri = Images.Media.EXTERNAL_CONTENT_URI; in LocalAlbum() 81 mBaseUri = Video.Media.EXTERNAL_CONTENT_URI; in LocalAlbum() 104 return MediaStore.Images.Media.EXTERNAL_CONTENT_URI.buildUpon() in getContentUri() 108 return MediaStore.Video.Media.EXTERNAL_CONTENT_URI.buildUpon() in getContentUri() 175 baseUri = Images.Media.EXTERNAL_CONTENT_URI; in getMediaItemById() 179 baseUri = Video.Media.EXTERNAL_CONTENT_URI; in getMediaItemById()
|
D | LocalImage.java | 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()
|
/packages/apps/Messaging/tests/src/com/android/messaging/ui/mediapicker/ |
D | GalleryGridItemViewTest.java | 19 import android.provider.MediaStore.Images.Media; 80 final String path = (String) cursor.getAt(Media.DATA, 0); in testBind() 93 final String path = (String) cursor.getAt(Media.DATA, 0); in testBindMultiSelectUnSelected() 106 final String path = (String) cursor.getAt(Media.DATA, 0); in testBindMultiSelectSelected() 135 final String path = (String) cursor.getAt(Media.DATA, 1); in testBindTwice()
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/ |
D | MediaProviderTest.java | 187 final Uri uri = MediaStore.Images.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY); in testBuildData_Simple() 198 final Uri uri = MediaStore.Images.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY); in testBuildData_Primary() 205 final Uri uri = MediaStore.Images.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY); in testBuildData_Secondary() 212 final Uri uri = MediaStore.Images.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY); in testBuildData_InvalidNames() 226 … buildFile(MediaStore.Audio.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY), in testBuildData_InvalidTypes() 232 … buildFile(MediaStore.Video.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY), in testBuildData_InvalidTypes() 238 … buildFile(MediaStore.Images.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY), in testBuildData_InvalidTypes() 247 final Uri uri = MediaStore.Images.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY); in testBuildData_Charset()
|
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/data/ |
D | TestDataFactory.java | 25 import android.provider.MediaStore.Images.Media; 97 Media._ID, 98 Media.DATA, 99 Media.WIDTH, 100 Media.HEIGHT, 101 Media.MIME_TYPE
|