/packages/providers/MediaProvider/tests/src/com/android/providers/media/ |
D | MediaProviderTest.java | 59 import android.provider.MediaStore.MediaColumns; 314 values.put(MediaColumns.DISPLAY_NAME, "test.mp3"); in testCheckUriPermission() 315 values.put(MediaColumns.MIME_TYPE, "audio/mpeg"); in testCheckUriPermission() 325 testActionLongFileNameItemHasTrimmedFileName(MediaColumns.IS_TRASHED); in testTrashLongFileNameItemHasTrimmedFileName() 330 testActionLongFileNameItemHasTrimmedFileName(MediaColumns.IS_PENDING); in testPendingLongFileNameItemHasTrimmedFileName() 338 final String[] projection = new String[]{MediaColumns.DATA}; in testActionLongFileNameItemHasTrimmedFileName() 385 values1.put(MediaColumns.DISPLAY_NAME, "test1.mp3"); in testBulkInsert() 386 values1.put(MediaColumns.MIME_TYPE, "audio/mpeg"); in testBulkInsert() 389 values2.put(MediaColumns.DISPLAY_NAME, "test2.mp3"); in testBulkInsert() 390 values2.put(MediaColumns.MIME_TYPE, "audio/mpeg"); in testBulkInsert() [all …]
|
D | ResolvePlaylistTest.java | 126 MediaStore.MediaColumns.DISPLAY_NAME in doPlaylist() 147 MediaStore.MediaColumns.DISPLAY_NAME in doPlaylist() 167 MediaStore.MediaColumns.DISPLAY_NAME in doPlaylist() 205 MediaStore.MediaColumns.DISPLAY_NAME in testBrokenPlaylistM3u()
|
/packages/providers/MediaProvider/src/com/android/providers/media/scan/ |
D | ModernMediaScanner.java | 82 import android.provider.MediaStore.MediaColumns; 810 op.withValue(MediaColumns.OWNER_PACKAGE_NAME, mOwnerPackage); in visitFile() 815 op.withValue(MediaColumns.IS_DRM, 1); in visitFile() 1029 op.withValue(MediaColumns.DATA, file.getAbsolutePath()); in withGenericValues() 1030 op.withValue(MediaColumns.SIZE, attrs.size()); in withGenericValues() 1031 op.withValue(MediaColumns.DATE_MODIFIED, lastModifiedTime(file, attrs)); in withGenericValues() 1032 op.withValue(MediaColumns.DATE_TAKEN, null); in withGenericValues() 1033 op.withValue(MediaColumns.IS_DRM, 0); in withGenericValues() 1034 op.withValue(MediaColumns.WIDTH, null); in withGenericValues() 1035 op.withValue(MediaColumns.HEIGHT, null); in withGenericValues() [all …]
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/ |
D | FileUtilsTest.java | 64 import android.provider.MediaStore.MediaColumns; 695 values.put(MediaColumns.RELATIVE_PATH, "path/in\0valid/data/"); in testSanitizeValues() 696 values.put(MediaColumns.DISPLAY_NAME, "inva\0lid"); in testSanitizeValues() 698 assertEquals("path/in_valid/data/", values.get(MediaColumns.RELATIVE_PATH)); in testSanitizeValues() 699 assertEquals("inva_lid", values.get(MediaColumns.DISPLAY_NAME)); in testSanitizeValues() 705 values.put(MediaColumns.RELATIVE_PATH, "/"); in testSanitizeValues_Root() 707 assertEquals("/", values.get(MediaColumns.RELATIVE_PATH)); in testSanitizeValues_Root() 715 values.put(MediaColumns.RELATIVE_PATH, hiddenDirectoryPath); in testSanitizeValues_HiddenFile() 716 values.put(MediaColumns.DISPLAY_NAME, hiddenFileName); in testSanitizeValues_HiddenFile() 719 assertEquals(hiddenDirectoryPath, values.get(MediaColumns.RELATIVE_PATH)); in testSanitizeValues_HiddenFile() [all …]
|
/packages/providers/MediaProvider/src/com/android/providers/media/util/ |
D | FileUtils.java | 58 import android.provider.MediaStore.MediaColumns; 1230 values.remove(MediaColumns.DATE_EXPIRES); 1234 final Object pending = values.get(MediaColumns.IS_PENDING); 1237 values.put(MediaColumns.DATE_EXPIRES, 1240 values.putNull(MediaColumns.DATE_EXPIRES); 1243 final Object trashed = values.get(MediaColumns.IS_TRASHED); 1246 values.put(MediaColumns.DATE_EXPIRES, 1249 values.putNull(MediaColumns.DATE_EXPIRES); 1261 values.remove(MediaColumns.VOLUME_NAME); 1262 values.remove(MediaColumns.RELATIVE_PATH); [all …]
|
D | SQLiteQueryBuilder.java | 39 import android.provider.MediaStore.MediaColumns; 902 values.remove(MediaColumns.GENERATION_ADDED); 903 values.remove(MediaColumns.GENERATION_MODIFIED); 916 sql.append(MediaColumns.GENERATION_ADDED); 918 sql.append(MediaColumns.GENERATION_MODIFIED); 922 sql.append(MediaColumns._ID); 945 values.getAsString(MediaColumns.DATA))); 964 values.remove(MediaColumns.GENERATION_ADDED); 965 values.remove(MediaColumns.GENERATION_MODIFIED); 979 sql.append(MediaColumns.GENERATION_MODIFIED); [all …]
|
/packages/providers/MediaProvider/tests/client/src/com/android/providers/media/client/ |
D | LegacyProviderMigrationTest.java | 51 import android.provider.MediaStore.MediaColumns; 146 values.put(MediaColumns.DATA, file.getAbsolutePath()); in generateValues() 147 values.put(MediaColumns.DISPLAY_NAME, file.getName()); in generateValues() 148 values.put(MediaColumns.MIME_TYPE, mimeType); in generateValues() 149 values.put(MediaColumns.VOLUME_NAME, mVolumeName); in generateValues() 150 values.put(MediaColumns.DATE_ADDED, String.valueOf(System.currentTimeMillis() / 1_000)); in generateValues() 151 values.put(MediaColumns.OWNER_PACKAGE_NAME, in generateValues() 171 values.put(MediaColumns.ORIENTATION, String.valueOf(90)); in testLegacy_Orientation() 179 values.put(MediaColumns.IS_PENDING, String.valueOf(1)); in testLegacy_Pending() 180 values.put(MediaColumns.DATE_EXPIRES, String.valueOf(System.currentTimeMillis() / 1_000)); in testLegacy_Pending() [all …]
|
D | DelegatorTest.java | 29 import android.provider.MediaStore.MediaColumns; 75 values.put(MediaColumns.OWNER_PACKAGE_NAME, PERMISSIONLESS_APP); in testPushAllowed() 92 values.put(MediaColumns.OWNER_PACKAGE_NAME, PERMISSIONLESS_APP); in testOrphanedAllowed() 109 values.put(MediaColumns.OWNER_PACKAGE_NAME, in testPullBlocked() 118 values.put(MediaColumns.DISPLAY_NAME, "Song " + System.nanoTime()); in createAudio() 119 values.put(MediaColumns.MIME_TYPE, "audio/mpeg"); in createAudio() 129 new String[] { MediaColumns.OWNER_PACKAGE_NAME }, null, null)) { in getOwner()
|
D | PlaylistPerformanceTest.java | 34 import android.provider.MediaStore.MediaColumns; 131 values.put(MediaColumns.DISPLAY_NAME, "Test_Playlist"); in createPlaylist() 132 values.put(MediaColumns.RELATIVE_PATH, mRelativePath); in createPlaylist() 133 values.put(MediaColumns.MIME_TYPE, "audio/x-mpegurl"); in createPlaylist() 142 values.put(MediaColumns.DISPLAY_NAME, "Test_Song_" + num); in createAudio() 143 values.put(MediaColumns.RELATIVE_PATH, mRelativePath); in createAudio() 144 values.put(MediaColumns.MIME_TYPE, "audio/mpeg"); in createAudio()
|
D | PublicVolumeTest.java | 72 values.put(MediaStore.MediaColumns.DISPLAY_NAME, displayName + ".jpeg"); in testIncludeRecentlyUnmountedVolumes() 86 MediaStore.MediaColumns.DISPLAY_NAME + " LIKE ?"); in testIncludeRecentlyUnmountedVolumes() 91 new String[]{MediaStore.MediaColumns._ID}, extras, null)) { in testIncludeRecentlyUnmountedVolumes() 99 new String[]{MediaStore.MediaColumns._ID}, extras, null)) { in testIncludeRecentlyUnmountedVolumes() 107 new String[]{MediaStore.MediaColumns._ID}, extras, null)) { in testIncludeRecentlyUnmountedVolumes()
|
D | ClientPlaylistTest.java | 38 import android.provider.MediaStore.MediaColumns; 122 mValues.put(MediaColumns.DISPLAY_NAME, "Playlist " + System.nanoTime()); in testAdd() 123 mValues.put(MediaColumns.MIME_TYPE, mMimeType); in testAdd() 256 mValues.put(MediaColumns.DISPLAY_NAME, "Playlist " + System.nanoTime()); in testVolumeName() 257 mValues.put(MediaColumns.MIME_TYPE, mMimeType); in testVolumeName() 285 mValues.put(MediaColumns.DISPLAY_NAME, "Song " + System.nanoTime()); in createAudio() 286 mValues.put(MediaColumns.MIME_TYPE, "audio/mpeg"); in createAudio() 296 mValues.put(MediaColumns.DISPLAY_NAME, "Playlist " + System.nanoTime()); in createPlaylist() 297 mValues.put(MediaColumns.MIME_TYPE, mMimeType); in createPlaylist()
|
D | PerformanceTest.java | 34 import android.provider.MediaStore.MediaColumns; 103 values.put(MediaColumns.DISPLAY_NAME, System.nanoTime() + ".jpg"); in doSingle() 104 values.put(MediaColumns.MIME_TYPE, "image/jpeg"); in doSingle() 120 values.put(MediaColumns.IS_FAVORITE, 1); in doSingle() 174 .withValue(MediaColumns.DISPLAY_NAME, System.nanoTime() + ".jpg") in doBulk() 175 .withValue(MediaColumns.MIME_TYPE, "image/jpeg") in doBulk() 195 .withValue(MediaColumns.IS_FAVORITE, 1) in doBulk()
|
D | PublicVolumePlaylistTest.java | 72 values.put(MediaStore.MediaColumns.DISPLAY_NAME, "Playlist " + System.nanoTime()); in testEjectedVolume() 73 values.put(MediaStore.MediaColumns.MIME_TYPE, "audio/x-mpegurl"); in testEjectedVolume() 93 values.put(MediaStore.MediaColumns.DISPLAY_NAME, "Song " + System.nanoTime()); in testEjectedVolume() 94 values.put(MediaStore.MediaColumns.MIME_TYPE, "audio/mpeg"); in testEjectedVolume()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/ |
D | GalleryGridItemData.java | 23 import android.provider.MediaStore.MediaColumns; 39 MediaColumns._ID, 40 MediaColumns.DATA, 41 MediaColumns.WIDTH, 42 MediaColumns.HEIGHT, 43 MediaColumns.MIME_TYPE, 44 MediaColumns.DATE_MODIFIED, 45 MediaColumns.DISPLAY_NAME};
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | MediaProvider.java | 171 import android.provider.MediaStore.MediaColumns; 340 MediaColumns.DATA, PATTERN_PENDING_FILEPATH_FOR_SQL); 372 sDataColumns.put(MediaStore.MediaColumns.DATA, null); in sDataColumns.put() 1122 try (Cursor c = db.query(true, "files", new String[] { MediaColumns.VOLUME_NAME }, in onIdleMaintenance() 1556 (db) -> db.query("files", new String[]{MediaColumns.DATA}, in getFileLookupResultsForRedactedUriPath() 1640 final String albumArtist = values.getAsString(MediaColumns.ALBUM_ARTIST); in computeAudioAlbumKeyValue() 1644 final String path = values.getAsString(MediaColumns.DATA); in computeAudioAlbumKeyValue() 1702 .getString(c.getColumnIndexOrThrow(MediaColumns.DOCUMENT_ID)); in canonicalize() 1705 builder.appendQueryParameter(MediaColumns.DOCUMENT_ID, documentId); in canonicalize() 1730 final String documentId = uri.getQueryParameter(MediaColumns.DOCUMENT_ID); in uncanonicalize() [all …]
|
D | DatabaseHelper.java | 48 import android.provider.MediaStore.MediaColumns; 886 final String data = c.getString(c.getColumnIndex(MediaColumns.DATA)); in migrateFromLegacy() 887 values.put(MediaColumns.DATA, data); in migrateFromLegacy() 889 final String volumeNameFromPath = values.getAsString(MediaColumns.VOLUME_NAME); in migrateFromLegacy() 893 final String volumeNameMigrated = values.getAsString(MediaColumns.VOLUME_NAME); in migrateFromLegacy() 898 values.put(MediaColumns.VOLUME_NAME, volumeNameFromPath); in migrateFromLegacy() 937 final String oldData = values.getAsString(MediaColumns.DATA); in migrateFromLegacy() 940 final String recomputedData = values.getAsString(MediaColumns.DATA); in migrateFromLegacy() 1002 MediaColumns.MIME_TYPE, in migratePlaylistFiles() 1014 final String data = cursor.getString(cursor.getColumnIndex(MediaColumns.DATA)); in migratePlaylistFiles() [all …]
|
D | TranscodeHelperImpl.java | 75 import android.provider.MediaStore.MediaColumns; 407 new String[]{MediaColumns.DURATION, MediaColumns.CAPTURE_FRAMERATE, in reportTranscodingResult() 408 MediaColumns.WIDTH, MediaColumns.HEIGHT})) { in reportTranscodingResult() 771 MediaColumns.DURATION in getFileFlagsAndDurationMs() 955 MediaColumns.DURATION, in onUriPublished() 956 MediaColumns.CAPTURE_FRAMERATE, in onUriPublished() 957 MediaColumns.WIDTH, in onUriPublished() 958 MediaColumns.HEIGHT in onUriPublished() 1010 MediaColumns.DURATION, in onFileOpen() 1011 MediaColumns.CAPTURE_FRAMERATE, in onFileOpen() [all …]
|
/packages/providers/MediaProvider/apex/framework/api/ |
D | removed.txt | 4 …c static interface MediaStore.Audio.AudioColumns extends android.provider.MediaStore.MediaColumns { 11 …blic static interface MediaStore.DownloadColumns extends android.provider.MediaStore.MediaColumns { 15 …ic static interface MediaStore.Files.FileColumns extends android.provider.MediaStore.MediaColumns { 19 … static interface MediaStore.Images.ImageColumns extends android.provider.MediaStore.MediaColumns { 27 public static interface MediaStore.MediaColumns extends android.provider.BaseColumns { 31 …c static interface MediaStore.Video.VideoColumns extends android.provider.MediaStore.MediaColumns {
|
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/ |
D | PhotoPickerActivity.java | 70 MediaStore.MediaColumns._ID, in onCreate() 71 MediaStore.MediaColumns.DISPLAY_NAME in onCreate() 77 int idColumn = cursor.getColumnIndexOrThrow(MediaStore.MediaColumns._ID); in onCreate() 78 int nameColumn = cursor.getColumnIndexOrThrow(MediaStore.MediaColumns.DISPLAY_NAME); in onCreate()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
D | GalleryBoundCursorLoader.java | 23 import android.provider.MediaStore.MediaColumns; 35 private static final String SORT_ORDER = MediaColumns.DATE_MODIFIED + " DESC"; 50 return MediaColumns.MIME_TYPE + " IN ('" + Joiner.on("','").join(mimeTypes) + "') AND " in createSelection()
|
/packages/providers/MediaProvider/apex/framework/java/android/provider/ |
D | MediaStore.java | 1077 values.put(MediaColumns.IS_TRASHED, 1); in createTrashRequest() 1079 values.put(MediaColumns.IS_TRASHED, 0); in createTrashRequest() 1118 values.put(MediaColumns.IS_FAVORITE, 1); in createFavoriteRequest() 1120 values.put(MediaColumns.IS_FAVORITE, 0); in createFavoriteRequest() 1160 public interface MediaColumns extends BaseColumns { interface in MediaStore 1761 public interface FileColumns extends MediaColumns { 1995 public interface DownloadColumns extends MediaColumns { 2174 public interface ImageColumns extends MediaColumns { 2373 values.put(MediaColumns.DISPLAY_NAME, title); in insertImage() 2374 values.put(MediaColumns.MIME_TYPE, "image/jpeg"); in insertImage() [all …]
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/ |
D | ModernMediaScannerTest.java | 66 import android.provider.MediaStore.MediaColumns; 594 cursor.getLong(cursor.getColumnIndex(MediaColumns._ID))); in testScan_Common() 595 assertEquals(1280, cursor.getLong(cursor.getColumnIndex(MediaColumns.WIDTH))); in testScan_Common() 596 assertEquals(720, cursor.getLong(cursor.getColumnIndex(MediaColumns.HEIGHT))); in testScan_Common() 614 assertEquals(32, cursor.getLong(cursor.getColumnIndex(MediaColumns.WIDTH))); in testScan_Common() 615 assertEquals(32, cursor.getLong(cursor.getColumnIndex(MediaColumns.HEIGHT))); in testScan_Common() 750 new String[] {MediaColumns.OWNER_PACKAGE_NAME}, null, null, null)) { in testScanFileAndUpdateOwnerPackageName() 800 assertEquals("audio", cursor.getString(cursor.getColumnIndex(MediaColumns.TITLE))); in testScan_audio_empty_title() 838 assertThat(cursor.getString(cursor.getColumnIndex(MediaColumns.MIME_TYPE))) in testScan_148316354() 862 String added = cursor.getString(cursor.getColumnIndex(MediaColumns.GENERATION_ADDED)); in testScan_audioMp4_notRescanIfUnchanged() [all …]
|
D | DrmTest.java | 36 import android.provider.MediaStore.MediaColumns; 146 values.put(MediaColumns.DISPLAY_NAME, "temp" + System.nanoTime() + ".fl"); in testForwardLock_130680734() 147 values.put(MediaColumns.MIME_TYPE, MIME_FORWARD_LOCKED); in testForwardLock_130680734() 148 values.put(MediaColumns.IS_PENDING, 1); in testForwardLock_130680734() 160 values.put(MediaColumns.IS_PENDING, 0); in testForwardLock_130680734()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppReceiveFileInfo.java | 176 mediaContentValues.put(MediaStore.MediaColumns.DISPLAY_NAME, fullfilename); in generateFileInfo() 177 mediaContentValues.put(MediaStore.MediaColumns.MIME_TYPE, mimeType); in generateFileInfo() 178 mediaContentValues.put(MediaStore.MediaColumns.RELATIVE_PATH, in generateFileInfo()
|
/packages/apps/Camera2/src/com/android/camera/data/ |
D | FilmstripContentQueries.java | 62 String selection = MediaStore.MediaColumns._ID + " > ?"; in forCameraPath() 74 … final int dataIndex = cursor.getColumnIndexOrThrow(MediaStore.MediaColumns.DATA); in forCameraPath()
|