Searched refs:shared (Results 1 – 6 of 6) sorted by relevance
/libcore/luni/src/main/java/java/nio/channels/ |
D | FileLock.java | 83 private final boolean shared; field in FileLock 99 protected FileLock(FileChannel channel, long position, long size, boolean shared) { in FileLock() argument 106 this.shared = shared; in FileLock() 142 return shared; in isShared() 199 return "FileLock[position=" + position + ", size=" + size + ", shared=" + shared + "]"; in toString()
|
D | FileChannel.java | 250 public abstract 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
|
/libcore/luni/src/main/java/java/lang/ |
D | AbstractStringBuilder.java | 42 private boolean shared; field in AbstractStringBuilder 55 shared = true; in shareValue() 70 shared = false; in set() 88 shared = false; in AbstractStringBuilder() 98 shared = false; in enlargeBuffer() 164 } else if (shared) { in append0() 166 shared = false; in append0() 236 if (!shared) { in delete0() 243 shared = false; in delete0() 378 if (!shared) { in move() [all …]
|
/libcore/luni/src/main/java/java/nio/ |
D | FileChannelImpl.java | 94 …private FileLock basicLock(long position, long size, boolean shared, boolean wait) throws IOExcept… in basicLock() argument 97 if (!shared) { in basicLock() 101 if (shared) { in basicLock() 110 FileLock pendingLock = new FileLockImpl(this, position, size, shared); in basicLock() 114 flock.l_type = (short) (shared ? F_RDLCK : F_WRLCK); in basicLock() 140 public FileLockImpl(FileChannel channel, long position, long size, boolean shared) { in FileLockImpl() argument 141 super(channel, position, size, shared); in FileLockImpl() 159 public final FileLock lock(long position, long size, boolean shared) throws IOException { in lock() argument 166 resultLock = basicLock(position, size, shared, true); in lock() 179 public final FileLock tryLock(long position, long size, boolean shared) throws IOException { in tryLock() argument [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
D | FileLockTest.java | 43 boolean shared) { in MockFileLock() argument 44 super(channel, position, size, shared); in MockFileLock()
|
D | FileChannelTest.java | 3030 public FileLock lock(long position, long size, boolean shared) in lock() argument 3034 if (0 == position && Long.MAX_VALUE == size && false == shared) { in lock() 3089 public FileLock tryLock(long position, long size, boolean shared) in tryLock() argument 3093 if (0 == position && Long.MAX_VALUE == size && false == shared) { in tryLock()
|