/cts/tests/tests/os/src/android/os/cts/ |
D | FileObserverTest.java | 46 File testFile = new File(dir, TEST_FILE); in helpSetUp() local 47 testFile.createNewFile(); in helpSetUp() 76 File testFile = new File(dir, TEST_FILE); in helpTearDown() local 80 if (testFile.exists()) { in helpTearDown() 81 testFile.delete(); in helpTearDown() 144 File testFile = new File(dir, TEST_FILE); in helpTestFileObserver() local 149 fileObserver = new MockFileObserver(testFile.getParentFile()); in helpTestFileObserver() 153 verifyTriggeredEventsOnFile(fileObserver, testFile, isEmulated); in helpTestFileObserver() 158 testFile.delete(); // delete in helpTestFileObserver() 163 assertEventsContains(testFile, expected, moveEvents); in helpTestFileObserver() [all …]
|
/cts/tests/tests/content/src/android/content/cts/ |
D | ReadableUriExtraToClipDataTest.java | 63 File testFile = new File(getContext().getFilesDir() + File.separator + fileName); in setUp() local 64 writeTestInputToFile(testFile); in setUp() 65 mTestFiles.add(testFile); in setUp() 66 mTestFileUris.add(Uri.fromFile(testFile)); in setUp() 72 for (File testFile : mTestFiles) { in tearDown() 73 if (testFile.exists()) { in tearDown() 74 assertTrue(testFile.delete()); in tearDown()
|
/cts/libs/install/src/android/cts/install/lib/host/ |
D | InstallUtilsHost.java | 193 File testFile = null; in getTestFile() local 197 testFile = searchTestFile(testCasesDir, testFileName); in getTestFile() 198 if (testFile != null) { in getTestFile() 199 return testFile; in getTestFile() 206 testFile = searchTestFile(hostLinkedDir, testFileName); in getTestFile() 208 if (testFile != null) { in getTestFile() 209 return testFile; in getTestFile() 226 File testFile = FileUtil.findFile(baseSearchFile, testFileName); in searchTestFile() local 227 if (testFile != null && testFile.isFile()) { in searchTestFile() 228 return testFile; in searchTestFile()
|
/cts/tests/backup/app/src/android/backup/app/ |
D | KeyValueBackupAgent.java | 48 File testFile = new File(getFilesDir(), MainActivity.FILE_NAME); in onBackup() local 49 Log.d(MainActivity.TAG, "Writing " + testFile.length()); in onBackup() 51 data.writeEntityHeader(MainActivity.FILE_NAME, (int) testFile.length()); in onBackup() 53 try (FileInputStream input = new FileInputStream(testFile)) { in onBackup()
|
/cts/hostsidetests/appsecurity/test-apps/ReadExternalStorageApp/src/com/android/cts/readexternalstorageapp/ |
D | ReadMultiViewTest.java | 46 final File testFile = new File(ourTestDir, "test.probe"); in testRWAccess() local 48 assertFileReadWriteAccess(testFile); in testRWAccess() 51 assertEquals(Os.getuid(), Os.stat(testFile.getAbsolutePath()).st_uid); in testRWAccess()
|
/cts/tests/tests/mediaediting/src/android/media/mediaediting/cts/ |
D | TransformHdrToSdrToneMapTest.java | 77 private final String testFile; field in TransformHdrToSdrToneMapTest 80 public TransformHdrToSdrToneMapTest(String mediaType, String testFile, String testId) { in TransformHdrToSdrToneMapTest() argument 82 this.testFile = testFile; in TransformHdrToSdrToneMapTest() 152 Preconditions.assertTestFileExists(MEDIA_DIR + testFile); 157 /* inputFormat= */ MediaEditingUtil.getFormatForTestFile(testFile), 158 /* outputFormat= */ MediaEditingUtil.getFormatForTestFile(testFile) 168 .run(testId, MediaItem.fromUri(Uri.parse(MEDIA_DIR + testFile)));
|
D | TranscodeQualityTest.java | 58 private final String testFile; field in TranscodeQualityTest 63 float frameRate, String testFile, boolean isWithinCddRequirements, String testId) { in TranscodeQualityTest() argument 69 this.testFile = testFile; in TranscodeQualityTest() 176 Preconditions.assertTestFileExists(MEDIA_DIR + testFile); in transcodeTest() 191 MediaItem mediaItem = MediaItem.fromUri(Uri.parse(MEDIA_DIR + testFile)); in transcodeTest()
|
D | TransformReverseTransformIdentityTest.java | 72 private final String testFile; field in TransformReverseTransformIdentityTest 80 String testFile, int inpWidth, int inpHeight, int outWidth, int outHeight, String testId) { in TransformReverseTransformIdentityTest() argument 83 this.testFile = testFile; in TransformReverseTransformIdentityTest() 199 Preconditions.assertTestFileExists(MEDIA_DIR + testFile); in transformTest() 221 MediaItem.fromUri(Uri.parse(MEDIA_DIR + testFile))).setEffects(videoEffects) in transformTest() 255 checkNotNull(Uri.parse(MEDIA_DIR + testFile)).toString(), in transformTest()
|
D | TransformVideoAspectRatio.java | 63 private final String testFile; field in TransformVideoAspectRatio 67 float requestedAspectRatio, String testFile, String testId) { in TransformVideoAspectRatio() argument 72 this.testFile = testFile; in TransformVideoAspectRatio() 195 Preconditions.assertTestFileExists(MEDIA_DIR + testFile); in transcodeTest() 202 MediaItem mediaItem = MediaItem.fromUri(Uri.parse(MEDIA_DIR + testFile)); in transcodeTest()
|
D | VideoResolutionTest.java | 64 private final String testFile; field in VideoResolutionTest 71 public VideoResolutionTest(String mediaType, String testFile, int inpWidth, int inpHeight, in VideoResolutionTest() argument 74 this.testFile = testFile; in VideoResolutionTest() 262 Preconditions.assertTestFileExists(MEDIA_DIR + testFile); in transformTest() 268 MediaItem mediaItem = MediaItem.fromUri(Uri.parse(MEDIA_DIR + testFile)); in transformTest()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | Preconditions.java | 36 File testFile = new File(pathName); in assertTestFileExists() local 37 Assert.assertTrue("Test Setup Error, missing file: " + pathName, testFile.exists()); in assertTestFileExists()
|
/cts/tests/mediapc/src/android/mediapc/cts/ |
D | MultiDecoderPairPerfTest.java | 250 String testFile = m1080pTestFiles.get(mSecondPair.first); in testCodec() local 251 testList.add(new Decode(mSecondPair.first, testFile, mSecondPair.second, in testCodec() 255 String testFile = m1080pTestFiles.get(mFirstPair.first); in testCodec() local 256 testList.add(new Decode(mFirstPair.first, testFile, mFirstPair.second, in testCodec() 264 String testFile = isSecure ? widevineTestFiles.get(mFirstPair.first) : in testCodec() local 267 + "mediaType: " + mFirstPair.first, testFile != null); in testCodec() 268 testList.add(new Decode(mFirstPair.first, testFile, mFirstPair.second, mIsAsync, in testCodec() 273 String testFile = isSecure ? widevineTestFiles.get(mSecondPair.first) : in testCodec() local 275 if (height > 1080 && noneSecure) testFile = m1080pTestFiles.get(mSecondPair.first); in testCodec() 277 + "mediaType: " + mSecondPair.first, testFile != null); in testCodec() [all …]
|
D | AudioPlaybackLoad.java | 40 AudioPlaybackLoad(String mediaType, String testFile, String decoderName, in AudioPlaybackLoad() argument 42 super(mediaType, testFile); in AudioPlaybackLoad()
|
/cts/hostsidetests/dumpsys/apps/storagedapp/src/com/android/server/cts/storaged/ |
D | SimpleIOActivity.java | 31 File testFile = new File(getFilesDir(), "StoragedTest_Temp_FG"); in onStart() local 34 FileWriter w = new FileWriter(testFile); in onStart()
|
D | SimpleIOService.java | 78 File testFile = new File(getFilesDir(), "StoragedTest_Temp_BG"); in handleMessage() local 81 FileWriter w = new FileWriter(testFile); in handleMessage()
|
/cts/tests/ondeviceintelligence/src/android/ondeviceintelligence/cts/ |
D | CtsIntelligenceService.java | 100 File testFile = new File(getFilesDir(), TEST_FILE_NAME); in onInferenceServiceConnected() local 102 populateTestContent(testFile); in onInferenceServiceConnected() 136 File testFile = new File(getFilesDir(), TEST_FILE_NAME); in createAndPopulateTestFile() local 137 populateTestContent(testFile); in createAndPopulateTestFile() 138 try (ParcelFileDescriptor pfd = ParcelFileDescriptor.open(testFile, in createAndPopulateTestFile() 141 fileDescriptorMap.put(testFile.getName(), pfd); in createAndPopulateTestFile()
|
/cts/tests/tests/telephony/current/src/android/telephony/cts/ |
D | CallComposerTest.java | 103 Path testFile = mContext.getFilesDir().toPath().resolve(TEST_FILE_NAME); in testUploadPictureWithFile() local 105 Files.write(testFile, imageData); in testUploadPictureWithFile() 107 UUID handle = pictureUploadHelper(testFile, null, -1); in testUploadPictureWithFile() 132 Path testFile = mContext.getFilesDir().toPath().resolve(TEST_FILE_NAME); in testExcessivelyLargePictureAsFile() local 133 Files.write(testFile, paddedData); in testExcessivelyLargePictureAsFile() 135 pictureUploadHelper(testFile, null, in testExcessivelyLargePictureAsFile()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/intent/ |
D | IntentTests.java | 129 for (String testFile : testFiles) { in readAllFromAssets() 131 new BufferedInputStream(assets.open(testFile))))) { in readAllFromAssets() 136 new JSONObject(jsonData), TABLE, testFile); in readAllFromAssets()
|
/cts/tests/media/jni/ |
D | NativeCodecDecoderTestCommon.cpp | 65 bool testSimpleDecode(const char* decoder, const char* testFile, const char* refFile, 67 bool testFlush(const char* decoder, const char* testFile, int colorFormat); 68 bool testOnlyEos(const char* decoder, const char* testFile, int colorFormat); 69 bool testSimpleDecodeQueueCSD(const char* decoder, const char* testFile, int colorFormat); 356 bool CodecDecoderTest::testSimpleDecode(const char* decoder, const char* testFile, in testSimpleDecode() argument 359 if (!setUpExtractor(testFile, colorFormat)) return false; in testSimpleDecode() 416 testFile, rmsError, errMargin, currError)) in testSimpleDecode() 421 bool CodecDecoderTest::testFlush(const char* decoder, const char* testFile, int colorFormat) { in testFlush() argument 422 if (!setUpExtractor(testFile, colorFormat)) return false; in testFlush() 437 StringFormat("decodeToMemory failed for file: %s codec: %s", testFile, decoder)) in testFlush() [all …]
|
/cts/hostsidetests/backup/includeexcludeapp/src/android/cts/backup/includeexcludeapp/ |
D | DataExtractionRulesApplicabilityTest.java | 63 File testFile = new File(mContext.getFilesDir(), fileName); in createFiles() local 65 try (FileWriter fileWriter = new FileWriter(testFile)) { in createFiles()
|
/cts/tests/media/common/src/android/mediav2/common/cts/ |
D | CompareStreams.java | 106 public CompareStreams(RawResource refYuv, String testMediaType, String testFile, in CompareStreams() argument 108 super(findDecoderForStream(testMediaType, testFile), testMediaType, testFile, LOG_TAG); in CompareStreams() local 128 String testFile, boolean allowRefResize, boolean allowRefLoopBack) throws IOException { in CompareStreams() argument 129 this(new DecodeStreamToYuv(refMediaType, refFile).getDecodedYuv(), testMediaType, testFile, in CompareStreams() 134 public CompareStreams(RawResource refYuv, String testMediaType, String testFile, in CompareStreams() argument 137 super(findDecoderForStream(testMediaType, testFile), testMediaType, testFile, LOG_TAG); in CompareStreams() local
|
/cts/tests/video/src/android/video/cts/ |
D | CodecDecoderPerformanceTest.java | 41 public CodecDecoderPerformanceTest(String decoderName, String testFile, int keyPriority, in CodecDecoderPerformanceTest() argument 43 super(decoderName, testFile, keyPriority, scalingFactor); in CodecDecoderPerformanceTest()
|
D | CodecDecoderPerformanceTestBase.java | 41 public CodecDecoderPerformanceTestBase(String decoderName, String testFile, int keyPriority, in CodecDecoderPerformanceTestBase() argument 43 super(decoderName, testFile, keyPriority, scalingFactor); in CodecDecoderPerformanceTestBase()
|
/cts/hostsidetests/os/src/android/os/cts/ |
D | ProcfsHostTests.java | 92 testFile(PROC_STAT_PATH, PROC_STAT_READ_COMMAND, PROC_STAT_PATTERN); in testProcStat() 102 testFile("/proc/" + mTestAppPid + "/stat", "cat ", PID_TID_STAT_PATTERN); in testProcPidStat() 142 private void testFile(String absolutePath, String readCommand, Pattern pattern) throws Exception { in testFile() method in ProcfsHostTests
|
/cts/tests/videocodec/src/android/videocodec/cts/ |
D | VideoDecoderValidationTest.java | 60 public VideoDecoderValidationTest(String decoder, String mediaType, String testFile, in VideoDecoderValidationTest() argument 62 super(decoder, mediaType, MEDIA_DIR + testFile, allTestParams); in VideoDecoderValidationTest()
|