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

1 2 3 4 5 6 7 8 9

  /cts/tests/tests/provider/src/android/provider/cts/
MediaStoreAudioTestHelper.java 23 import android.provider.MediaStore.Audio.Media;
37 * {@link MediaStore.Audio.Media}
61 final Uri dirUri = MediaStore.Audio.Media.getContentUri(volumeName);
63 contentResolver.delete(dirUri, MediaStore.Audio.Media.DATA + "=?", new String[] {
64 values.getAsString(MediaStore.Audio.Media.DATA)
115 values.put(Media.DATA, data.getAbsolutePath());
119 values.put(Media.DATE_MODIFIED, DATE_MODIFIED);
120 values.put(Media.DISPLAY_NAME, DISPLAY_NAME);
121 values.put(Media.MIME_TYPE, MIME_TYPE);
122 values.put(Media.SIZE, SIZE)
    [all...]
MediaStore_Audio_MediaTest.java 34 import android.provider.MediaStore.Audio.Media;
71 mExternalAudio = MediaStore.Audio.Media.getContentUri(mVolumeName);
78 Media.getContentUri(mVolumeName), null, null,
87 assertNotNull(c = mContentResolver.query(Media.getContentUriForPath(externalPath), null, null,
92 assertNotNull(c = mContentResolver.query(Media.getContentUriForPath(internalPath), null, null,
102 Uri mediaUri = Media.getContentUri(mVolumeName);
114 long id = c.getLong(c.getColumnIndex(Media._ID));
116 String expected = audio1.getContentValues(mVolumeName).getAsString(Media.DATA);
117 assertEquals(expected, c.getString(c.getColumnIndex(Media.DATA)));
118 assertTrue(c.getLong(c.getColumnIndex(Media.DATE_ADDED)) > 0)
    [all...]
MediaStore_Images_MediaTest.java 34 import android.media.ExifInterface;
41 import android.provider.MediaStore.Images.Media;
89 mExternalImages = MediaStore.Images.Media.getContentUri(mVolumeName);
103 Cursor c = Media.query(mContentResolver, mExternalImages, null, null,
115 stringUrl = Media.insertImage(mContentResolver, path, TEST_TITLE1, null);
131 stringUrl = Media.insertImage(mContentResolver, path, TEST_TITLE2, null);
141 c = Media.query(mContentResolver, Uri.parse(stringUrl),
142 new String[] { Media.TITLE, Media.DESCRIPTION, Media.MIME_TYPE })
    [all...]
MediaStore_Video_MediaTest.java 34 import android.media.MediaExtractor;
35 import android.media.MediaMetadataRetriever;
41 import android.provider.MediaStore.Video.Media;
88 mExternalVideo = MediaStore.Video.Media.getContentUri(mVolumeName);
94 assertNotNull(c = mContentResolver.query(Media.getContentUri("internal"), null, null, null,
97 assertNotNull(c = mContentResolver.query(Media.getContentUri(mVolumeName), null, null, null,
123 values.put(Media.ALBUM, "cts");
124 values.put(Media.ARTIST, "cts team");
125 values.put(Media.CATEGORY, "test");
127 values.put(Media.DATE_TAKEN, dateTaken)
    [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...]
NorFlashFvbDxe.c 74 ASSERT((PcdGet32(PcdFlashNvStorageVariableSize) > 0) && (PcdGet32(PcdFlashNvStorageVariableSize) / Instance->Media.BlockSize > 0));
75 ASSERT((PcdGet32(PcdFlashNvStorageFtwWorkingSize) > 0) && (PcdGet32(PcdFlashNvStorageFtwWorkingSize) / Instance->Media.BlockSize > 0));
76 ASSERT((PcdGet32(PcdFlashNvStorageFtwSpareSize) > 0) && (PcdGet32(PcdFlashNvStorageFtwSpareSize) / Instance->Media.BlockSize > 0));
79 ASSERT(PcdGet32(PcdFlashNvStorageVariableBase) % Instance->Media.BlockSize == 0);
80 ASSERT(PcdGet32(PcdFlashNvStorageFtwWorkingBase) % Instance->Media.BlockSize == 0);
81 ASSERT(PcdGet32(PcdFlashNvStorageFtwSpareBase) % Instance->Media.BlockSize == 0);
104 FirmwareVolumeHeader->BlockMap[0].NumBlocks = Instance->Media.LastBlock + 1;
105 FirmwareVolumeHeader->BlockMap[0].Length = Instance->Media.BlockSize;
237 if (Instance->Media.ReadOnly != TRUE) {
357 DEBUG ((DEBUG_BLKIO, "FvbGetBlockSize(Lba=%ld, BlockSize=0x%x, LastBlock=%ld)\n", Lba, Instance->Media.BlockSize, Instance->Media.LastBlock));
    [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...]
  /device/linaro/bootloader/edk2/MdeModulePkg/Universal/Disk/RamDiskDxe/
RamDiskBlockIo.c 56 EFI_BLOCK_IO_MEDIA *Media;
60 Media = &PrivateData->Media;
65 BlockIo->Media = Media;
66 BlockIo2->Media = Media;
67 Media->RemovableMedia = FALSE;
68 Media->MediaPresent = TRUE;
69 Media->LogicalPartition = FALSE;
    [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...]
  /external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
ShadowMediaStoreTest.java 15 assertThat(Images.Media.EXTERNAL_CONTENT_URI.toString()).isEqualTo("content://media/external/images/media");
16 assertThat(Images.Media.INTERNAL_CONTENT_URI.toString()).isEqualTo("content://media/internal/images/media");
17 assertThat(Video.Media.EXTERNAL_CONTENT_URI.toString()).isEqualTo("content://media/external/video/media");
18 assertThat(Video.Media.INTERNAL_CONTENT_URI.toString()).isEqualTo("content://media/internal/video/media")
    [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/OpenPlatformPkg/Chips/Hisilicon/Drivers/FlashFvbDxe/
FlashBlockIoDxe.c 39 if ( !This->Media->MediaPresent )
43 else if ( This->Media->MediaId != MediaId )
75 if ( !This->Media->MediaPresent )
79 else if ( This->Media->MediaId != MediaId )
83 else if ( This->Media->ReadOnly )
  /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...]
  /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;
  /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;
156 CmdArg = Lba * This->Media->BlockSize;
204 if (BufferSize > This->Media->BlockSize) {
246 if (This->Media->MediaId != MediaId) {
255 if (!MmcHostInstance->BlockIo.Media->MediaPresent) {
260 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...]
  /device/linaro/bootloader/OpenPlatformPkg/Drivers/Block/ramdisk/
ramdisk.c 264 RamDiskDev->BlkIo.Media = &RamDiskDev->Media;
265 RamDiskDev->Media.RemovableMedia = FALSE;
266 RamDiskDev->Media.MediaPresent = TRUE;
268 RamDiskDev->Media.LastBlock = RamDiskSize/BlockSize - 1;
269 RamDiskDev->Media.BlockSize = BlockSize;
270 RamDiskDev->Media.LogicalPartition = TRUE;
271 RamDiskDev->Media.ReadOnly = FALSE;
272 RamDiskDev->Media.WriteCaching = TRUE;
466 EFI_BLOCK_IO_MEDIA *Media;
    [all...]
  /device/linaro/bootloader/edk2/OvmfPkg/BlockMmioToBlockIoDxe/
BlockIo.c 61 @param MediaId The media ID that the read request is for.
70 @retval EFI_NO_MEDIA There is no media in the device.
71 @retval EFI_MEDIA_CHANGED The MediaId is not for the current media.
91 EFI_BLOCK_IO_MEDIA *Media;
107 Media = Private->BlockMmio->Media;
112 if (ModU64x32 (BufferSize, Media->BlockSize) != 0) {
116 TotalBlock = (UINTN) DivU64x32 (BufferSize, Media->BlockSize);
121 if (Lba + TotalBlock - 1 > Media->LastBlock) {
125 if (!(Media->MediaPresent)) {
    [all...]
  /external/skia/experimental/xps_to_png/
xps_to_png.cs 49 System.Windows.Media.Imaging.BitmapImage bitmap =
50 new System.Windows.Media.Imaging.BitmapImage();
51 System.Windows.Media.Imaging.RenderTargetBitmap renderTarget =
52 new System.Windows.Media.Imaging.RenderTargetBitmap(
54 System.Windows.Media.PixelFormats.Default);
56 System.Windows.Media.Imaging.BitmapEncoder encoder =
57 new System.Windows.Media.Imaging.PngBitmapEncoder();
59 System.Windows.Media.Imaging.BitmapFrame.Create(renderTarget));
  /external/skqp/experimental/xps_to_png/
xps_to_png.cs 49 System.Windows.Media.Imaging.BitmapImage bitmap =
50 new System.Windows.Media.Imaging.BitmapImage();
51 System.Windows.Media.Imaging.RenderTargetBitmap renderTarget =
52 new System.Windows.Media.Imaging.RenderTargetBitmap(
54 System.Windows.Media.PixelFormats.Default);
56 System.Windows.Media.Imaging.BitmapEncoder encoder =
57 new System.Windows.Media.Imaging.PngBitmapEncoder();
59 System.Windows.Media.Imaging.BitmapFrame.Create(renderTarget));
  /device/linaro/bootloader/edk2/MdeModulePkg/Bus/Usb/UsbBotPei/
UsbBotPeim.c 55 Detect whether the removable media is present and whether it has changed.
61 @retval EFI_SUCCESS The media status is successfully checked.
62 @retval Other Failed to detect media.
159 @retval Other Failed to initialize media.
215 PeiBotDevice->Media.DeviceType = UsbMassStorage;
216 PeiBotDevice->Media.BlockSize = 0x200;
327 Gets a block device's media information.
329 This function will provide the caller with the specified block device's media
330 information. If the media changes, calling this function will update the media
    [all...]
  /device/linaro/bootloader/edk2/Nt32Pkg/WinNtBlockIoDxe/
WinNtBlockIo.c 24 <R>emovable - Removable media like a floppy or CD-ROM.
42 media device.
531 BlockIo->Media = &Private->Media;
532 BlockIo->Media->BlockSize = (UINT32)Private->BlockSize;
533 BlockIo->Media->LastBlock = Private->NumberOfBlocks - 1;
534 BlockIo->Media->MediaId = 0;;
541 BlockIo->Media->ReadOnly = ReadOnly;
542 BlockIo->Media->RemovableMedia = RemovableMedia;
543 BlockIo->Media->LogicalPartition = FALSE;
    [all...]

Completed in 2832 milliseconds

1 2 3 4 5 6 7 8 9