Searched refs:TestMediaDataSource (Results 1 – 6 of 6) sorted by relevance
/cts/tests/tests/media/src/android/media/cts/ |
D | TestMediaDataSource.java | 33 public class TestMediaDataSource extends MediaDataSource { class 45 public static TestMediaDataSource fromAssetFd(AssetFileDescriptor afd) throws IOException { in fromAssetFd() 56 return new TestMediaDataSource(data); in fromAssetFd() 62 public TestMediaDataSource(byte[] data) { in TestMediaDataSource() method in TestMediaDataSource
|
D | MediaExtractorTest.java | 75 protected TestMediaDataSource getDataSourceFor(int resid) throws Exception { in getDataSourceFor() 77 return TestMediaDataSource.fromAssetFd(afd); in getDataSourceFor() 80 protected TestMediaDataSource setDataSource(int resid) throws Exception { in setDataSource() 81 TestMediaDataSource ds = getDataSourceFor(resid); in setDataSource() 96 TestMediaDataSource dataSource = setDataSource(R.raw.testvideo); in testMediaDataSourceIsClosedOnRelease() 102 TestMediaDataSource dataSource = getDataSourceFor(R.raw.testvideo); in testExtractorFailsIfMediaDataSourceThrows() 113 TestMediaDataSource dataSource = getDataSourceFor(R.raw.testvideo); in testExtractorFailsIfMediaDataSourceReturnsAnError() 125 TestMediaDataSource dataSource = setDataSource(R.raw.testvideo); in testExtractFromAMediaDataSource() 139 TestMediaDataSource dataSource = setDataSource(R.raw.video_dovi_1920x1080_30fps_dvhe_04); in testDolbyVisionMediaExtractorProfileDvheDtr() 186 TestMediaDataSource dataSource = setDataSource(R.raw.video_dovi_1920x1080_60fps_dvhe_05); in testDolbyVisionMediaExtractorProfileDvheStn() [all …]
|
D | MediaMetadataRetrieverTest.java | 98 protected TestMediaDataSource setDataSourceCallback(int resid) { in setDataSourceCallback() 99 TestMediaDataSource ds = null; in setDataSourceCallback() 102 ds = TestMediaDataSource.fromAssetFd(afd); in setDataSourceCallback() 110 protected TestMediaDataSource getFaultyDataSource(int resid, boolean throwing) { in getFaultyDataSource() 111 TestMediaDataSource ds = null; in getFaultyDataSource() 114 ds = TestMediaDataSource.fromAssetFd(afd); in getFaultyDataSource() 222 TestMediaDataSource dataSource = setDataSourceCallback(R.raw.testvideo); in testMediaDataSourceIsClosedOnRelease() 229 TestMediaDataSource ds = getFaultyDataSource(R.raw.testvideo, true /* throwing */); in testRetrieveFailsIfMediaDataSourceThrows() 239 TestMediaDataSource ds = getFaultyDataSource(R.raw.testvideo, false /* throwing */); in testRetrieveFailsIfMediaDataSourceReturnsAnError()
|
D | MediaPlayerTest.java | 2459 TestMediaDataSource dataSource = in testPlaybackFromAMediaDataSource() 2460 TestMediaDataSource.fromAssetFd(mResources.openRawResourceFd(resid)); in testPlaybackFromAMediaDataSource() 2500 TestMediaDataSource dataSource = new TestMediaDataSource(new byte[0]); in testMediaDataSourceIsClosedOnReset() 2513 TestMediaDataSource dataSource = in testPlaybackFailsIfMediaDataSourceThrows() 2514 TestMediaDataSource.fromAssetFd(mResources.openRawResourceFd(resid)); in testPlaybackFailsIfMediaDataSourceThrows() 2530 TestMediaDataSource dataSource = in testPlaybackFailsIfMediaDataSourceReturnsAnError() 2531 TestMediaDataSource.fromAssetFd(mResources.openRawResourceFd(resid)); in testPlaybackFailsIfMediaDataSourceReturnsAnError()
|
/cts/tests/media/src/android/mediav2/cts/ |
D | ExtractorTest.java | 60 class TestMediaDataSource extends MediaDataSource { class 61 private static final String LOG_TAG = TestMediaDataSource.class.getSimpleName(); 68 static TestMediaDataSource fromString(String inpPath, boolean failSize, boolean failRead) in fromString() 74 return new TestMediaDataSource(data, failSize, failRead); in fromString() 78 private TestMediaDataSource(byte[] data, boolean fatalGetSize, boolean fatalReadAt) { in TestMediaDataSource() method in TestMediaDataSource 542 TestMediaDataSource dataSource = 543 TestMediaDataSource.fromString(mInpPrefix + mInpMedia, false, false);
|
D | ExtractorUnitTest.java | 683 TestMediaDataSource dataSource = in testIfInvalidDataSourceIsRejectedBySetDataSource() 684 TestMediaDataSource.fromString(mInpPrefix + mInpMedia, true, false); in testIfInvalidDataSourceIsRejectedBySetDataSource() 693 dataSource = TestMediaDataSource.fromString(mInpPrefix + mInpMedia, false, true); in testIfInvalidDataSourceIsRejectedBySetDataSource()
|