Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/java/nio/channels/
DFileLock.java121 private final boolean shared; field in FileLock
145 long position, long size, boolean shared) in FileLock() argument
156 this.shared = shared; in FileLock()
217 return shared; in isShared()
280 + " " + (shared ? "shared" : "exclusive") in toString()
DFileChannel.java833 public abstract FileLock lock(long position, long size, boolean shared) in lock() argument
944 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()
DFileDispatcherImpl.java96 boolean shared) throws IOException in lock() argument
99 return lock0(fd, blocking, pos, size, shared); in lock()
163 long size, boolean shared) throws IOException; in lock0() argument
DFileChannelImpl.java1006 public FileLock lock(long position, long size, boolean shared) in lock() argument
1010 if (shared && !readable) in lock()
1012 if (!shared && !writable) in lock()
1014 FileLockImpl fli = new FileLockImpl(this, position, size, shared); in lock()
1026 n = nd.lock(fd, true, position, size, shared); in lock()
1030 assert shared; in lock() local
1051 public FileLock tryLock(long position, long size, boolean shared) in tryLock() argument
1055 if (shared && !readable) in tryLock()
1057 if (!shared && !writable) in tryLock()
1059 FileLockImpl fli = new FileLockImpl(this, position, size, shared); in tryLock()
[all …]
DFileDispatcher.java44 boolean shared) throws IOException; in lock() argument
/libcore/ojluni/src/main/native/
DFileSystemPreferences.c68 jclass thisclass, jstring java_fname, jint permission, jboolean shared) { in Java_java_util_prefs_FileSystemPreferences_lockFile0() argument
79 if (shared == JNI_TRUE) { in Java_java_util_prefs_FileSystemPreferences_lockFile0()
85 if (shared == JNI_TRUE) { in Java_java_util_prefs_FileSystemPreferences_lockFile0()
DFileDispatcherImpl.c165 jboolean shared) in FileDispatcherImpl_lock0() argument
179 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.java3127 public FileLock lock(long position, long size, boolean shared) in lock() argument
3131 if (0 == position && Long.MAX_VALUE == size && false == shared) { in lock()
3186 public FileLock tryLock(long position, long size, boolean shared) in tryLock() argument
3190 if (0 == position && Long.MAX_VALUE == size && false == shared) { in tryLock()
/libcore/ojluni/src/main/java/java/util/
DCalendar.java2098 void setZoneShared(boolean shared) { in setZoneShared() argument
2099 sharedZone = shared; in setZoneShared()