/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/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/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/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-axt/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()
|