Home
last modified time | relevance | path

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

/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/util/
DTargetFileUtils.java55 public static boolean hasPermission(FilePermission permission, String permissionBits) { in hasPermission() argument
57 if (hasPermission(permissionBits, i, permission)) { in hasPermission()
95 String permissionBits, int groupIndex, FilePermission permission) { in hasPermission() argument
99 if (permissionBits.length() != PERMISSION_GROUPS) { in hasPermission()
101 String.format("Invalid permission bits: %s", permissionBits.length() + "")); in hasPermission()
114 int perm = Integer.valueOf(permissionBits.charAt(i) + ""); in hasPermission()
127 permissionBits)); in hasPermission()
176 String permissionBits = getPermission(filepath, device); in isReadOnly() local
177 return (hasPermission(FilePermission.READ, permissionBits) in isReadOnly()
178 && !hasPermission(FilePermission.WRITE, permissionBits) in isReadOnly()
[all …]