Home
last modified time | relevance | path

Searched refs:hasPermission (Results 1 – 3 of 3) sorted by relevance

/test/vts/tools/vts-core-tradefed/tests/src/com/android/compatibility/tradefed/util/
DTargetFileUtilsTest.java47 if (hasPermission(x, FilePermission.READ) in testHasPermission()
48 || hasPermission(y, FilePermission.READ) in testHasPermission()
49 || hasPermission(z, FilePermission.READ)) { in testHasPermission()
50 assertTrue(TargetFileUtils.hasPermission(FilePermission.READ, permission)); in testHasPermission()
53 if (hasPermission(x, FilePermission.WRITE) in testHasPermission()
54 || hasPermission(y, FilePermission.WRITE) in testHasPermission()
55 || hasPermission(z, FilePermission.WRITE)) { in testHasPermission()
56 assertTrue(TargetFileUtils.hasPermission(FilePermission.WRITE, permission)); in testHasPermission()
59 if (hasPermission(x, FilePermission.EXECUTE) in testHasPermission()
60 || hasPermission(y, FilePermission.EXECUTE) in testHasPermission()
[all …]
/test/vts/tools/vts-core-tradefed/src/com/android/tradefed/util/
DTargetFileUtils.java55 public static boolean hasPermission(FilePermission permission, String permissionBits) { in hasPermission() method in TargetFileUtils
57 if (hasPermission(permissionBits, i, permission)) { in hasPermission()
92 private static boolean hasPermission( in hasPermission() method in TargetFileUtils
172 return (hasPermission(FilePermission.READ, permissionBits) in isReadOnly()
173 && !hasPermission(FilePermission.WRITE, permissionBits) in isReadOnly()
174 && !hasPermission(FilePermission.EXECUTE, permissionBits)); in isReadOnly()
187 return (hasPermission(FilePermission.READ, permissionBits) in isReadWriteOnly()
188 && hasPermission(FilePermission.WRITE, permissionBits) in isReadWriteOnly()
189 && !hasPermission(FilePermission.EXECUTE, permissionBits)); in isReadWriteOnly()
/test/vts/testcases/host/selinux_test/src/com/android/tests/selinux/
DKernelSelinuxFileApiTest.java61 assertTrue(TargetFileUtils.hasPermission(FilePermission.READ, permissionBits) in testSelinuxCheckReqProt()
62 && TargetFileUtils.hasPermission(FilePermission.WRITE, permissionBits)); in testSelinuxCheckReqProt()
88 assertTrue(TargetFileUtils.hasPermission(FilePermission.READ, permissionBits) in testSelinuxNull()
89 && TargetFileUtils.hasPermission(FilePermission.WRITE, permissionBits)); in testSelinuxNull()