Home
last modified time | relevance | path

Searched refs:Audio (Results 1 – 25 of 52) sorted by relevance

123

/packages/apps/UniversalMediaPlayer/java/com/android/pump/db/
DAudioStore.java46 void onAudiosAdded(@NonNull Collection<Audio> audios); in onAudiosAdded()
65 mContentResolver.registerContentObserver(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, in AudioStore()
76 ArrayList<Audio> audios = new ArrayList<>(); in load()
82 Uri contentUri = MediaStore.Audio.Artists.EXTERNAL_CONTENT_URI; in load()
84 MediaStore.Audio.Artists._ID in load()
86 String sortOrder = MediaStore.Audio.Artists._ID; in load()
90 int idColumn = cursor.getColumnIndexOrThrow(MediaStore.Audio.Artists._ID); in load()
106 Uri contentUri = MediaStore.Audio.Albums.EXTERNAL_CONTENT_URI; in load()
108 MediaStore.Audio.Albums._ID, in load()
109 MediaStore.Audio.Media.ARTIST_ID // TODO MediaStore.Audio.Albums.ARTIST_ID in load()
[all …]
DAudio.java24 public class Audio { class
34 Audio(long id, @NonNull String mimeType) { in Audio() method in Audio
93 return obj instanceof Audio && mId == ((Audio) obj).mId; in equals()
DPlaylist.java33 private final List<Audio> mAudios = new ArrayList<>();
48 public @NonNull List<Audio> getAudios() { in getAudios()
60 boolean addAudio(@NonNull Audio audio) { in addAudio()
DGenre.java33 private final List<Audio> mAudios = new ArrayList<>();
48 public @NonNull List<Audio> getAudios() { in getAudios()
60 boolean addAudio(@NonNull Audio audio) { in addAudio()
DMediaDb.java51 private final List<Audio> mAudios = new ArrayList<>();
87 public void onAudiosAdded(@NonNull Collection<Audio> audios) { in MediaDb()
218 public @NonNull List<Audio> getAudios() { in getAudios()
247 public void loadData(@NonNull Audio audio) { in loadData()
407 public @NonNull Audio getAudioById(long id) { in getAudioById()
408 for (Audio audio : mAudios) { in getAudioById()
522 private void addAudios(@NonNull Collection<Audio> audios) { in addAudios()
648 private void updateAudio(@NonNull Audio audio) { in updateAudio()
DAlbum.java38 private final List<Audio> mAudios = new ArrayList<>();
61 public @NonNull List<Audio> getAudios() { in getAudios()
101 boolean addAudio(@NonNull Audio audio) { in addAudio()
DArtist.java38 private final List<Audio> mAudios = new ArrayList<>();
57 public @NonNull List<Audio> getAudios() { in getAudios()
100 boolean addAudio(@NonNull Audio audio) { in addAudio()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/activity/
DAudioPlayerActivity.java38 import com.android.pump.db.Audio;
51 public static void start(@NonNull Context context, @NonNull Audio audio) { in start()
53 Uri uri = ContentUris.withAppendedId(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, in start()
63 Uri uri = ContentUris.withAppendedId(MediaStore.Audio.Albums.EXTERNAL_CONTENT_URI, in start()
67 intent.setDataAndTypeAndNormalize(uri, MediaStore.Audio.Albums.CONTENT_TYPE); in start()
74 Uri uri = ContentUris.withAppendedId(MediaStore.Audio.Artists.EXTERNAL_CONTENT_URI, in start()
78 intent.setDataAndTypeAndNormalize(uri, MediaStore.Audio.Artists.CONTENT_TYPE); in start()
85 Uri uri = ContentUris.withAppendedId(MediaStore.Audio.Genres.EXTERNAL_CONTENT_URI, in start()
89 intent.setDataAndTypeAndNormalize(uri, MediaStore.Audio.Genres.CONTENT_TYPE); in start()
96 Uri uri = ContentUris.withAppendedId(MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI, in start()
[all …]
DPlaylistDetailsActivity.java40 import com.android.pump.db.Audio;
152 List<Audio> audios = mPlaylist.getAudios(); in updateViews()
153 for (Audio audio : audios) { in updateViews()
227 Audio audio = mPlaylist.getAudios().get(position); in onBindViewHolder()
253 private void bind(@NonNull Playlist playlist, @NonNull Audio audio) { in bind()
/packages/providers/MediaProvider/src/com/android/providers/media/
DDatabaseHelper.java44 import android.provider.MediaStore.Audio;
1003 MediaStore.Audio.PlaylistsColumns.NAME, in migratePlaylistFiles()
1041 cursor.getColumnIndex(MediaStore.Audio.PlaylistsColumns.NAME)); in migratePlaylistFiles()
1054 MediaStore.Audio.Playlists.Members.getContentUri(mVolumeName, rowId)); in migratePlaylistFiles()
1068 MediaStore.Audio.Playlists.Members.AUDIO_ID, in createPlaylistFile()
1069 MediaStore.Audio.Playlists.Members.PLAY_ORDER, in createPlaylistFile()
1075 Audio.Playlists.Members.DEFAULT_SORT_ORDER)) { in createPlaylistFile()
1147 sMigrateColumns.add(MediaStore.Audio.AudioColumns.BOOKMARK);
1186 + getColumnsForCollection(Audio.Playlists.class) in createLatestViews()
1210 + getColumnsForCollection(Audio.Media.class) in createLatestViews()
[all …]
DMediaDocumentsProvider.java51 import android.provider.MediaStore.Audio;
52 import android.provider.MediaStore.Audio.AlbumColumns;
53 import android.provider.MediaStore.Audio.Albums;
54 import android.provider.MediaStore.Audio.ArtistColumns;
55 import android.provider.MediaStore.Audio.Artists;
56 import android.provider.MediaStore.Audio.AudioColumns;
425 Audio.Media.EXTERNAL_CONTENT_URI, ident.id); in getUriForDocumentId()
499 query = Audio.Media.EXTERNAL_CONTENT_URI; in getDocumentMetadataFromIndex()
663 result.setNotificationUri(resolver, Audio.Media.EXTERNAL_CONTENT_URI); in queryDocument()
672 result.setNotificationUri(resolver, Audio.Media.EXTERNAL_CONTENT_URI); in queryDocument()
[all …]
DMediaProvider.java163 import android.provider.MediaStore.Audio;
164 import android.provider.MediaStore.Audio.AudioColumns;
165 import android.provider.MediaStore.Audio.Playlists;
375 sDataColumns.put(MediaStore.Audio.PlaylistsColumns.DATA, null); in sDataColumns.put()
376 sDataColumns.put(MediaStore.Audio.AlbumColumns.ALBUM_ART, null); in sDataColumns.put()
786 consumer.accept(MediaStore.Audio.Media.getContentUri(volumeName, id)); in acceptWithExpansion()
790 consumer.accept(Audio.Genres.getContentUri(volumeName)); in acceptWithExpansion()
791 consumer.accept(Audio.Playlists.getContentUri(volumeName)); in acceptWithExpansion()
792 consumer.accept(Audio.Artists.getContentUri(volumeName)); in acceptWithExpansion()
793 consumer.accept(Audio.Albums.getContentUri(volumeName)); in acceptWithExpansion()
[all …]
/packages/apps/Car/LocalMediaPlayer/src/com/android/car/media/localmediaplayer/
DDataModel.java31 import android.provider.MediaStore.Audio.AlbumColumns;
32 import android.provider.MediaStore.Audio.AudioColumns;
49 MediaStore.Audio.Media.INTERNAL_CONTENT_URI,
50 MediaStore.Audio.Media.EXTERNAL_CONTENT_URI
54 MediaStore.Audio.Albums.INTERNAL_CONTENT_URI,
55 MediaStore.Audio.Albums.EXTERNAL_CONTENT_URI
59 MediaStore.Audio.Artists.INTERNAL_CONTENT_URI,
60 MediaStore.Audio.Artists.EXTERNAL_CONTENT_URI
64 MediaStore.Audio.Genres.INTERNAL_CONTENT_URI,
65 MediaStore.Audio.Genres.EXTERNAL_CONTENT_URI
[all …]
/packages/providers/MediaProvider/apex/framework/api/
Dcurrent.txt80 public static final class MediaStore.Audio {
81 ctor public MediaStore.Audio();
85 public static interface MediaStore.Audio.AlbumColumns {
99 …ic static final class MediaStore.Audio.Albums implements android.provider.BaseColumns android.prov…
100 ctor public MediaStore.Audio.Albums();
109 public static interface MediaStore.Audio.ArtistColumns {
116 …ic static final class MediaStore.Audio.Artists implements android.provider.BaseColumns android.pro…
117 ctor public MediaStore.Audio.Artists();
126 …tatic final class MediaStore.Audio.Artists.Albums implements android.provider.BaseColumns android.…
127 ctor public MediaStore.Audio.Artists.Albums();
[all …]
/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/
DModernMediaScannerTest.java65 import android.provider.MediaStore.Audio.AudioColumns;
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()
570 assertQueryCount(0, MediaStore.Audio.Albums.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()
797 .query(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, null, null, null, null)) { in testScan_audio_empty_title()
816 .query(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, null, null, null, null)) { in testScan_audio_recording()
[all …]
/packages/providers/MediaProvider/tests/client/src/com/android/providers/media/client/
DLegacyProviderMigrationTest.java47 import android.provider.MediaStore.Audio.AudioColumns;
115 mExternalAudio = MediaStore.Audio.Media.getContentUri(mVolumeName); in setUp()
120 Uri playlists = MediaStore.Audio.Playlists.getContentUri(mVolumeName); in setUp()
272 playlist.put(MediaStore.Audio.PlaylistsColumns.NAME, playlistName); in testLegacy_PlaylistMap()
278 playlistMap.put(MediaStore.Audio.Playlists.Members.PLAY_ORDER, 1); in testLegacy_PlaylistMap()
290 MediaStore.Audio.Playlists.Members.getContentUri(mVolumeName, playlistId) in testLegacy_PlaylistMap()
304 playlistMap.put(MediaStore.Audio.Playlists.Members.PLAYLIST_ID, playlistId); in testLegacy_PlaylistMap()
305 playlistMap.put(MediaStore.Audio.Playlists.Members.AUDIO_ID, audioId); in testLegacy_PlaylistMap()
313 playlistMap.put(MediaStore.Audio.Playlists.Members.AUDIO_ID, 4); in testLegacy_PlaylistMap()
340 playlistMap.getAsLong(MediaStore.Audio.Playlists.Members.PLAYLIST_ID); in testLegacy_PlaylistMap()
[all …]
DClientPlaylistTest.java37 import android.provider.MediaStore.Audio.Playlists;
74 private final Uri mExternalAudio = MediaStore.Audio.Media
76 private final Uri mExternalPlaylists = MediaStore.Audio.Playlists
132 final Uri membersUri = MediaStore.Audio.Playlists.Members in testAdd()
166 MediaStore.Audio.Playlists.getContentUri(VOLUME_EXTERNAL), playlistId); in testMove()
224 MediaStore.Audio.Playlists.getContentUri(VOLUME_EXTERNAL_PRIMARY), playlistId); in testRemove()
260 final Uri members = MediaStore.Audio.Playlists.Members in testVolumeName()
268 try (Cursor c = mContentResolver.query(MediaStore.Audio.Media.INTERNAL_CONTENT_URI, in testVolumeName()
298 final Uri externalVolumePlaylistUri = MediaStore.Audio.Playlists in createPlaylist()
307 final Uri members = MediaStore.Audio.Playlists.Members in createPlaylist()
[all …]
DPublicVolumePlaylistTest.java79 final Uri externalPlaylists = MediaStore.Audio.Playlists in testEjectedVolume()
85 final Uri members = MediaStore.Audio.Playlists.Members in testEjectedVolume()
97 MediaStore.Audio.Media.getContentUri(volumeName), values); in testEjectedVolume()
103 values.put(MediaStore.Audio.Playlists.Members.AUDIO_ID, ContentUris.parseId(audioUri)); in testEjectedVolume()
110 MediaStore.Audio.Playlists.Members.AUDIO_ID}, Bundle.EMPTY, null)) { in testEjectedVolume()
117 MediaStore.Audio.Playlists.Members.AUDIO_ID}, Bundle.EMPTY, null)) { in testEjectedVolume()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DResolvePlaylistTest.java123 final Uri membersUri = MediaStore.Audio.Playlists.Members in doPlaylist()
127 }, null, null, MediaStore.Audio.Playlists.Members.PLAY_ORDER + " ASC")) { in doPlaylist()
148 }, null, null, MediaStore.Audio.Playlists.Members.PLAY_ORDER + " ASC")) { in doPlaylist()
168 }, null, null, MediaStore.Audio.Playlists.Members.PLAY_ORDER + " ASC")) { in doPlaylist()
202 final Uri membersUri = MediaStore.Audio.Playlists.Members in testBrokenPlaylistM3u()
224 final Uri playlistUri = MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI; in testPlaylistDeletion()
238 final Uri membersUri = MediaStore.Audio.Playlists.Members in testPlaylistDeletion()
258 final Uri playlistUri = MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI; in testPlaylistMembersDeletion()
267 MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, null); in testPlaylistMembersDeletion()
272 final Uri membersUri = MediaStore.Audio.Playlists.Members in testPlaylistMembersDeletion()
DMediaProviderTest.java56 import android.provider.MediaStore.Audio.AudioColumns;
317 MediaStore.Audio.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY), values); in testCheckUriPermission()
392 final Uri targetUri = MediaStore.Audio.Media in testBulkInsert()
567 … buildFile(MediaStore.Audio.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY), in testBuildData_InvalidTypes()
597 buildFile(MediaStore.Audio.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY), in testBuildData_InvalidSecondaryTypes()
1211 testQueryAudioViewsNoItemWithColumn(MediaStore.Audio.Media.IS_TRASHED); in testQueryAudioViewsNoTrashedItem()
1216 testQueryAudioViewsNoItemWithColumn(MediaStore.Audio.Media.IS_PENDING); in testQueryAudioViewsNoPendingItem()
1229 MediaStore.Audio.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY); in testQueryAudioViewsNoItemWithColumn()
1237 values.put(MediaStore.Audio.Media.ALBUM, album); in testQueryAudioViewsNoItemWithColumn()
1238 values.put(MediaStore.Audio.Media.ARTIST, artist); in testQueryAudioViewsNoItemWithColumn()
[all …]
/packages/apps/Music/src/com/android/music/
DAudioPreview.java133 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/
DAudioPreview.kt122 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 …ndler.startQuery(0, null, mUri, arrayOf<String>(MediaStore.Audio.Media.TITLE, MediaStore.Audio.Med… in onCreate()
167 …artQuery(0, null, MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, arrayOf<String>(MediaStore.Audio.Me… in onCreate()
168 …MediaStore.Audio.Media.ARTIST), MediaStore.Audio.Media.DATA.toString() + "=?", arrayOf(path), null) in onCreate()
/packages/providers/MediaProvider/apex/hiddenapi/
Dhiddenapi-max-target-o-low-priority.txt1 Landroid/provider/MediaStore$Audio$AudioColumns;->ALBUM_ARTIST:Ljava/lang/String;
2 Landroid/provider/MediaStore$Audio$AudioColumns;->COMPILATION:Ljava/lang/String;
3 Landroid/provider/MediaStore$Audio$AudioColumns;->GENRE:Ljava/lang/String;
4 Landroid/provider/MediaStore$Audio$AudioColumns;->TITLE_RESOURCE_URI:Ljava/lang/String;
5 Landroid/provider/MediaStore$Audio$Media;->EXTERNAL_PATHS:[Ljava/lang/String;
6 Landroid/provider/MediaStore$Audio$Radio;-><init>()V
/packages/apps/TV/tuner/proto/
Dchannel.proto92 // ISO/IEC 11172 Audio (MPEG-1)
94 // ISO/IEC 13818-3 Audio (MPEG-2)
96 // ISO/IEC 13818-7 Audio with ADTS transport syntax
100 // Dolby Digital Audio (ATSC)
102 // Dolby Digital Plus Audio (ATSC)ISO/IEC 14496-2Video (MPEG-1)
/packages/apps/UniversalMediaPlayer/java/com/android/pump/fragment/
DAudioFragment.java37 import com.android.pump.db.Audio;
68 …private final List<Audio> mAudios; // TODO(b/123710968) Use android.support.v7.util.SortedList/and…
101 Audio audio = mAudios.get(position - 1); in onBindViewHolder()
143 private void bind(@NonNull Audio audio) { in bind()

123