/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 | 76 mContentResolver.registerContentObserver(MediaStore.Video.Media.EXTERNAL_CONTENT_URI, in VideoStore() 103 Uri contentUri = MediaStore.Video.Media.EXTERNAL_CONTENT_URI; in load() 107 MediaStore.Video.Media._ID, in load() 108 MediaStore.Video.Media.MIME_TYPE, in load() 110 MediaStore.Video.Media.DISPLAY_NAME in load() 114 MediaStore.Video.Media._ID, in load() 115 MediaStore.Video.Media.MIME_TYPE, in load() 116 MediaStore.Video.Media.DATA in load() 119 String sortOrder = MediaStore.Video.Media._ID; in load() 123 int idColumn = cursor.getColumnIndexOrThrow(MediaStore.Video.Media._ID); in load() [all …]
|
D | AudioStore.java | 65 mContentResolver.registerContentObserver(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, in AudioStore() 109 MediaStore.Audio.Media.ARTIST_ID // TODO MediaStore.Audio.Albums.ARTIST_ID in load() 117 … MediaStore.Audio.Media.ARTIST_ID); // TODO MediaStore.Audio.Albums.ARTIST_ID in load() 140 Uri contentUri = MediaStore.Audio.Media.EXTERNAL_CONTENT_URI; in load() 142 MediaStore.Audio.Media._ID, in load() 143 MediaStore.Audio.Media.MIME_TYPE, in load() 144 MediaStore.Audio.Media.ARTIST_ID, in load() 145 MediaStore.Audio.Media.ALBUM_ID in load() 147 String selection = MediaStore.Audio.Media.IS_MUSIC + " != 0"; in load() 148 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/providers/MediaProvider/tests/src/com/android/providers/media/scan/ |
D | ModernMediaScannerTest.java | 558 assertQueryCount(1, MediaStore.Audio.Media.EXTERNAL_CONTENT_URI in testFilter() 560 assertQueryCount(1, MediaStore.Audio.Media.EXTERNAL_CONTENT_URI in testFilter() 562 assertQueryCount(1, MediaStore.Audio.Media.EXTERNAL_CONTENT_URI in testFilter() 566 assertQueryCount(1, MediaStore.Audio.Media.EXTERNAL_CONTENT_URI in testFilter() 574 assertQueryCount(0, MediaStore.Audio.Media.EXTERNAL_CONTENT_URI in testFilter() 576 assertQueryCount(0, MediaStore.Audio.Media.EXTERNAL_CONTENT_URI in testFilter() 590 .query(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, null, null, null, null)) { in testScan_Common() 593 uri = ContentUris.withAppendedId(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, in testScan_Common() 611 .query(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, null, null, null, null)) { in testScan_Common() 621 assertQueryCount(0, MediaStore.Images.Media.EXTERNAL_CONTENT_URI); in testScan_Common() [all …]
|
D | MediaScannerTest.java | 174 MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, in testCorrectness() 175 MediaStore.Video.Media.EXTERNAL_CONTENT_URI, in testCorrectness() 176 MediaStore.Images.Media.EXTERNAL_CONTENT_URI, in testCorrectness() 262 getCount(context, MediaStore.Audio.Media.getContentUri(VOLUME_EXTERNAL)), in getCounts() 263 getCount(context, MediaStore.Video.Media.getContentUri(VOLUME_EXTERNAL)), in getCounts() 264 getCount(context, MediaStore.Images.Media.getContentUri(VOLUME_EXTERNAL)), in getCounts()
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/ |
D | MediaProviderTest.java | 301 MediaStore.Images.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY, 42)); in testCreateRequest() 317 MediaStore.Audio.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY), values); in testCheckUriPermission() 392 final Uri targetUri = MediaStore.Audio.Media in testBulkInsert() 509 final Uri uri = MediaStore.Images.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY); in testBuildData_Simple() 538 final Uri uri = MediaStore.Images.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY); in testBuildData_Primary() 546 final Uri uri = MediaStore.Images.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY); in testBuildData_Secondary() 553 final Uri uri = MediaStore.Images.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY); in testBuildData_InvalidNames() 567 … buildFile(MediaStore.Audio.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY), in testBuildData_InvalidTypes() 573 … buildFile(MediaStore.Video.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY), in testBuildData_InvalidTypes() 579 … buildFile(MediaStore.Images.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY), in testBuildData_InvalidTypes() [all …]
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | MediaDocumentsProvider.java | 419 Images.Media.EXTERNAL_CONTENT_URI, ident.id); in getUriForDocumentId() 422 Video.Media.EXTERNAL_CONTENT_URI, ident.id); in getUriForDocumentId() 425 Audio.Media.EXTERNAL_CONTENT_URI, ident.id); in getUriForDocumentId() 489 query = Images.Media.EXTERNAL_CONTENT_URI; in getDocumentMetadataFromIndex() 494 query = Video.Media.EXTERNAL_CONTENT_URI; in getDocumentMetadataFromIndex() 499 query = Audio.Media.EXTERNAL_CONTENT_URI; in getDocumentMetadataFromIndex() 618 cursor = resolver.query(Images.Media.EXTERNAL_CONTENT_URI, in queryDocument() 621 result.setNotificationUri(resolver, Images.Media.EXTERNAL_CONTENT_URI); in queryDocument() 627 cursor = resolver.query(Images.Media.EXTERNAL_CONTENT_URI, in queryDocument() 630 result.setNotificationUri(resolver, Images.Media.EXTERNAL_CONTENT_URI); in queryDocument() [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/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/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/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 | 1116 Uri videoTable = MediaStore.Video.Media.getContentUri( in initializeRecorder() 1225 mCurrentVideoValues.put(Video.Media.TITLE, title); in generateVideoValues() 1226 mCurrentVideoValues.put(Video.Media.DISPLAY_NAME, title); in generateVideoValues() 1227 mCurrentVideoValues.put(Video.Media.DATE_TAKEN, dateTaken); in generateVideoValues() 1229 mCurrentVideoValues.put(Video.Media.MIME_TYPE, mime); in generateVideoValues() 1230 mCurrentVideoValues.put(Video.Media.WIDTH, mProfile.videoFrameWidth); in generateVideoValues() 1231 mCurrentVideoValues.put(Video.Media.HEIGHT, mProfile.videoFrameHeight); in generateVideoValues() 1232 mCurrentVideoValues.put(Video.Media.RESOLUTION, in generateVideoValues() 1235 mCurrentVideoValues.put(Video.Media.IS_PENDING, 1); in generateVideoValues() 1238 mCurrentVideoValues.put(Video.Media.LATITUDE, loc.getLatitude()); in generateVideoValues() [all …]
|
/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/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/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()
|
/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/client/src/com/android/providers/media/client/ |
D | PublicVolumeTest.java | 75 MediaStore.Images.Media.getContentUri(volumeName), values); in testIncludeRecentlyUnmountedVolumes() 90 try (Cursor c = contentResolver.query(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, in testIncludeRecentlyUnmountedVolumes() 98 try (Cursor c = contentResolver.query(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, in testIncludeRecentlyUnmountedVolumes() 106 try (Cursor c = contentResolver.query(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, in testIncludeRecentlyUnmountedVolumes()
|
/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
|