HomeSort by relevance Sort by last modified time
    Searched refs:Media (Results 1 - 25 of 154) sorted by null

1 2 3 4 5 6 7

  /cts/tests/tests/provider/src/android/provider/cts/
MediaStore_Video_MediaTest.java 30 import android.provider.MediaStore.Video.Media;
49 assertNotNull(c = mContentResolver.query(Media.getContentUri("internal"), null, null, null,
52 assertNotNull(c = mContentResolver.query(Media.getContentUri("external"), null, null, null,
58 assertNull(mContentResolver.query(Media.getContentUri(volume), null, null, null, null));
62 mContentResolver.delete(Media.EXTERNAL_CONTENT_URI, "_data=?", new String[] { path });
81 values.put(Media.ALBUM, "cts");
82 values.put(Media.ARTIST, "cts team");
83 values.put(Media.CATEGORY, "test");
85 values.put(Media.DATE_TAKEN, dateTaken);
86 values.put(Media.DESCRIPTION, "This is a video")
    [all...]
MediaStore_Images_MediaTest.java 30 import android.provider.MediaStore.Images.Media;
91 Cursor c = Media.query(mContentResolver, Media.EXTERNAL_CONTENT_URI, null, null,
100 stringUrl = Media.insertImage(mContentResolver, path, TEST_TITLE1, TEST_DESCRIPTION1);
114 stringUrl = Media.insertImage(mContentResolver, path, TEST_TITLE2, TEST_DESCRIPTION2);
125 c = Media.query(mContentResolver, Uri.parse(stringUrl),
126 new String[] { Media.TITLE, Media.DESCRIPTION, Media.MIME_TYPE });
129 assertEquals(TEST_TITLE2, c.getString(c.getColumnIndex(Media.TITLE)))
    [all...]
MediaStore_Audio_MediaTest.java 25 import android.provider.MediaStore.Audio.Media;
43 Media.getContentUri(MediaStoreAudioTestHelper.INTERNAL_VOLUME_NAME), null, null,
47 Media.getContentUri(MediaStoreAudioTestHelper.EXTERNAL_VOLUME_NAME), null, null,
53 assertNull(mContentResolver.query(Media.getContentUri(volume), null, null, null, null));
59 assertNotNull(c = mContentResolver.query(Media.getContentUriForPath(externalPath), null, null,
65 assertNotNull(c = mContentResolver.query(Media.getContentUriForPath(internalPath), null, null,
82 Uri mediaUri = isInternal ? Media.INTERNAL_CONTENT_URI : Media.EXTERNAL_CONTENT_URI;
94 long id = c.getLong(c.getColumnIndex(Media._ID));
97 assertEquals(expected, c.getString(c.getColumnIndex(Media.DATA)))
    [all...]
MediaStoreIntentsTest.java 42 intent.setData(MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
48 intent.setData(MediaStore.Video.Media.EXTERNAL_CONTENT_URI);
54 intent.setData(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI);
60 intent.setData(MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
66 intent.setData(MediaStore.Video.Media.EXTERNAL_CONTENT_URI);
MediaStore_Images_ThumbnailsTest.java 31 import android.provider.MediaStore.Images.Media;
123 stringUrl = Media.insertImage(mContentResolver, src, null, null);
133 new String[]{ Media._ID, Media.DATA }, null, null, null);
135 long imageId = c.getLong(c.getColumnIndex(Media._ID));
136 String imagePath = c.getString(c.getColumnIndex(Media.DATA));
183 stringUrl = Media.insertImage(mContentResolver, src, null, null);
185 new String[]{ Media._ID, Media.DATA}, null, null, null);
187 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...]
  /external/chromium_org/third_party/WebKit/Source/core/html/
HTMLAudioElement.idl 27 RuntimeEnabled=Media,
TimeRanges.idl 27 RuntimeEnabled=Media
HTMLSourceElement.idl 27 RuntimeEnabled=Media
31 attribute DOMString media;
MediaError.idl 27 RuntimeEnabled=Media
HTMLSourceElement.cpp 45 WTF_LOG(Media, "HTMLSourceElement::HTMLSourceElement - %p", this);
78 const AtomicString& HTMLSourceElement::media() const function in class:WebCore::HTMLSourceElement
83 void HTMLSourceElement::setMedia(const AtomicString& media)
85 setAttribute(mediaAttr, media);
100 WTF_LOG(Media, "HTMLSourceElement::scheduleErrorEvent - %p", this);
109 WTF_LOG(Media, "HTMLSourceElement::cancelPendingErrorEvent - %p", this);
115 WTF_LOG(Media, "HTMLSourceElement::errorEventTimerFired - %p", this);
  /external/chromium_org/tools/perf/benchmarks/
media.py 7 from measurements import media namespace
10 class Media(test.Test):
11 """Obtains media metrics for key user scenarios."""
12 test = media.Media
16 """Obtains media metrics under different network simulations."""
17 test = media.Media
22 """Obtains media metrics for key user scenarios on Android."""
23 test = media.Medi
    [all...]
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
MediaStoreTest.java 16 assertThat(Images.Media.EXTERNAL_CONTENT_URI.toString(), equalTo("content://media/external/images/media"));
17 assertThat(Images.Media.INTERNAL_CONTENT_URI.toString(), equalTo("content://media/internal/images/media"));
18 assertThat(Video.Media.EXTERNAL_CONTENT_URI.toString(), equalTo("content://media/external/video/media"));
19 assertThat(Video.Media.INTERNAL_CONTENT_URI.toString(), equalTo("content://media/internal/video/media"))
    [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...]
  /packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
LocalSource.java 71 Uri uri = internal ? MediaStore.Images.Media.INTERNAL_CONTENT_URI
72 : MediaStore.Images.Media.EXTERNAL_CONTENT_URI;
73 String[] projection = {MediaStore.Images.Media.DATA, MediaStore.Images.Media.BUCKET_ID,
74 MediaStore.Images.Media.BUCKET_DISPLAY_NAME, MediaStore.Images.Media.DATE_TAKEN};
80 int dataIndex = cursor.getColumnIndex(MediaStore.Images.Media.DATA);
81 int bucketIndex = cursor.getColumnIndex(MediaStore.Images.Media.BUCKET_ID);
82 int nameIndex = cursor.getColumnIndex(MediaStore.Images.Media.BUCKET_DISPLAY_NAME);
83 int updatedIndex = cursor.getColumnIndex(MediaStore.Images.Media.DATE_TAKEN)
    [all...]
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowMediaStore.java 17 @Implements(MediaStore.Images.Media.class)
27 Robolectric.Reflection.setFinalStaticField(MediaStore.Images.Media.class, "EXTERNAL_CONTENT_URI",
28 Uri.parse("content://media/external/images/media"));
30 Robolectric.Reflection.setFinalStaticField(MediaStore.Images.Media.class, "INTERNAL_CONTENT_URI",
31 Uri.parse("content://media/internal/images/media"));
33 Robolectric.Reflection.setFinalStaticField(MediaStore.Video.Media.class, "EXTERNAL_CONTENT_URI",
34 Uri.parse("content://media/external/video/media"));
    [all...]
  /packages/apps/Camera2/src/com/android/camera/data/
DataUtils.java 27 * Get the file path from a Media storage URI.
31 MediaStore.Images.Media.DATA
38 int columnIndex = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA);
  /external/chromium_org/base/test/android/java/src/org/chromium/base/
ContentUriTestUtils.java 32 MediaStore.Images.Media.EXTERNAL_CONTENT_URI,
34 MediaStore.Images.Media.DATA + " LIKE ?",
41 MediaStore.Images.Media.EXTERNAL_CONTENT_URI, "" + id).toString();
48 MediaStore.Images.Media.EXTERNAL_CONTENT_URI, values);
  /packages/apps/Gallery2/src/com/android/gallery3d/util/
SaveVideoFileUtils.java 22 import android.media.MediaMetadataRetriever;
96 values.put(Video.Media.TITLE, mDstFileInfo.mFileName);
97 values.put(Video.Media.DISPLAY_NAME, mDstFileInfo.mFile.getName());
98 values.put(Video.Media.MIME_TYPE, "video/mp4");
99 values.put(Video.Media.DATE_TAKEN, nowInMs);
100 values.put(Video.Media.DATE_MODIFIED, nowInSec);
101 values.put(Video.Media.DATE_ADDED, nowInSec);
102 values.put(Video.Media.DATA, mDstFileInfo.mFile.getAbsolutePath());
103 values.put(Video.Media.SIZE, mDstFileInfo.mFile.length());
105 values.put(Video.Media.DURATION, durationMs)
    [all...]
  /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...]
  /frameworks/base/media/java/android/media/
RingtoneManager.java 17 package android.media;
40 * 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
187 MediaStore.Audio.Media._ID, MediaStore.Audio.Media.TITLE,
188 "\"" + MediaStore.Audio.Media.EXTERNAL_CONTENT_URI + "\"",
189 MediaStore.Audio.Media.TITLE_KE
    [all...]

Completed in 389 milliseconds

1 2 3 4 5 6 7