Home
last modified time | relevance | path

Searched refs:filePath (Results 1 – 7 of 7) sorted by relevance

/test/vts/tests/selinux_test/src/com/android/tests/selinux/
DKernelSelinuxFileApiTest.java55 String filePath = "/sys/fs/selinux/checkreqprot"; in testSelinuxCheckReqProt() local
56 CLog.i("Testing existence of %s", filePath); in testSelinuxCheckReqProt()
58 "%s: File does not exist.".format(filePath), getDevice().doesFileExist(filePath)); in testSelinuxCheckReqProt()
59 CLog.i("Testing permissions of %s", filePath); in testSelinuxCheckReqProt()
60 String permissionBits = TargetFileUtils.getPermission(filePath, getDevice()); in testSelinuxCheckReqProt()
63 CLog.i("Testing format of %s", filePath); in testSelinuxCheckReqProt()
65 getDevice().pullFile(filePath, selinuxTmpFile); in testSelinuxCheckReqProt()
73 String filePath = "/sys/fs/selinux/policy"; in testSelinuxPolicy() local
74 CLog.i("Testing existence of %s", filePath); in testSelinuxPolicy()
76 "%s: File does not exist.".format(filePath), getDevice().doesFileExist(filePath)); in testSelinuxPolicy()
[all …]
/test/vts-testcase/kernel/api/sysfs/src/com/android/tests/sysfs/
DKernelApiSysfsTest.java68 String filePath = "/sys/devices/system/cpu/online"; in testCpuOnlineFormat() local
69 assertTrue(TargetFileUtils.isReadOnly(filePath, getDevice())); in testCpuOnlineFormat()
70 String content = getDevice().pullFileContents(filePath).trim(); in testCpuOnlineFormat()
74 private void isReadOnlyAndIntegerContent(String filePath) throws Exception { in isReadOnlyAndIntegerContent() argument
75 assertTrue("Failed readonly check of " + filePath, in isReadOnlyAndIntegerContent()
76 TargetFileUtils.isReadOnly(filePath, getDevice())); in isReadOnlyAndIntegerContent()
77 String content = getDevice().pullFileContents(filePath).trim(); in isReadOnlyAndIntegerContent()
82 private void isReadWriteAndIntegerContent(String filePath) throws Exception { in isReadWriteAndIntegerContent() argument
83 assertTrue("Failed readwrite check of " + filePath, in isReadWriteAndIntegerContent()
84 TargetFileUtils.isReadWriteOnly(filePath, getDevice())); in isReadWriteAndIntegerContent()
[all …]
/test/app_compat/csuite/harness/src/test/java/com/android/csuite/core/
DFileBasedTemplateMappingProviderTest.java47 String filePath = createTemplateMappingFile(""); in get_emptyFile_returnsEmptyStream() local
48 FileBasedTemplateMappingProvider sut = createSubjectUnderTest(filePath); in get_emptyFile_returnsEmptyStream()
66 String filePath = in get_fileContainsCommentLines_ignoresComments() local
69 FileBasedTemplateMappingProvider sut = createSubjectUnderTest(filePath); in get_fileContainsCommentLines_ignoresComments()
78 String filePath = createTemplateMappingFile("\n\n\n"); in get_fileContainsEmptyLines_ignoresEmptyLines() local
79 FileBasedTemplateMappingProvider sut = createSubjectUnderTest(filePath); in get_fileContainsEmptyLines_ignoresEmptyLines()
88 String filePath = in get_lineContainsTooMuchItems_throwsException() local
95 FileBasedTemplateMappingProvider sut = createSubjectUnderTest(filePath); in get_lineContainsTooMuchItems_throwsException()
102 String filePath = createTemplateMappingFile("1::::2"); in get_lineContainsWrongSeparater_throwsException() local
103 FileBasedTemplateMappingProvider sut = createSubjectUnderTest(filePath); in get_lineContainsWrongSeparater_throwsException()
[all …]
/test/catbox/report/src/com/android/catbox/result/
DResultReportCollector.java284 private void pullFileUsingFilePath(ITestDevice device, IBuildInfo buildInfo, String filePath, in pullFileUsingFilePath() argument
287 if (Strings.isNullOrEmpty(filePath) || Strings.isNullOrEmpty(destPath)) { in pullFileUsingFilePath()
291 filePath, destPath)); in pullFileUsingFilePath()
298 filePath, destPath)); in pullFileUsingFilePath()
301 if (!device.doesFileExist(filePath)) { in pullFileUsingFilePath()
305 filePath)); in pullFileUsingFilePath()
331 boolean isSuccess = device.pullFile(filePath, destinationFile); in pullFileUsingFilePath()
337 filePath, destPath)); in pullFileUsingFilePath()
344 filePath, destPath)); in pullFileUsingFilePath()
/test/mlts/benchmark/src/com/android/nn/benchmark/core/sl/
DSupportLibraryDriverHandler.java71 …private static InputStream getInputStreamFromApk(String apkPath, String filePath) throws IOExcepti… in getInputStreamFromApk() argument
72 … Log.i(TAG, String.format("Getting input stream from APK '%s' and file '%s'.", apkPath, filePath)); in getInputStreamFromApk()
75 JarEntry jarEntry = jarFile.getJarEntry(filePath); in getInputStreamFromApk()
/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/result/suite/
DCertificationChecksumHelperTest.java95 String filePath = mWorkingDir.getName() + "/" + mFakeLogFile.getName(); in testCreateChecksum() local
96 assertTrue(fileChecksum.containsKey(filePath)); in testCreateChecksum()
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/result/suite/
DInteractiveResultReporter.java231 static boolean isScreenshotFile(Path filePath) { in isScreenshotFile() argument
232 String extSuffix = filePath.getFileName().toString().toLowerCase(Locale.ROOT); in isScreenshotFile()