Home
last modified time | relevance | path

Searched refs:doesFileExist (Results 1 – 8 of 8) sorted by relevance

/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/targetprep/
DMediaPreparerTest.java153 when(mMockDevice.doesFileExist(shortFile, TEST_USER_ID)).thenReturn(true); in testCopyMediaFiles()
154 when(mMockDevice.doesFileExist(fullFile, TEST_USER_ID)).thenReturn(true); in testCopyMediaFiles()
156 when(mMockDevice.doesFileExist(mMediaPreparer.mBaseDeviceModuleDir, TEST_USER_ID)) in testCopyMediaFiles()
172 when(mMockDevice.doesFileExist(shortFile, TEST_USER_ID)).thenReturn(true); in testMediaFilesExistOnDeviceTrue()
173 when(mMockDevice.doesFileExist(fullFile, TEST_USER_ID)).thenReturn(true); in testMediaFilesExistOnDeviceTrue()
182 when(mMockDevice.doesFileExist(mMediaPreparer.mBaseDeviceModuleDir, TEST_USER_ID)) in testMediaFilesExistOnDeviceTrueWithPushAll()
193 when(mMockDevice.doesFileExist(firstFileChecked, TEST_USER_ID)).thenReturn(false); in testMediaFilesExistOnDeviceFalse()
202 when(mMockDevice.doesFileExist(mMediaPreparer.mBaseDeviceModuleDir, TEST_USER_ID)) in testMediaFilesExistOnDevice_differentUserId()
218 when(mMockDevice.doesFileExist(mMediaPreparer.mBaseDeviceModuleDir, newTestUserId)) in testSetUp_setsUserIdFromProperty()
245 when(mMockDevice.doesFileExist(mMediaPreparer.mBaseDeviceModuleDir, TEST_USER_ID)) in testPushAll()
[all …]
/test/vts/tests/selinux_test/src/com/android/tests/selinux/
DKernelSelinuxFileApiTest.java58 "%s: File does not exist.".format(filePath), getDevice().doesFileExist(filePath)); in testSelinuxCheckReqProt()
76 "%s: File does not exist.".format(filePath), getDevice().doesFileExist(filePath)); in testSelinuxPolicy()
85 "%s: File does not exist.".format(filePath), getDevice().doesFileExist(filePath)); in testSelinuxNull()
/test/vts-testcase/kernel/api/sysfs/src/com/android/tests/sysfs/
DKernelApiSysfsTest.java50 if (getDevice().doesFileExist(state)) { in testAndroidUSB()
118 if (getDevice().doesFileExist(f)) { in testPerCpuCpufreq()
123 if (getDevice().doesFileExist(f)) { in testPerCpuCpufreq()
128 if (getDevice().doesFileExist(f)) { in testPerCpuCpufreq()
134 if (getDevice().doesFileExist(f)) { in testPerCpuCpufreq()
146 if (getDevice().doesFileExist(f)) { in testPerCpuCpufreq()
231 if (getDevice().doesFileExist("/dev/rtc0")) { in testRtcHctosys()
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/targetprep/
DMediaPreparer.java246 return device.doesFileExist(mBaseDeviceModuleDir, mUserId); in mediaFilesExistOnDevice()
254 if (!device.doesFileExist(deviceShortFilePath, mUserId) in mediaFilesExistOnDevice()
255 || !device.doesFileExist(deviceFullFilePath, mUserId)) { in mediaFilesExistOnDevice()
483 if (!device.doesFileExist(deviceShortFilePath, mUserId) in copyVideoFiles()
484 || !device.doesFileExist(deviceFullFilePath, mUserId)) { in copyVideoFiles()
491 if (!device.doesFileExist(deviceShortFilePath, mUserId)) { in copyVideoFiles()
495 if (!device.doesFileExist(deviceFullFilePath, mUserId)) { in copyVideoFiles()
504 if (!device.doesFileExist(mBaseDeviceModuleDir, mUserId)) { in copyAll()
DDeviceFileCollector.java78 if (device.doesFileExist(mSrcFile)) { in run()
/test/catbox/report/src/com/android/catbox/result/
DResultReportCollector.java132 if (!doesFileExist(device, fileContentUri)) { in pullFileUsingContentUri()
196 private boolean doesFileExist(ITestDevice device, String contentUri) in doesFileExist() method in ResultReportCollector
301 if (!device.doesFileExist(filePath)) { in pullFileUsingFilePath()
388 if (!device.doesFileExist(dirPath)) { in pullDirectoryUsingDirPath()
/test/app_compat/csuite/test_scripts/src/main/java/com/android/art/targetprep/
DAllProcessesImgdiag.java53 Assert.assertTrue(testInformation.getDevice().doesFileExist(mImgdiagOutPath)); in tearDown()
DAggregateImgdiagOutput.java58 Assert.assertTrue(testInformation.getDevice().doesFileExist(mImgdiagOutPath)); in tearDown()