Searched refs:permissionBits (Results 1 – 2 of 2) sorted by relevance
/test/vts/tools/vts-core-tradefed/src/com/android/tradefed/util/ |
D | TargetFileUtils.java | 55 public static boolean hasPermission(FilePermission permission, String permissionBits) { in hasPermission() argument 57 if (hasPermission(permissionBits, i, permission)) { in hasPermission() 93 String permissionBits, int groupIndex, FilePermission permission) { in hasPermission() argument 97 if (permissionBits.length() != PERMISSION_GROUPS) { in hasPermission() 99 String.format("Invalid permission bits: %s", permissionBits.length() + "")); in hasPermission() 112 int perm = Integer.valueOf(permissionBits.charAt(i) + ""); in hasPermission() 124 permissionBits)); in hasPermission() 171 String permissionBits = getPermission(filepath, device); in isReadOnly() local 172 return (hasPermission(FilePermission.READ, permissionBits) in isReadOnly() 173 && !hasPermission(FilePermission.WRITE, permissionBits) in isReadOnly() [all …]
|
/test/vts/testcases/host/selinux_test/src/com/android/tests/selinux/ |
D | KernelSelinuxFileApiTest.java | 60 String permissionBits = TargetFileUtils.getPermission(filePath, getDevice()); in testSelinuxCheckReqProt() local 61 assertTrue(TargetFileUtils.hasPermission(FilePermission.READ, permissionBits) in testSelinuxCheckReqProt() 62 && TargetFileUtils.hasPermission(FilePermission.WRITE, permissionBits)); in testSelinuxCheckReqProt() 87 String permissionBits = TargetFileUtils.getPermission(filePath, getDevice()); in testSelinuxNull() local 88 assertTrue(TargetFileUtils.hasPermission(FilePermission.READ, permissionBits) in testSelinuxNull() 89 && TargetFileUtils.hasPermission(FilePermission.WRITE, permissionBits)); in testSelinuxNull()
|