Home
last modified time | relevance | path

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

/libcore/dalvik/src/test/java/libcore/dalvik/system/
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.openWithCallsite("testEnabled_OpoenWIthCallsiteNotClosed");
71 assertUnreleasedResources(owner, 1);
77 ResourceOwner owner = new ResourceOwner();
78 owner.open();
[all …]
/libcore/ojluni/src/main/java/sun/nio/fs/
DNativeBuffer.java44 private Object owner; field in NativeBuffer
85 void setOwner(Object owner) { in setOwner() argument
86 this.owner = owner; in setOwner()
90 Object owner() { in owner() method in NativeBuffer
91 return owner; in owner()
DFileOwnerAttributeViewImpl.java89 return ((PosixFileAttributeView)view).readAttributes().owner(); in getOwner()
96 public void setOwner(UserPrincipal owner) in setOwner() argument
100 ((PosixFileAttributeView)view).setOwner(owner); in setOwner()
102 ((AclFileAttributeView)view).setOwner(owner); in setOwner()
DUnixFileAttributes.java57 private volatile UserPrincipal owner; field in UnixFileAttributes
192 public UserPrincipal owner() { in owner() method in UnixFileAttributes
193 if (owner == null) { in owner()
195 if (owner == null) { in owner()
196 owner = UnixUserPrincipals.fromUid(st_uid); in owner()
200 return owner; in owner()
DUnixFileAttributeViews.java196 builder.add(OWNER_NAME, attrs.owner()); in addRequestedPosixAttributes()
264 public void setOwner(UserPrincipal owner) in setOwner() argument
267 if (owner == null) in setOwner()
269 if (!(owner instanceof UnixUserPrincipals.User)) in setOwner()
271 if (owner instanceof UnixUserPrincipals.Group) in setOwner()
273 int uid = ((UnixUserPrincipals.User)owner).uid(); in setOwner()
279 return readAttributes().owner(); in getOwner()
DUnixSecureDirectoryStream.java548 return readAttributes().owner(); in getOwner()
552 public void setOwner(UserPrincipal owner) in setOwner() argument
555 if (!(owner instanceof UnixUserPrincipals.User)) in setOwner()
557 if (owner instanceof UnixUserPrincipals.Group) in setOwner()
559 int uid = ((UnixUserPrincipals.User)owner).uid(); in setOwner()
DUnixNativeDispatcher.java47 if (buffer.owner() == path) in copyToNativeBuffer()
/libcore/luni/src/main/java/libcore/io/
DIoUtils.java99 private static long generateFdOwnerId(Object owner) { in generateFdOwnerId() argument
100 if (owner == null) { in generateFdOwnerId()
106 if (owner instanceof java.io.FileInputStream) { in generateFdOwnerId()
108 } else if (owner instanceof java.io.FileOutputStream) { in generateFdOwnerId()
110 } else if (owner instanceof java.io.RandomAccessFile) { in generateFdOwnerId()
112 } else if (owner instanceof java.net.DatagramSocketImpl) { in generateFdOwnerId()
114 } else if (owner instanceof java.net.SocketImpl) { in generateFdOwnerId()
116 } else if (isParcelFileDescriptor(owner)) { in generateFdOwnerId()
132 long tagValue = System.identityHashCode(owner) & mask; in generateFdOwnerId()
155 public static void setFdOwner(@NonNull FileDescriptor fd, @NonNull Object owner) { in setFdOwner() argument
[all …]
/libcore/ojluni/src/main/java/java/security/acl/
DOwner.java57 public boolean addOwner(Principal caller, Principal owner) in addOwner() argument
81 public boolean deleteOwner(Principal caller, Principal owner) in deleteOwner() argument
93 public boolean isOwner(Principal owner); in isOwner() argument
/libcore/ojluni/src/test/java/nio/file/attribute/
DPosixFileAttributeViewTest.java256 view.setOwner(attrs.owner()); in ownerTests()
260 UserPrincipal owner = (UserPrincipal)Files.getAttribute(file, "posix:owner"); in ownerTests() local
261 Files.setAttribute(file, "posix:owner", owner); in ownerTests()
287 System.out.format("lookup: %s\n", attrs.owner().getName()); in lookupPrincipalTests()
289 UserPrincipal owner = lookupService.lookupPrincipalByName(attrs.owner().getName()); in lookupPrincipalTests() local
290 if (owner instanceof GroupPrincipal) in lookupPrincipalTests()
292 if (!owner.equals(attrs.owner())) in lookupPrincipalTests()
/libcore/ojluni/src/main/java/java/util/logging/
DLogManager.java290 final LogManager owner = this; in ensureLogManagerInitialized() local
291 if (initializationDone || owner != manager) { in ensureLogManagerInitialized()
337 owner.readPrimordialConfiguration(); in ensureLogManagerInitialized()
340 owner.rootLogger = owner.new RootLogger(); in ensureLogManagerInitialized()
341 owner.addLogger(owner.rootLogger); in ensureLogManagerInitialized()
342 if (!owner.rootLogger.isLevelInitialized()) { in ensureLogManagerInitialized()
343 owner.rootLogger.setLevel(defaultLevel); in ensureLogManagerInitialized()
354 owner.addLogger(global); in ensureLogManagerInitialized()
647 final LogManager owner = getOwner(); in demandLogger() local
648 return owner.demandLogger(name, resourceBundleName, null); in demandLogger()
[all …]
/libcore/test-rules/src/main/java/libcore/junit/util/
DResourceLeakageDetector.java200 public void assertUnreleasedResourceCount(Object owner, int expectedCount) { in assertUnreleasedResourceCount() argument
202 FINALIZER_CHECKER.accept(owner, expectedCount); in assertUnreleasedResourceCount()
/libcore/ojluni/src/main/java/java/nio/file/attribute/
DPosixFileAttributes.java52 UserPrincipal owner(); in owner() method
DFileOwnerAttributeView.java100 void setOwner(UserPrincipal owner) throws IOException; in setOwner() argument
/libcore/benchmarks/libs/
Dcaliper.jar.txt13 "Licensor" shall mean the copyright owner or entity authorized by
14 the copyright owner that is granting the License.
52 submitted to Licensor for inclusion in the Work by the copyright owner
54 the copyright owner. For the purposes of this definition, "submitted"
61 designated in writing by the copyright owner as "Not a Contribution."
190 Copyright [yyyy] [name of copyright owner]
/libcore/ojluni/src/main/java/java/util/concurrent/
DForkJoinPool.java821 final ForkJoinWorkerThread owner; // owning thread or null if shared field in ForkJoinPool.WorkQueue
829 WorkQueue(ForkJoinPool pool, ForkJoinWorkerThread owner) { in WorkQueue() argument
831 this.owner = owner; in WorkQueue()
1161 ForkJoinWorkerThread thread = owner; in runTask()
1341 (wt = owner) != null && in isApparentlyUnblocked()
2458 if ((wt = w.owner) != null) { in tryTerminate()
/libcore/ojluni/annotations/hiddenapi/java/io/
DObjectStreamClass.java525 private final java.lang.Thread owner; field in ObjectStreamClass.EntryFuture
528 owner = null;
/libcore/ojluni/src/main/java/java/nio/file/
DFiles.java2120 public static Path setOwner(Path path, UserPrincipal owner)
2127 view.setOwner(owner);
/libcore/ojluni/src/main/java/java/io/
DObjectStreamClass.java411 private final Thread owner = Thread.currentThread(); field in ObjectStreamClass.EntryFuture
460 return owner; in getOwner()
/libcore/luni/src/test/java/libcore/java/nio/file/
DFiles2Test.java264 String owner = readFromInputStream(statProcess.getInputStream()).trim(); in test_getOwner() local
265 assertEquals(owner, Files.getOwner(filesSetup.getDataFilePath()).getName()); in test_getOwner()
/libcore/api/
Dcurrent.txt7073 method public java.nio.file.attribute.UserPrincipal owner();