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

1 2 3 4 5 6 7 8 91011

  /cts/tests/tests/provider/src/android/provider/cts/
MediaStore_Video_MediaTest.java 29 import android.provider.MediaStore.Video.Media;
51 assertNotNull(c = mContentResolver.query(Media.getContentUri("internal"), null, null, null,
54 assertNotNull(c = mContentResolver.query(Media.getContentUri("external"), null, null, null,
60 assertNull(mContentResolver.query(Media.getContentUri(volume), null, null, null, null));
64 mContentResolver.delete(Media.EXTERNAL_CONTENT_URI, "_data=?", new String[] { path });
83 values.put(Media.ALBUM, "cts");
84 values.put(Media.ARTIST, "cts team");
85 values.put(Media.CATEGORY, "test");
87 values.put(Media.DATE_TAKEN, dateTaken);
88 values.put(Media.DESCRIPTION, "This is a video")
    [all...]
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...]
MediaStore_Images_MediaTest.java 30 import android.provider.MediaStore.Images.Media;
100 Cursor c = Media.query(mContentResolver, Media.EXTERNAL_CONTENT_URI, null, null,
109 stringUrl = Media.insertImage(mContentResolver, path, TEST_TITLE1, TEST_DESCRIPTION1);
123 stringUrl = Media.insertImage(mContentResolver, path, TEST_TITLE2, TEST_DESCRIPTION2);
134 c = Media.query(mContentResolver, Uri.parse(stringUrl),
135 new String[] { Media.TITLE, Media.DESCRIPTION, Media.MIME_TYPE });
138 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...]
  /device/linaro/bootloader/edk2/ArmPlatformPkg/Drivers/NorFlashDxe/
NorFlashBlockIoDxe.c 34 DEBUG ((DEBUG_BLKIO, "NorFlashBlockIoReset(MediaId=0x%x)\n", This->Media->MediaId));
54 EFI_BLOCK_IO_MEDIA *Media;
61 Media = This->Media;
65 if (!Media) {
67 } else if (!Media->MediaPresent) {
69 } else if (Media->MediaId != MediaId) {
71 } else if ((Media->IoAlign > 2) && (((UINTN)Buffer & (Media->IoAlign - 1)) != 0)) {
100 if( !This->Media->MediaPresent ) {
    [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...]
  /device/linaro/bootloader/edk2/OvmfPkg/XenPvBlkDxe/
XenPvBlkDxe.c 264 EFI_BLOCK_IO_MEDIA *Media;
284 Media = AllocateCopyPool (sizeof (EFI_BLOCK_IO_MEDIA),
287 Media->RemovableMedia = TRUE;
289 Media->MediaPresent = TRUE;
290 Media->ReadOnly = !Dev->MediaInfo.ReadWrite;
297 Media->BlockSize = 2048;
298 Media->LastBlock = DivU64x32 (Dev->MediaInfo.Sectors,
299 Media->BlockSize / Dev->MediaInfo.SectorSize) - 1;
301 Media->BlockSize = Dev->MediaInfo.SectorSize;
302 Media->LastBlock = Dev->MediaInfo.Sectors - 1;
    [all...]
BlockIo.c 24 /// Block I/O Media structure
48 &gXenPvBlkDxeBlockIoMedia, // Media
65 @param MediaId Id of the media, changes every time the media is replaced.
86 EFI_BLOCK_IO_MEDIA *Media = This->Media;
97 if (BufferSize % Media->BlockSize != 0) {
103 if (Lba > Media->LastBlock ||
104 (BufferSize / Media->BlockSize) - 1 > Media->LastBlock - Lba) {
    [all...]
  /external/robolectric/v1/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;
65 new String[] {MediaStore.Video.Media.TITLE}, new int[] {android.R.id.text1});
75 mCursor.getString(mCursor.getColumnIndexOrThrow(MediaStore.Video.Media.MIME_TYPE));
77 ContentUris.withAppendedId(MediaStore.Video.Media.EXTERNAL_CONTENT_URI, id), type);
83 String[] cols = new String[] {MediaStore.Video.Media._ID, MediaStore.Video.Media.TITLE,
84 MediaStore.Video.Media.DATA, MediaStore.Video.Media.MIME_TYPE,
85 MediaStore.Video.Media.ARTIST};
90 mSortOrder = MediaStore.Video.Media.TITLE + " COLLATE UNICODE"
    [all...]
MediaPickerActivity.java 90 mCursor.getString(mCursor.getColumnIndexOrThrow(MediaStore.Audio.Media.MIME_TYPE));
98 uri = MediaStore.Video.Media.EXTERNAL_CONTENT_URI;
100 mCursor.getLong(mCursor.getColumnIndexOrThrow(MediaStore.Video.Media._ID));
102 uri = MediaStore.Audio.Media.EXTERNAL_CONTENT_URI;
104 mCursor.getLong(mCursor.getColumnIndexOrThrow(MediaStore.Audio.Media._ID));
122 ContentUris.withAppendedId(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, id), type);
128 String[] audiocols = new String[] {MediaStore.Audio.Media._ID,
129 MediaStore.Audio.Media.ARTIST, MediaStore.Audio.Media.ALBUM,
130 MediaStore.Audio.Media.TITLE, MediaStore.Audio.Media.DATA
    [all...]
  /device/linaro/bootloader/edk2/EmulatorPkg/Unix/Host/
BlockIo.c 35 EFI_BLOCK_IO_MEDIA *Media;
105 Private->Media->MediaPresent = FALSE;
110 if (!Private->Media->MediaPresent) {
114 Private->Media->MediaPresent = TRUE;
134 Private->Media->BlockSize = BlockSize;
139 Private->Media->LastBlock = (0x100000000ULL/0x800) - 1;
141 Private->Media->LastBlock = Private->NumberOfBlocks - 1;
144 ioctl (Private->fd, DKIOCGETMAXBLOCKCOUNTWRITE, &Private->Media->OptimalTransferLengthGranularity);
152 Private->Media->BlockSize = BlockSize;
156 Private->Media->LastBlock = Private->NumberOfBlocks - 1;
    [all...]
  /device/linaro/bootloader/edk2/MdeModulePkg/Universal/Disk/PartitionDxe/
ElTorito.c 32 @retval EFI_MEDIA_CHANGED Media changed Detected.
50 EFI_BLOCK_IO_MEDIA *Media;
65 Media = BlockIo->Media;
73 // If the ISO image has been copied onto a different storage media
76 if (((SIZE_2KB % Media->BlockSize) != 0) || (Media->BlockSize > SIZE_2KB)) {
90 // The ISO-9660 volume descriptor starts at 32k on the media
93 VolDescriptorOffset <= MultU64x32 (Media->LastBlock, Media->BlockSize);
    [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/v1/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...]
  /device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Csm/BiosThunk/BlockIoDxe/
BiosInt13.c 58 BlockIo->Media = &Dev->BlockMedia;
59 BlockMedia = BlockIo->Media;
85 // BugBug: Need to set this for removable media devices if they do not
86 // have media present
271 // Sense Media Type
279 // Media not present or unknown media present
294 // Media Present
352 // Default Media
368 // Unknown media type.
    [all...]
  /device/linaro/bootloader/edk2/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/
UsbMassBoot.c 25 @retval EFI_NO_RESPONSE The device media doesn't response this request.
28 @retval EFI_MEDIA_CHANGED The device media has been changed.
38 EFI_BLOCK_IO_MEDIA *Media;
76 // and update the media status if necessary.
78 Media = &UsbMass->BlockIoMedia;
96 Media->MediaPresent = FALSE;
114 Media->ReadOnly = FALSE;
115 Media->MediaId++;
121 Media->ReadOnly = TRUE;
224 @retval EFI_MEDIA_CHANGED The device media has been changed.
    [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);
  /device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/
Atapi.c 18 This function is used to get the current status of the media residing
19 in the LS-120 drive or ZIP drive. The media status is returned in the
25 @retval EFI_SUCCESS The media status is achieved successfully and the media
27 @retval EFI_DEVICE_ERROR Get Media Status Command is failed.
28 @retval EFI_NO_MEDIA There is no media in the drive.
29 @retval EFI_WRITE_PROTECTED The media is writing protected.
33 (means enable media status notification) is called.
68 // Get Media Status Command is sent
81 // the media status is returned by the command in the ERROR register
    [all...]
  /device/linaro/bootloader/edk2/OvmfPkg/Include/Protocol/
BlockMmio.h 41 EFI_BLOCK_IO_MEDIA *Media;
  /packages/apps/Messaging/src/com/android/messaging/datamodel/data/
GalleryGridItemData.java 23 import android.provider.MediaStore.Images.Media;
26 import com.android.messaging.datamodel.media.FileImageRequestDescriptor;
27 import com.android.messaging.datamodel.media.ImageRequest;
28 import com.android.messaging.datamodel.media.UriImageRequestDescriptor;
36 Media._ID,
37 Media.DATA,
38 Media.WIDTH,
39 Media.HEIGHT,
40 Media.MIME_TYPE,
41 Media.DATE_MODIFIED}
    [all...]
  /device/linaro/bootloader/edk2/EmbeddedPkg/Universal/MmcDxe/
MmcBlockIo.c 80 // If a card is not present then clear all media settings
82 MmcHostInstance->BlockIo.Media->MediaPresent = FALSE;
83 MmcHostInstance->BlockIo.Media->LastBlock = 0;
84 MmcHostInstance->BlockIo.Media->BlockSize = 512; // Should be zero but there is a bug in DiskIo
85 MmcHostInstance->BlockIo.Media->ReadOnly = FALSE;
154 CmdArg = Lba * This->Media->BlockSize;
203 if (BufferSize > This->Media->BlockSize) {
245 if (This->Media->MediaId != MediaId) {
254 if (!MmcHostInstance->BlockIo.Media->MediaPresent) {
259 BlockCount = (BufferSize + This->Media->BlockSize - 1) / This->Media->BlockSize;
    [all...]
Diagnostics.c 105 // Check if a Media is Present
106 if (!MmcHostInstance->BlockIo.Media->MediaPresent) {
107 DiagnosticLog (L"ERROR: No Media Present\n");
121 Status = MmcReadBlocks (&(MmcHostInstance->BlockIo), MmcHostInstance->BlockIo.Media->MediaId,Lba,BufferSize,BackBuffer);
129 Status = MmcWriteBlocks (&(MmcHostInstance->BlockIo), MmcHostInstance->BlockIo.Media->MediaId,Lba,BufferSize,WriteBuffer);
136 Status = MmcReadBlocks (&(MmcHostInstance->BlockIo), MmcHostInstance->BlockIo.Media->MediaId,Lba,BufferSize,ReadBuffer);
149 Status = MmcWriteBlocks (&(MmcHostInstance->BlockIo), MmcHostInstance->BlockIo.Media->MediaId,Lba,BufferSize,BackBuffer);
156 Status = MmcReadBlocks (&(MmcHostInstance->BlockIo), MmcHostInstance->BlockIo.Media->MediaId,Lba,BufferSize,ReadBuffer);
228 Status = MmcReadWriteDataTest (MmcHostInstance, 1, MmcHostInstance->BlockIo.Media->BlockSize);
232 Status = MmcReadWriteDataTest (MmcHostInstance, 2, MmcHostInstance->BlockIo.Media->BlockSize);
    [all...]
  /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...]

Completed in 1525 milliseconds

1 2 3 4 5 6 7 8 91011