/cts/tests/tests/mediatranscoding/src/android/media/mediatranscoding/cts/ |
D | MediaTranscodingTestUtil.java | 74 MediaMetadataRetriever retriever = null; in extractVideoFileInfo() local 78 retriever = new MediaMetadataRetriever(); in extractVideoFileInfo() 79 retriever.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in extractVideoFileInfo() 83 String width = retriever.extractMetadata( in extractVideoFileInfo() 85 String height = retriever.extractMetadata( in extractVideoFileInfo() 92 String frameRate = retriever.extractMetadata( in extractVideoFileInfo() 98 String frameCount = retriever.extractMetadata( in extractVideoFileInfo() 104 String hasAudio = retriever.extractMetadata( in extractVideoFileInfo() 110 retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_VIDEO_ROTATION); in extractVideoFileInfo() 111 String degree = retriever.extractMetadata( in extractVideoFileInfo() [all …]
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | SaferIntentTest.java | 555 final var retriever = new IntentRetriever(); in testComponentMismatch() local 557 mContext.registerReceiver(retriever, filter, Context.RECEIVER_EXPORTED); in testComponentMismatch() 558 mRegisteredReceiverList.add(retriever); in testComponentMismatch() 573 retriever.reset(); in testComponentMismatch() 581 assertFalse(retriever.waitOnReceive()); in testComponentMismatch() 587 retriever.reset(); in testComponentMismatch() 593 assertTrue(retriever.waitOnReceive()); in testComponentMismatch() 594 assertTrue(retriever.mIntent.isMismatchingFilter()); in testComponentMismatch() 600 retriever.reset(); in testComponentMismatch() 606 assertTrue(retriever.waitOnReceive()); in testComponentMismatch() [all …]
|
/cts/tests/tests/media/misc/src/android/media/misc/cts/ |
D | HeifWriterTest.java | 429 MediaMetadataRetriever retriever = new MediaMetadataRetriever(); in loadBitmapInputs() local 430 retriever.setDataSource(mInputPath); in loadBitmapInputs() 431 String hasImage = retriever.extractMetadata( in loadBitmapInputs() 436 mMaxNumImages = Math.min(mMaxNumImages, Integer.parseInt(retriever.extractMetadata( in loadBitmapInputs() 443 mBitmaps[i] = retriever.getImageAtIndex(i); in loadBitmapInputs() 448 retriever.release(); in loadBitmapInputs() 688 MediaMetadataRetriever retriever = new MediaMetadataRetriever(); in verifyResult() local 689 retriever.setDataSource(fd); in verifyResult() 690 String hasImage = retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_HAS_IMAGE); in verifyResult() 695 Integer.parseInt(retriever.extractMetadata( in verifyResult() [all …]
|
D | ResourceManagerRecorderActivity.java | 171 MediaMetadataRetriever retriever = new MediaMetadataRetriever(); in checkLocationInFile() local 172 retriever.setDataSource(fileName); in checkLocationInFile() 173 String location = retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_LOCATION); in checkLocationInFile() 175 retriever.release(); in checkLocationInFile() 204 retriever.release(); in checkLocationInFile()
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | HeifWriterTest.java | 338 MediaMetadataRetriever retriever = new MediaMetadataRetriever(); in verifyResult() local 339 retriever.setDataSource(filename); in verifyResult() 340 String hasImage = retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_HAS_IMAGE); in verifyResult() 345 Integer.parseInt(retriever.extractMetadata( in verifyResult() 348 Integer.parseInt(retriever.extractMetadata( in verifyResult() 351 Integer.parseInt(retriever.extractMetadata( in verifyResult() 354 Integer.parseInt(retriever.extractMetadata( in verifyResult() 356 retriever.release(); in verifyResult()
|
/cts/tests/tests/media/recorder/src/android/media/recorder/cts/ |
D | MediaRecorderTest.java | 516 MediaMetadataRetriever retriever = new MediaMetadataRetriever(); in checkTracksAndDuration() local 517 retriever.setDataSource(fileName); in checkTracksAndDuration() 518 … String hasVideoStr = retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_HAS_VIDEO); in checkTracksAndDuration() 519 … String hasAudioStr = retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_HAS_AUDIO); in checkTracksAndDuration() 525 String durStr = retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_DURATION); in checkTracksAndDuration() 536 retriever.release(); in checkTracksAndDuration() 537 retriever = null; in checkTracksAndDuration() 541 MediaMetadataRetriever retriever = new MediaMetadataRetriever(); in checkLocationInFile() local 542 retriever.setDataSource(fileName); in checkLocationInFile() 543 String location = retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_LOCATION); in checkLocationInFile() [all …]
|
/cts/tests/tests/drm/src/android/drm/cts/ |
D | DRMTest.java | 284 MediaMetadataRetriever retriever = new MediaMetadataRetriever(); in testForwardLockAccess() local 286 retriever.setDataSource(flFd.getFileDescriptor()); in testForwardLockAccess() 288 retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_NUM_TRACKS); in testForwardLockAccess() 291 retriever.release(); in testForwardLockAccess()
|
/cts/tests/media/src/android/mediav2/cts/ |
D | MuxerTest.java | 468 MediaMetadataRetriever retriever = new MediaMetadataRetriever(); in verifyLocationInFile() 469 retriever.setDataSource(fileName); in verifyLocationInFile() 476 String loc = retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_LOCATION); in verifyLocationInFile() 495 retriever.release(); in verifyLocationInFile() 501 MediaMetadataRetriever retriever = new MediaMetadataRetriever(); in verifyOrientation() 502 retriever.setDataSource(fileName); in verifyOrientation() 504 String testDegrees = retriever.extractMetadata( in verifyOrientation() 509 retriever.release(); in verifyOrientation()
|
/cts/tests/tests/media/muxer/src/android/media/muxer/cts/ |
D | MediaMuxerTest.java | 897 MediaMetadataRetriever retriever = new MediaMetadataRetriever(); in verifyLocationInFile() local 898 retriever.setDataSource(fileName); in verifyLocationInFile() 899 String location = retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_LOCATION); in verifyLocationInFile() 927 retriever.release(); in verifyLocationInFile()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | StagefrightTest.java | 2581 MediaMetadataRetriever retriever = new MediaMetadataRetriever(); in doStagefrightTestMediaMetadataRetriever() local 2585 … retriever.setDataSource(fd.getFileDescriptor(), fd.getStartOffset(), fd.getLength()); in doStagefrightTestMediaMetadataRetriever() 2593 retriever.setDataSource(url, new HashMap<String, String>()); in doStagefrightTestMediaMetadataRetriever() 2598 retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_DURATION); in doStagefrightTestMediaMetadataRetriever() 2599 retriever.getEmbeddedPicture(); in doStagefrightTestMediaMetadataRetriever() 2600 retriever.getFrameAtTime(); in doStagefrightTestMediaMetadataRetriever() 2602 retriever.release(); in doStagefrightTestMediaMetadataRetriever()
|
/cts/tests/tests/media/player/src/android/media/player/cts/ |
D | MediaPlayerTest.java | 1264 MediaMetadataRetriever retriever = new MediaMetadataRetriever(); 1265 retriever.setDataSource(file); 1266 String rotation = retriever.extractMetadata( 1268 retriever.release();
|