Searched defs:owner (Results 1 - 13 of 13) sorted by relevance

/libcore/ojluni/src/main/java/java/nio/file/attribute/
H A DFileOwnerAttributeView.java31 * A file attribute view that supports reading or updating the owner of a file.
33 * support a file attribute that represents an identity that is the owner of
34 * the file. Often the owner of a file is the identity of the entity that
38 * be used to read or update the owner of the file.
42 * used to read or update the owner. In that case, the owner attribute is
43 * identified by the name {@code "owner"}, and the value of the attribute is
54 * have the name {@code "owner"}.
60 * Read the file owner.
62 * <p> It it implementation specific if the file owner ca
100 setOwner(UserPrincipal owner) argument
[all...]
H A DPosixFileAttributes.java46 * Returns the owner of the file.
48 * @return the file owner
52 UserPrincipal owner(); method in interface:PosixFileAttributes
55 * Returns the group owner of the file.
57 * @return the file group owner
/libcore/ojluni/src/main/java/java/security/acl/
H A DOwner.java34 * interface.) The initial owner Principal should be specified as an
43 * Adds an owner. Only owners can modify ACL contents. The caller
44 * principal must be an owner of the ACL in order to invoke this method.
45 * That is, only an owner can add another owner. The initial owner is
48 * @param caller the principal invoking this method. It must be an owner
51 * @param owner the owner that should be added to the list of owners.
53 * @return true if successful, false if owner i
57 addOwner(Principal caller, Principal owner) argument
81 deleteOwner(Principal caller, Principal owner) argument
93 isOwner(Principal owner) argument
[all...]
/libcore/ojluni/src/main/java/sun/nio/fs/
H A DFileOwnerAttributeViewImpl.java40 private static final String OWNER_NAME = "owner";
57 return "owner";
89 return ((PosixFileAttributeView)view).readAttributes().owner();
96 public void setOwner(UserPrincipal owner) argument
100 ((PosixFileAttributeView)view).setOwner(owner);
102 ((AclFileAttributeView)view).setOwner(owner);
H A DNativeBuffer.java42 // optional "owner" to avoid copying
44 private Object owner; field in class:NativeBuffer
79 void setOwner(Object owner) { argument
80 this.owner = owner;
84 Object owner() { method in class:NativeBuffer
85 return owner;
H A DUnixFileAttributeViews.java133 private static final String OWNER_NAME = "owner";
196 builder.add(OWNER_NAME, attrs.owner());
264 public void setOwner(UserPrincipal owner) argument
267 if (owner == null)
268 throw new NullPointerException("'owner' is null");
269 if (!(owner instanceof UnixUserPrincipals.User))
271 if (owner instanceof UnixUserPrincipals.Group)
272 throw new IOException("'owner' parameter can't be a group");
273 int uid = ((UnixUserPrincipals.User)owner).uid();
279 return readAttributes().owner();
[all...]
H A DUnixFileAttributes.java57 private volatile UserPrincipal owner; field in class:UnixFileAttributes
192 public UserPrincipal owner() { method in class:UnixFileAttributes
193 if (owner == null) {
195 if (owner == null) {
196 owner = UnixUserPrincipals.fromUid(st_uid);
200 return owner;
H A DUnixSecureDirectoryStream.java548 return readAttributes().owner();
552 public void setOwner(UserPrincipal owner) argument
555 if (!(owner instanceof UnixUserPrincipals.User))
557 if (owner instanceof UnixUserPrincipals.Group)
558 throw new IOException("'owner' parameter can't be a group");
559 int uid = ((UnixUserPrincipals.User)owner).uid();
/libcore/dalvik/src/test/java/libcore/dalvik/system/
H A DCloseGuardTest.java54 ResourceOwner owner = new ResourceOwner();
55 assertUnreleasedResources(owner, 0);
61 ResourceOwner owner = new ResourceOwner();
62 owner.open();
63 assertUnreleasedResources(owner, 1);
69 ResourceOwner owner = new ResourceOwner();
70 owner.open();
71 owner.close();
72 assertUnreleasedResources(owner, 0);
78 ResourceOwner owner
133 assertUnreleasedResources(ResourceOwner owner, int expectedCount) argument
[all...]
/libcore/test-rules/src/main/java/libcore/junit/util/
H A DResourceLeakageDetector.java194 * @param owner the object that owns the resource and uses {@code CloseGuard} object to
200 public void assertUnreleasedResourceCount(Object owner, int expectedCount) { argument
202 FINALIZER_CHECKER.accept(owner, expectedCount);
/libcore/ojluni/src/main/java/java/nio/file/
H A DFiles.java1833 * Suppose we require the user ID of the file owner on a system that
1924 * <td> {@code "posix:permissions,owner,size"} </td>
1925 * <td> Reads the POSX file permissions, owner, and file size. </td>
2050 * Returns the owner of a file.
2054 * access to a file attribute that is the owner of the file.
2061 * @return A user principal representing the owner of the file
2083 * Updates the file owner.
2087 * access to a file attribute that is the owner of the file.
2090 * Suppose we want to make "joe" the owner of a file:
2101 * @param owner
2120 setOwner(Path path, UserPrincipal owner) argument
[all...]
/libcore/ojluni/src/main/java/java/io/
H A DObjectStreamClass.java412 private final Thread owner = Thread.currentThread(); field in class:ObjectStreamClass.EntryFuture
461 return owner;
/libcore/ojluni/src/main/java/java/util/concurrent/
H A DForkJoinPool.java222 * The pop operation (always performed by owner) is:
819 final ForkJoinWorkerThread owner; // owning thread or null if shared field in class:ForkJoinPool.WorkQueue
820 volatile Thread parker; // == owner during call to park; else null
826 WorkQueue(ForkJoinPool pool, ForkJoinWorkerThread owner) { argument
828 this.owner = owner;
862 * Pushes a task. Call only by owner in unshared queues.
885 * by owner or with lock held -- it is OK for base, but not
914 * by owner in unshared queues.
1158 ForkJoinWorkerThread thread = owner;
[all...]

Completed in 406 milliseconds