Home
last modified time | relevance | path

Searched refs:AudioColumns (Results 1 – 15 of 15) sorted by relevance

/packages/apps/Car/LocalMediaPlayer/src/com/android/car/media/localmediaplayer/
DDataModel.java32 import android.provider.MediaStore.Audio.AudioColumns;
69 AudioColumns.ALBUM_KEY + "= ? or "
70 + AudioColumns.ARTIST_KEY + " = ? or "
71 + AudioColumns.TITLE_KEY + " = ? or "
72 + AudioColumns.DATA + " like ?";
102 .setKeyColumn(AudioColumns.ALBUM_KEY) in onQueryByAlbum()
103 .setTitleColumn(AudioColumns.ALBUM) in onQueryByAlbum()
114 .setKeyColumn(AudioColumns.ARTIST_KEY) in onQueryByArtist()
115 .setTitleColumn(AudioColumns.ARTIST) in onQueryByArtist()
154 cursor = mResolver.query(uri, null, AudioColumns.TITLE_KEY + " = ?", in getMetadata()
[all …]
/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DMediaProviderTest.java59 import android.provider.MediaStore.Audio.AudioColumns;
1345 valuesOne.put(AudioColumns.TITLE, "Clocks"); in testComputeAudioKeyValues_167339595_differentAlbumIds()
1346 valuesOne.put(AudioColumns.ALBUM, "A Rush of Blood"); in testComputeAudioKeyValues_167339595_differentAlbumIds()
1347 valuesOne.put(AudioColumns.ALBUM_ARTIST, "Coldplay"); in testComputeAudioKeyValues_167339595_differentAlbumIds()
1348 valuesOne.put(AudioColumns.GENRE, "Rock"); in testComputeAudioKeyValues_167339595_differentAlbumIds()
1349 valuesOne.put(AudioColumns.IS_MUSIC, true); in testComputeAudioKeyValues_167339595_differentAlbumIds()
1355 valuesTwo.put(AudioColumns.TITLE, "Sounds"); in testComputeAudioKeyValues_167339595_differentAlbumIds()
1356 valuesTwo.put(AudioColumns.ALBUM, "A Rush of Blood"); in testComputeAudioKeyValues_167339595_differentAlbumIds()
1357 valuesTwo.put(AudioColumns.ALBUM_ARTIST, "ColdplayTwo"); in testComputeAudioKeyValues_167339595_differentAlbumIds()
1358 valuesTwo.put(AudioColumns.GENRE, "Alternative rock"); in testComputeAudioKeyValues_167339595_differentAlbumIds()
[all …]
DDatabaseHelperTest.java41 import android.provider.MediaStore.Audio.AudioColumns;
90 values.put(AudioColumns.TITLE, "Clocks"); in testFilterVolumeNames()
91 values.put(AudioColumns.ALBUM, "A Rush of Blood"); in testFilterVolumeNames()
92 values.put(AudioColumns.ARTIST, "Coldplay"); in testFilterVolumeNames()
93 values.put(AudioColumns.GENRE, "Rock"); in testFilterVolumeNames()
94 values.put(AudioColumns.IS_MUSIC, true); in testFilterVolumeNames()
103 values.put(AudioColumns.TITLE, "Speed of Sound"); in testFilterVolumeNames()
104 values.put(AudioColumns.ALBUM, "X&Y"); in testFilterVolumeNames()
105 values.put(AudioColumns.ARTIST, "Coldplay"); in testFilterVolumeNames()
106 values.put(AudioColumns.GENRE, "Alternative rock"); in testFilterVolumeNames()
[all …]
/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/
DFileUtilsTest.java77 import android.provider.MediaStore.Audio.AudioColumns;
1302 AudioColumns.IS_RINGTONE); in testComputeAudioTypeValuesFromData()
1304 AudioColumns.IS_NOTIFICATION); in testComputeAudioTypeValuesFromData()
1306 AudioColumns.IS_ALARM); in testComputeAudioTypeValuesFromData()
1308 AudioColumns.IS_PODCAST); in testComputeAudioTypeValuesFromData()
1310 AudioColumns.IS_AUDIOBOOK); in testComputeAudioTypeValuesFromData()
1312 AudioColumns.IS_RECORDING); in testComputeAudioTypeValuesFromData()
1314 AudioColumns.IS_MUSIC); in testComputeAudioTypeValuesFromData()
1317 testComputeAudioTypeValuesFromData("/storage/emulated/0/a/a.mp3", AudioColumns.IS_MUSIC); in testComputeAudioTypeValuesFromData()
1321 AudioColumns.IS_RINGTONE); in testComputeAudioTypeValuesFromData()
[all …]
/packages/providers/MediaProvider/apex/hiddenapi/
Dhiddenapi-max-target-o-low-priority.txt23 Landroid/provider/MediaStore$Audio$AudioColumns;->ALBUM_ARTIST:Ljava/lang/String;
24 Landroid/provider/MediaStore$Audio$AudioColumns;->COMPILATION:Ljava/lang/String;
25 Landroid/provider/MediaStore$Audio$AudioColumns;->GENRE:Ljava/lang/String;
26 Landroid/provider/MediaStore$Audio$AudioColumns;->TITLE_RESOURCE_URI:Ljava/lang/String;
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaDocumentsProvider.java56 import android.provider.MediaStore.Audio.AudioColumns;
172 AUDIO_COLUMN_MAP.put(AudioColumns.ARTIST, MediaMetadata.METADATA_KEY_ARTIST); in AUDIO_COLUMN_MAP.put()
173 AUDIO_COLUMN_MAP.put(AudioColumns.COMPOSER, MediaMetadata.METADATA_KEY_COMPOSER); in AUDIO_COLUMN_MAP.put()
174 AUDIO_COLUMN_MAP.put(AudioColumns.ALBUM, MediaMetadata.METADATA_KEY_ALBUM); in AUDIO_COLUMN_MAP.put()
175 AUDIO_COLUMN_MAP.put(AudioColumns.YEAR, MediaMetadata.METADATA_KEY_YEAR); in AUDIO_COLUMN_MAP.put()
176 AUDIO_COLUMN_MAP.put(AudioColumns.DURATION, MediaMetadata.METADATA_KEY_DURATION); in AUDIO_COLUMN_MAP.put()
794 SongQuery.PROJECTION, AudioColumns.ALBUM_ID + "=?", in queryChildDocuments()
969 fileSizeOver, AudioColumns.DISPLAY_NAME, AudioColumns.MIME_TYPE, in querySearchDocuments()
970 AudioColumns.DATE_MODIFIED, AudioColumns.SIZE); in querySearchDocuments()
974 AudioColumns.DATE_MODIFIED + " DESC"); in querySearchDocuments()
[all …]
DMediaProvider.java247 import android.provider.MediaStore.Audio.AudioColumns;
2606 final String title = values.getAsString(AudioColumns.TITLE); in computeAudioLocalizedValues()
2607 final String titleRes = values.getAsString(AudioColumns.TITLE_RESOURCE_URI); in computeAudioLocalizedValues()
2612 values.put(AudioColumns.TITLE, localized); in computeAudioLocalizedValues()
2617 values.put(AudioColumns.TITLE, localized); in computeAudioLocalizedValues()
2618 values.put(AudioColumns.TITLE_RESOURCE_URI, title); in computeAudioLocalizedValues()
2628 computeAudioKeyValue(values, AudioColumns.TITLE, AudioColumns.TITLE_KEY, /* focusId */ in computeAudioKeyValues()
2630 computeAudioKeyValue(values, AudioColumns.ARTIST, AudioColumns.ARTIST_KEY, in computeAudioKeyValues()
2631 AudioColumns.ARTIST_ID, /* hashValue */ 0); in computeAudioKeyValues()
2632 computeAudioKeyValue(values, AudioColumns.GENRE, AudioColumns.GENRE_KEY, in computeAudioKeyValues()
[all …]
DDatabaseHelper.java1502 sMigrateColumns.add(MediaStore.Audio.AudioColumns.BOOKMARK);
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DFileUtils.java57 import android.provider.MediaStore.Audio.AudioColumns;
1441 sAudioTypes.put(Environment.DIRECTORY_RINGTONES, AudioColumns.IS_RINGTONE);
1442 sAudioTypes.put(Environment.DIRECTORY_NOTIFICATIONS, AudioColumns.IS_NOTIFICATION);
1443 sAudioTypes.put(Environment.DIRECTORY_ALARMS, AudioColumns.IS_ALARM);
1444 sAudioTypes.put(Environment.DIRECTORY_PODCASTS, AudioColumns.IS_PODCAST);
1445 sAudioTypes.put(Environment.DIRECTORY_AUDIOBOOKS, AudioColumns.IS_AUDIOBOOK);
1446 sAudioTypes.put(Environment.DIRECTORY_MUSIC, AudioColumns.IS_MUSIC);
1448 sAudioTypes.put(Environment.DIRECTORY_RECORDINGS, AudioColumns.IS_RECORDING);
1450 sAudioTypes.put(FileUtils.DIRECTORY_RECORDINGS, AudioColumns.IS_RECORDING);
1468 consumer.accept(AudioColumns.IS_MUSIC, 1);
/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/
DModernMediaScannerTest.java64 import android.provider.MediaStore.Audio.AudioColumns;
799 assertEquals(1, cursor.getInt(cursor.getColumnIndex(AudioColumns.IS_RECORDING))); in testScan_audio_recording()
800 assertEquals(0, cursor.getInt(cursor.getColumnIndex(AudioColumns.IS_MUSIC))); in testScan_audio_recording()
820 assertThat(cursor.getString(cursor.getColumnIndex(AudioColumns.IS_MUSIC))) in testScan_148316354()
1227 assertEquals(2, cursor.getInt(cursor.getColumnIndex(AudioColumns.TRACK))); in testScan_TrackNumber()
1238 assertThat(cursor.getString(cursor.getColumnIndex(AudioColumns.TRACK))).isNull(); in testScan_TrackNumber()
/packages/providers/MediaProvider/apex/framework/api/
Dremoved.txt4 …public static interface MediaStore.Audio.AudioColumns extends android.provider.MediaStore.MediaCol…
Dcurrent.txt244 …public static interface MediaStore.Audio.AudioColumns extends android.provider.MediaStore.MediaCol…
277 …l class MediaStore.Audio.Genres.Members implements android.provider.MediaStore.Audio.AudioColumns {
290 …atic final class MediaStore.Audio.Media implements android.provider.MediaStore.Audio.AudioColumns {
314 …lass MediaStore.Audio.Playlists.Members implements android.provider.MediaStore.Audio.AudioColumns {
/packages/providers/MediaProvider/tests/client/src/com/android/providers/media/client/
DLegacyProviderMigrationTest.java47 import android.provider.MediaStore.Audio.AudioColumns;
212 values.put(AudioColumns.BOOKMARK, String.valueOf(42)); in testLegacy_Audio()
/packages/providers/MediaProvider/apex/framework/java/android/provider/
DMediaStore.java3212 public interface AudioColumns extends MediaColumns { interface in MediaStore.Audio
3457 public static final class Media implements AudioColumns {
3614 public static final class Members implements AudioColumns {
3737 public static final class Members implements AudioColumns {
/packages/providers/MediaProvider/src/com/android/providers/media/scan/
DModernMediaScanner.java83 import android.provider.MediaStore.Audio.AudioColumns;
1277 op.withValue(AudioColumns.TRACK, null); in scanItemAudio()
1287 withOptionalValue(op, AudioColumns.TRACK, in scanItemAudio()