Home
last modified time | relevance | path

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

/tools/tradefederation/core/javatests/com/android/tradefed/util/
DFileUtilTest.java327 Set<PosixFilePermission> perms = null; in testUnixModeToPosix() local
329 perms = FileUtil.unixModeToPosix(0777); in testUnixModeToPosix()
331 perms.remove(PosixFilePermission.OWNER_READ) && in testUnixModeToPosix()
332 perms.remove(PosixFilePermission.OWNER_WRITE) && in testUnixModeToPosix()
333 perms.remove(PosixFilePermission.OWNER_EXECUTE) && in testUnixModeToPosix()
334 perms.remove(PosixFilePermission.GROUP_READ) && in testUnixModeToPosix()
335 perms.remove(PosixFilePermission.GROUP_WRITE) && in testUnixModeToPosix()
336 perms.remove(PosixFilePermission.GROUP_EXECUTE) && in testUnixModeToPosix()
337 perms.remove(PosixFilePermission.OTHERS_READ) && in testUnixModeToPosix()
338 perms.remove(PosixFilePermission.OTHERS_WRITE) && in testUnixModeToPosix()
[all …]
DFileUtilFuncTest.java418 String perms = ls(file.getPath()); in assertUnixPerms() local
422 file, expPerms, perms), in assertUnixPerms()
423 perms.startsWith(expPerms) || perms.startsWith(altExpPerms)); in assertUnixPerms()
424 return perms; in assertUnixPerms()
/tools/asuite/adevice/src/
Dfingerprint.rs88 let mut perms = 0; in from_symlink() localVariable
92 perms = metadata.permissions().mode(); in from_symlink()
97 permission_bits: perms, in from_symlink()
103 let mut perms = 0; in from_file() localVariable
105 perms = metadata.permissions().mode(); in from_file()
113 permission_bits: perms, in from_file()
599 let mut perms = fs::metadata(&file_path).expect("Getting permissions").permissions(); in fingerprint_file_for_file() localVariable
600 perms.set_mode(0o100655); in fingerprint_file_for_file()
601 assert!(fs::set_permissions(&file_path, perms).is_ok()); in fingerprint_file_for_file()
/tools/tradefederation/core/common_util/com/android/tradefed/util/
DFileUtil.java185 public static boolean chmod(File file, String perms) { in chmod() argument
188 RunUtil.getDefault().runTimedCmd(10 * 1000, sChmod, perms, file.getAbsolutePath()); in chmod()
/tools/repohooks/tools/
Dcheckpatch.pl7304 my $perms = $2;
7307 my $octal_perms = perms_to_octal($perms);
7314 …$fixed[$fixlinenr] =~ s/\bDEVICE_ATTR\s*\(\s*$var\s*,\s*\Q$perms\E\s*,\s*$show\s*,\s*$store\s*\)/D…
7322 …$fixed[$fixlinenr] =~ s/\bDEVICE_ATTR\s*\(\s*$var\s*,\s*\Q$perms\E\s*,\s*$show\s*,\s*NULL\s*\)/DEV…
7330 …$fixed[$fixlinenr] =~ s/\bDEVICE_ATTR\s*\(\s*$var\s*,\s*\Q$perms\E\s*,\s*NULL\s*,\s*$store\s*\)/DE…
7350 "DEVICE_ATTR unusual permissions '$perms' used\n" . $herecurr);