Home
last modified time | relevance | path

Searched refs:testFile (Results 1 – 14 of 14) sorted by relevance

/cts/tests/tests/os/src/android/os/cts/
DFileObserverTest.java42 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/
DReadMultiViewTest.java51 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/
DReadableUriExtraToClipDataTest.java63 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/
DKeyValueBackupAgent.java48 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/
DSimpleIOActivity.java31 File testFile = new File(getFilesDir(), "StoragedTest_Temp_FG"); in onStart() local
34 FileWriter w = new FileWriter(testFile); in onStart()
DSimpleIOService.java78 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/
DSampleHostResultTest.java113 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/
DIntentTests.java131 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/
DProcfsHostTests.java89 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/
DTestSuiteContentReport.java368 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/
DDalvikTest.java303 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/
DDeviceReportTest.java90 public void testFile() throws Exception { in testFile() method in DeviceReportTest
/cts/common/device-side/util-axt/tests/src/com/android/compatibility/common/util/
DDeviceReportTest.java90 public void testFile() throws Exception { in testFile() method in DeviceReportTest
/cts/tests/tests/os/src/android/os/storage/cts/
DStorageManagerTest.java96 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()