Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/java/nio/file/attribute/
DPosixFilePermissions.java73 public static String toString(Set<PosixFilePermission> perms) { in toString() argument
75 writeBits(sb, perms.contains(OWNER_READ), perms.contains(OWNER_WRITE), in toString()
76 perms.contains(OWNER_EXECUTE)); in toString()
77 writeBits(sb, perms.contains(GROUP_READ), perms.contains(GROUP_WRITE), in toString()
78 perms.contains(GROUP_EXECUTE)); in toString()
79 writeBits(sb, perms.contains(OTHERS_READ), perms.contains(OTHERS_WRITE), in toString()
80 perms.contains(OTHERS_EXECUTE)); in toString()
126 public static Set<PosixFilePermission> fromString(String perms) { in fromString() argument
127 if (perms.length() != 9) in fromString()
130 if (isR(perms.charAt(0))) result.add(OWNER_READ); in fromString()
[all …]
DAclEntry.java68 private final Set<AclEntryPermission> perms; field in AclEntry
77 Set<AclEntryPermission> perms, in AclEntry() argument
82 this.perms = perms; in AclEntry()
101 private Set<AclEntryPermission> perms; field in AclEntry.Builder
106 Set<AclEntryPermission> perms, in Builder() argument
109 assert perms != null && flags != null; in Builder()
112 this.perms = perms; in Builder()
131 return new AclEntry(type, who, perms, flags); in build()
180 public Builder setPermissions(Set<AclEntryPermission> perms) { in setPermissions() argument
181 if (perms.isEmpty()) { in setPermissions()
[all …]
DPosixFileAttributeView.java176 void setPermissions(Set<PosixFilePermission> perms) throws IOException; in setPermissions() argument
/libcore/ojluni/src/main/java/java/security/
DUnresolvedPermissionCollection.java57 private transient Map<String, List<UnresolvedPermission>> perms; field in UnresolvedPermissionCollection
64 perms = new HashMap<String, List<UnresolvedPermission>>(11); in UnresolvedPermissionCollection()
83 v = perms.get(up.getName()); in add()
86 perms.put(up.getName(), v); in add()
100 return perms.get(p.getClass().getName()); in getUnresolvedPermissions()
126 for (List<UnresolvedPermission> l : perms.values()) { in elements()
164 new Hashtable<>(perms.size()*2); in writeObject()
168 Set<Map.Entry<String, List<UnresolvedPermission>>> set = perms.entrySet(); in writeObject()
206 perms = new HashMap<String, List<UnresolvedPermission>>(permissions.size()*2); in readObject()
217 perms.put(e.getKey(), list); in readObject()
DSecureClassLoader.java206 PermissionCollection perms = getPermissions(cs); in getProtectionDomain() local
207 pd = new ProtectionDomain(cs, perms, this, null); in getProtectionDomain()
/libcore/ojluni/src/main/java/sun/nio/fs/
DUnixFileAttributes.java218 HashSet<PosixFilePermission> perms = new HashSet<>(); in permissions() local
221 perms.add(PosixFilePermission.OWNER_READ); in permissions()
223 perms.add(PosixFilePermission.OWNER_WRITE); in permissions()
225 perms.add(PosixFilePermission.OWNER_EXECUTE); in permissions()
228 perms.add(PosixFilePermission.GROUP_READ); in permissions()
230 perms.add(PosixFilePermission.GROUP_WRITE); in permissions()
232 perms.add(PosixFilePermission.GROUP_EXECUTE); in permissions()
235 perms.add(PosixFilePermission.OTHERS_READ); in permissions()
237 perms.add(PosixFilePermission.OTHERS_WRITE); in permissions()
239 perms.add(PosixFilePermission.OTHERS_EXECUTE); in permissions()
[all …]
DUnixFileModeAttribute.java48 static int toUnixMode(Set<PosixFilePermission> perms) { in toUnixMode() argument
50 for (PosixFilePermission perm: perms) { in toUnixMode()
DUnixFileAttributeViews.java257 public void setPermissions(Set<PosixFilePermission> perms) in setPermissions() argument
260 setMode(UnixFileModeAttribute.toUnixMode(perms)); in setPermissions()
DUnixSecureDirectoryStream.java493 public void setPermissions(Set<PosixFilePermission> perms) in setPermissions() argument
506 fchmod(fd, UnixFileModeAttribute.toUnixMode(perms)); in setPermissions()
/libcore/ojluni/src/test/java/nio/file/attribute/
DPosixFileAttributeViewTest.java56 Set<PosixFilePermission> perms = PosixFilePermissions.fromString(mode); in testPermissions() local
59 Files.setPosixFilePermissions(file, perms); in testPermissions()
61 if (!current.equals(perms)) { in testPermissions()
64 PosixFilePermissions.toString(perms)); in testPermissions()
68 Files.setAttribute(file, "posix:permissions", perms); in testPermissions()
70 if (!current.equals(perms)) { in testPermissions()
73 PosixFilePermissions.toString(perms)); in testPermissions()
367 Set<PosixFilePermission> perms = new HashSet<>(); in exceptionsTests() local
368 perms.add(null); in exceptionsTests()
369 view.setPermissions(perms); in exceptionsTests()
[all …]
DAclEntryEmptySetTest.java53 Set<AclEntryPermission> perms = new HashSet<>(); in main() local
54 AclEntry.newBuilder().setPermissions(perms); in main()
/libcore/jsr166-tests/src/test/java/jsr166/
DJSR166TestCase.java1149 Permissions perms = new Permissions();
1152 perms.add(permission);
1154 void addPermission(Permission perm) { perms.add(perm); }
1155 void clearPermissions() { perms = new Permissions(); }
1157 return perms;
1160 return perms;
1163 return perms.implies(p);
1168 for (Enumeration<Permission> e = perms.elements(); e.hasMoreElements();)
/libcore/ojluni/src/main/java/java/net/
DURLClassLoader.java651 PermissionCollection perms = super.getPermissions(codesource); in getPermissions() local
711 perms.add(p); in getPermissions()
713 return perms; in getPermissions()
/libcore/ojluni/src/main/java/java/util/
DCalendar.java3520 PermissionCollection perms = perm.newPermissionCollection();
3521 perms.add(perm);
3523 new ProtectionDomain(null, perms)
/libcore/ojluni/src/main/java/sun/net/ftp/impl/
DFtpClient.java276 boolean[][] perms = new boolean[3][3]; in parseLine()
279 perms[i][j] = (permstring.charAt((i * 3) + j) != '-'); in parseLine()
285 file.setPermissions(perms); in parseLine()
/libcore/ojluni/src/main/java/java/nio/file/
DFiles.java2038 Set<PosixFilePermission> perms)
2045 view.setPermissions(perms);