/packages/apps/Music/src/com/android/music/ |
MusicAlphabetIndexer.java | 20 import android.provider.MediaStore; 36 String wordKey = MediaStore.Audio.keyFor(word); 37 String letterKey = MediaStore.Audio.keyFor(letter);
|
VideoBrowserActivity.java | 26 import android.provider.MediaStore; 72 new String[] { MediaStore.Video.Media.TITLE}, 83 String type = mCursor.getString(mCursor.getColumnIndexOrThrow(MediaStore.Video.Media.MIME_TYPE)); 84 intent.setDataAndType(ContentUris.withAppendedId(MediaStore.Video.Media.EXTERNAL_CONTENT_URI, id), type); 91 MediaStore.Video.Media._ID, 92 MediaStore.Video.Media.TITLE, 93 MediaStore.Video.Media.DATA, 94 MediaStore.Video.Media.MIME_TYPE, 95 MediaStore.Video.Media.ARTIST 101 mSortOrder = MediaStore.Video.Media.TITLE + " COLLATE UNICODE" [all...] |
MediaPickerActivity.java | 29 import android.provider.MediaStore; 100 MediaStore.Audio.Media.MIME_TYPE)); 108 uri = MediaStore.Video.Media.EXTERNAL_CONTENT_URI; 110 MediaStore.Video.Media._ID)); 112 uri = MediaStore.Audio.Media.EXTERNAL_CONTENT_URI; 114 MediaStore.Audio.Media._ID)); 131 intent.setDataAndType(ContentUris.withAppendedId(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, id), type); 138 MediaStore.Audio.Media._ID, 139 MediaStore.Audio.Media.ARTIST, 140 MediaStore.Audio.Media.ALBUM [all...] |
ArtistAlbumBrowserActivity.java | 45 import android.provider.MediaStore; 271 String album = c.getString(c.getColumnIndex(MediaStore.Audio.Albums.ALBUM)); 272 if (album == null || album.equals(MediaStore.UNKNOWN_STRING)) { 275 mCurrentArtistId = mArtistCursor.getString(mArtistCursor.getColumnIndex(MediaStore.Audio.Artists._ID)); 306 cursor = MusicUtils.query(this, MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, 307 new String [] { MediaStore.Audio.Media._ID}, 308 MediaStore.Audio.Media.IS_MUSIC + "=1", null, 309 MediaStore.Audio.Media.DEFAULT_SORT_ORDER); 339 mCurrentArtistId = mArtistCursor.getString(mArtistCursor.getColumnIndexOrThrow(MediaStore.Audio.Artists._ID)); 340 mCurrentArtistName = mArtistCursor.getString(mArtistCursor.getColumnIndexOrThrow(MediaStore.Audio.Artists.ARTIST)) [all...] |
MusicPicker.java | 32 import android.provider.MediaStore; 90 MediaStore.Audio.Media._ID, 91 MediaStore.Audio.Media.TITLE, 92 MediaStore.Audio.Media.TITLE_KEY, 93 MediaStore.Audio.Media.DATA, 94 MediaStore.Audio.Media.ALBUM, 95 MediaStore.Audio.Media.ARTIST, 96 MediaStore.Audio.Media.ARTIST_ID, 97 MediaStore.Audio.Media.DURATION, 98 MediaStore.Audio.Media.TRAC [all...] |
TrackBrowserActivity.java | 44 import android.provider.MediaStore; 45 import android.provider.MediaStore.Audio.Playlists; 139 MediaStore.Audio.Media._ID, 140 MediaStore.Audio.Media.TITLE, 141 MediaStore.Audio.Media.DATA, 142 MediaStore.Audio.Media.ALBUM, 143 MediaStore.Audio.Media.ARTIST, 144 MediaStore.Audio.Media.ARTIST_ID, 145 MediaStore.Audio.Media.DURATION 148 MediaStore.Audio.Playlists.Members._ID [all...] |
CreatePlaylist.java | 28 import android.provider.MediaStore; 102 Cursor c = MusicUtils.query(this, MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI, 103 new String[] { MediaStore.Audio.Playlists._ID }, 104 MediaStore.Audio.Playlists.NAME + "=?", 106 MediaStore.Audio.Playlists.NAME); 134 MediaStore.Audio.Playlists.NAME 137 String whereclause = MediaStore.Audio.Playlists.NAME + " != ''"; 138 Cursor c = resolver.query(MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI, 140 MediaStore.Audio.Playlists.NAME); 179 uri = ContentUris.withAppendedId(MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI, id) [all...] |
RenamePlaylist.java | 25 import android.provider.MediaStore; 122 Cursor c = MusicUtils.query(this, MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI, 123 new String[] { MediaStore.Audio.Playlists._ID }, 124 MediaStore.Audio.Playlists.NAME + "=?", 126 MediaStore.Audio.Playlists.NAME); 139 Cursor c = MusicUtils.query(this, MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI, 140 new String[] { MediaStore.Audio.Playlists.NAME }, 141 MediaStore.Audio.Playlists._ID + "=?", 143 MediaStore.Audio.Playlists.NAME); 173 values.put(MediaStore.Audio.Playlists.NAME, name) [all...] |
QueryBrowserActivity.java | 41 import android.provider.MediaStore; 130 if (MediaStore.INTENT_ACTION_MEDIA_SEARCH.equals(action)) { 131 String focus = intent.getStringExtra(MediaStore.EXTRA_MEDIA_FOCUS); 132 String artist = intent.getStringExtra(MediaStore.EXTRA_MEDIA_ARTIST); 133 String album = intent.getStringExtra(MediaStore.EXTRA_MEDIA_ALBUM); 134 String title = intent.getStringExtra(MediaStore.EXTRA_MEDIA_TITLE); 138 } else if (focus.equals(MediaStore.Audio.Albums.ENTRY_CONTENT_TYPE)) { 145 } else if (focus.equals(MediaStore.Audio.Artists.ENTRY_CONTENT_TYPE)) { 281 MediaStore.Audio.Media.MIME_TYPE)); 322 MediaStore.Audio.Media.MIME_TYPE, // mimetype of audio file, or "artist" or "album [all...] |
AlbumBrowserActivity.java | 43 import android.provider.MediaStore; 259 mAlbumCursor.getColumnIndex(MediaStore.Audio.Albums.ARTIST)); 260 if (fancyName == null || fancyName.equals(MediaStore.UNKNOWN_STRING)) 279 mCurrentAlbumId = mAlbumCursor.getString(mAlbumCursor.getColumnIndexOrThrow(MediaStore.Audio.Albums._ID)); 280 mCurrentAlbumName = mAlbumCursor.getString(mAlbumCursor.getColumnIndexOrThrow(MediaStore.Audio.Albums.ALBUM)); 282 mAlbumCursor.getColumnIndexOrThrow(MediaStore.Audio.Albums.ARTIST)); 284 mCurrentArtistNameForAlbum.equals(MediaStore.UNKNOWN_STRING); 286 mCurrentAlbumName.equals(MediaStore.UNKNOWN_STRING); 352 i.setAction(MediaStore.INTENT_ACTION_MEDIA_SEARCH); 358 i.putExtra(MediaStore.EXTRA_MEDIA_ALBUM, mCurrentAlbumName) [all...] |
PlaylistBrowserActivity.java | 41 import android.provider.MediaStore; 145 new String[] { MediaStore.Audio.Playlists.NAME}, 307 MediaStore.Audio.Playlists.NAME))); 325 MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI, mi.id); 405 final String[] ccols = new String[] { MediaStore.Audio.Media._ID}; 406 String where = MediaStore.MediaColumns.DATE_ADDED + ">" + (System.currentTimeMillis() / 1000 - X); 407 Cursor cursor = MusicUtils.query(this, MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, 408 ccols, where, null, MediaStore.Audio.Media.DEFAULT_SORT_ORDER); 430 final String[] ccols = new String[] { MediaStore.Audio.Media._ID}; 431 Cursor cursor = MusicUtils.query(this, MediaStore.Audio.Media.EXTERNAL_CONTENT_URI [all...] |
ScanningProgress.java | 26 import android.provider.MediaStore; 46 MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI,
|
MusicUtils.java | 47 import android.provider.MediaStore; 317 colidx = cursor.getColumnIndexOrThrow(MediaStore.Audio.Playlists.Members.AUDIO_ID); 319 colidx = cursor.getColumnIndexOrThrow(MediaStore.Audio.Media._ID); 329 final String[] ccols = new String[] { MediaStore.Audio.Media._ID }; 330 String where = MediaStore.Audio.Media.ARTIST_ID + "=" + id + " AND " + 331 MediaStore.Audio.Media.IS_MUSIC + "=1"; 332 Cursor cursor = query(context, MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, 334 MediaStore.Audio.Media.ALBUM_KEY + "," + MediaStore.Audio.Media.TRACK); 345 final String[] ccols = new String[] { MediaStore.Audio.Media._ID } [all...] |
/cts/tests/tests/provider/src/android/provider/cts/ |
MediaStoreTest.java | 27 import android.provider.MediaStore; 30 @TestTargetClass(MediaStore.class) 34 private static final String[] PROJECTION = new String[] { MediaStore.MEDIA_SCANNER_VOLUME }; 44 mScannerUri = MediaStore.getMediaScannerUri(); 59 values.put(MediaStore.MEDIA_SCANNER_VOLUME, mVolumnBackup); 72 String selection = MediaStore.MEDIA_SCANNER_VOLUME + "=?"; 80 values.put(MediaStore.MEDIA_SCANNER_VOLUME, TEST_VOLUME_NAME); 81 assertEquals(MediaStore.getMediaScannerUri(),
|
MediaStore_VideoTest.java | 30 import android.provider.MediaStore; 31 import android.provider.MediaStore.Video; 32 import android.provider.MediaStore.Video.VideoColumns; 37 @TestTargetClass(MediaStore.Video.class)
|
MediaStore_Audio_Artists_AlbumsTest.java | 28 import android.provider.MediaStore; 29 import android.provider.MediaStore.Audio.Media; 30 import android.provider.MediaStore.Audio.Artists.Albums; 54 Uri contentUri = MediaStore.Audio.Artists.Albums.getContentUri( 57 contentUri = MediaStore.Audio.Artists.Albums.getContentUri( 63 assertNull(mContentResolver.query(MediaStore.Audio.Artists.Albums.getContentUri(volume, 1), 89 Uri artistsAlbumsUri = MediaStore.Audio.Artists.Albums.getContentUri(isInternal ?
|
/packages/apps/Gallery/src/com/android/camera/ |
MovieView.java | 26 import android.provider.MediaStore; 56 if (intent.hasExtra(MediaStore.EXTRA_SCREEN_ORIENTATION)) { 58 MediaStore.EXTRA_SCREEN_ORIENTATION, 65 MediaStore.EXTRA_FINISH_ON_COMPLETION, true);
|
/packages/apps/Gallery3D/src/com/cooliris/media/ |
MovieView.java | 23 import android.provider.MediaStore; 57 if (intent.hasExtra(MediaStore.EXTRA_SCREEN_ORIENTATION)) { 58 int orientation = intent.getIntExtra(MediaStore.EXTRA_SCREEN_ORIENTATION, ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED); 63 mFinishOnCompletion = intent.getBooleanExtra(MediaStore.EXTRA_FINISH_ON_COMPLETION, true);
|
Utils.java | 38 import android.provider.MediaStore; 179 cursor = cr.query(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, 180 new String[] { MediaStore.Images.ImageColumns.BUCKET_ID }, MediaStore.Images.ImageColumns._ID + "=" + id, 189 cursor = cr.query(MediaStore.Video.Media.EXTERNAL_CONTENT_URI, 190 new String[] { MediaStore.Video.VideoColumns.BUCKET_ID }, MediaStore.Images.ImageColumns._ID + "=" + id, 210 Cursor cursor = cr.query(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, 211 new String[] { MediaStore.Images.ImageColumns.BUCKET_DISPLAY_NAME }, 212 MediaStore.Images.ImageColumns.BUCKET_ID + "='" + bucketId + "'", null, null) [all...] |
/packages/apps/Browser/src/com/android/browser/ |
OpenDownloadReceiver.java | 28 import android.provider.MediaStore; 100 uri = MediaStore.Images.Media.EXTERNAL_CONTENT_URI; 102 uri = MediaStore.Audio.Media.EXTERNAL_CONTENT_URI; 104 uri = MediaStore.Video.Media.EXTERNAL_CONTENT_URI; 108 return (uri != null && cr.delete(uri, MediaStore.MediaColumns.DATA
|
/frameworks/base/media/java/android/media/ |
RingtoneManager.java | 31 import android.provider.MediaStore; 181 MediaStore.Audio.Media._ID, MediaStore.Audio.Media.TITLE, 182 "\"" + MediaStore.Audio.Media.INTERNAL_CONTENT_URI + "\"", 183 MediaStore.Audio.Media.TITLE_KEY 189 DrmStore.Audio.TITLE + " AS " + MediaStore.Audio.Media.TITLE_KEY 193 MediaStore.Audio.Media._ID, MediaStore.Audio.Media.TITLE, 194 "\"" + MediaStore.Audio.Media.EXTERNAL_CONTENT_URI + "\"", 195 MediaStore.Audio.Media.TITLE_KE [all...] |
Ringtone.java | 27 import android.provider.MediaStore; 47 MediaStore.Audio.Media._ID, 48 MediaStore.Audio.Media.DATA, 49 MediaStore.Audio.Media.TITLE 138 } else if (MediaStore.AUTHORITY.equals(authority)) {
|
MediaScanner.java | 34 import android.provider.MediaStore; 36 import android.provider.MediaStore.Audio; 37 import android.provider.MediaStore.Images; 38 import android.provider.MediaStore.Video; 39 import android.provider.MediaStore.Audio.Genres; 40 import android.provider.MediaStore.Audio.Playlists; 623 map.put(MediaStore.MediaColumns.DATA, mPath); 624 map.put(MediaStore.MediaColumns.TITLE, mTitle); 625 map.put(MediaStore.MediaColumns.DATE_MODIFIED, mLastModified); 626 map.put(MediaStore.MediaColumns.SIZE, mFileSize) [all...] |
/packages/apps/Music/tests/src/com/android/music/functional/ |
TestSongs.java | 29 import android.provider.MediaStore; 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); 161 String whereclause = MediaStore.Audio.Media.IS_RINGTONE + " = 1"; 162 mCursor = resolver.query(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, 174 * Verification: The song is deleted from the sdcard and mediastore 209 String whereclause = MediaStore.Audio.Media.DISPLAY_NAME + " = '" + 211 mCursor = resolver.query(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI [all...] |
/packages/apps/Camera/src/com/android/camera/gallery/ |
VideoList.java | 22 import android.provider.MediaStore.Images; 23 import android.provider.MediaStore.Video.Media;
|