Home
last modified time | relevance | path

Searched refs:mTestFile (Results 1 – 25 of 36) sorted by relevance

12

/cts/tests/tests/content/src/android/content/cts/
DImageCaptureUriExtraToClipDataTest.java37 private File mTestFile; field in ImageCaptureUriExtraToClipDataTest
59 mTestFile = new File(getContext().getFilesDir() + File.separator + FILE_NAME); in setUp()
64 if (mTestFile.exists()) { in tearDown()
65 assertTrue(mTestFile.delete()); in tearDown()
93 intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(mTestFile)); in startActivityWithAction()
109 FileReader reader = new FileReader(mTestFile); in assertFileContents()
/cts/tests/media/src/android/mediav2/cts/
DCodecDecoderBlockModelMultiAccessUnitTest.java99 MediaFormat format = setUpSource(mTestFile); in setUp()
123 cdtb.decodeToMemory(mTestFile, mCodecName, 0, MediaExtractor.SEEK_TO_CLOSEST_SYNC, in testSimpleDecode()
130 cdbmtb.decodeToMemory(mTestFile, mCodecName, test, 0, in testSimpleDecode()
141 MediaFormat format = setUpSource(mTestFile); in testSimpleDecode()
142 int maxSampleSize = getMaxSampleSizeForMediaType(mTestFile, mMediaType); in testSimpleDecode()
202 MediaFormat format = setUpSource(mTestFile); in testFlush()
209 cdtb.decodeToMemory(mTestFile, mCodecName, pts, MediaExtractor.SEEK_TO_CLOSEST_SYNC, in testFlush()
218 setUpSource(mTestFile); in testFlush()
219 int maxSampleSize = getMaxSampleSizeForMediaType(mTestFile, mMediaType); in testFlush()
302 MediaFormat format = setUpSource(mTestFile); in testReconfigure()
[all …]
DCodecDecoderMultiAccessUnitTest.java177 MediaFormat format = setUpSource(mTestFile); in setUp()
203 cdtb.decodeToMemory(mTestFile, mCodecName, 0, MediaExtractor.SEEK_TO_CLOSEST_SYNC, in testSimpleDecode()
211 MediaFormat format = setUpSource(mTestFile); in testSimpleDecode()
212 int maxSampleSize = getMaxSampleSizeForMediaType(mTestFile, mMediaType); in testSimpleDecode()
274 MediaFormat format = setUpSource(mTestFile); in testFlush()
289 cdtb.decodeToMemory(mTestFile, mCodecName, pts, MediaExtractor.SEEK_TO_CLOSEST_SYNC, in testFlush()
297 setUpSource(mTestFile); in testFlush()
298 int maxSampleSize = getMaxSampleSizeForMediaType(mTestFile, mMediaType); in testFlush()
391 MediaFormat format = setUpSource(mTestFile); in testReconfigure()
403 cdtb1.decodeToMemory(mTestFile, mCodecName, 0, MediaExtractor.SEEK_TO_CLOSEST_SYNC, in testReconfigure()
[all …]
DCodecDecoderTest.java341 MediaFormat format = setUpSource(mTestFile); in setUp()
374 MediaFormat format = setUpSource(mTestFile); in testSimpleDecode()
425 cdbmtb.decodeToMemory(mTestFile, mCodecName, test, 0, in testSimpleDecode()
433 boolean isPass = nativeTestSimpleDecode(mCodecName, null, mMediaType, mTestFile, in testSimpleDecode()
472 MediaFormat format = setUpSource(mTestFile); in testFlush()
485 decodeToMemory(mTestFile, mCodecName, pts, mode, Integer.MAX_VALUE); in testFlush()
489 setUpSource(mTestFile); in testFlush()
575 MediaFormat format = setUpSource(mTestFile); in testFlushNative()
579 boolean isPass = nativeTestFlush(mCodecName, null, mMediaType, mTestFile, in testFlushNative()
620 MediaFormat format = setUpSource(mTestFile); in testReconfigure()
[all …]
DCodecDecoderSurfaceTest.java132 MediaFormat format = setUpSource(mTestFile); in setUp()
236 decodeAndSavePts(mTestFile, mCodecName, pts, mode, Integer.MAX_VALUE); in testSimpleDecodeToSurface()
239 MediaFormat format = setUpSource(mTestFile); in testSimpleDecodeToSurface()
284 MediaFormat format = setUpSource(mTestFile); in testDetachAndReattachSurface()
387 MediaFormat format = setUpSource(mTestFile); in testFlush()
400 decodeAndSavePts(mTestFile, mCodecName, pts, mode, Integer.MAX_VALUE); in testFlush()
404 setUpSource(mTestFile); in testFlush()
500 MediaFormat format = setUpSource(mTestFile); in testReconfigure()
511 decodeAndSavePts(mTestFile, mCodecName, pts, mode, Integer.MAX_VALUE); in testReconfigure()
521 setUpSource(mTestFile); in testReconfigure()
[all …]
DDecoderDynamicColorAspectTest.java79 public final String mTestFile; field in DecoderDynamicColorAspectTest.MediaAndColorSpaceAttrib
86 mTestFile = testFile; in MediaAndColorSpaceAttrib()
220 formats.add(setUpSource(MEDIA_DIR + mediaAndColorSpaceAttrib.mTestFile)); in setUp()
344 File file = new File(MEDIA_DIR + mediaAndColorSpaceAttrib.mTestFile); in testDynamicColorAspect()
355 formats.add(createInputList(setUpSource(MEDIA_DIR + mediaAndColorSpaceAttrib.mTestFile), in testDynamicColorAspect()
DCodecDecoderPauseTest.java98 formats.add(setUpSource(mTestFile)); in testPause()
102 MediaFormat format = setUpSource(mTestFile); in testPause()
DCodecDecoderDetachedSurfaceTest.java150 MediaFormat format = setUpSource(mTestFile); in setUp()
299 MediaFormat format = setUpSource(mTestFile); in testSetOutputSurface()
360 MediaFormat format = setUpSource(mTestFile); in testFeatureDetachedSurface()
425 MediaFormat format = setUpSource(mTestFile); in testDetachOutputSurface()
DCodecEncoderSurfaceTest.java338 CodecEncoderTestBase.validateEncodedPSNR(mTestFileMediaType, mTestFile, mEncMediaType, in testSimpleEncodeFromSurface()
367 mTestFile, mTestFileMediaType, tmpPath, colorFormat, mUsePersistentSurface, in testSimpleEncodeFromSurfaceNative()
373 CodecEncoderTestBase.validateEncodedPSNR(mTestFileMediaType, mTestFile, mEncMediaType, in testSimpleEncodeFromSurfaceNative()
/cts/hostsidetests/car/app/src/android/car/cts/app/watchdog/
DCarWatchdogDeviceAppTest.java103 private File mTestFile; field in CarWatchdogDeviceAppTest
114 mTestFile = mContext.getFilesDir().toPath().resolve("testfile").toFile(); in setup()
115 if (!mTestFile.exists()) { in setup()
116 Log.d(TAG, "Creating test file: " + mTestFile.getPath()); in setup()
117 mTestFile = Files.createFile(mTestFile.toPath()).toFile(); in setup()
216 mTestFile.delete(); in testResetOriginalResourceOveruseConfigurations()
224 assertWithMessage("Failed to write data to file '" + mTestFile.getAbsolutePath() + "'") in testVerifyInitialResourceOveruseStats()
242 assertWithMessage("Failed to write data to file '" + mTestFile.getAbsolutePath() + "'") in testVerifyResourceOveruseStatsAfterReboot()
255 boolean wasDeleted = mTestFile.delete(); in testDeleteTestFile()
317 try (FileOutputStream fos = new FileOutputStream(mTestFile)) { in writeConfigsToDisk()
[all …]
/cts/tests/mediapc/src/android/mediapc/cts/
DMultiDecoderPerfTest.java169 mTestFile = testFiles.get(mMediaType); in testCodec()
170 Assume.assumeTrue("Add test vector for mediaType: " + mMediaType, mTestFile != null); in testCodec()
188 testList.add(new Decode(mMediaType, mTestFile, mDecoderName, mIsAsync, in testCodec()
193 testList.add(new Decode(mMediaType, mTestFile, mDecoderName, mIsAsync, in testCodec()
DAudioPlaybackLoad.java50 MediaFormat format = setUpSource(mTestFile); in doDecodeAndPlayback()
/cts/tests/tests/media/drmframework/src/android/media/drmframework/cts/
DCodecDecoderMultiAccessUnitDrmTest.java137 cddrmtb.decodeToMemory(mTestFile, mCodecName, 0, MediaExtractor.SEEK_TO_CLOSEST_SYNC, in testSimpleDecode()
146 MediaFormat format = setUpSource(mTestFile); in testSimpleDecode()
147 int maxSampleSize = getMaxSampleSizeForMediaType(mTestFile, mMediaType); in testSimpleDecode()
DCodecDecoderBlockModelMultiAccessUnitDrmTest.java141 codecDecoderBlockModelDrmtb.decodeToMemory(mTestFile, mCodecName, 0, in testSimpleDecode()
150 MediaFormat format = setUpSource(mTestFile); in testSimpleDecode()
151 int maxSampleSize = getMaxSampleSizeForMediaType(mTestFile, mMediaType); in testSimpleDecode()
DCodecDecoderDrmTest.java122 cddrmtb.decodeToMemory(mTestFile, mCodecName, 0, MediaExtractor.SEEK_TO_CLOSEST_SYNC, in testSimpleDecode()
133 cdbmdrmtb.decodeToMemory(mTestFile, mCodecName, test, 0, in testSimpleDecode()
/cts/hostsidetests/videoencodingminimum/app/src/android/videoencodingmin/app/
DVideoTranscoderTest.java86 private String mTestFile; field in VideoTranscoderTest
139 mTestFile = MEDIA_DIR + "samples/" + obj.getString("RefFileName"); in parseEncoderConfigurationFile()
170 MediaFormat format = getFormatInStream(mTestFileMediaType, mTestFile); in parseEncoderConfigurationFile()
200 mDecoderName, mTestFileMediaType, mTestFile, mEncCfgParams[i], in testTranscode()
/cts/hostsidetests/mediapc/videoencodingquality/app/src/android/videoencoding/app/
DVideoTranscoderTest.java86 private String mTestFile; field in VideoTranscoderTest
139 mTestFile = MEDIA_DIR + "samples/" + obj.getString("RefFileName"); in parseEncoderConfigurationFile()
170 MediaFormat format = getFormatInStream(mTestFileMediaType, mTestFile); in parseEncoderConfigurationFile()
200 mDecoderName, mTestFileMediaType, mTestFile, mEncCfgParams[i], in testTranscode()
/cts/tests/videocodec/src/android/videocodec/cts/
DVideoDecoderValidationTest.java97 MediaFormat format = setUpSource(mTestFile); in testDecodeAndValidate()
102 decodeToMemory(mTestFile, mCodecName, 0, MediaExtractor.SEEK_TO_CLOSEST_SYNC, in testDecodeAndValidate()
/cts/tests/tests/media/decoder/src/android/media/decoder/cts/
DDecoderLowLatencyTest.java69 public String mTestFile; field in DecoderLowLatencyTest
76 mTestFile = testFile; in DecoderLowLatencyTest()
183 AssetFileDescriptor fd = getAssetFileDescriptorFor(mTestFile); in testLowLatencyVideo()
299 log.addValue("video_res", mTestFile, ResultType.NEUTRAL, ResultUnit.NONE); in testLowLatencyVideo()
/cts/tests/video/src/android/video/cts/
DCodecPerformanceTestBase.java74 final String mTestFile; field in CodecPerformanceTestBase
139 mTestFile = testFile; in CodecPerformanceTestBase()
219 final String input = mInputPrefix + mTestFile; in setUpDecoderInput()
277 fail("No video track found in file: " + mTestFile); in setUpDecoderInput()
DCodecDecoderPerformanceTestBase.java81 assertNotNull("Video track not present in " + mTestFile, format); in decode()
/cts/tests/media/common/src/android/mediav2/common/cts/
DHDRDecoderTestBase.java119 Preconditions.assertTestFileExists(mTestFile); in validateHDRInfo()
133 MediaFormat format = setUpSource(mTestFile); in validateHDRInfo()
DCodecEncoderSurfaceTestBase.java66 protected final String mTestFile; field in CodecEncoderSurfaceTestBase
110 mTestFile = testFile; in CodecEncoderSurfaceTestBase()
133 mDecoderFormat = setUpSource(mTestFile); in setUpCodecEncoderSurfaceTestBase()
141 || mTestFile.contains("10bit")) { in setUpCodecEncoderSurfaceTestBase()
566 setUpSource(mTestFile); in encodeToMemory()
DCodecDecoderTestBase.java54 protected final String mTestFile; field in CodecDecoderTestBase
68 mTestFile = testFile; in CodecDecoderTestBase()
423 Preconditions.assertTestFileExists(mTestFile); in validateColorAspects()
425 MediaFormat format = setUpSource(mTestFile); in validateColorAspects()
DCompareStreams.java338 getFormatInStream(mMediaType, mTestFile); in generateErrorStats()
342 if (isHBD || mTestFile.contains("10bit")) { in generateErrorStats()
352 decodeToMemory(mTestFile, mCodecName, 0, MediaExtractor.SEEK_TO_CLOSEST_SYNC, in generateErrorStats()

12