Searched refs:TestMediaDataSource (Results 1 – 7 of 7) sorted by relevance
/cts/tests/tests/media/drmframework/src/android/media/drmframework/cts/ |
D | MediaDrmExtractorTest.java | 24 import android.media.cts.TestMediaDataSource; 70 protected TestMediaDataSource getDataSourceFor(final String res) throws Exception { in getDataSourceFor() 72 return TestMediaDataSource.fromAssetFd(afd); in getDataSourceFor() 75 protected TestMediaDataSource setDataSource(final String res) throws Exception { in setDataSource() 76 TestMediaDataSource ds = getDataSourceFor(res); in setDataSource()
|
/cts/tests/tests/media/common/src/android/media/cts/ |
D | TestMediaDataSource.java | 31 public class TestMediaDataSource extends MediaDataSource { class 43 public static TestMediaDataSource fromAssetFd(AssetFileDescriptor afd) throws IOException { in fromAssetFd() 54 return new TestMediaDataSource(data); in fromAssetFd() 60 public TestMediaDataSource(byte[] data) { in TestMediaDataSource() method in TestMediaDataSource
|
/cts/tests/tests/media/extractor/src/android/media/extractor/cts/ |
D | MediaExtractorTest.java | 39 import android.media.cts.TestMediaDataSource; 112 private TestMediaDataSource getDataSourceFor(final String res) throws Exception { in getDataSourceFor() 114 return TestMediaDataSource.fromAssetFd(afd); in getDataSourceFor() 117 private TestMediaDataSource setDataSource(final String res) throws Exception { in setDataSource() 118 TestMediaDataSource ds = getDataSourceFor(res); in setDataSource() 131 TestMediaDataSource dataSource = getDataSourceFor("testvideo.3gp"); in testExtractorFailsIfMediaDataSourceReturnsAnError() 163 TestMediaDataSource dataSource = setDataSource("video_dovi_1920x1080_30fps_dvhe_04.mp4"); in testDolbyVisionMediaExtractorProfileDvheDtr() 212 TestMediaDataSource dataSource = setDataSource("video_dovi_1920x1080_60fps_dvhe_08.mp4"); in testDolbyVisionMediaExtractorProfileDvheSt() 261 TestMediaDataSource dataSource = setDataSource("video_dovi_1920x1080_60fps_dvav_09.mp4"); in testDolbyVisionMediaExtractorProfileDvavSe() 311 TestMediaDataSource dataSource = setDataSource("video_dovi_3840x2160_30fps_dav1_10.mp4"); in testDolbyVisionMediaExtractorProfileDvav1() [all …]
|
/cts/tests/tests/media/misc/src/android/media/misc/cts/ |
D | MediaMetadataRetrieverTest.java | 44 import android.media.cts.TestMediaDataSource; 149 protected TestMediaDataSource setDataSourceCallback(final String res) { in setDataSourceCallback() 150 TestMediaDataSource ds = null; in setDataSourceCallback() 153 ds = TestMediaDataSource.fromAssetFd(afd); in setDataSourceCallback() 161 protected TestMediaDataSource getFaultyDataSource(final String res, boolean throwing) { in getFaultyDataSource() 162 TestMediaDataSource ds = null; in getFaultyDataSource() 165 ds = TestMediaDataSource.fromAssetFd(afd); in getFaultyDataSource() 212 TestMediaDataSource.fromAssetFd( in testExceptionWhileClosingMediaDataSource() 621 TestMediaDataSource dataSource = setDataSourceCallback("testvideo.3gp"); in testMediaDataSourceIsClosedOnRelease() 629 TestMediaDataSource ds = getFaultyDataSource("testvideo.3gp", true /* throwing */); in testRetrieveFailsIfMediaDataSourceThrows() [all …]
|
/cts/tests/tests/media/player/src/android/media/player/cts/ |
D | MediaPlayerTest.java | 50 import android.media.cts.TestMediaDataSource; 2570 TestMediaDataSource dataSource = in testPlaybackFromAMediaDataSource() 2571 TestMediaDataSource.fromAssetFd(getAssetFileDescriptorFor(res)); in testPlaybackFromAMediaDataSource() 2615 TestMediaDataSource dataSource = new TestMediaDataSource(new byte[0]); in testMediaDataSourceIsClosedOnReset() 2631 TestMediaDataSource dataSource = in testPlaybackFailsIfMediaDataSourceThrows() 2632 TestMediaDataSource.fromAssetFd(getAssetFileDescriptorFor(res)); in testPlaybackFailsIfMediaDataSourceThrows() 2651 TestMediaDataSource dataSource = in testPlaybackFailsIfMediaDataSourceReturnsAnError() 2652 TestMediaDataSource.fromAssetFd(getAssetFileDescriptorFor(res)); in testPlaybackFailsIfMediaDataSourceReturnsAnError()
|
/cts/tests/media/src/android/mediav2/cts/ |
D | ExtractorTest.java | 80 class TestMediaDataSource extends MediaDataSource { class 81 private static final String LOG_TAG = TestMediaDataSource.class.getSimpleName(); 88 static TestMediaDataSource fromString(String inpPath, boolean failSize, boolean failRead) in fromString() 94 return new TestMediaDataSource(data, failSize, failRead); in fromString() 98 private TestMediaDataSource(byte[] data, boolean fatalGetSize, boolean fatalReadAt) { in TestMediaDataSource() method in TestMediaDataSource 670 TestMediaDataSource dataSource = 671 TestMediaDataSource.fromString(MEDIA_DIR + INPUT_MEDIA, false, false);
|
D | ExtractorUnitTest.java | 754 TestMediaDataSource dataSource = in testIfInvalidDataSourceIsRejectedBySetDataSource() 755 TestMediaDataSource.fromString(MEDIA_DIR + INPUT_MEDIA, false, true); in testIfInvalidDataSourceIsRejectedBySetDataSource()
|