/cts/tests/tests/provider/src/android/provider/cts/ |
MediaStore_AudioTest.java | 20 import android.provider.MediaStore.Audio; 30 mKeyForBeatles = Audio.keyFor("beatles"); 34 assertEquals(mKeyForBeatles, Audio.keyFor("[beatles]")); 35 assertEquals(mKeyForBeatles, Audio.keyFor("(beatles)")); 36 assertEquals(mKeyForBeatles, Audio.keyFor("beatles!")); 37 assertEquals(mKeyForBeatles, Audio.keyFor("beatles?")); 38 assertEquals(mKeyForBeatles, Audio.keyFor("'beatles'")); 39 assertEquals(mKeyForBeatles, Audio.keyFor("beatles.")); 40 assertEquals(mKeyForBeatles, Audio.keyFor("beatles,")); 42 assertEquals(mKeyForBeatles, Audio.keyFor(" beatles ")) [all...] |
MediaStore_Audio_Artists_AlbumsTest.java | 25 import android.provider.MediaStore.Audio.Media; 26 import android.provider.MediaStore.Audio.Artists.Albums; 43 Uri contentUri = MediaStore.Audio.Artists.Albums.getContentUri( 48 contentUri = MediaStore.Audio.Artists.Albums.getContentUri( 55 assertNull(mContentResolver.query(MediaStore.Audio.Artists.Albums.getContentUri(volume, 1), 68 // the album item is inserted when inserting audio media 77 Uri artistsAlbumsUri = MediaStore.Audio.Artists.Albums.getContentUri(isInternal ? 132 // the album items are deleted when deleting the audio media which belongs to the album
|
/packages/apps/Music/src/com/android/music/ |
MediaPickerActivity.java | 90 mCursor.getString(mCursor.getColumnIndexOrThrow(MediaStore.Audio.Media.MIME_TYPE)); 102 uri = MediaStore.Audio.Media.EXTERNAL_CONTENT_URI; 104 mCursor.getLong(mCursor.getColumnIndexOrThrow(MediaStore.Audio.Media._ID)); 112 // Need to stop the playbackservice, in case it is busy playing audio 122 ContentUris.withAppendedId(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, id), type); 128 String[] audiocols = new String[] {MediaStore.Audio.Media._ID, 129 MediaStore.Audio.Media.ARTIST, MediaStore.Audio.Media.ALBUM, 130 MediaStore.Audio.Media.TITLE, MediaStore.Audio.Media.DATA [all...] |
MusicAlphabetIndexer.java | 35 String wordKey = MediaStore.Audio.keyFor(word); 36 String letterKey = MediaStore.Audio.keyFor(letter);
|
CreatePlaylist.java | 101 Cursor c = MusicUtils.query(this, MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI, 102 new String[] {MediaStore.Audio.Playlists._ID}, 103 MediaStore.Audio.Playlists.NAME + "=?", new String[] {name}, 104 MediaStore.Audio.Playlists.NAME); 130 String[] cols = new String[] {MediaStore.Audio.Playlists.NAME}; 132 String whereclause = MediaStore.Audio.Playlists.NAME + " != ''"; 133 Cursor c = resolver.query(MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI, cols, 134 whereclause, null, MediaStore.Audio.Playlists.NAME); 174 MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI, id); 178 values.put(MediaStore.Audio.Playlists.NAME, name) [all...] |
RenamePlaylist.java | 119 Cursor c = MusicUtils.query(this, MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI, 120 new String[] {MediaStore.Audio.Playlists._ID}, 121 MediaStore.Audio.Playlists.NAME + "=?", new String[] {name}, 122 MediaStore.Audio.Playlists.NAME); 135 Cursor c = MusicUtils.query(this, MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI, 136 new String[] {MediaStore.Audio.Playlists.NAME}, 137 MediaStore.Audio.Playlists._ID + "=?", new String[] {Long.valueOf(id).toString()}, 138 MediaStore.Audio.Playlists.NAME); 167 values.put(MediaStore.Audio.Playlists.NAME, name); 168 resolver.update(MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI, values [all...] |
MusicPicker.java | 89 static final String[] CURSOR_COLS = new String[] {MediaStore.Audio.Media._ID, 90 MediaStore.Audio.Media.TITLE, MediaStore.Audio.Media.TITLE_KEY, 91 MediaStore.Audio.Media.DATA, MediaStore.Audio.Media.ALBUM, 92 MediaStore.Audio.Media.ARTIST, MediaStore.Audio.Media.ARTIST_ID, 93 MediaStore.Audio.Media.DURATION, MediaStore.Audio.Media.TRACK}; 294 mIdIdx = cursor.getColumnIndex(MediaStore.Audio.Media._ID) [all...] |
TrackBrowserActivity.java | 45 import android.provider.MediaStore.Audio.Playlists; 134 mCursorCols = new String[] {MediaStore.Audio.Media._ID, MediaStore.Audio.Media.TITLE, 135 MediaStore.Audio.Media.DATA, MediaStore.Audio.Media.ALBUM, 136 MediaStore.Audio.Media.ARTIST, MediaStore.Audio.Media.ARTIST_ID, 137 MediaStore.Audio.Media.DURATION}; 138 mPlaylistMemberCols = new String[] {MediaStore.Audio.Playlists.Members._ID, 139 MediaStore.Audio.Media.TITLE, MediaStore.Audio.Media.DATA [all...] |
ArtistAlbumBrowserActivity.java | 263 String album = c.getString(c.getColumnIndex(MediaStore.Audio.Albums.ALBUM)); 269 mArtistCursor.getColumnIndex(MediaStore.Audio.Artists._ID)); 301 cursor = MusicUtils.query(this, MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, 302 new String[] {MediaStore.Audio.Media._ID}, 303 MediaStore.Audio.Media.IS_MUSIC + "=1", null, 304 MediaStore.Audio.Media.DEFAULT_SORT_ORDER); 335 mArtistCursor.getColumnIndexOrThrow(MediaStore.Audio.Artists._ID)); 337 mArtistCursor.getColumnIndexOrThrow(MediaStore.Audio.Artists.ARTIST)); 359 mCurrentAlbumName = c.getString(c.getColumnIndexOrThrow(MediaStore.Audio.Albums.ALBUM)); 363 mArtistCursor.getColumnIndexOrThrow(MediaStore.Audio.Artists.ARTIST)) [all...] |
PlaylistBrowserActivity.java | 145 mPlaylistCursor, new String[] {MediaStore.Audio.Playlists.NAME}, 307 mPlaylistCursor.getColumnIndexOrThrow(MediaStore.Audio.Playlists.NAME))); 325 MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI, mi.id); 406 final String[] ccols = new String[] {MediaStore.Audio.Media._ID}; 409 Cursor cursor = MusicUtils.query(this, MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, ccols, 410 where, null, MediaStore.Audio.Media.DEFAULT_SORT_ORDER); 432 final String[] ccols = new String[] {MediaStore.Audio.Media._ID}; 433 Cursor cursor = MusicUtils.query(this, MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, ccols, 434 MediaStore.Audio.Media.IS_PODCAST + "=1", null, 435 MediaStore.Audio.Media.DEFAULT_SORT_ORDER) [all...] |
MusicUtils.java | 320 colidx = cursor.getColumnIndexOrThrow(MediaStore.Audio.Playlists.Members.AUDIO_ID); 322 colidx = cursor.getColumnIndexOrThrow(MediaStore.Audio.Media._ID); 332 final String[] ccols = new String[] {MediaStore.Audio.Media._ID}; 333 String where = MediaStore.Audio.Media.ARTIST_ID + "=" + id + " AND " 334 + MediaStore.Audio.Media.IS_MUSIC + "=1"; 335 Cursor cursor = query(context, MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, ccols, where, 336 null, MediaStore.Audio.Media.ALBUM_KEY + "," + MediaStore.Audio.Media.TRACK); 347 final String[] ccols = new String[] {MediaStore.Audio.Media._ID}; 348 String where = MediaStore.Audio.Media.ALBUM_ID + "=" + id + " AND [all...] |
AudioPreview.java | 133 int titleIdx = cursor.getColumnIndex(MediaStore.Audio.Media.TITLE); 134 int artistIdx = cursor.getColumnIndex(MediaStore.Audio.Media.ARTIST); 135 int idIdx = cursor.getColumnIndex(MediaStore.Audio.Media._ID); 171 new String[] {MediaStore.Audio.Media.TITLE, MediaStore.Audio.Media.ARTIST}, 183 mAsyncQueryHandler.startQuery(0, null, MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, 184 new String[] {MediaStore.Audio.Media._ID, MediaStore.Audio.Media.TITLE, 185 MediaStore.Audio.Media.ARTIST}, 186 MediaStore.Audio.Media.DATA + "=?", new String[] {path}, null) [all...] |
AlbumBrowserActivity.java | 250 mAlbumCursor.getColumnIndex(MediaStore.Audio.Albums.ARTIST)); 271 mAlbumCursor.getColumnIndexOrThrow(MediaStore.Audio.Albums._ID)); 273 mAlbumCursor.getColumnIndexOrThrow(MediaStore.Audio.Albums.ALBUM)); 275 mAlbumCursor.getColumnIndexOrThrow(MediaStore.Audio.Albums.ARTIST)); 365 i.putExtra(MediaStore.EXTRA_MEDIA_FOCUS, MediaStore.Audio.Albums.ENTRY_CONTENT_TYPE); 431 cursor = MusicUtils.query(this, MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, 432 new String[] {MediaStore.Audio.Media._ID}, 433 MediaStore.Audio.Media.IS_MUSIC + "=1", null, 434 MediaStore.Audio.Media.DEFAULT_SORT_ORDER); 445 String[] cols = new String[] {MediaStore.Audio.Albums._ID, MediaStore.Audio.Albums.ARTIST [all...] |
/cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/ |
ChangeDefaultUris.java | 45 values.put(MediaStore.MediaColumns.MIME_TYPE, "audio/mp3"); 46 values.put(MediaStore.Audio.AudioColumns.ARTIST, "CTS ringer artist"); 47 values.put(MediaStore.Audio.AudioColumns.IS_RINGTONE, true); 48 values.put(MediaStore.Audio.AudioColumns.IS_NOTIFICATION, true); 49 values.put(MediaStore.Audio.AudioColumns.IS_ALARM, true); 50 values.put(MediaStore.Audio.AudioColumns.IS_MUSIC, false); 54 .insert(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, values); 66 MediaStore.Audio.Media.EXTERNAL_CONTENT_URI,
|
/external/webrtc/webrtc/modules/rtp_rtcp/source/ |
rtp_receiver_audio.cc | 45 last_payload_.Audio.channels = 1; 130 // - Sample based audio codecs 142 // - Frame based audio codecs 188 TRACE_EVENT2(TRACE_DISABLED_BY_DEFAULT("webrtc_rtp"), "Audio::ParseRtp", 191 rtp_header->type.Audio.numEnergy = rtp_header->header.numCSRCs; 192 num_energy_ = rtp_header->type.Audio.numEnergy; 193 if (rtp_header->type.Audio.numEnergy > 0 && 194 rtp_header->type.Audio.numEnergy <= kRtpCsrcSize) { 196 rtp_header->type.Audio.arrOfEnergy, 197 rtp_header->type.Audio.numEnergy) [all...] |
rtp_payload_registry.cc | 136 // for audio codecs, but there can for video. 153 // If audio, check frequency and rate. 154 if (payload->audio) { 193 if (payload->audio) { 195 // [default] audio, check freq and channels. 196 if (payload->typeSpecific.Audio.frequency == frequency && 197 payload->typeSpecific.Audio.channels == channels) { 202 // Non-default audio, check freq, channels and rate. 203 if (payload->typeSpecific.Audio.frequency == frequency && 204 payload->typeSpecific.Audio.channels == channels & [all...] |
/development/samples/RandomMusicPlayer/src/com/example/android/musicplayer/ |
MusicRetriever.java | 55 Uri uri = android.provider.MediaStore.Audio.Media.EXTERNAL_CONTENT_URI; 60 // want to query for all audio media on external storage (e.g. SD card) 62 MediaStore.Audio.Media.IS_MUSIC + " = 1", null, null); 79 int artistColumn = cur.getColumnIndex(MediaStore.Audio.Media.ARTIST); 80 int titleColumn = cur.getColumnIndex(MediaStore.Audio.Media.TITLE); 81 int albumColumn = cur.getColumnIndex(MediaStore.Audio.Media.ALBUM); 82 int durationColumn = cur.getColumnIndex(MediaStore.Audio.Media.DURATION); 83 int idColumn = cur.getColumnIndex(MediaStore.Audio.Media._ID); 149 android.provider.MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, id);
|
/development/apps/Development/src/com/android/development/ |
MediaScannerActivity.java | 33 import android.provider.MediaStore.Audio; 94 mAudioUri = MediaStore.Audio.Media.EXTERNAL_CONTENT_URI; 182 map.put(MediaStore.MediaColumns.MIME_TYPE, "audio/mp3"); 184 map.put(Audio.Media.ARTIST, artist); 186 map.put(Audio.Media.ALBUM, albumName); 187 map.put(Audio.Media.TRACK, i + 1); 188 map.put(Audio.Media.DURATION, 4*60*1000); 189 map.put(Audio.Media.IS_MUSIC, 1); 190 map.put(Audio.Media.YEAR, baseYear + mRandom.nextInt(10));
|
/external/drrickorang/LoopbackApp/ |
PrivacyPolicy.md | 6 Loopback app needs the Record Audio permission in order to measure round-trip audio latency.
|
/external/libvorbis/doc/ |
a2-encapsulation-rtp.tex | 9 Audio''} for description of how to embed Vorbis audio in an RTP stream.
|
/packages/apps/Music/tests/src/com/android/music/functional/ |
TestSongs.java | 125 MediaStore.Audio.Playlists.NAME 131 String whereclause = MediaStore.Audio.Playlists.NAME + " != ''"; 132 mCursor = resolver.query(MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI, 134 MediaStore.Audio.Playlists.NAME); 149 * Verification: The count of audio.media.is_ringtone equal to 1. 161 String whereclause = MediaStore.Audio.Media.IS_RINGTONE + " = 1"; 162 mCursor = resolver.query(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, 209 String whereclause = MediaStore.Audio.Media.DISPLAY_NAME + " = '" + 211 mCursor = resolver.query(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI,
|
/frameworks/base/media/java/android/mtp/ |
MtpPropertyGroup.java | 23 import android.provider.MediaStore.Audio; 127 column = Audio.AudioColumns.YEAR; 140 column = Audio.AudioColumns.DURATION; 144 column = Audio.AudioColumns.TRACK; 158 column = Audio.AudioColumns.ALBUM_ARTIST; 166 column = Audio.AudioColumns.COMPOSER; 222 c = mProvider.query(Audio.Media.getContentUri(mVolumeName), 242 Uri uri = Audio.Genres.getContentUriForAudioId(mVolumeName, id); 244 new String [] { Files.FileColumns._ID, Audio.GenresColumns.NAME }, 379 name = queryString(handle, Audio.PlaylistsColumns.NAME) [all...] |
/cts/tests/tests/media/src/android/media/cts/ |
MediaScannerTest.java | 55 private static final String MEDIA_TYPE = "audio/mpeg"; 109 mContext.getContentResolver().delete(MediaStore.Audio.Media.getContentUri("external"), 132 // check that the file ended up in the audio view 133 Uri audiouri = ContentUris.withAppendedId(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, id); 138 // add nomedia file and insert into database, file should no longer be in audio view 148 // entry should not be in audio view anymore 153 // with nomedia file removed, do media scan and check that entry is in audio table again 159 // entry should be in audio view again 165 res.delete(MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI, 166 MediaStore.Audio.PlaylistsColumns.NAME + "=?" [all...] |
/hardware/intel/common/libmix/mix_audio/ |
mixaudio.spec | 7 Summary: MIX Audio 20 MIX Audio is an user library interface for various hardware audio codecs
|
/frameworks/base/media/java/android/media/ |
RingtoneManager.java | 218 MediaStore.Audio.Media._ID, MediaStore.Audio.Media.TITLE, 219 "\"" + MediaStore.Audio.Media.INTERNAL_CONTENT_URI + "\"", 220 MediaStore.Audio.Media.TITLE_KEY 224 MediaStore.Audio.Media._ID, MediaStore.Audio.Media.TITLE, 225 "\"" + MediaStore.Audio.Media.EXTERNAL_CONTENT_URI + "\"", 226 MediaStore.Audio.Media.TITLE_KEY 449 MediaStore.Audio.Media.DEFAULT_SORT_ORDER); 512 final String[] proj = {MediaStore.Audio.Media._ID} [all...] |