Home
last modified time | relevance | path

Searched refs:Media (Results 1 – 25 of 45) sorted by relevance

12

/packages/apps/Music/src/com/android/music/
DMediaPickerActivity.java100 MediaStore.Audio.Media.MIME_TYPE)); in onListItemClick()
108 uri = MediaStore.Video.Media.EXTERNAL_CONTENT_URI; in onListItemClick()
110 MediaStore.Video.Media._ID)); in onListItemClick()
112 uri = MediaStore.Audio.Media.EXTERNAL_CONTENT_URI; in onListItemClick()
114 MediaStore.Audio.Media._ID)); in onListItemClick()
131 …intent.setDataAndType(ContentUris.withAppendedId(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, id),… in onListItemClick()
138 MediaStore.Audio.Media._ID, in MakeCursor()
139 MediaStore.Audio.Media.ARTIST, in MakeCursor()
140 MediaStore.Audio.Media.ALBUM, in MakeCursor()
141 MediaStore.Audio.Media.TITLE, in MakeCursor()
[all …]
DVideoBrowserActivity.java72 new String[] { MediaStore.Video.Media.TITLE}, in init()
83 … String type = mCursor.getString(mCursor.getColumnIndexOrThrow(MediaStore.Video.Media.MIME_TYPE)); in onListItemClick()
84 …intent.setDataAndType(ContentUris.withAppendedId(MediaStore.Video.Media.EXTERNAL_CONTENT_URI, id),… in onListItemClick()
91 MediaStore.Video.Media._ID, in MakeCursor()
92 MediaStore.Video.Media.TITLE, in MakeCursor()
93 MediaStore.Video.Media.DATA, in MakeCursor()
94 MediaStore.Video.Media.MIME_TYPE, in MakeCursor()
95 MediaStore.Video.Media.ARTIST in MakeCursor()
101 mSortOrder = MediaStore.Video.Media.TITLE + " COLLATE UNICODE"; in MakeCursor()
102 mWhereClause = MediaStore.Video.Media.TITLE + " != ''"; in MakeCursor()
[all …]
DMusicPicker.java91 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.TRACK
302 mIdIdx = cursor.getColumnIndex(MediaStore.Audio.Media._ID); in changeCursor()
[all …]
DTrackBrowserActivity.java140 MediaStore.Audio.Media._ID, in onCreate()
141 MediaStore.Audio.Media.TITLE, in onCreate()
142 MediaStore.Audio.Media.DATA, in onCreate()
143 MediaStore.Audio.Media.ALBUM, in onCreate()
144 MediaStore.Audio.Media.ARTIST, in onCreate()
145 MediaStore.Audio.Media.ARTIST_ID, in onCreate()
146 MediaStore.Audio.Media.DURATION in onCreate()
150 MediaStore.Audio.Media.TITLE, in onCreate()
151 MediaStore.Audio.Media.DATA, in onCreate()
152 MediaStore.Audio.Media.ALBUM, in onCreate()
[all …]
DAudioPreview.java135 int titleIdx = cursor.getColumnIndex(MediaStore.Audio.Media.TITLE); in onCreate()
136 int artistIdx = cursor.getColumnIndex(MediaStore.Audio.Media.ARTIST); in onCreate()
137 int idIdx = cursor.getColumnIndex(MediaStore.Audio.Media._ID); in onCreate()
173 MediaStore.Audio.Media.TITLE, MediaStore.Audio.Media.ARTIST}, in onCreate()
185 mAsyncQueryHandler.startQuery(0, null, MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, in onCreate()
186 new String [] {MediaStore.Audio.Media._ID, in onCreate()
187 MediaStore.Audio.Media.TITLE, MediaStore.Audio.Media.ARTIST}, in onCreate()
188 MediaStore.Audio.Media.DATA + "=?", new String [] {path}, null); in onCreate()
DMusicUtils.java320 colidx = cursor.getColumnIndexOrThrow(MediaStore.Audio.Media._ID); in getSongListForCursor()
330 final String[] ccols = new String[] { MediaStore.Audio.Media._ID }; in getSongListForArtist()
331 String where = MediaStore.Audio.Media.ARTIST_ID + "=" + id + " AND " + in getSongListForArtist()
332 MediaStore.Audio.Media.IS_MUSIC + "=1"; in getSongListForArtist()
333 Cursor cursor = query(context, MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, in getSongListForArtist()
335 MediaStore.Audio.Media.ALBUM_KEY + "," + MediaStore.Audio.Media.TRACK); in getSongListForArtist()
346 final String[] ccols = new String[] { MediaStore.Audio.Media._ID }; in getSongListForAlbum()
347 String where = MediaStore.Audio.Media.ALBUM_ID + "=" + id + " AND " + in getSongListForAlbum()
348 MediaStore.Audio.Media.IS_MUSIC + "=1"; in getSongListForAlbum()
349 Cursor cursor = query(context, MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, in getSongListForAlbum()
[all …]
DMediaPlaybackService.java129 MediaStore.Audio.Media.ARTIST,
130 MediaStore.Audio.Media.ALBUM,
131 MediaStore.Audio.Media.TITLE,
132 MediaStore.Audio.Media.DATA,
133 MediaStore.Audio.Media.MIME_TYPE,
134 MediaStore.Audio.Media.ALBUM_ID,
135 MediaStore.Audio.Media.ARTIST_ID,
136 MediaStore.Audio.Media.IS_PODCAST, // index must match PODCASTCOLIDX below
137 MediaStore.Audio.Media.BOOKMARK // index must match BOOKMARKCOLIDX below
528 MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, in reloadQueue()
[all …]
DPlaylistBrowserActivity.java414 final String[] ccols = new String[] { MediaStore.Audio.Media._ID}; in playRecentlyAdded()
416 Cursor cursor = MusicUtils.query(this, MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, in playRecentlyAdded()
417 ccols, where, null, MediaStore.Audio.Media.DEFAULT_SORT_ORDER); in playRecentlyAdded()
439 final String[] ccols = new String[] { MediaStore.Audio.Media._ID}; in playPodcasts()
440 Cursor cursor = MusicUtils.query(this, MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, in playPodcasts()
441 ccols, MediaStore.Audio.Media.IS_PODCAST + "=1", in playPodcasts()
442 null, MediaStore.Audio.Media.DEFAULT_SORT_ORDER); in playPodcasts()
526 Cursor counter = MusicUtils.query(this, MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, in mergedCursor()
DQueryBrowserActivity.java281 MediaStore.Audio.Media.MIME_TYPE)); in onListItemClick()
322 MediaStore.Audio.Media.MIME_TYPE, // mimetype of audio file, or "artist" or "album" in getQueryCursor()
325 MediaStore.Audio.Media.TITLE, in getQueryCursor()
390 MediaStore.Audio.Media.MIME_TYPE)); in bindView()
438 MediaStore.Audio.Media.TITLE)); in bindView()
/packages/apps/Gallery/src/com/android/camera/gallery/
DImageList.java22 import android.provider.MediaStore.Images.Media;
41 Cursor cursor = Media.query( in getBucketIds()
44 Media.BUCKET_DISPLAY_NAME, in getBucketIds()
45 Media.BUCKET_ID}, in getBucketIds()
67 "(" + Media.MIME_TYPE + " in (?, ?, ?))";
69 WHERE_CLAUSE + " AND " + Media.BUCKET_ID + " = ?";
89 Cursor c = Media.query( in createCursor()
96 Media._ID,
97 Media.DATA,
98 Media.DATE_TAKEN,
[all …]
DVideoList.java23 import android.provider.MediaStore.Video.Media;
36 Media._ID,
37 Media.DATA,
38 Media.DATE_TAKEN,
39 Media.TITLE,
40 Media.MINI_THUMB_MAGIC,
41 Media.MIME_TYPE,
42 Media.DATE_MODIFIED};
84 Cursor c = Images.Media.query( in getBucketIds()
87 Media.BUCKET_DISPLAY_NAME, in getBucketIds()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/
DSaveCopyTask.java148 values.put(Images.Media.TITLE, saveFileName); in insertContent()
149 values.put(Images.Media.DISPLAY_NAME, file.getName()); in insertContent()
150 values.put(Images.Media.MIME_TYPE, "image/jpeg"); in insertContent()
151 values.put(Images.Media.DATE_TAKEN, now); in insertContent()
152 values.put(Images.Media.DATE_MODIFIED, now); in insertContent()
153 values.put(Images.Media.DATE_ADDED, now); in insertContent()
154 values.put(Images.Media.ORIENTATION, 0); in insertContent()
155 values.put(Images.Media.DATA, file.getAbsolutePath()); in insertContent()
156 values.put(Images.Media.SIZE, file.length()); in insertContent()
167 values.put(Images.Media.DATE_TAKEN, cursor.getLong(0)); in insertContent()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DCropImage.java389 values.put(Images.Media.TITLE, PicasaSource.getImageTitle(mMediaItem)); in savePicasaImage()
390 values.put(Images.Media.DISPLAY_NAME, output.getName()); in savePicasaImage()
391 values.put(Images.Media.DATE_TAKEN, PicasaSource.getDateTaken(mMediaItem)); in savePicasaImage()
392 values.put(Images.Media.DATE_MODIFIED, now); in savePicasaImage()
393 values.put(Images.Media.DATE_ADDED, now); in savePicasaImage()
394 values.put(Images.Media.MIME_TYPE, getOutputMimeType()); in savePicasaImage()
395 values.put(Images.Media.ORIENTATION, 0); in savePicasaImage()
396 values.put(Images.Media.DATA, output.getAbsolutePath()); in savePicasaImage()
397 values.put(Images.Media.SIZE, output.length()); in savePicasaImage()
404 values.put(Images.Media.LATITUDE, latitude); in savePicasaImage()
[all …]
DSlideshowDream.java13 android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI) in onCreate()
/packages/apps/Camera/src/com/android/camera/
DThumbnail.java166 Media image = getLastImageThumbnail(resolver); in getLastThumbnailFromContentResolver()
167 Media video = getLastVideoThumbnail(resolver); in getLastThumbnailFromContentResolver()
171 Media lastMedia; in getLastThumbnailFromContentResolver()
192 private static class Media { class in Thumbnail
193 public Media(long id, int orientation, long dateTaken, Uri uri) { in Media() method in Thumbnail.Media
206 private static Media getLastImageThumbnail(ContentResolver resolver) { in getLastImageThumbnail()
207 Uri baseUri = Images.Media.EXTERNAL_CONTENT_URI; in getLastImageThumbnail()
221 return new Media(id, cursor.getInt(1), cursor.getLong(2), in getLastImageThumbnail()
232 private static Media getLastVideoThumbnail(ContentResolver resolver) { in getLastVideoThumbnail()
233 Uri baseUri = Video.Media.EXTERNAL_CONTENT_URI; in getLastVideoThumbnail()
[all …]
/packages/apps/LegacyCamera/src/com/android/camera/
DThumbnail.java156 Media image = getLastImageThumbnail(resolver); in getLastThumbnail()
157 Media video = getLastVideoThumbnail(resolver); in getLastThumbnail()
161 Media lastMedia; in getLastThumbnail()
181 private static class Media { class in Thumbnail
182 public Media(long id, int orientation, long dateTaken, Uri uri) { in Media() method in Thumbnail.Media
195 public static Media getLastImageThumbnail(ContentResolver resolver) { in getLastImageThumbnail()
196 Uri baseUri = Images.Media.EXTERNAL_CONTENT_URI; in getLastImageThumbnail()
210 return new Media(id, cursor.getInt(1), cursor.getLong(2), in getLastImageThumbnail()
221 private static Media getLastVideoThumbnail(ContentResolver resolver) { in getLastVideoThumbnail()
222 Uri baseUri = Video.Media.EXTERNAL_CONTENT_URI; in getLastVideoThumbnail()
[all …]
/packages/apps/Gallery/src/com/android/camera/
DImageManager.java61 private static final Uri STORAGE_URI = Images.Media.EXTERNAL_CONTENT_URI;
233 values.put(Images.Media.TITLE, title); in addImage()
238 values.put(Images.Media.DISPLAY_NAME, filename); in addImage()
239 values.put(Images.Media.DATE_TAKEN, dateTaken); in addImage()
240 values.put(Images.Media.MIME_TYPE, "image/jpeg"); in addImage()
241 values.put(Images.Media.ORIENTATION, degree[0]); in addImage()
242 values.put(Images.Media.DATA, filePath); in addImage()
245 values.put(Images.Media.LATITUDE, location.getLatitude()); in addImage()
246 values.put(Images.Media.LONGITUDE, location.getLongitude()); in addImage()
317 Images.Media.INTERNAL_CONTENT_URI, sort, bucketId)); in makeImageList()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/
DLocalPhotoSource.java27 import android.provider.MediaStore.Images.Media;
49 private static final Uri CONTENT_URI = Media.EXTERNAL_CONTENT_URI;
50 private static final String DATE_TAKEN = Media.DATE_TAKEN;
51 private static final String[] PROJECTION = {Media._ID};
55 String.format("%s != %s", Media.BUCKET_ID, getDownloadBucketId());
144 String.format("%s in (%s)", Media._ID, builder.toString()), in isContentSound()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DLocalAlbum.java71 mBaseUri = Images.Media.EXTERNAL_CONTENT_URI; in LocalAlbum()
78 mBaseUri = Video.Media.EXTERNAL_CONTENT_URI; in LocalAlbum()
96 return MediaStore.Images.Media.EXTERNAL_CONTENT_URI.buildUpon() in getContentUri()
100 return MediaStore.Video.Media.EXTERNAL_CONTENT_URI.buildUpon() in getContentUri()
165 baseUri = Images.Media.EXTERNAL_CONTENT_URI; in getMediaItemById()
169 baseUri = Video.Media.EXTERNAL_CONTENT_URI; in getMediaItemById()
DLocalImage.java95 Uri uri = Images.Media.EXTERNAL_CONTENT_URI; in LocalImage()
231 Uri baseUri = Images.Media.EXTERNAL_CONTENT_URI; in delete()
255 Uri baseUri = Images.Media.EXTERNAL_CONTENT_URI; in rotate()
272 values.put(Images.Media.SIZE, fileSize); in rotate()
275 values.put(Images.Media.ORIENTATION, rotation); in rotate()
282 Uri baseUri = Images.Media.EXTERNAL_CONTENT_URI; in getContentUri()
DLocalVideo.java85 Uri uri = Video.Media.EXTERNAL_CONTENT_URI; in LocalVideo()
187 Uri baseUri = Video.Media.EXTERNAL_CONTENT_URI; in delete()
200 Uri baseUri = Video.Media.EXTERNAL_CONTENT_URI; in getContentUri()
/packages/apps/SoundRecorder/src/com/android/soundrecorder/
DSoundRecorder.java261 = android.provider.MediaStore.Audio.Media.EXTRA_MAX_BYTES; in onCreate()
609 cv.put(MediaStore.Audio.Media.IS_MUSIC, "0"); in addToMediaDB()
611 cv.put(MediaStore.Audio.Media.TITLE, title); in addToMediaDB()
612 cv.put(MediaStore.Audio.Media.DATA, file.getAbsolutePath()); in addToMediaDB()
613 cv.put(MediaStore.Audio.Media.DATE_ADDED, (int) (current / 1000)); in addToMediaDB()
614 cv.put(MediaStore.Audio.Media.DATE_MODIFIED, (int) (modDate / 1000)); in addToMediaDB()
615 cv.put(MediaStore.Audio.Media.DURATION, sampleLengthMillis); in addToMediaDB()
616 cv.put(MediaStore.Audio.Media.MIME_TYPE, mRequestedType); in addToMediaDB()
617 cv.put(MediaStore.Audio.Media.ARTIST, in addToMediaDB()
619 cv.put(MediaStore.Audio.Media.ALBUM, in addToMediaDB()
[all …]
/packages/apps/Music/tests/src/com/android/music/functional/
DTestSongs.java161 String whereclause = MediaStore.Audio.Media.IS_RINGTONE + " = 1"; in testSetRingtone()
162 mCursor = resolver.query(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, in testSetRingtone()
209 String whereclause = MediaStore.Audio.Media.DISPLAY_NAME + " = '" + in testDeleteSong()
211 mCursor = resolver.query(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, in testDeleteSong()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaProvider.java159 MediaStore.Audio.Media.MIME_TYPE,
178 MediaStore.Audio.Media.MIME_TYPE,
181 MediaStore.Audio.Media.TITLE,
188 MediaStore.Audio.Media.MIME_TYPE,
271 Audio.Media.getContentUri(EXTERNAL_VOLUME), null);
273 Images.Media.getContentUri(EXTERNAL_VOLUME), null);
275 Video.Media.getContentUri(EXTERNAL_VOLUME), null);
548 sArtistAlbumsMap.put(MediaStore.Audio.Media.ARTIST, "artist"); in onCreate()
549 sArtistAlbumsMap.put(MediaStore.Audio.Media.ARTIST_ID, "artist"); in onCreate()
550 sArtistAlbumsMap.put(MediaStore.Audio.Media.ARTIST_KEY, "artist_key"); in onCreate()
[all …]
/packages/apps/Mms/src/com/android/mms/model/
DAudioModel.java76 path = c.getString(c.getColumnIndexOrThrow(Audio.Media.DATA)); in initModelFromUri()
78 Audio.Media.MIME_TYPE)); in initModelFromUri()

12