/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; 272 String album = c.getString(c.getColumnIndex(MediaStore.Audio.Albums.ALBUM)); 273 if (album == null || album.equals(MediaStore.UNKNOWN_STRING)) { 276 mCurrentArtistId = mArtistCursor.getString(mArtistCursor.getColumnIndex(MediaStore.Audio.Artists._ID)); 307 cursor = MusicUtils.query(this, MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, 308 new String [] { MediaStore.Audio.Media._ID}, 309 MediaStore.Audio.Media.IS_MUSIC + "=1", null, 310 MediaStore.Audio.Media.DEFAULT_SORT_ORDER); 340 mCurrentArtistId = mArtistCursor.getString(mArtistCursor.getColumnIndexOrThrow(MediaStore.Audio.Artists._ID)); 341 mCurrentArtistName = mArtistCursor.getString(mArtistCursor.getColumnIndexOrThrow(MediaStore.Audio.Artists.ARTIST)) [all...] |
TrackBrowserActivity.java | 44 import android.provider.MediaStore; 45 import android.provider.MediaStore.Audio.Playlists; 140 MediaStore.Audio.Media._ID, 141 MediaStore.Audio.Media.TITLE, 142 MediaStore.Audio.Media.DATA, 143 MediaStore.Audio.Media.ALBUM, 144 MediaStore.Audio.Media.ARTIST, 145 MediaStore.Audio.Media.ARTIST_ID, 146 MediaStore.Audio.Media.DURATION 149 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...] |
MusicPicker.java | 32 import android.provider.MediaStore; 91 MediaStore.Audio.Media._ID, 92 MediaStore.Audio.Media.TITLE, 93 MediaStore.Audio.Media.TITLE_KEY, 94 MediaStore.Audio.Media.DATA, 95 MediaStore.Audio.Media.ALBUM, 96 MediaStore.Audio.Media.ARTIST, 97 MediaStore.Audio.Media.ARTIST_ID, 98 MediaStore.Audio.Media.DURATION, 99 MediaStore.Audio.Media.TRAC [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...] |
PlaylistBrowserActivity.java | 41 import android.provider.MediaStore; 154 new String[] { MediaStore.Audio.Playlists.NAME}, 316 MediaStore.Audio.Playlists.NAME))); 334 MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI, mi.id); 414 final String[] ccols = new String[] { MediaStore.Audio.Media._ID}; 415 String where = MediaStore.MediaColumns.DATE_ADDED + ">" + (System.currentTimeMillis() / 1000 - X); 416 Cursor cursor = MusicUtils.query(this, MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, 417 ccols, where, null, MediaStore.Audio.Media.DEFAULT_SORT_ORDER); 439 final String[] ccols = new String[] { MediaStore.Audio.Media._ID}; 440 Cursor cursor = MusicUtils.query(this, MediaStore.Audio.Media.EXTERNAL_CONTENT_URI [all...] |
AlbumBrowserActivity.java | 43 import android.provider.MediaStore; 260 mAlbumCursor.getColumnIndex(MediaStore.Audio.Albums.ARTIST)); 261 if (fancyName == null || fancyName.equals(MediaStore.UNKNOWN_STRING)) 280 mCurrentAlbumId = mAlbumCursor.getString(mAlbumCursor.getColumnIndexOrThrow(MediaStore.Audio.Albums._ID)); 281 mCurrentAlbumName = mAlbumCursor.getString(mAlbumCursor.getColumnIndexOrThrow(MediaStore.Audio.Albums.ALBUM)); 283 mAlbumCursor.getColumnIndexOrThrow(MediaStore.Audio.Albums.ARTIST)); 285 mCurrentArtistNameForAlbum.equals(MediaStore.UNKNOWN_STRING); 287 mCurrentAlbumName.equals(MediaStore.UNKNOWN_STRING); 358 i.setAction(MediaStore.INTENT_ACTION_MEDIA_SEARCH); 364 i.putExtra(MediaStore.EXTRA_MEDIA_ALBUM, mCurrentAlbumName) [all...] |
AudioPreview.java | 34 import android.provider.MediaStore; 135 int titleIdx = cursor.getColumnIndex(MediaStore.Audio.Media.TITLE); 136 int artistIdx = cursor.getColumnIndex(MediaStore.Audio.Media.ARTIST); 137 int idIdx = cursor.getColumnIndex(MediaStore.Audio.Media._ID); 170 if (mUri.getAuthority() == MediaStore.AUTHORITY) { 173 MediaStore.Audio.Media.TITLE, MediaStore.Audio.Media.ARTIST}, 185 mAsyncQueryHandler.startQuery(0, null, MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, 186 new String [] {MediaStore.Audio.Media._ID, 187 MediaStore.Audio.Media.TITLE, MediaStore.Audio.Media.ARTIST} [all...] |
MusicUtils.java | 47 import android.provider.MediaStore; 318 colidx = cursor.getColumnIndexOrThrow(MediaStore.Audio.Playlists.Members.AUDIO_ID); 320 colidx = cursor.getColumnIndexOrThrow(MediaStore.Audio.Media._ID); 330 final String[] ccols = new String[] { MediaStore.Audio.Media._ID }; 331 String where = MediaStore.Audio.Media.ARTIST_ID + "=" + id + " AND " + 332 MediaStore.Audio.Media.IS_MUSIC + "=1"; 333 Cursor cursor = query(context, MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, 335 MediaStore.Audio.Media.ALBUM_KEY + "," + MediaStore.Audio.Media.TRACK); 346 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);
|
/development/samples/RandomMusicPlayer/src/com/example/android/musicplayer/ |
MusicRetriever.java | 23 import android.provider.MediaStore; 55 Uri uri = android.provider.MediaStore.Audio.Media.EXTERNAL_CONTENT_URI; 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);
|
/packages/apps/Camera/tests/src/com/android/camera/functional/ |
VideoCaptureIntentTest.java | 31 import android.provider.MediaStore; 32 import android.provider.MediaStore.Video.VideoColumns; 58 mIntent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE); 104 mIntent.putExtra(MediaStore.EXTRA_OUTPUT, uri); 159 mIntent.putExtra(MediaStore.EXTRA_OUTPUT, uri); 160 mIntent.putExtra(MediaStore.EXTRA_SIZE_LIMIT, sizeLimit); 161 mIntent.putExtra(MediaStore.EXTRA_VIDEO_QUALITY, 0); // use low quality to speed up 181 mIntent.putExtra(MediaStore.EXTRA_OUTPUT, uri); 182 mIntent.putExtra(MediaStore.EXTRA_DURATION_LIMIT, durationLimit); 203 mIntent.putExtra(MediaStore.EXTRA_OUTPUT, uri) [all...] |
CameraTest.java | 28 import android.provider.MediaStore; 43 Intent intent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE); 46 intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.parse("file://"
|
/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...] |
/cts/tests/tests/content/src/android/content/cts/ |
AvailableIntentsTest.java | 26 import android.provider.MediaStore; 141 Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); 144 intent.setAction(MediaStore.ACTION_VIDEO_CAPTURE); 147 intent.setAction(MediaStore.INTENT_ACTION_STILL_IMAGE_CAMERA); 150 intent.setAction(MediaStore.INTENT_ACTION_VIDEO_CAMERA); 186 MediaStore.Audio.Media.INTERNAL_CONTENT_URI, 1), "audio/*");
|
/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/Gallery2/src/com/android/gallery3d/app/ |
MovieActivity.java | 28 import android.provider.MediaStore; 29 import android.provider.MediaStore.Video.VideoColumns; 57 MediaStore.EXTRA_FINISH_ON_COMPLETION, true); 67 if (intent.hasExtra(MediaStore.EXTRA_SCREEN_ORIENTATION)) { 69 MediaStore.EXTRA_SCREEN_ORIENTATION,
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
MediaProvider.java | 65 import android.provider.MediaStore; 66 import android.provider.MediaStore.Audio; 67 import android.provider.MediaStore.Files; 68 import android.provider.MediaStore.Files.FileColumns; 69 import android.provider.MediaStore.Images; 70 import android.provider.MediaStore.Images.ImageColumns; 71 import android.provider.MediaStore.MediaColumns; 72 import android.provider.MediaStore.Video; 91 * Media content provider. See {@link android.provider.MediaStore} for details. 124 MediaStore.Audio.Media.MIME_TYPE [all...] |