/cts/tests/tests/provider/src/android/provider/cts/ |
MediaStore_Video_MediaTest.java | 30 import android.provider.MediaStore.Video.Media; 48 assertNotNull(mContentResolver.query(Media.getContentUri("internal"), null, null, null, 50 assertNotNull(mContentResolver.query(Media.getContentUri("external"), null, null, null, 55 assertNull(mContentResolver.query(Media.getContentUri(volume), null, null, null, null)); 69 values.put(Media.ALBUM, "cts"); 70 values.put(Media.ARTIST, "cts team"); 71 values.put(Media.CATEGORY, "test"); 73 values.put(Media.DATE_TAKEN, dateTaken); 74 values.put(Media.DESCRIPTION, "This is a video"); 75 values.put(Media.DURATION, 8480) [all...] |
MediaStore_Images_MediaTest.java | 30 import android.provider.MediaStore.Images.Media; 84 Cursor c = Media.query(mContentResolver, Media.EXTERNAL_CONTENT_URI, null, null, 93 stringUrl = Media.insertImage(mContentResolver, path, TEST_TITLE1, TEST_DESCRIPTION1); 107 stringUrl = Media.insertImage(mContentResolver, path, TEST_TITLE2, TEST_DESCRIPTION2); 118 c = Media.query(mContentResolver, Uri.parse(stringUrl), 119 new String[] { Media.TITLE, Media.DESCRIPTION, Media.MIME_TYPE }); 122 assertEquals(TEST_TITLE2, c.getString(c.getColumnIndex(Media.TITLE))) [all...] |
MediaStore_Audio_MediaTest.java | 25 import android.provider.MediaStore.Audio.Media; 42 Media.getContentUri(MediaStoreAudioTestHelper.INTERNAL_VOLUME_NAME), null, null, 45 Media.getContentUri(MediaStoreAudioTestHelper.EXTERNAL_VOLUME_NAME), null, null, 50 assertNull(mContentResolver.query(Media.getContentUri(volume), null, null, null, null)); 55 assertNotNull(mContentResolver.query(Media.getContentUriForPath(externalPath), null, null, 60 assertNotNull(mContentResolver.query(Media.getContentUriForPath(internalPath), null, null, 76 Uri mediaUri = isInternal ? Media.INTERNAL_CONTENT_URI : Media.EXTERNAL_CONTENT_URI; 88 long id = c.getLong(c.getColumnIndex(Media._ID)); 91 assertEquals(expected, c.getString(c.getColumnIndex(Media.DATA))) [all...] |
MediaStore_Images_ThumbnailsTest.java | 31 import android.provider.MediaStore.Images.Media; 116 stringUrl = Media.insertImage(mContentResolver, src, null, null); 126 new String[]{ Media._ID, Media.DATA }, null, null, null); 128 long imageId = c.getLong(c.getColumnIndex(Media._ID)); 129 String imagePath = c.getString(c.getColumnIndex(Media.DATA)); 176 stringUrl = Media.insertImage(mContentResolver, src, null, null); 178 new String[]{ Media._ID, Media.DATA}, null, null, null); 180 imageId = c.getLong(c.getColumnIndex(Media._ID)) [all...] |
/cts/tests/src/android/provider/cts/ |
MediaStoreAudioTestHelper.java | 24 import android.provider.MediaStore.Audio.Media; 30 * {@link MediaStore.Audio.Media} 53 Uri uri = contentResolver.insert(Media.INTERNAL_CONTENT_URI, getContentValues(true)); 59 Uri uri = contentResolver.insert(Media.EXTERNAL_CONTENT_URI, getContentValues(false)); 123 values.put(Media.DATA, isInternal ? INTERNAL_DATA : EXTERNAL_DATA); 124 values.put(Media.DATE_MODIFIED, DATE_MODIFIED); 125 values.put(Media.DISPLAY_NAME, DISPLAY_NAME); 126 values.put(Media.MIME_TYPE, MIME_TYPE); 127 values.put(Media.SIZE, SIZE); 128 values.put(Media.TITLE, TITLE) [all...] |
/packages/apps/Gallery/src/com/android/camera/gallery/ |
ImageList.java | 22 import android.provider.MediaStore.Images.Media; 41 Cursor cursor = Media.query( 44 Media.BUCKET_DISPLAY_NAME, 45 Media.BUCKET_ID}, 67 "(" + Media.MIME_TYPE + " in (?, ?, ?))"; 69 WHERE_CLAUSE + " AND " + Media.BUCKET_ID + " = ?"; 89 Cursor c = Media.query( 96 Media._ID, 97 Media.DATA, 98 Media.DATE_TAKEN [all...] |
VideoList.java | 23 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( 87 Media.BUCKET_DISPLAY_NAME [all...] |
/packages/apps/Music/src/com/android/music/ |
VideoBrowserActivity.java | 24 import android.media.AudioManager; 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 | 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, 141 MediaStore.Audio.Media.TITLE [all...] |
MusicPicker.java | 26 import android.media.AudioManager; 27 import android.media.MediaPlayer; 28 import android.media.RingtoneManager; 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 [all...] |
TrackBrowserActivity.java | 37 import android.media.AudioManager; 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 150 MediaStore.Audio.Media.TITLE, 151 MediaStore.Audio.Media.DATA [all...] |
/gdk/samples/PhotoEditor/src/com/android/photoeditor/ |
SaveCopyTask.java | 125 values.put(Images.Media.TITLE, saveFileName); 126 values.put(Images.Media.DISPLAY_NAME, saveFileName); 127 values.put(Images.Media.MIME_TYPE, "image/jpeg"); 128 values.put(Images.Media.DATE_TAKEN, dateTaken); 129 values.put(Images.Media.DATE_MODIFIED, now); 130 values.put(Images.Media.DATE_ADDED, now); 131 values.put(Images.Media.ORIENTATION, 0); 132 values.put(Images.Media.DATA, file.getAbsolutePath()); 133 values.put(Images.Media.SIZE, file.length()); 137 values.put(Images.Media.LATITUDE, latitude) [all...] |
/external/webkit/Source/WebCore/platform/graphics/qt/ |
MediaPlayerPrivatePhonon.cpp | 51 #define LOG_MEDIAOBJECT() (LOG(Media, "%s", debugMediaObject(this, *m_mediaObject).constData())) 135 LOG(Media, "MediaPlayerPrivatePhonon::dtor deleting videowidget"); 140 LOG(Media, "MediaPlayerPrivatePhonon::dtor deleting audiooutput"); 144 LOG(Media, "MediaPlayerPrivatePhonon::dtor deleting mediaobject"); 211 LOG(Media, "MediaPlayerPrivatePhonon::hasVideo() -> %s", hasVideo ? "true" : "false"); 219 LOG(Media, "MediaPlayerPrivatePhonon::hasAudio() -> %s", hasAudio ? "true" : "false"); 225 LOG(Media, "MediaPlayerPrivatePhonon::load(\"%s\")", url.utf8().data()); 252 LOG(Media, "MediaPlayerPrivatePhonon::play()"); 258 LOG(Media, "MediaPlayerPrivatePhonon::pause()"); 266 LOG(Media, "MediaPlayerPrivatePhonon::paused() --> %s", paused ? "true" : "false") [all...] |
/external/webkit/Source/WebCore/platform/graphics/avfoundation/ |
MediaPlayerPrivateAVFoundation.cpp | 80 LOG(Media, "MediaPlayerPrivateAVFoundation::MediaPlayerPrivateAVFoundation(%p)", this); 85 LOG(Media, "MediaPlayerPrivateAVFoundation::~MediaPlayerPrivateAVFoundation(%p)", this); 125 LOG(Media, "MediaPlayerPrivateAVFoundation::setUpVideoRendering(%p) - current mode = %d, preferred mode = %d", 147 LOG(Media, "MediaPlayerPrivateAVFoundation::setUpVideoRendering(%p) - calling mediaPlayerRenderingModeChanged()", this); 155 LOG(Media, "MediaPlayerPrivateAVFoundation::tearDownVideoRendering(%p)", this); 172 LOG(Media, "MediaPlayerPrivateAVFoundation::resumeLoad(%p)", this); 183 LOG(Media, "MediaPlayerPrivateAVFoundation::load(%p)", this); 202 LOG(Media, "MediaPlayerPrivateAVFoundation::load(%p) - preload==none so returning", this); 212 LOG(Media, "MediaPlayerPrivateAVFoundation::playabilityKnown(%p)", this); 220 LOG(Media, "MediaPlayerPrivateAVFoundation::playabilityKnown(%p) - all metadata loaded", this) [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/ |
SaveCopyTask.java | 148 values.put(Images.Media.TITLE, saveFileName); 149 values.put(Images.Media.DISPLAY_NAME, file.getName()); 150 values.put(Images.Media.MIME_TYPE, "image/jpeg"); 151 values.put(Images.Media.DATE_TAKEN, now); 152 values.put(Images.Media.DATE_MODIFIED, now); 153 values.put(Images.Media.DATE_ADDED, now); 154 values.put(Images.Media.ORIENTATION, 0); 155 values.put(Images.Media.DATA, file.getAbsolutePath()); 156 values.put(Images.Media.SIZE, file.length()); 167 values.put(Images.Media.DATE_TAKEN, cursor.getLong(0)) [all...] |
/external/webkit/Source/WebCore/html/ |
HTMLMediaElement.cpp | 83 // For every touch, show the media control for 4 seconds. 114 // Default to not logging warnings about excessive drift in the cached media time because it adds a 184 LOG(Media, "HTMLMediaElement::HTMLMediaElement"); 195 LOG(Media, "HTMLMediaElement::~HTMLMediaElement"); 364 LOG(Media, "HTMLMediaElement::removedFromDocument"); 372 LOG(Media, "HTMLMediaElement::removedFromDocument"); 412 LOG(Media, "HTMLMediaElement::scheduleLoad"); 432 LOG(Media, "HTMLMediaElement::scheduleEvent - scheduling '%s'", eventName.string().ascii().data()); 448 LOG(Media, "HTMLMediaElement::asyncEventTimerFired - dispatching '%s'", pendingEvents[ndx]->type().string().ascii().data()); 506 LOG(Media, "HTMLMediaElement::canPlayType(%s) -> %s", mimeType.utf8().data(), canPlay.utf8().data()) 1773 RefPtr<MediaList> media = MediaList::createAllowingDescriptionSyntax(source->media()); local [all...] |
HTMLSourceElement.cpp | 48 LOG(Media, "HTMLSourceElement::HTMLSourceElement - %p", this); 76 String HTMLSourceElement::media() const function in class:WebCore::HTMLSourceElement 81 void HTMLSourceElement::setMedia(const String& media) 83 setAttribute(mediaAttr, media); 98 LOG(Media, "HTMLSourceElement::scheduleErrorEvent - %p", this); 107 LOG(Media, "HTMLSourceElement::cancelPendingErrorEvent - %p", this); 113 LOG(Media, "HTMLSourceElement::errorEventTimerFired - %p", this);
|
/development/samples/RandomMusicPlayer/src/com/example/android/musicplayer/ |
MusicRetriever.java | 31 * Retrieves and organizes media to play. Before being used, you must call {@link #prepare()}, 55 Uri uri = android.provider.MediaStore.Audio.Media.EXTERNAL_CONTENT_URI; 56 Log.i(TAG, "Querying media..."); 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) [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
SlideshowDream.java | 13 android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI)
|
/external/webkit/Source/WebCore/platform/graphics/gstreamer/ |
MediaPlayerPrivateGStreamer.cpp | 174 LOG_VERBOSE(Media, "Could not initialize GStreamer: %s", 287 LOG_VERBOSE(Media, "Load %s", url.utf8().data()); 290 LOG_VERBOSE(Media, "Delaying load."); 305 LOG_VERBOSE(Media, "Committing load."); 315 LOG_VERBOSE(Media, "Position query failed..."); 328 LOG_VERBOSE(Media, "Position %" GST_TIME_FORMAT, GST_TIME_ARGS(position)); 365 LOG_VERBOSE(Media, "Play"); 371 LOG_VERBOSE(Media, "Pause"); 382 // Media duration query failed already, don't attempt new useless queries. 393 LOG_VERBOSE(Media, "Time duration query failed.") [all...] |
/packages/apps/Camera/src/com/android/camera/ |
Thumbnail.java | 25 import android.media.MediaMetadataRetriever; 162 // The media is deleted while we are getting its thumbnail from media provider. 166 Media image = getLastImageThumbnail(resolver); 167 Media video = getLastVideoThumbnail(resolver); 171 Media lastMedia; 192 private static class Media { 193 public Media(long id, int orientation, long dateTaken, Uri uri) { 206 private static Media getLastImageThumbnail(ContentResolver resolver) { 207 Uri baseUri = Images.Media.EXTERNAL_CONTENT_URI [all...] |
/packages/apps/LegacyCamera/src/com/android/camera/ |
Thumbnail.java | 25 import android.media.MediaMetadataRetriever; 156 Media image = getLastImageThumbnail(resolver); 157 Media video = getLastVideoThumbnail(resolver); 161 Media lastMedia; 181 private static class Media { 182 public Media(long id, int orientation, long dateTaken, Uri uri) { 195 public static Media getLastImageThumbnail(ContentResolver resolver) { 196 Uri baseUri = Images.Media.EXTERNAL_CONTENT_URI; 210 return new Media(id, cursor.getInt(1), cursor.getLong(2), 221 private static Media getLastVideoThumbnail(ContentResolver resolver) [all...] |
/frameworks/base/media/java/android/media/ |
RingtoneManager.java | 17 package android.media; 41 * of sounds. It manages querying the different media providers and combines the 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 + "\"" [all...] |
/development/apps/Development/src/com/android/development/ |
MediaScannerActivity.java | 94 mAudioUri = MediaStore.Audio.Media.EXTERNAL_CONTENT_URI; 114 mTitle.setText("Media Scanner started scanning " + intent.getData().getPath()); 117 mTitle.setText("Media Scanner finished scanning " + intent.getData().getPath()); 126 mTitle.setText("Sent ACTION_MEDIA_MOUNTED to trigger the Media Scanner."); 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)) [all...] |
/packages/apps/Gallery/src/com/android/camera/ |
ImageManager.java | 35 import android.media.ExifInterface; 56 * in the media content provider. 61 private static final Uri STORAGE_URI = Images.Media.EXTERNAL_CONTENT_URI; 66 Uri.parse("content://media/external/video/media"); 198 // directory and filename). Also add an entry to the media store for 233 values.put(Images.Media.TITLE, title); 238 values.put(Images.Media.DISPLAY_NAME, filename); 239 values.put(Images.Media.DATE_TAKEN, dateTaken); 240 values.put(Images.Media.MIME_TYPE, "image/jpeg") [all...] |