Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/java/nio/channels/
DFileLock.java128 private final boolean shared; field in FileLock
152 long position, long size, boolean shared) in FileLock() argument
168 this.shared = shared; in FileLock()
195 long position, long size, boolean shared) in FileLock() argument
211 this.shared = shared; in FileLock()
272 return shared; in isShared()
340 + " " + (shared ? "shared" : "exclusive") in toString()
DAsynchronousFileChannel.java469 boolean shared, in lock() argument
542 public abstract Future<FileLock> lock(long position, long size, boolean shared); in lock() argument
616 public abstract FileLock tryLock(long position, long size, boolean shared) in tryLock() argument
DFileChannel.java1021 public abstract FileLock lock(long position, long size, boolean shared) in lock() argument
1132 public abstract FileLock tryLock(long position, long size, boolean shared) in tryLock() argument
/libcore/ojluni/src/main/java/sun/nio/ch/
DFileLockImpl.java36 FileLockImpl(FileChannel channel, long position, long size, boolean shared) in FileLockImpl() argument
38 super(channel, position, size, shared); in FileLockImpl()
41 FileLockImpl(AsynchronousFileChannel channel, long position, long size, boolean shared) in FileLockImpl() argument
43 super(channel, position, size, shared); in FileLockImpl()
DAsynchronousFileChannelImpl.java108 boolean shared, in implLock() argument
115 boolean shared) in lock() argument
118 return implLock(position, size, shared, null, null); in lock()
124 boolean shared, in lock() argument
130 implLock(position, size, shared, attachment, handler); in lock()
162 protected final FileLockImpl addToFileLockTable(long position, long size, boolean shared) { in addToFileLockTable() argument
176 fli = new FileLockImpl(this, position, size, shared); in addToFileLockTable()
DSimpleAsynchronousFileChannelImpl.java175 final boolean shared, in implLock() argument
179 if (shared && !reading) in implLock()
181 if (!shared && !writing) in implLock()
185 final FileLockImpl fli = addToFileLockTable(position, size, shared); in implLock()
206 n = nd.lock(fdObj, true, position, size, shared); in implLock()
243 public FileLock tryLock(long position, long size, boolean shared) in tryLock() argument
246 if (shared && !reading) in tryLock()
248 if (!shared && !writing) in tryLock()
252 FileLockImpl fli = addToFileLockTable(position, size, shared); in tryLock()
262 n = nd.lock(fdObj, false, position, size, shared); in tryLock()
DFileDispatcherImpl.java107 boolean shared) throws IOException in lock() argument
111 return lock0(fd, blocking, pos, size, shared); in lock()
171 long size, boolean shared) throws IOException; in lock0() argument
DFileChannelImpl.java1117 public FileLock lock(long position, long size, boolean shared) in lock() argument
1121 if (shared && !readable) in lock()
1123 if (!shared && !writable) in lock()
1125 FileLockImpl fli = new FileLockImpl(this, position, size, shared); in lock()
1137 n = nd.lock(fd, true, position, size, shared); in lock()
1141 assert shared; in lock() local
1162 public FileLock tryLock(long position, long size, boolean shared) in tryLock() argument
1166 if (shared && !readable) in tryLock()
1168 if (!shared && !writable) in tryLock()
1170 FileLockImpl fli = new FileLockImpl(this, position, size, shared); in tryLock()
[all …]
DFileDispatcher.java46 boolean shared) throws IOException; in lock() argument
/libcore/ojluni/src/main/native/
DFileSystemPreferences.c70 jclass thisclass, jstring java_fname, jint permission, jboolean shared) { in Java_java_util_prefs_FileSystemPreferences_lockFile0() argument
81 if (shared == JNI_TRUE) { in Java_java_util_prefs_FileSystemPreferences_lockFile0()
87 if (shared == JNI_TRUE) { in Java_java_util_prefs_FileSystemPreferences_lockFile0()
DFileDispatcherImpl.c195 jboolean shared) in FileDispatcherImpl_lock0() argument
209 if (shared == JNI_TRUE) { in FileDispatcherImpl_lock0()
/libcore/ojluni/src/main/java/java/util/prefs/
DFileSystemPreferences.java718 boolean shared;
721 shared = false; /* use exclusive lock for user prefs */
725 shared = !isSystemRootWritable;
728 if (!lockFile(shared))
883 private boolean lockFile(boolean shared) throws SecurityException{
892 result = lockFile0(lockFile.getCanonicalPath(), perm, shared);
943 lockFile0(String fileName, int permission, boolean shared);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DFileLockTest.java46 boolean shared) { in MockFileLock() argument
47 super(channel, position, size, shared); in MockFileLock()
DFileChannelTest.java3128 public FileLock lock(long position, long size, boolean shared) in lock() argument
3132 if (0 == position && Long.MAX_VALUE == size && false == shared) { in lock()
3187 public FileLock tryLock(long position, long size, boolean shared) in tryLock() argument
3191 if (0 == position && Long.MAX_VALUE == size && false == shared) { in tryLock()
/libcore/ojluni/annotations/hiddenapi/sun/nio/ch/
DFileChannelImpl.java194 public java.nio.channels.FileLock lock(long position, long size, boolean shared) in lock() argument
199 public java.nio.channels.FileLock tryLock(long position, long size, boolean shared) in tryLock() argument
/libcore/ojluni/src/main/java/java/util/concurrent/locks/
DAbstractQueuedSynchronizer.java636 final int acquire(Node node, int arg, boolean shared, in acquire() argument
669 if (shared) in acquire()
683 if (shared) in acquire()
692 if (shared) in acquire()
DAbstractQueuedLongSynchronizer.java271 final int acquire(Node node, long arg, boolean shared, in acquire() argument
304 if (shared) in acquire()
318 if (shared) in acquire()
327 if (shared) in acquire()
/libcore/ojluni/annotations/hiddenapi/java/util/
DCalendar.java290 void setZoneShared(boolean shared) { in setZoneShared() argument
/libcore/ojluni/src/main/java/java/util/
DCalendar.java2982 void setZoneShared(boolean shared) { in setZoneShared() argument
2983 sharedZone = shared; in setZoneShared()
/libcore/ojluni/src/main/java/java/nio/
DDirect-X-Buffer.java.template307 … throw new UnsupportedOperationException("ByteBuffer derived from shared segments not supported");
DX-Buffer.java.template562 * Creates a new $type$ buffer whose content is a shared subsequence of
591 * Creates a new $type$ buffer whose content is a shared subsequence of
659 * buffer itself, however, will be read-only and will not allow the shared
2320 * Creates a new byte buffer whose content is a shared and aligned
/libcore/ojluni/src/test/java/util/Scanner/
Dinput.txt428 # path = /usr/somewhere/shared