Home
last modified time | relevance | path

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

/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.java111 boolean shared) throws IOException in lock() argument
115 return lock0(fd, blocking, pos, size, shared); in lock()
175 long size, boolean shared) throws IOException; in lock0() argument
DFileChannelImpl.java1119 public FileLock lock(long position, long size, boolean shared) in lock() argument
1123 if (shared && !readable) in lock()
1125 if (!shared && !writable) in lock()
1127 FileLockImpl fli = new FileLockImpl(this, position, size, shared); in lock()
1139 n = nd.lock(fd, true, position, size, shared); in lock()
1143 assert shared; in lock() local
1164 public FileLock tryLock(long position, long size, boolean shared) in tryLock() argument
1168 if (shared && !readable) in tryLock()
1170 if (!shared && !writable) in tryLock()
1172 FileLockImpl fli = new FileLockImpl(this, position, size, shared); in tryLock()
[all …]
DFileDispatcher.java46 boolean shared) throws IOException; in lock() argument
/libcore/ojluni/src/main/java/java/nio/channels/
DAsynchronousFileChannel.java459 boolean shared, in lock() argument
532 public abstract Future<FileLock> lock(long position, long size, boolean shared); in lock() argument
606 public abstract FileLock tryLock(long position, long size, boolean shared) in tryLock() argument
DFileChannel.java1011 public abstract FileLock lock(long position, long size, boolean shared) in lock() argument
1122 public abstract FileLock tryLock(long position, long size, boolean shared) in tryLock() 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);
941 lockFile0(String fileName, int permission, boolean shared);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DFileLockTest.java43 boolean shared) { in MockFileLock() argument
44 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/java/util/
DCalendar.java290 void setZoneShared(boolean shared) { in setZoneShared() argument
/libcore/ojluni/src/main/java/java/util/
DCalendar.java2904 void setZoneShared(boolean shared) { in setZoneShared() argument
2905 sharedZone = shared; in setZoneShared()