Home
last modified time | relevance | path

Searched refs:retriever (Results 1 – 8 of 8) sorted by relevance

/cts/tests/tests/media/src/android/media/cts/
DMediaMetadataRetrieverTest.java243 MediaMetadataRetriever retriever = new MediaMetadataRetriever(); in testThumbnail() local
247 retriever.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in testThumbnail()
255 assertNotNull(retriever.getFrameAtTime(-1 /* timeUs (any) */)); in testThumbnail()
387 MediaMetadataRetriever retriever = new MediaMetadataRetriever(); in testGetFrameAt() local
391 retriever.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in testGetFrameAt()
398 List<Bitmap> bitmaps = bitmapRetriever.apply(retriever); in testGetFrameAt()
403 retriever.release(); in testGetFrameAt()
431 MediaMetadataRetriever retriever = new MediaMetadataRetriever(); in testGetScaledFrameAtTime() local
435 retriever.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in testGetScaledFrameAtTime()
443 Bitmap bitmap = retriever.getScaledFrameAtTime( in testGetScaledFrameAtTime()
[all …]
DHeifWriterTest.java339 MediaMetadataRetriever retriever = new MediaMetadataRetriever(); in loadBitmapInputs() local
340 retriever.setDataSource(mInputPath); in loadBitmapInputs()
341 String hasImage = retriever.extractMetadata( in loadBitmapInputs()
346 mMaxNumImages = Math.min(mMaxNumImages, Integer.parseInt(retriever.extractMetadata( in loadBitmapInputs()
353 mBitmaps[i] = retriever.getImageAtIndex(i); in loadBitmapInputs()
357 retriever.release(); in loadBitmapInputs()
577 MediaMetadataRetriever retriever = new MediaMetadataRetriever(); in verifyResult() local
578 retriever.setDataSource(filename); in verifyResult()
579 String hasImage = retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_HAS_IMAGE); in verifyResult()
584 Integer.parseInt(retriever.extractMetadata( in verifyResult()
[all …]
DMediaRecorderTest.java475 MediaMetadataRetriever retriever = new MediaMetadataRetriever(); in checkTracksAndDuration() local
476 retriever.setDataSource(fileName); in checkTracksAndDuration()
477 … String hasVideoStr = retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_HAS_VIDEO); in checkTracksAndDuration()
478 … String hasAudioStr = retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_HAS_AUDIO); in checkTracksAndDuration()
484 String durStr = retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_DURATION); in checkTracksAndDuration()
495 retriever.release(); in checkTracksAndDuration()
496 retriever = null; in checkTracksAndDuration()
500 MediaMetadataRetriever retriever = new MediaMetadataRetriever(); in checkLocationInFile() local
501 retriever.setDataSource(fileName); in checkLocationInFile()
502 String location = retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_LOCATION); in checkLocationInFile()
[all …]
DMediaMuxerTest.java476 MediaMetadataRetriever retriever = new MediaMetadataRetriever(); in verifyLocationInFile() local
477 retriever.setDataSource(fileName); in verifyLocationInFile()
478 String location = retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_LOCATION); in verifyLocationInFile()
504 retriever.release(); in verifyLocationInFile()
DMediaPlayer2Test.java909 MediaMetadataRetriever retriever = new MediaMetadataRetriever();
910 retriever.setDataSource(file);
911 String rotation = retriever.extractMetadata(
913 retriever.release();
914 retriever = null;
DMediaPlayerTest.java1093 MediaMetadataRetriever retriever = new MediaMetadataRetriever();
1094 retriever.setDataSource(file);
1095 String rotation = retriever.extractMetadata(
1097 retriever.release();
1098 retriever = null;
/cts/tests/tests/drm/src/android/drm/cts/
DDRMTest.java276 MediaMetadataRetriever retriever = new MediaMetadataRetriever(); in testForwardLockAccess() local
278 retriever.setDataSource(flFd.getFileDescriptor()); in testForwardLockAccess()
280 retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_NUM_TRACKS); in testForwardLockAccess()
283 retriever.release(); in testForwardLockAccess()
/cts/tests/tests/security/src/android/security/cts/
DStagefrightTest.java1329 MediaMetadataRetriever retriever = new MediaMetadataRetriever(); in doStagefrightTestMediaMetadataRetriever() local
1333retriever.setDataSource(fd.getFileDescriptor(), fd.getStartOffset(), fd.getLength()); in doStagefrightTestMediaMetadataRetriever()
1341 retriever.setDataSource(url, new HashMap<String, String>()); in doStagefrightTestMediaMetadataRetriever()
1346 retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_DURATION); in doStagefrightTestMediaMetadataRetriever()
1347 retriever.getEmbeddedPicture(); in doStagefrightTestMediaMetadataRetriever()
1348 retriever.getFrameAtTime(); in doStagefrightTestMediaMetadataRetriever()
1350 retriever.release(); in doStagefrightTestMediaMetadataRetriever()