Searched refs:FilePermission (Results 1 – 4 of 4) sorted by relevance
/test/vts/tools/vts-core-tradefed/tests/src/com/android/compatibility/tradefed/util/ |
D | TargetFileUtilsTest.java | 27 import com.android.tradefed.util.TargetFileUtils.FilePermission; 47 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() [all …]
|
/test/vts/tools/vts-core-tradefed/src/com/android/tradefed/util/ |
D | TargetFileUtils.java | 32 public enum FilePermission { enum in TargetFileUtils 39 FilePermission(int permissionNum) { in FilePermission() method in TargetFileUtils.FilePermission 55 public static boolean hasPermission(FilePermission permission, String permissionBits) { in hasPermission() 93 String permissionBits, int groupIndex, FilePermission permission) { in hasPermission() 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/ |
D | KernelSelinuxFileApiTest.java | 28 import com.android.tradefed.util.TargetFileUtils.FilePermission; 61 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()
|
/test/vts-testcase/kernel/api/sysfs/src/com/android/tests/sysfs/ |
D | KernelApiSysfsTest.java | 28 import com.android.tradefed.util.TargetFileUtils.FilePermission;
|