Home
last modified time | relevance | path

Searched refs:FileColumns (Results 1 – 25 of 28) sorted by relevance

12

/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DDatabaseHelperTest.java41 import android.provider.MediaStore.Files.FileColumns;
88 values.put(FileColumns.MEDIA_TYPE, FileColumns.MEDIA_TYPE_AUDIO); in testFilterVolumeNames()
89 values.put(FileColumns.VOLUME_NAME, VOLUME_EXTERNAL_PRIMARY); in testFilterVolumeNames()
90 values.put(FileColumns.DATA, "/storage/emulated/0/Coldplay-Clocks.mp3"); in testFilterVolumeNames()
97 db.insert("files", FileColumns.DATA, values); in testFilterVolumeNames()
101 values.put(FileColumns.MEDIA_TYPE, FileColumns.MEDIA_TYPE_AUDIO); in testFilterVolumeNames()
102 values.put(FileColumns.VOLUME_NAME, "0000-0000"); in testFilterVolumeNames()
103 values.put(FileColumns.DATA, "/storage/0000-0000/Coldplay-SpeedOfSound.mp3"); in testFilterVolumeNames()
110 db.insert("files", FileColumns.DATA, values); in testFilterVolumeNames()
114 values.put(FileColumns.MEDIA_TYPE, FileColumns.MEDIA_TYPE_AUDIO); in testFilterVolumeNames()
[all …]
DMediaProviderTest.java57 import android.provider.MediaStore.Files.FileColumns;
526 new String[]{MediaColumns.DISPLAY_NAME, FileColumns._USER_ID}, in testBuildData_withUserId()
1095 valuesOne.put(FileColumns.MEDIA_TYPE, FileColumns.MEDIA_TYPE_AUDIO); in testComputeAudioKeyValues_167339595_differentAlbumIds()
1096 valuesOne.put(FileColumns.VOLUME_NAME, MediaStore.VOLUME_EXTERNAL_PRIMARY); in testComputeAudioKeyValues_167339595_differentAlbumIds()
1097 valuesOne.put(FileColumns.DATA, "/storage/emulated/0/Clocks.mp3"); in testComputeAudioKeyValues_167339595_differentAlbumIds()
1105 valuesTwo.put(FileColumns.MEDIA_TYPE, FileColumns.MEDIA_TYPE_AUDIO); in testComputeAudioKeyValues_167339595_differentAlbumIds()
1106 valuesTwo.put(FileColumns.VOLUME_NAME, MediaStore.VOLUME_EXTERNAL_PRIMARY); in testComputeAudioKeyValues_167339595_differentAlbumIds()
1107 valuesTwo.put(FileColumns.DATA, "/storage/emulated/0/Sounds.mp3"); in testComputeAudioKeyValues_167339595_differentAlbumIds()
1123 valuesThree.put(FileColumns.MEDIA_TYPE, FileColumns.MEDIA_TYPE_AUDIO); in testComputeAudioKeyValues_167339595_differentAlbumIds()
1124 valuesThree.put(FileColumns.VOLUME_NAME, MediaStore.VOLUME_EXTERNAL_PRIMARY); in testComputeAudioKeyValues_167339595_differentAlbumIds()
[all …]
DResolvePlaylistTest.java116 new String[] { MediaStore.Files.FileColumns._ID }, in doPlaylist()
117 MediaStore.Files.FileColumns.MEDIA_TYPE + "=" in doPlaylist()
118 + MediaStore.Files.FileColumns.MEDIA_TYPE_PLAYLIST, null, null)) { in doPlaylist()
195 new String[] { MediaStore.Files.FileColumns._ID }, in testBrokenPlaylistM3u()
196 MediaStore.Files.FileColumns.MEDIA_TYPE + "=" in testBrokenPlaylistM3u()
197 + MediaStore.Files.FileColumns.MEDIA_TYPE_PLAYLIST, null, null)) { in testBrokenPlaylistM3u()
227 new String[] { MediaStore.Files.FileColumns._ID }, null, null)) { in testPlaylistDeletion()
261 new String[] { MediaStore.Files.FileColumns._ID }, null, null)) { in testPlaylistMembersDeletion()
DMediaDocumentsProviderTest.java36 import android.provider.MediaStore.Files.FileColumns;
178 case FileColumns.MEDIA_TYPE_AUDIO: in doTraversal()
179 case FileColumns.MEDIA_TYPE_VIDEO: in doTraversal()
180 case FileColumns.MEDIA_TYPE_IMAGE: in doTraversal()
226 assertEquals(MediaStore.Files.FileColumns.MEDIA_TYPE_DOCUMENT, in testAddDocumentSelection()
/packages/apps/Gallery2/src/com/android/photos/data/
DPhotoSetLoader.java27 import android.provider.MediaStore.Files.FileColumns;
40 FileColumns._ID,
41 FileColumns.DATA,
42 FileColumns.WIDTH,
43 FileColumns.HEIGHT,
44 FileColumns.DATE_ADDED,
45 FileColumns.MEDIA_TYPE,
49 private static final String SORT_ORDER = FileColumns.DATE_ADDED + " DESC";
51 FileColumns.MEDIA_TYPE + " == " + FileColumns.MEDIA_TYPE_IMAGE
53 + FileColumns.MEDIA_TYPE + " == " + FileColumns.MEDIA_TYPE_VIDEO;
/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/
DDrmTest.java35 import android.provider.MediaStore.Files.FileColumns;
104 assertEquals(1_045L, (long) values.getAsLong(FileColumns.DURATION)); in testForwardLock_Audio()
105 assertEquals(FileColumns.MEDIA_TYPE_AUDIO, in testForwardLock_Audio()
106 (int) values.getAsInteger(FileColumns.MEDIA_TYPE)); in testForwardLock_Audio()
114 assertEquals(40_000L, (long) values.getAsLong(FileColumns.DURATION)); in testForwardLock_Video()
115 assertEquals(FileColumns.MEDIA_TYPE_VIDEO, in testForwardLock_Video()
116 (int) values.getAsInteger(FileColumns.MEDIA_TYPE)); in testForwardLock_Video()
126 assertEquals(FileColumns.MEDIA_TYPE_IMAGE, in testForwardLock_Image()
127 (int) values.getAsInteger(FileColumns.MEDIA_TYPE)); in testForwardLock_Image()
168 assertEquals(FileColumns.MEDIA_TYPE_VIDEO, in testForwardLock_130680734()
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DMimeUtils.java21 import android.provider.MediaStore.Files.FileColumns;
72 return FileColumns.MEDIA_TYPE_PLAYLIST; in resolveMediaType()
74 return FileColumns.MEDIA_TYPE_SUBTITLE; in resolveMediaType()
76 return FileColumns.MEDIA_TYPE_AUDIO; in resolveMediaType()
78 return FileColumns.MEDIA_TYPE_VIDEO; in resolveMediaType()
80 return FileColumns.MEDIA_TYPE_IMAGE; in resolveMediaType()
82 return FileColumns.MEDIA_TYPE_DOCUMENT; in resolveMediaType()
84 return FileColumns.MEDIA_TYPE_NONE; in resolveMediaType()
96 case FileColumns.MEDIA_TYPE_AUDIO: in resolveFormatCode()
98 case FileColumns.MEDIA_TYPE_VIDEO: in resolveFormatCode()
[all …]
/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/
DMimeUtilsTest.java28 import android.provider.MediaStore.Files.FileColumns;
89 assertEquals(FileColumns.MEDIA_TYPE_AUDIO, in testResolveMediaType()
91 assertEquals(FileColumns.MEDIA_TYPE_VIDEO, in testResolveMediaType()
93 assertEquals(FileColumns.MEDIA_TYPE_IMAGE, in testResolveMediaType()
95 assertEquals(FileColumns.MEDIA_TYPE_DOCUMENT, in testResolveMediaType()
97 assertEquals(FileColumns.MEDIA_TYPE_DOCUMENT, in testResolveMediaType()
99 assertEquals(FileColumns.MEDIA_TYPE_DOCUMENT, in testResolveMediaType()
101 assertEquals(FileColumns.MEDIA_TYPE_DOCUMENT, in testResolveMediaType()
103 assertEquals(FileColumns.MEDIA_TYPE_DOCUMENT, in testResolveMediaType()
105 assertEquals(FileColumns.MEDIA_TYPE_NONE, in testResolveMediaType()
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaProvider.java168 import android.provider.MediaStore.Files.FileColumns;
564 FileColumns.DATA
614 if (mediaType == FileColumns.MEDIA_TYPE_NONE) { in updateQuotaTypeForUri()
634 case FileColumns.MEDIA_TYPE_AUDIO: in updateQuotaTypeForFileInternal()
638 case FileColumns.MEDIA_TYPE_VIDEO: in updateQuotaTypeForFileInternal()
642 case FileColumns.MEDIA_TYPE_IMAGE: in updateQuotaTypeForFileInternal()
731 case FileColumns.MEDIA_TYPE_PLAYLIST:
732 case FileColumns.MEDIA_TYPE_AUDIO:
785 case FileColumns.MEDIA_TYPE_AUDIO: in acceptWithExpansion()
796 case FileColumns.MEDIA_TYPE_VIDEO: in acceptWithExpansion()
[all …]
DDatabaseHelper.java46 import android.provider.MediaStore.Files.FileColumns;
905 final int mediaType = c.getInt(c.getColumnIndex(FileColumns.MEDIA_TYPE)); in migrateFromLegacy()
907 mediaType == FileColumns.MEDIA_TYPE_PLAYLIST) { in migrateFromLegacy()
919 c.getLong(c.getColumnIndex(FileColumns._ID))); in migrateFromLegacy()
929 values.put(FileColumns.DATA, playlistFilePath); in migrateFromLegacy()
997 final String selection = FileColumns.MEDIA_TYPE + "=" + FileColumns.MEDIA_TYPE_PLAYLIST in migratePlaylistFiles()
998 + " AND " + FileColumns._ID + "=" + playlistId; in migratePlaylistFiles()
1000 FileColumns._ID, in migratePlaylistFiles()
1001 FileColumns.DATA, in migratePlaylistFiles()
1052 final long rowId = cursor.getLong(cursor.getColumnIndex(FileColumns._ID)); in migratePlaylistFiles()
[all …]
DMediaDocumentsProvider.java58 import android.provider.MediaStore.Files.FileColumns;
217 if (type == FileColumns.MEDIA_TYPE_IMAGE && sReturnedImagesEmpty) { in onMediaStoreInsert()
220 } else if (type == FileColumns.MEDIA_TYPE_VIDEO && sReturnedVideosEmpty) { in onMediaStoreInsert()
223 } else if (type == FileColumns.MEDIA_TYPE_AUDIO && sReturnedAudioEmpty) { in onMediaStoreInsert()
226 } else if (type == FileColumns.MEDIA_TYPE_DOCUMENT && sReturnedDocumentsEmpty) { in onMediaStoreInsert()
238 if (type == FileColumns.MEDIA_TYPE_IMAGE) { in onMediaStoreDelete()
243 } else if (type == FileColumns.MEDIA_TYPE_VIDEO) { in onMediaStoreDelete()
248 } else if (type == FileColumns.MEDIA_TYPE_AUDIO) { in onMediaStoreDelete()
253 } else if (type == FileColumns.MEDIA_TYPE_DOCUMENT) { in onMediaStoreDelete()
376 retSelection += FileColumns.MEDIA_TYPE + "=?"; in addDocumentSelection()
[all …]
DTranscodeHelperImpl.java20 import static android.provider.MediaStore.Files.FileColumns.TRANSCODE_COMPLETE;
21 import static android.provider.MediaStore.Files.FileColumns.TRANSCODE_EMPTY;
74 import android.provider.MediaStore.Files.FileColumns;
258 {FileColumns._ID, FileColumns._TRANSCODE_STATUS};
260 FileColumns.DATA + "=?" + " and mime_type not like 'null'";
768 FileColumns._VIDEO_CODEC_TYPE, in getFileFlagsAndDurationMs()
951 FileColumns._VIDEO_CODEC_TYPE, in onUriPublished()
952 FileColumns.SIZE, in onUriPublished()
953 FileColumns.OWNER_PACKAGE_NAME, in onUriPublished()
954 FileColumns.DATA, in onUriPublished()
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/scan/
DModernMediaScanner.java80 import android.provider.MediaStore.Files.FileColumns;
457 String notLikeClause = FileColumns.DATA + " NOT LIKE ? ESCAPE '\\'"; in buildExcludeDirClause()
506 final String formatClause = "ifnull(" + FileColumns.FORMAT + "," in reconcileAndClean()
509 final String dataClause = "(" + FileColumns.DATA + " LIKE ? ESCAPE '\\' OR " in reconcileAndClean()
510 + FileColumns.DATA + " LIKE ? ESCAPE '\\')"; in reconcileAndClean()
512 final String generationClause = FileColumns.GENERATION_ADDED + " <= " in reconcileAndClean()
522 FileColumns._ID + " DESC"); in reconcileAndClean()
527 final int[] countPerMediaType = new int[FileColumns.MEDIA_TYPE_COUNT]; in reconcileAndClean()
529 new String[]{FileColumns._ID, FileColumns.MEDIA_TYPE, FileColumns.DATE_EXPIRES, in reconcileAndClean()
530 FileColumns.IS_PENDING}, queryArgs, mSignal)) { in reconcileAndClean()
[all …]
/packages/providers/MediaProvider/tests/client/src/com/android/providers/media/client/
DLegacyProviderMigrationTest.java49 import android.provider.MediaStore.Files.FileColumns;
145 values.put(FileColumns.MEDIA_TYPE, mediaType); in generateValues()
169 final ContentValues values = generateValues(FileColumns.MEDIA_TYPE_IMAGE, in testLegacy_Orientation()
177 final ContentValues values = generateValues(FileColumns.MEDIA_TYPE_IMAGE, in testLegacy_Pending()
186 final ContentValues values = generateValues(FileColumns.MEDIA_TYPE_IMAGE, in testLegacy_Trashed()
194 final ContentValues values = generateValues(FileColumns.MEDIA_TYPE_IMAGE, in testLegacy_Favorite()
202 final ContentValues values = generateValues(FileColumns.MEDIA_TYPE_IMAGE, in testLegacy_Orphaned()
210 final ContentValues values = generateValues(FileColumns.MEDIA_TYPE_AUDIO, in testLegacy_Audio()
218 final ContentValues values = generateValues(FileColumns.MEDIA_TYPE_VIDEO, in testLegacy_Video()
229 final ContentValues values = generateValues(FileColumns.MEDIA_TYPE_IMAGE, in testLegacy_Image()
[all …]
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/
DStorageAsyncLoader.java36 import android.provider.MediaStore.Files.FileColumns;
98 FileColumns.MEDIA_TYPE + "!=" + FileColumns.MEDIA_TYPE_IMAGE in getStorageResultsForUsers()
99 + " AND " + FileColumns.MEDIA_TYPE + "!=" + FileColumns.MEDIA_TYPE_VIDEO in getStorageResultsForUsers()
100 + " AND " + FileColumns.MEDIA_TYPE + "!=" + FileColumns.MEDIA_TYPE_AUDIO in getStorageResultsForUsers()
101 + " AND " + FileColumns.MIME_TYPE + " IS NOT NULL"); in getStorageResultsForUsers()
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DGalleryBoundCursorLoader.java22 import android.provider.MediaStore.Files.FileColumns;
39 FileColumns.MEDIA_TYPE_IMAGE,
40 FileColumns.MEDIA_TYPE_VIDEO,
41 FileColumns.MEDIA_TYPE_AUDIO
51 + FileColumns.MEDIA_TYPE + " IN (" + Joiner.on(',').join(mediaTypes) + ")"; in createSelection()
/packages/providers/MediaProvider/tools/dialogs/src/com/android/providers/media/tools/dialogs/
DDialogsActivity.java30 import android.provider.MediaStore.Files.FileColumns;
119 new String[] { FileColumns._ID, FileColumns.MEDIA_TYPE }, null, null, null)) { in doInBackground()
124 case FileColumns.MEDIA_TYPE_AUDIO: in doInBackground()
128 case FileColumns.MEDIA_TYPE_VIDEO: in doInBackground()
132 case FileColumns.MEDIA_TYPE_IMAGE: in doInBackground()
/packages/apps/Gallery2/src/com/android/photos/shims/
DMediaItemsLoader.java25 import android.provider.MediaStore.Files.FileColumns;
124 int mappedMediaType = FileColumns.MEDIA_TYPE_NONE; in loadInBackground()
126 mappedMediaType = FileColumns.MEDIA_TYPE_IMAGE; in loadInBackground()
128 mappedMediaType = FileColumns.MEDIA_TYPE_VIDEO; in loadInBackground()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DBucketHelper.java8 import android.provider.MediaStore.Files.FileColumns;
47 FileColumns.MEDIA_TYPE,
143 typeBits |= (1 << FileColumns.MEDIA_TYPE_IMAGE); in loadBucketEntriesFromFilesTable()
146 typeBits |= (1 << FileColumns.MEDIA_TYPE_VIDEO); in loadBucketEntriesFromFilesTable()
/packages/apps/Gallery2/src/com/android/photos/
DSelectionManager.java25 import android.provider.MediaStore.Files.FileColumns;
104 if (itemType == FileColumns.MEDIA_TYPE_IMAGE) { in onItemSelectedStateChanged()
106 } else if (itemType == FileColumns.MEDIA_TYPE_VIDEO) { in onItemSelectedStateChanged()
DMultiChoiceManager.java24 import android.provider.MediaStore.Files.FileColumns;
99 if (type == FileColumns.MEDIA_TYPE_IMAGE) { in getItemMimetype()
101 } else if (type == FileColumns.MEDIA_TYPE_VIDEO) { in getItemMimetype()
DAlbumSetFragment.java26 import android.provider.MediaStore.Files.FileColumns;
108 return FileColumns.MEDIA_TYPE_NONE; in getItemMediaType()
/packages/apps/Dialer/java/com/android/dialer/callcomposer/
DGalleryCursorLoader.java22 import android.provider.MediaStore.Files.FileColumns;
49 + FileColumns.MEDIA_TYPE_IMAGE in createSelection()
/packages/providers/MediaProvider/apex/framework/api/
Dremoved.txt15 …public static interface MediaStore.Files.FileColumns extends android.provider.MediaStore.MediaColu…
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DMediaScanTriggerJob.java102 mediaValues.put(MediaStore.Files.FileColumns.SIZE, 0); in onStartJob()

12