Home
last modified time | relevance | path

Searched refs:MediaMetadataRetriever (Results 1 – 24 of 24) sorted by relevance

/frameworks/av/media/libmedia/
Dmediametadataretriever.cpp34 Mutex MediaMetadataRetriever::sServiceLock;
35 sp<IMediaPlayerService> MediaMetadataRetriever::sService;
36 sp<MediaMetadataRetriever::DeathNotifier> MediaMetadataRetriever::sDeathNotifier;
38 const sp<IMediaPlayerService> MediaMetadataRetriever::getService() in getService()
62 MediaMetadataRetriever::MediaMetadataRetriever() in MediaMetadataRetriever() function in android::MediaMetadataRetriever
77 MediaMetadataRetriever::~MediaMetadataRetriever() in ~MediaMetadataRetriever()
84 void MediaMetadataRetriever::disconnect() in disconnect()
98 status_t MediaMetadataRetriever::setDataSource( in setDataSource()
117 status_t MediaMetadataRetriever::setDataSource(int fd, int64_t offset, int64_t length) in setDataSource()
132 status_t MediaMetadataRetriever::setDataSource( in setDataSource()
[all …]
DIMediaMetadataRetriever.cpp291 IMPLEMENT_META_INTERFACE(MediaMetadataRetriever, "android.media.IMediaMetadataRetriever");
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DMediaMetadataRetrieverTest.java20 import android.media.MediaMetadataRetriever;
36 MediaMetadataRetriever retriever = new MediaMetadataRetriever(); in testGetEmbeddedPicture()
73 MediaMetadataRetriever retriever = new MediaMetadataRetriever(); in testThumbnailCapture()
117 MediaMetadataRetriever retriever = new MediaMetadataRetriever(); in testMetadataRetrieval()
144 MediaMetadataRetriever retriever = new MediaMetadataRetriever(); in testBasicNormalMethodCallSequence()
170 MediaMetadataRetriever retriever = new MediaMetadataRetriever(); in testBasicAbnormalMethodCallSequence()
171 if (retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_ALBUM) != null) { in testBasicAbnormalMethodCallSequence()
185 MediaMetadataRetriever retriever = new MediaMetadataRetriever(); in testSetDataSource()
246 private static void extractAllSupportedMetadataValues(MediaMetadataRetriever retriever) { in extractAllSupportedMetadataValues()
248 …Log.v(TAG, (value = retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_CD_TRACK_NUMBER)… in extractAllSupportedMetadataValues()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
DMediaMetadataTest.java19 import android.media.MediaMetadataRetriever;
72 MediaMetadataRetriever retriever = new MediaMetadataRetriever(); in validateMetatData()
82 value = retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_CD_TRACK_NUMBER); in validateMetatData()
86 value = retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_ALBUM); in validateMetatData()
90 value = retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_ARTIST); in validateMetatData()
94 value = retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_AUTHOR); in validateMetatData()
98 value = retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_COMPOSER); in validateMetatData()
102 value = retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_DATE); in validateMetatData()
106 value = retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_GENRE); in validateMetatData()
110 value = retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_TITLE); in validateMetatData()
[all …]
DCodecTest.java32 import android.media.MediaMetadataRetriever;
542 MediaMetadataRetriever mMediaMetadataRetriever = new MediaMetadataRetriever(); in getThumbnail()
/frameworks/base/media/java/android/media/
DMediaMetadataEditor.java447 MediaMetadataRetriever.METADATA_KEY_CD_TRACK_NUMBER, METADATA_TYPE_LONG); in METADATA_KEYS_TYPE.put()
448 METADATA_KEYS_TYPE.put(MediaMetadataRetriever.METADATA_KEY_DISC_NUMBER, METADATA_TYPE_LONG); in METADATA_KEYS_TYPE.put()
449 METADATA_KEYS_TYPE.put(MediaMetadataRetriever.METADATA_KEY_DURATION, METADATA_TYPE_LONG); in METADATA_KEYS_TYPE.put()
450 METADATA_KEYS_TYPE.put(MediaMetadataRetriever.METADATA_KEY_YEAR, METADATA_TYPE_LONG); in METADATA_KEYS_TYPE.put()
452 METADATA_KEYS_TYPE.put(MediaMetadataRetriever.METADATA_KEY_ALBUM, METADATA_TYPE_STRING); in METADATA_KEYS_TYPE.put()
454 MediaMetadataRetriever.METADATA_KEY_ALBUMARTIST, METADATA_TYPE_STRING); in METADATA_KEYS_TYPE.put()
455 METADATA_KEYS_TYPE.put(MediaMetadataRetriever.METADATA_KEY_TITLE, METADATA_TYPE_STRING); in METADATA_KEYS_TYPE.put()
456 METADATA_KEYS_TYPE.put(MediaMetadataRetriever.METADATA_KEY_ARTIST, METADATA_TYPE_STRING); in METADATA_KEYS_TYPE.put()
457 METADATA_KEYS_TYPE.put(MediaMetadataRetriever.METADATA_KEY_AUTHOR, METADATA_TYPE_STRING); in METADATA_KEYS_TYPE.put()
459 MediaMetadataRetriever.METADATA_KEY_COMPILATION, METADATA_TYPE_STRING); in METADATA_KEYS_TYPE.put()
[all …]
DMediaMetadata.java395 EDITOR_KEY_MAPPING.put(MediaMetadataRetriever.METADATA_KEY_ALBUM, METADATA_KEY_ALBUM); in EDITOR_KEY_MAPPING.put()
396 EDITOR_KEY_MAPPING.put(MediaMetadataRetriever.METADATA_KEY_ALBUMARTIST, in EDITOR_KEY_MAPPING.put()
398 EDITOR_KEY_MAPPING.put(MediaMetadataRetriever.METADATA_KEY_ARTIST, METADATA_KEY_ARTIST); in EDITOR_KEY_MAPPING.put()
399 EDITOR_KEY_MAPPING.put(MediaMetadataRetriever.METADATA_KEY_AUTHOR, METADATA_KEY_AUTHOR); in EDITOR_KEY_MAPPING.put()
400 EDITOR_KEY_MAPPING.put(MediaMetadataRetriever.METADATA_KEY_CD_TRACK_NUMBER, in EDITOR_KEY_MAPPING.put()
402 EDITOR_KEY_MAPPING.put(MediaMetadataRetriever.METADATA_KEY_COMPOSER, METADATA_KEY_COMPOSER); in EDITOR_KEY_MAPPING.put()
403 EDITOR_KEY_MAPPING.put(MediaMetadataRetriever.METADATA_KEY_COMPILATION, in EDITOR_KEY_MAPPING.put()
405 EDITOR_KEY_MAPPING.put(MediaMetadataRetriever.METADATA_KEY_DATE, METADATA_KEY_DATE); in EDITOR_KEY_MAPPING.put()
406 EDITOR_KEY_MAPPING.put(MediaMetadataRetriever.METADATA_KEY_DISC_NUMBER, in EDITOR_KEY_MAPPING.put()
408 EDITOR_KEY_MAPPING.put(MediaMetadataRetriever.METADATA_KEY_DURATION, METADATA_KEY_DURATION); in EDITOR_KEY_MAPPING.put()
[all …]
DThumbnailUtils.java19 import static android.media.MediaMetadataRetriever.METADATA_KEY_DURATION;
20 import static android.media.MediaMetadataRetriever.METADATA_KEY_VIDEO_HEIGHT;
21 import static android.media.MediaMetadataRetriever.METADATA_KEY_VIDEO_WIDTH;
22 import static android.media.MediaMetadataRetriever.OPTION_CLOSEST_SYNC;
155 try (MediaMetadataRetriever retriever = new MediaMetadataRetriever()) { in createAudioThumbnail()
272 try (MediaMetadataRetriever retriever = new MediaMetadataRetriever()) { in createImageThumbnail()
275 new MediaMetadataRetriever.BitmapParams(), size.getWidth(), in createImageThumbnail()
350 try (MediaMetadataRetriever mmr = new MediaMetadataRetriever()) { in createVideoThumbnail()
DMediaMetadataRetriever.java44 public class MediaMetadataRetriever implements AutoCloseable { class
56 public MediaMetadataRetriever() { in MediaMetadataRetriever() method in MediaMetadataRetriever
529 if (!"yes".equals(extractMetadata(MediaMetadataRetriever.METADATA_KEY_HAS_VIDEO))) { in getFramesAtIndexInternal()
533 extractMetadata(MediaMetadataRetriever.METADATA_KEY_VIDEO_FRAME_COUNT)); in getFramesAtIndexInternal()
647 if (!"yes".equals(extractMetadata(MediaMetadataRetriever.METADATA_KEY_HAS_IMAGE))) { in getImageAtIndexInternal()
651 String imageCount = extractMetadata(MediaMetadataRetriever.METADATA_KEY_IMAGE_COUNT); in getImageAtIndexInternal()
DExifInterface.java2710 MediaMetadataRetriever retriever = new MediaMetadataRetriever(); in getHeifAttributes()
2764 MediaMetadataRetriever.METADATA_KEY_EXIF_OFFSET); in getHeifAttributes()
2766 MediaMetadataRetriever.METADATA_KEY_EXIF_LENGTH); in getHeifAttributes()
2768 MediaMetadataRetriever.METADATA_KEY_HAS_IMAGE); in getHeifAttributes()
2770 MediaMetadataRetriever.METADATA_KEY_HAS_VIDEO); in getHeifAttributes()
2781 MediaMetadataRetriever.METADATA_KEY_IMAGE_WIDTH); in getHeifAttributes()
2783 MediaMetadataRetriever.METADATA_KEY_IMAGE_HEIGHT); in getHeifAttributes()
2785 MediaMetadataRetriever.METADATA_KEY_IMAGE_ROTATION); in getHeifAttributes()
2788 MediaMetadataRetriever.METADATA_KEY_VIDEO_WIDTH); in getHeifAttributes()
2790 MediaMetadataRetriever.METADATA_KEY_VIDEO_HEIGHT); in getHeifAttributes()
[all …]
/frameworks/base/media/java/android/media/session/
DMediaSessionLegacyHelper.java32 import android.media.MediaMetadataRetriever;
84 oldMetadata.putString(String.valueOf(MediaMetadataRetriever.METADATA_KEY_ALBUM), in getOldMetadata()
98 oldMetadata.putString(String.valueOf(MediaMetadataRetriever.METADATA_KEY_ALBUMARTIST), in getOldMetadata()
102 oldMetadata.putString(String.valueOf(MediaMetadataRetriever.METADATA_KEY_ARTIST), in getOldMetadata()
106 oldMetadata.putString(String.valueOf(MediaMetadataRetriever.METADATA_KEY_AUTHOR), in getOldMetadata()
110 oldMetadata.putString(String.valueOf(MediaMetadataRetriever.METADATA_KEY_COMPILATION), in getOldMetadata()
114 oldMetadata.putString(String.valueOf(MediaMetadataRetriever.METADATA_KEY_COMPOSER), in getOldMetadata()
118 oldMetadata.putString(String.valueOf(MediaMetadataRetriever.METADATA_KEY_DATE), in getOldMetadata()
122 oldMetadata.putLong(String.valueOf(MediaMetadataRetriever.METADATA_KEY_DISC_NUMBER), in getOldMetadata()
126 oldMetadata.putLong(String.valueOf(MediaMetadataRetriever.METADATA_KEY_DURATION), in getOldMetadata()
[all …]
/frameworks/base/media/mca/tests/src/android/camera/mediaeffects/tests/functional/
DEffectsVideoCapture.java29 import android.media.MediaMetadataRetriever;
81 MediaMetadataRetriever retriever = new MediaMetadataRetriever(); in verify()
84 MediaMetadataRetriever.METADATA_KEY_DURATION); in verify()
/frameworks/base/media/jni/
Dandroid_media_MediaMetadataRetriever.cpp79 static sp<MediaMetadataRetriever> getRetriever(JNIEnv* env, jobject thiz) in getRetriever()
82MediaMetadataRetriever* retriever = (MediaMetadataRetriever*) env->GetLongField(thiz, fields.conte… in getRetriever()
86 static void setRetriever(JNIEnv* env, jobject thiz, const sp<MediaMetadataRetriever> &retriever) in setRetriever()
93 sp<MediaMetadataRetriever> old = getRetriever(env, thiz); in setRetriever()
107 sp<MediaMetadataRetriever> retriever = getRetriever(env, thiz); in android_media_MediaMetadataRetriever_setDataSourceAndHeaders()
166 sp<MediaMetadataRetriever> retriever = getRetriever(env, thiz); in android_media_MediaMetadataRetriever_setDataSourceFD()
195 sp<MediaMetadataRetriever> retriever = getRetriever(env, thiz); in android_media_MediaMetadataRetriever_setDataSourceCallback()
390 sp<MediaMetadataRetriever> retriever = getRetriever(env, thiz); in android_media_MediaMetadataRetriever_getFrameAtTime()
414 sp<MediaMetadataRetriever> retriever = getRetriever(env, thiz); in android_media_MediaMetadataRetriever_getImageAtIndex()
443 sp<MediaMetadataRetriever> retriever = getRetriever(env, thiz); in android_media_MediaMetadataRetriever_getThumbnailImageAtIndex()
[all …]
/frameworks/av/media/libstagefright/
DStagefrightMediaScanner.cpp80 sp<MediaMetadataRetriever> mRetriever(new MediaMetadataRetriever); in processFileInternal()
157 sp<MediaMetadataRetriever> mRetriever(new MediaMetadataRetriever); in extractAlbumArt()
/frameworks/av/media/libmedia/include/media/
Dmediametadataretriever.h80 class MediaMetadataRetriever: public RefBase
83 MediaMetadataRetriever();
84 ~MediaMetadataRetriever();
DIMediaMetadataRetriever.h34 DECLARE_META_INTERFACE(MediaMetadataRetriever);
/frameworks/av/include/media/
Dmediametadataretriever.h80 class MediaMetadataRetriever: public RefBase
83 MediaMetadataRetriever();
84 ~MediaMetadataRetriever();
DIMediaMetadataRetriever.h34 DECLARE_META_INTERFACE(MediaMetadataRetriever);
/frameworks/av/media/libheif/
DHeifDecoderImpl.h30 class MediaMetadataRetriever; variable
57 sp<MediaMetadataRetriever> mRetriever;
DHeifDecoderImpl.cpp323 mRetriever = new MediaMetadataRetriever(); in init()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/
DMediaDecoder.java23 import android.media.MediaMetadataRetriever;
280 MediaMetadataRetriever metadataRetriever = new MediaMetadataRetriever(); in retrieveDefaultRotation()
283 MediaMetadataRetriever.METADATA_KEY_VIDEO_ROTATION); in retrieveDefaultRotation()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/mediarecorder/
DMediaRecorderTest.java31 import android.media.MediaMetadataRetriever;
445 MediaMetadataRetriever retriever = new MediaMetadataRetriever(); in validateMetadata()
451 MediaMetadataRetriever.METADATA_KEY_CAPTURE_FRAMERATE); in validateMetadata()
/frameworks/base/config/
Dpreloaded-classes2314 android.media.MediaMetadataRetriever$BitmapParams
2315 android.media.MediaMetadataRetriever
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...