/cts/tests/tests/os/src/android/os/cts/ |
D | FileObserverTest.java | 42 File testFile = new File(dir, TEST_FILE); in helpSetUp() local 43 testFile.createNewFile(); in helpSetUp() 65 File testFile = new File(dir, TEST_FILE); in helpTearDown() local 69 if (testFile.exists()) { in helpTearDown() 70 testFile.delete(); in helpTearDown() 122 File testFile = new File(dir, TEST_FILE); in helpTestFileObserver() local 127 fileObserver = new MockFileObserver(testFile.getParentFile()); in helpTestFileObserver() 131 verifyTriggeredEventsOnFile(fileObserver, testFile, isEmulated); in helpTestFileObserver() 136 testFile.delete(); // delete in helpTestFileObserver() 159 testFile = new File(dir, TEST_FILE); in helpTestFileObserver() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/ReadExternalStorageApp/src/com/android/cts/readexternalstorageapp/ |
D | ReadMultiViewTest.java | 51 final File testFile = new File(ourTestDir, "test.probe"); in testRWAccess() local 53 assertFileReadWriteAccess(testFile); in testRWAccess() 56 assertEquals(Os.getuid(), Os.stat(testFile.getAbsolutePath()).st_uid); in testRWAccess() 67 final File testFile = new File(otherTestDir, "test.probe"); in testROAccess() local 69 assertFileReadOnlyAccess(testFile); in testROAccess() 70 assertNotEqual(Os.getuid(), Os.stat(testFile.getAbsolutePath()).st_uid); in testROAccess()
|
/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/tests/media/jni/ |
D | NativeCodecDecoderTest.cpp | 59 bool testSimpleDecode(const char* decoder, const char* testFile, const char* refFile, 61 bool testFlush(const char* decoder, const char* testFile); 62 bool testOnlyEos(const char* decoder, const char* testFile); 63 bool testSimpleDecodeQueueCSD(const char* decoder, const char* testFile); 286 bool CodecDecoderTest::testSimpleDecode(const char* decoder, const char* testFile, in testSimpleDecode() argument 289 if (!setUpExtractor(testFile)) return false; in testSimpleDecode() 302 decoder, testFile, (isAsync ? "async" : "sync"), in testSimpleDecode() 371 ALOGE("rms error too high for file %s, act/exp: %f/%f", testFile, error, rmsError); in testSimpleDecode() 377 bool CodecDecoderTest::testFlush(const char* decoder, const char* testFile) { in testFlush() argument 379 if (!setUpExtractor(testFile)) return false; in testFlush() [all …]
|
/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/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/hostsidetests/sample/src/android/sample/cts/ |
D | SampleHostResultTest.java | 113 final File testFile = mBuildHelper.getTestFile(FILE_NAME); in testTransferTime() local 125 assertTrue("Could not push file", device.pushFile(testFile, devicePath)); in testTransferTime() 129 assertFilesAreEqual(testFile, tmpFile); in testTransferTime()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/intent/ |
D | IntentTests.java | 131 for (String testFile : testFiles) { in readAllFromAssets() 133 new BufferedInputStream(assets.open(testFile))))) { in readAllFromAssets() 138 new JSONObject(jsonData), TABLE, testFile); in readAllFromAssets()
|
/cts/hostsidetests/os/src/android/os/cts/ |
D | ProcfsHostTests.java | 89 testFile(PROC_STAT_PATH, PROC_STAT_READ_COMMAND, PROC_STAT_PATTERN); in testProcStat() 99 testFile("/proc/" + mTestAppPid + "/stat", "cat ", PID_TID_STAT_PATTERN); in testProcPidStat() 129 private void testFile(String absolutePath, String readCommand, Pattern pattern) throws Exception { in testFile() method in ProcfsHostTests
|
/cts/tests/media/src/android/mediav2/cts/ |
D | CodecDecoderExtTest.java | 45 public CodecDecoderExtTest(String mime, String testFile, String refFile) { in CodecDecoderExtTest() argument 46 super(mime, testFile); in CodecDecoderExtTest()
|
D | CodecDecoderTest.java | 68 public CodecDecoderTest(String mime, String testFile, String refFile, String reconfigFile, in CodecDecoderTest() argument 70 super(mime, testFile); in CodecDecoderTest() 319 String testFile, String refFile, float rmsError); in nativeTestSimpleDecode() argument 453 String testFile); in nativeTestFlush() argument 685 private native boolean nativeTestOnlyEos(String decoder, String mime, String testFile); in nativeTestOnlyEos() argument 790 String testFile); in nativeTestSimpleDecodeQueueCSD() argument
|
D | CodecDecoderSurfaceTest.java | 55 public CodecDecoderSurfaceTest(String mime, String testFile, String reconfigFile) { in CodecDecoderSurfaceTest() argument 56 super(mime, testFile); in CodecDecoderSurfaceTest() 441 String testFile, String refFile, float rmsError); in nativeTestSimpleDecode() argument 462 String testFile); in nativeTestFlush() argument
|
D | CodecEncoderSurfaceTest.java | 90 public CodecEncoderSurfaceTest(String mime, String testFile, int bitrate, int frameRate) { in CodecEncoderSurfaceTest() argument 92 mTestFile = testFile; in CodecEncoderSurfaceTest() 560 String testFile, String muxFile, int bitrate, int framerate); in nativeTestSimpleEncode() argument
|
D | CodecTestBase.java | 854 CodecDecoderTestBase(String mime, String testFile) { in CodecDecoderTestBase() argument 856 mTestFile = testFile; in CodecDecoderTestBase()
|
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/ |
D | TestSuiteContentReport.java | 368 String testFile = ""; in printTestSuiteContent() local 374 testFile = testFile + opt.getValue() + " "; in printTestSuiteContent() 380 System.out.printf(",%s,%s", testFile.trim(), pushList.trim()); in printTestSuiteContent()
|
/cts/tests/jdwp/runner/host-side/src/com/android/compatibility/testtype/ |
D | DalvikTest.java | 303 public void setIncludeTestFile(File testFile) { in setIncludeTestFile() argument 304 mIncludeTestFile = testFile; in setIncludeTestFile() 311 public void setExcludeTestFile(File testFile) { in setExcludeTestFile() argument 312 mExcludeTestFile = testFile; in setExcludeTestFile()
|
/cts/common/device-side/util-axt/tests/src/com/android/compatibility/common/util/ |
D | DeviceReportTest.java | 90 public void testFile() throws Exception { in testFile() method in DeviceReportTest
|
/cts/common/device-side/util/tests/src/com/android/compatibility/common/util/ |
D | DeviceReportTest.java | 90 public void testFile() throws Exception { in testFile() method in DeviceReportTest
|
/cts/tests/tests/os/src/android/os/storage/cts/ |
D | StorageManagerTest.java | 96 final File testFile = new File(mountDir, "test1.txt"); in doMountAndUnmountObbNormal() local 99 assertTrue("test1.txt does not exist in OBB dir", testFile.exists()); in doMountAndUnmountObbNormal() 100 assertFileContains(testFile, TEST1_NEW_CONTENTS); in doMountAndUnmountObbNormal()
|