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

12 3 4 5 6 7 8 91011

  /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...]
  /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...]
  /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));
  /packages/apps/DevCamera/src/com/android/devcamera/
MediaSaver.java 123 // really slow for some reason: MediaStore.Images.Media.insertImage(resolver, file.getAbsolutePath(), file.getName(), file.getName());
137 // We use this instead of MediaStore.Images.Media.insertImage() because we want to add date metadata
141 values.put(MediaStore.Images.Media.TITLE, file.getName());
142 values.put(MediaStore.Images.Media.DISPLAY_NAME, file.getName());
143 values.put(MediaStore.Images.Media.DESCRIPTION, file.getName());
144 values.put(MediaStore.Images.Media.MIME_TYPE, "image/jpeg");
145 values.put(MediaStore.Images.Media.DATA, file.getAbsolutePath());
147 values.put(MediaStore.Images.Media.DATE_ADDED, System.currentTimeMillis());
148 values.put(MediaStore.Images.Media.DATE_TAKEN, System.currentTimeMillis());
151 cr.insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, values)
    [all...]
  /packages/apps/Dialer/java/com/android/dialer/callcomposer/
GalleryCursorLoader.java 24 import android.provider.MediaStore.Images.Media;
27 /** A BoundCursorLoader that reads local media on the device. */
34 private static final String SORT_ORDER = Media.DATE_MODIFIED + " DESC";
GalleryGridItemData.java 23 import android.provider.MediaStore.Images.Media;
33 new String[] {Media._ID, Media.DATA, Media.MIME_TYPE, Media.DATE_MODIFIED};
  /device/linaro/bootloader/edk2/ArmPlatformPkg/Drivers/NorFlashDxe/
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;
236 if (Instance->Media.ReadOnly != TRUE) {
356 DEBUG ((DEBUG_BLKIO, "FvbGetBlockSize(Lba=%ld, BlockSize=0x%x, LastBlock=%ld)\n", Lba, Instance->Media.BlockSize, Instance->Media.LastBlock));
    [all...]
  /packages/apps/Messaging/src/com/android/messaging/datamodel/
GalleryBoundCursorLoader.java 23 import android.provider.MediaStore.Images.Media;
30 * A BoundCursorLoader that reads local media on the device.
35 private static final String SORT_ORDER = Media.DATE_MODIFIED + " DESC";
46 return Media.MIME_TYPE + " IN ('" + Joiner.on("','").join(mimeTypes) + "') AND "
  /device/linaro/bootloader/OpenPlatformPkg/Drivers/Variable/BlockVariableDxe/
BlockVariableDxe.c 95 *BlockSize = (UINTN) Instance->Media.BlockSize;
118 Bytes = (Offset + *NumBytes + Instance->Media.BlockSize - 1) / Instance->Media.BlockSize * Instance->Media.BlockSize;
126 Status = BlockIo->ReadBlocks (BlockIo, BlockIo->Media->MediaId, Instance->StartLba + Lba,
158 Bytes = (Offset + *NumBytes + Instance->Media.BlockSize - 1) / Instance->Media.BlockSize * Instance->Media.BlockSize;
165 Status = BlockIo->ReadBlocks (BlockIo, BlockIo->Media->MediaId, Instance->StartLba + Lba,
173 Status = BlockIo->WriteBlocks (BlockIo, BlockIo->Media->MediaId, Instance->StartLba + Lba
    [all...]
BlockVariableDxe.h 41 EFI_BLOCK_IO_MEDIA Media;
  /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...]
PeiAtapi.c 75 PeiBotDevice->Media.BlockSize = 0x800;
81 PeiBotDevice->Media.BlockSize = 0x200;
235 media in the device.
283 PeiBotDevice->Media.LastBlock = LastBlock;
284 PeiBotDevice->Media.MediaPresent = TRUE;
295 media in the device.
341 // Media is not present
343 PeiBotDevice->Media.MediaPresent = FALSE;
344 PeiBotDevice->Media.LastBlock = 0;
354 PeiBotDevice->Media.LastBlock = LastBlock;
    [all...]
  /cts/tests/tests/provider/src/android/provider/cts/
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);
  /frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/
MediaStoreSaver.java 60 values.put(Images.Media.TITLE, title);
61 values.put(Images.Media.DISPLAY_NAME, title);
62 values.put(Images.Media.DESCRIPTION, description);
63 values.put(Images.Media.MIME_TYPE, "image/jpeg");
65 values.put(Images.Media.DATE_ADDED, System.currentTimeMillis());
66 values.put(Images.Media.DATE_TAKEN, System.currentTimeMillis());
72 url = cr.insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, values);
107 * populate the android.provider.MediaStore.Images.Media#insertImage with all the correct
110 * @see android.provider.MediaStore.Images.Media (StoreThumbnail private method)
  /frameworks/rs/tests/java_api/RsCameraDemo/src/com/android/example/rscamera/
MediaStoreSaver.java 60 values.put(Images.Media.TITLE, title);
61 values.put(Images.Media.DISPLAY_NAME, title);
62 values.put(Images.Media.DESCRIPTION, description);
63 values.put(Images.Media.MIME_TYPE, "image/jpeg");
65 values.put(Images.Media.DATE_ADDED, System.currentTimeMillis());
66 values.put(Images.Media.DATE_TAKEN, System.currentTimeMillis());
72 url = cr.insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, values);
107 * populate the android.provider.MediaStore.Images.Media#insertImage with all the correct
110 * @see android.provider.MediaStore.Images.Media (StoreThumbnail private method)
  /packages/apps/Music/src/com/android/music/
MusicPicker.java 26 import android.media.AudioManager;
27 import android.media.MediaPlayer;
28 import android.media.RingtoneManager;
89 static final String[] CURSOR_COLS = new String[] {MediaStore.Audio.Media._ID,
90 MediaStore.Audio.Media.TITLE, MediaStore.Audio.Media.TITLE_KEY,
91 MediaStore.Audio.Media.DATA, MediaStore.Audio.Media.ALBUM,
92 MediaStore.Audio.Media.ARTIST, MediaStore.Audio.Media.ARTIST_ID
    [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...]
  /device/linaro/bootloader/edk2/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/
UsbMassImpl.c 84 @param MediaId The media ID that the read request is for.
93 @retval EFI_NO_MEDIA There is no media in the device.
94 @retval EFI_MEDIA_CHANGED The MediaId is not for the current media.
111 EFI_BLOCK_IO_MEDIA *Media;
122 Media = &UsbMass->BlockIoMedia;
125 // If it is a removable media, such as CD-Rom or Usb-Floppy,
126 // need to detect the media before each read/write. While some of
127 // Usb-Flash is marked as removable media.
129 if (Media->RemovableMedia) {
136 if (!(Media->MediaPresent)) {
    [all...]
  /device/linaro/bootloader/edk2/ArmPlatformPkg/FileSystem/BootMonFs/
BootMonFsReadWrite.c 52 EFI_BLOCK_IO_MEDIA *Media;
73 Media = Instance->Media;
74 FileStart = (Media->LowestAlignedLba + File->HwDescription.BlockStart) * Media->BlockSize;
97 Media->MediaId,
BootMonFsOpenClose.c 17 // Clear a file's image description on storage media:
37 MediaId = BlockIo->Media->MediaId;
58 Write the description of a file to storage media.
60 This function uses DiskIo to write to the media, so call BlockIo->FlushBlocks()
61 after calling it to ensure the data are written on the media.
64 storage media has to be updated.
68 @param[in] FileStart File's starting position on media. FileStart must
69 be aligned to the media's block size.
92 BlockSize = File->Instance->BlockIo->Media->BlockSize;
127 // Update the file description on the media
    [all...]
BootMonFsImages.c 156 while (CurrentLba <= Instance->Media->LastBlock) {
157 // Work out the byte offset into media of the image description in this block
159 DescOffset = ((CurrentLba + 1) * Instance->Media->BlockSize) - sizeof (HW_IMAGE_DESCRIPTION);
161 // Read the image description from media
163 Instance->Media->MediaId,
173 if (BootMonFsIsImageValid (&File->HwDescription, (CurrentLba - Instance->Media->LowestAlignedLba))) {
176 (UINTN)(CurrentLba - Instance->Media->LowestAlignedLba)
  /device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Bus/Isa/IsaFloppyDxe/
IsaFloppyBlock.c 57 @retval EFI_NO_MEDIA There is no media in the device.
99 @param MediaId Id of the media, changes every time the media is replaced.
107 @retval EFI_NO_MEDIA There is no media in the device.
139 @param MediaId The media ID that the write request is for.
148 @retval EFI_NO_MEDIA There is no media in the device.
180 @param MediaId Id of the media, changes every time the media is replaced.
189 @retval EFI_NO_MEDIA There is no media in the device.
207 EFI_BLOCK_IO_MEDIA *Media;
    [all...]
  /device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/NvmExpressDxe/
NvmExpressBlockIo.c 47 BlockSize = Device->Media.BlockSize;
110 BlockSize = Device->Media.BlockSize;
175 BlockSize = Device->Media.BlockSize;
234 BlockSize = Device->Media.BlockSize;
361 @param MediaId Id of the media, changes every time the media is replaced.
369 @retval EFI_NO_MEDIA There is no media in the device.
388 EFI_BLOCK_IO_MEDIA *Media;
401 Media = This->Media;
    [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...]
  /device/linaro/bootloader/edk2/EmbeddedPkg/Universal/MmcDxe/
MmcIdentification.c 148 EFI_BLOCK_IO_MEDIA *Media;
154 Media = MmcHostInstance->BlockIo.Media;
236 Media->LastBlock = MmcHostInstance->CardInfo.ECSDData.SEC_COUNT - 1; // eMMC isn't supposed to report this for
242 // Set up media
243 Media->BlockSize = EMMC_CARD_SIZE; // 512-byte support is mandatory for eMMC cards
244 Media->MediaId = MmcHostInstance->CardInfo.CIDData.PSN;
245 if (CurrentMediaId > Media->MediaId)
246 Media->MediaId = ++CurrentMediaId;
248 CurrentMediaId = Media->MediaId;
    [all...]

Completed in 1149 milliseconds

12 3 4 5 6 7 8 91011