/libcore/ojluni/src/main/java/java/nio/channels/ |
H A D | FileLock.java | 44 * <p> A file lock is either <i>exclusive</i> or <i>shared</i>. A shared lock 46 * exclusive lock, but does allow them to acquire overlapping shared locks. An 51 * <p> Whether a lock is exclusive or shared may be determined by invoking its 52 * {@link #isShared isShared} method. Some platforms do not support shared 53 * locks, in which case a request for a shared lock is automatically converted 121 private final boolean shared; field in class:FileLock 137 * @param shared 138 * <tt>true</tt> if this lock is shared, 145 long position, long size, boolean shared) 144 FileLock(FileChannel channel, long position, long size, boolean shared) argument [all...] |
H A D | FileChannel.java | 772 * <p> Some operating systems do not support shared locks, in which case a 773 * request for a shared lock is automatically converted into a request for 774 * an exclusive lock. Whether the newly-acquired lock is shared or 790 * @param shared 791 * <tt>true</tt> to request a shared lock, in which case this 819 * If <tt>shared</tt> is <tt>true</tt> this channel was not 823 * If <tt>shared</tt> is <tt>false</tt> but this channel was not 833 public abstract FileLock lock(long position, long size, boolean shared) argument 899 * <p> Some operating systems do not support shared locks, in which case a 900 * request for a shared loc 944 tryLock(long position, long size, boolean shared) argument [all...] |
/libcore/ojluni/src/main/java/sun/nio/ch/ |
H A D | FileLockImpl.java | 36 FileLockImpl(FileChannel channel, long position, long size, boolean shared) argument 38 super(channel, position, size, shared);
|
H A D | FileDispatcher.java | 44 boolean shared) throws IOException; 43 lock(FileDescriptor fd, boolean blocking, long pos, long size, boolean shared) argument
|
H A D | FileDispatcherImpl.java | 96 boolean shared) throws IOException 99 return lock0(fd, blocking, pos, size, shared); 163 long size, boolean shared) throws IOException; 95 lock(FileDescriptor fd, boolean blocking, long pos, long size, boolean shared) argument 162 lock0(FileDescriptor fd, boolean blocking, long pos, long size, boolean shared) argument
|
H A D | FileChannelImpl.java | 1006 public FileLock lock(long position, long size, boolean shared) argument 1010 if (shared && !readable) 1012 if (!shared && !writable) 1014 FileLockImpl fli = new FileLockImpl(this, position, size, shared); 1026 n = nd.lock(fd, true, position, size, shared); 1030 assert shared; 1051 public FileLock tryLock(long position, long size, boolean shared) argument 1055 if (shared && !readable) 1057 if (!shared && !writable) 1059 FileLockImpl fli = new FileLockImpl(this, position, size, shared); [all...] |
/libcore/dalvik/src/main/native/ |
H A D | sub.mk | 11 # Any shared/static libs that are listed here must also
|
/libcore/ojluni/src/main/native/ |
H A D | FileSystemPreferences.c | 68 jclass thisclass, jstring java_fname, jint permission, jboolean shared) { 79 if (shared == JNI_TRUE) { 85 if (shared == JNI_TRUE) { 67 Java_java_util_prefs_FileSystemPreferences_lockFile0(JNIEnv *env, jclass thisclass, jstring java_fname, jint permission, jboolean shared) argument
|
H A D | FileDispatcherImpl.c | 165 jboolean shared) 179 if (shared == JNI_TRUE) { 163 FileDispatcherImpl_lock0(JNIEnv *env, jobject this, jobject fdo, jboolean block, jlong pos, jlong size, jboolean shared) argument
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
H A D | FileLockTest.java | 43 boolean shared) { 44 super(channel, position, size, shared); 42 MockFileLock(FileChannel channel, long position, long size, boolean shared) argument
|
H A D | FileChannelTest.java | 799 // shared lock, but it works on Windows & Linux. 1086 // shared lock, but it works on Windows & Linux. 3127 public FileLock lock(long position, long size, boolean shared) argument 3131 if (0 == position && Long.MAX_VALUE == size && false == shared) { 3186 public FileLock tryLock(long position, long size, boolean shared) argument 3190 if (0 == position && Long.MAX_VALUE == size && false == shared) {
|
/libcore/ojluni/src/main/java/java/util/prefs/ |
H A D | FileSystemPreferences.java | 718 boolean shared; 721 shared = false; /* use exclusive lock for user prefs */ 724 otherwise use shared lock. */ 725 shared = !isSystemRootWritable; 728 if (!lockFile(shared)) 883 private boolean lockFile(boolean shared) throws SecurityException{ argument 892 result = lockFile0(lockFile.getCanonicalPath(), perm, shared); 941 lockFile0(String fileName, int permission, boolean shared); argument
|
/libcore/ojluni/src/main/java/java/util/ |
H A D | Calendar.java | 819 * <code>True</code> if zone references to a shared TimeZone object. 2079 // If the TimeZone object is shared by other Calendar instances, then 2096 * Sets the sharedZone flag to <code>shared</code>. 2098 void setZoneShared(boolean shared) { argument 2099 sharedZone = shared;
|
/libcore/ |
H A D | JavaLibrary.mk | 410 # for shared defintion of libcore_to_document
|