/packages/apps/Music/src/com/android/music/ |
TrackBrowserActivity.java | 37 import android.media.AudioManager; 134 mCursorCols = new String[] {MediaStore.Audio.Media._ID, MediaStore.Audio.Media.TITLE, 135 MediaStore.Audio.Media.DATA, MediaStore.Audio.Media.ALBUM, 136 MediaStore.Audio.Media.ARTIST, MediaStore.Audio.Media.ARTIST_ID, 137 MediaStore.Audio.Media.DURATION}; 139 MediaStore.Audio.Media.TITLE, MediaStore.Audio.Media.DATA [all...] |
AudioPreview.java | 25 import android.media.AudioManager; 26 import android.media.MediaPlayer; 27 import android.media.AudioManager.OnAudioFocusChangeListener; 28 import android.media.MediaPlayer.OnCompletionListener; 29 import android.media.MediaPlayer.OnErrorListener; 30 import android.media.MediaPlayer.OnPreparedListener; 114 // catch generic Exception, since we may be called with a media 133 int titleIdx = cursor.getColumnIndex(MediaStore.Audio.Media.TITLE); 134 int artistIdx = cursor.getColumnIndex(MediaStore.Audio.Media.ARTIST); 135 int idIdx = cursor.getColumnIndex(MediaStore.Audio.Media._ID) [all...] |
/cts/tests/tests/provider/src/android/provider/cts/ |
MediaStore_Images_ThumbnailsTest.java | 31 import android.provider.MediaStore.Images.Media; 122 stringUrl = Media.insertImage(mContentResolver, src, null, null); 132 new String[]{ Media._ID, Media.DATA }, null, null, null); 134 long imageId = c.getLong(c.getColumnIndex(Media._ID)); 135 String imagePath = c.getString(c.getColumnIndex(Media.DATA)); 182 stringUrl = Media.insertImage(mContentResolver, src, null, null); 184 new String[]{ Media._ID, Media.DATA}, null, null, null); 186 imageId = c.getLong(c.getColumnIndex(Media._ID)) [all...] |
MediaStore_FilesTest.java | 63 mResolver.delete(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, 211 mResolver.delete(MediaStore.Images.Media.INTERNAL_CONTENT_URI, 216 values.put(MediaStore.Images.Media.DISPLAY_NAME, "My Bitmap"); 217 values.put(MediaStore.Images.Media.MIME_TYPE, "image/jpeg"); 218 values.put(MediaStore.Images.Media.DATA, "/foo/bar/dummy.jpg"); 219 Uri uri = mResolver.insert(MediaStore.Images.Media.INTERNAL_CONTENT_URI, values); 223 values.put("_data", "/data/media"); 236 values.put("_data", "/data/media/test.dat"); 254 // point _data at media database and read it 256 values.put("_data", "/data/data/com.android.providers.media/databases/internal.db") [all...] |
MediaStore_Video_ThumbnailsTest.java | 25 import android.media.MediaCodecInfo; 26 import android.media.MediaCodecList; 29 import android.provider.MediaStore.Video.Media; 78 assertEquals(ContentUris.withAppendedId(Media.EXTERNAL_CONTENT_URI, videoId), 129 mResolver.delete(Media.EXTERNAL_CONTENT_URI, 136 return mResolver.insert(Media.EXTERNAL_CONTENT_URI, values);
|
MediaStore_VideoTest.java | 68 Uri newUri = mContentResolver.insert(Video.Media.INTERNAL_CONTENT_URI, values); 69 if (!Video.Media.INTERNAL_CONTENT_URI.equals(newUri)) {
|
MediaStore_Audio_Genres_MembersTest.java | 26 import android.provider.MediaStore.Audio.Media; 47 mAudioIdOfJam = c.getLong(c.getColumnIndex(Media._ID)); 53 mAudioIdOfJamLive = c.getLong(c.getColumnIndex(Media._ID)); 61 mContentResolver.delete(Media.EXTERNAL_CONTENT_URI, Media._ID + "=" + mAudioIdOfJam, null); 62 mContentResolver.delete(Media.EXTERNAL_CONTENT_URI, Media._ID + "=" + mAudioIdOfJamLive, 102 assertEquals(uri.toString(), "content://media/external/audio/genres/" + genreId); 173 Uri allMembersUri = Uri.parse("content://media/external/audio/genres/all/members"); 280 mContentResolver.delete(Media.EXTERNAL_CONTENT_URI [all...] |
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Ufs/UfsBlockIoPei/ |
UfsBlockIoPei.c | 44 { // Media
525 @param Media The pointer of EFI_PEI_BLOCK_IO_MEDIA
535 IN EFI_PEI_BLOCK_IO2_MEDIA *Media,
542 Media->MediaPresent = FALSE;
544 DEBUG ((EFI_D_VERBOSE, "UfsBlockIoPei: Is No Media\n"));
551 DEBUG ((EFI_D_VERBOSE, "UfsBlockIoPei: Is Media Change\n"));
566 DEBUG ((EFI_D_VERBOSE, "UfsBlockIoPei: Media Error\n"));
627 Gets a block device's media information.
629 This function will provide the caller with the specified block device's media
630 information. If the media changes, calling this function will update the media [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...] |
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Disk/DiskIoDxe/ |
DiskIo.c | 179 ((Instance->BlockIo->Media->IoAlign == Instance->BlockIo2->Media->IoAlign) &&
180 (Instance->BlockIo->Media->BlockSize == Instance->BlockIo2->Media->BlockSize)
186 EFI_SIZE_TO_PAGES (PcdGet32 (PcdDiskIoDataBufferBlockNum) * Instance->BlockIo->Media->BlockSize),
187 Instance->BlockIo->Media->IoAlign
217 EFI_SIZE_TO_PAGES (PcdGet32 (PcdDiskIoDataBufferBlockNum) * Instance->BlockIo->Media->BlockSize)
327 EFI_SIZE_TO_PAGES (PcdGet32 (PcdDiskIoDataBufferBlockNum) * Instance->BlockIo->Media->BlockSize)
382 Subtask->Length < Instance->BlockIo->Media->BlockSize
383 ? EFI_SIZE_TO_PAGES (Instance->BlockIo->Media->BlockSize) [all...] |
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/ |
DiskImage.c | 212 if (Offset > BlkIo->Media->LastBlock || Offset + Size > BlkIo->Media->LastBlock) {
217 Bytes = BlkIo->Media->BlockSize * Size;
230 BlkIo->Media->MediaId,
263 HDiskImage.BlockSize = BlkIo->Media->BlockSize;
383 Bytes = BlkIo->Media->BlockSize * Size;
403 BlkIo->Media->MediaId,
|
/packages/apps/Gallery/src/com/android/camera/ |
ImageManager.java | 34 import android.media.ExifInterface; 54 * in the media content provider. 59 private static final Uri STORAGE_URI = Images.Media.EXTERNAL_CONTENT_URI; 64 Uri.parse("content://media/external/video/media"); 195 // directory and filename). Also add an entry to the media store for 230 values.put(Images.Media.TITLE, title); 235 values.put(Images.Media.DISPLAY_NAME, filename); 236 values.put(Images.Media.DATE_TAKEN, dateTaken); 237 values.put(Images.Media.MIME_TYPE, "image/jpeg") [all...] |
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/ |
Ata.c | 94 // Fill block media information:Media->LogicalPartition ,
95 // Media->WriteCaching will be filledin the DiscoverIdeDevcie() function.
97 IdeDev->BlkIo.Media->IoAlign = 4;
98 IdeDev->BlkIo.Media->MediaId = 1;
99 IdeDev->BlkIo.Media->RemovableMedia = FALSE;
100 IdeDev->BlkIo.Media->MediaPresent = TRUE;
101 IdeDev->BlkIo.Media->ReadOnly = FALSE;
102 IdeDev->BlkIo.Media->BlockSize = 0x200;
103 IdeDev->BlkIo.Media->LastBlock = Capacity - 1; [all...] |
/device/linaro/bootloader/edk2/ArmPlatformPkg/Drivers/NorFlashDxe/ |
NorFlashDxe.c | 45 NULL, // Media ... NEED TO BE FILLED
64 }, //Media;
127 Instance->BlockIoProtocol.Media = &Instance->Media;
128 Instance->Media.MediaId = MediaId;
129 Instance->Media.BlockSize = BlockSize;
130 Instance->Media.LastBlock = (NorFlashSize / BlockSize)-1;
699 if(Instance->Media.ReadOnly == TRUE) {
710 DEBUG((DEBUG_BLKIO, "NorFlashWriteBlocks: BlockSize in bytes =0x%x\n", Instance->Media.BlockSize));
711 if ((BufferSizeInBytes % Instance->Media.BlockSize) != 0) { [all...] |
/packages/apps/Camera2/src/com/android/camera/data/ |
VideoDataQuery.java | 23 public static final Uri CONTENT_URI = MediaStore.Video.Media.EXTERNAL_CONTENT_URI;
|
/packages/apps/Camera2/src/com/android/camera/session/ |
PlaceholderManager.java | 39 * output media item is being produced. 114 * @param uri the URI of an existing media item. 123 * This converts the placeholder in to a real media item 133 * @return The content URI of the new media item. 145 * This changes the temporary placeholder jpeg without writing it to the media store 175 * Create a new session instance from the given URI by querying the media 185 MediaStore.Images.Media.DATE_TAKEN, MediaStore.Images.Media.DISPLAY_NAME, 187 // The count could be 0 if the original media item was deleted before 192 int dateIndex = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATE_TAKEN) [all...] |
/frameworks/opt/net/voip/src/java/android/net/sip/ |
SimpleSessionDescription.java | 34 * Media media = description.newMedia("audio", 56789, 1, "RTP/AVP"); 35 * media.setRtpPayload(0, "PCMU/8000", null); 36 * media.setRtpPayload(8, "PCMA/8000", null); 37 * media.setRtpPayload(127, "telephone-event/8000", "0-15"); 38 * media.setAttribute("sendrecv", ""); 59 private final ArrayList<Media> mMedia = new ArrayList<Media>(); 94 Media media = newMedia(parts[0], Integer.parseInt(ports[0]) local 120 Media media = new Media(type, port, portCount, protocol); local [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
SecureAlbum.java | 32 // This class lists all media items added by the client. 41 // All the media items added by the client. 49 {Images.Media.EXTERNAL_CONTENT_URI, Video.Media.EXTERNAL_CONTENT_URI}; 62 mShowUnlockItem = (!isCameraBucketEmpty(Images.Media.EXTERNAL_CONTENT_URI) 63 || !isCameraBucketEmpty(Video.Media.EXTERNAL_CONTENT_URI)); 85 // The sequence is stitching items, local media items, and unlock image. 97 // Convert paths to media items. 170 Images.Media.EXTERNAL_CONTENT_URI, mMinImageId, mMaxImageId); 172 Video.Media.EXTERNAL_CONTENT_URI, mMinVideoId, mMaxVideoId) [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/ |
LocalPhotoSource.java | 27 import android.provider.MediaStore.Images.Media; 50 private static final Uri CONTENT_URI = Media.EXTERNAL_CONTENT_URI; 51 private static final String DATE_TAKEN = Media.DATE_TAKEN; 52 private static final String[] PROJECTION = {Media._ID}; 56 String.format("%s != %s", Media.BUCKET_ID, getDownloadBucketId()); 146 String.format("%s in (%s)", Media._ID, builder.toString()),
|
/device/linaro/bootloader/OpenPlatformPkg/Platforms/Hisilicon/HiKey/HiKeyFastbootDxe/ |
HiKeyFastboot.c | 107 MediaId = BlockIo->Media->MediaId;
113 GptHeader = AllocatePool (BlockIo->Media->BlockSize);
118 Status = BlockIo->ReadBlocks (BlockIo, MediaId, 1, BlockIo->Media->BlockSize, (VOID *) GptHeader);
123 // Check there is a GPT on the media
141 BufferSize = ALIGN_VALUE (EntrySize * NumEntries, BlockIo->Media->BlockSize);
418 PartitionSize = (BlockIo->Media->LastBlock + 1) * BlockIo->Media->BlockSize;
426 MediaId = BlockIo->Media->MediaId;
523 EntryOffset = *(UINT32 *)Buffer * BlockIo->Media->BlockSize;
525 EntrySize = *(UINT32 *)Buffer * BlockIo->Media->BlockSize; [all...] |
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ |
ScsiDisk.c | 236 ScsiDiskDevice->BlkIo.Media = &ScsiDiskDevice->BlkIoMedia;
237 ScsiDiskDevice->BlkIo.Media->IoAlign = ScsiIo->IoAlign;
242 ScsiDiskDevice->BlkIo2.Media = &ScsiDiskDevice->BlkIoMedia;
253 ScsiDiskDevice->BlkIo.Media->BlockSize = 0x200;
258 ScsiDiskDevice->BlkIo.Media->BlockSize = 0x800;
259 ScsiDiskDevice->BlkIo.Media->ReadOnly = TRUE;
305 // retrieve media capacity
493 @param MediaId The Id of Media detected
499 @retval EFI_DEVICE_ERROR Fail to detect media.
500 @retval EFI_NO_MEDIA Media is not present. [all...] |
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Disk/PartitionDxe/ |
Partition.c | 4 of the raw block devices media. Currently "El Torito CD-ROM", Legacy
301 // Try to read blocks when there's media or it is removable physical partition.
304 MediaPresent = BlockIo->Media->MediaPresent;
305 if (BlockIo->Media->MediaPresent ||
306 (BlockIo->Media->RemovableMedia && !BlockIo->Media->LogicalPartition)) {
309 // media supports a given partition type install child handles to represent
310 // the partitions described by the media.
335 // In the case that when the media changes on a device it will Reinstall the
338 // when this happen. The "media change" case includes either the status is [all...] |
/device/linaro/bootloader/edk2/ArmPlatformPkg/ArmVExpressPkg/ArmVExpressFastBootDxe/ |
ArmVExpressFastBoot.c | 87 MediaId = BlockIo->Media->MediaId;
93 GptHeader = AllocatePool (BlockIo->Media->BlockSize);
98 Status = BlockIo->ReadBlocks (BlockIo, MediaId, 1, BlockIo->Media->BlockSize, (VOID *) GptHeader);
103 // Check there is a GPT on the media
121 BufferSize = ALIGN_VALUE (EntrySize * NumEntries, BlockIo->Media->BlockSize);
375 PartitionSize = (BlockIo->Media->LastBlock + 1) * BlockIo->Media->BlockSize;
383 MediaId = BlockIo->Media->MediaId;
|
/device/linaro/bootloader/edk2/EmbeddedPkg/Universal/MmcDxe/ |
Mmc.c | 103 MmcHostInstance->BlockIo.Media = AllocateCopyPool (sizeof(EFI_BLOCK_IO_MEDIA), &mMmcMediaTemplate);
104 if (MmcHostInstance->BlockIo.Media == NULL) {
152 FreePool(MmcHostInstance->BlockIo.Media);
177 if (MmcHostInstance->BlockIo.Media) {
178 FreePool(MmcHostInstance->BlockIo.Media);
373 MmcHostInstance->BlockIo.Media->MediaPresent = !MmcHostInstance->Initialized;
376 if (MmcHostInstance->BlockIo.Media->MediaPresent) {
|
/frameworks/base/media/java/android/media/ |
RingtoneManager.java | 17 package android.media; 33 import android.media.MediaScannerConnection.MediaScannerConnectionClient; 68 * of sounds. It manages querying the different media providers and combines the 218 MediaStore.Audio.Media._ID, MediaStore.Audio.Media.TITLE, 219 "\"" + MediaStore.Audio.Media.INTERNAL_CONTENT_URI + "\"", 220 MediaStore.Audio.Media.TITLE_KEY 224 MediaStore.Audio.Media._ID, MediaStore.Audio.Media.TITLE, 225 "\"" + MediaStore.Audio.Media.EXTERNAL_CONTENT_URI + "\"" [all...] |