HomeSort by relevance Sort by last modified time
    Searched refs:tryLock (Results 1 - 25 of 170) sorted by null

1 2 3 4 5 6 7

  /system/nfc/halimpl/bcm2079x/adaptation/
Mutex.h 76 ** Function: tryLock
83 bool tryLock();
Mutex.cpp 98 ** Function: tryLock
105 bool Mutex::tryLock() {
108 ALOGE("Mutex::tryLock: error=0x%X", res);
  /libcore/ojluni/src/main/java/java/util/concurrent/locks/
Lock.java 98 * #tryLock()}), an attempt to acquire the lock that can be
100 * the lock that can timeout ({@link #tryLock(long, TimeUnit)}).
247 * if (lock.tryLock()) {
263 boolean tryLock();
323 boolean tryLock(long time, TimeUnit unit) throws InterruptedException;
ReentrantLock.java 68 * Also note that the untimed {@link #tryLock()} method does not
127 * Performs non-fair tryLock. tryAcquire is implemented in
128 * subclasses, but both need nonfair try for trylock method.
346 * fair ordering policy, a call to {@code tryLock()} <em>will</em>
352 * {@link #tryLock(long, TimeUnit) tryLock(0, TimeUnit.SECONDS) }
365 public boolean tryLock() {
378 * are waiting for the lock. This is in contrast to the {@link #tryLock()}
379 * method. If you want a timed {@code tryLock} that does permit barging on
383 * if (lock.tryLock() ||
    [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
ReadOnlyBinaryDictionary.java 58 if (mLock.readLock().tryLock()) {
72 if (mLock.readLock().tryLock()) {
84 if (mLock.readLock().tryLock()) {
96 if (mLock.readLock().tryLock()) {
108 if (mLock.readLock().tryLock()) {
  /external/deqp/framework/delibs/decpp/
deMutex.hpp 45 bool tryLock (void) throw();
114 inline bool Mutex::tryLock (void) throw()
deThreadSafeRingBuffer.hpp 110 if (!m_writeMutex.tryLock())
139 if (!m_readMutex.tryLock())
deBlockBuffer.hpp 276 if (!m_writeLock.tryLock())
325 if (!m_writeLock.tryLock())
355 if (!m_readLock.tryLock())
  /packages/apps/Nfc/nci/jni/
Mutex.h 78 ** Function: tryLock
85 bool tryLock ();
Mutex.cpp 108 ** Function: tryLock
115 bool Mutex::tryLock ()
120 ALOGE("Mutex::tryLock: error=0x%X", res);
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
FileChannelLockingTest.java 159 readOnlyChannel.tryLock();
169 readOnlyChannel.tryLock(0, 99, false);
177 readOnlyChannel.tryLock(-99, 0, true);
184 FileLock tmpLock = readOnlyChannel.tryLock(0, 10, true);
189 FileLock lock = readOnlyChannel.tryLock(10, 788, true);
194 readOnlyChannel.tryLock(1, 23, true);
201 FileLock adjacentLock = readOnlyChannel.tryLock(1, 3, true);
FileChannelTest.java 881 * @tests java.nio.channels.FileChannel#tryLock()
886 readOnlyFileChannel.tryLock();
892 writeOnlyFileChannel.tryLock();
898 readWriteFileChannel.tryLock();
904 * @tests java.nio.channels.FileChannel#tryLock()
908 readOnlyFileChannel.tryLock();
914 * @tests java.nio.channels.FileChannel#tryLock()
917 fileLock = writeOnlyFileChannel.tryLock();
926 * @tests java.nio.channels.FileChannel#tryLock()
929 fileLock = writeOnlyFileChannel.tryLock();
    [all...]
  /hardware/broadcom/wlan/bcmdhd/wifi_hal/
sync.h 18 int tryLock() {
  /libcore/ojluni/src/main/java/java/nio/channels/
AsynchronousFileChannel.java 604 * @see #tryLock()
606 public abstract FileLock tryLock(long position, long size, boolean shared)
612 * <p> An invocation of this method of the form {@code ch.tryLock()}
616 * ch.{@link #tryLock(long,long,boolean) tryLock}(0L, Long.MAX_VALUE, false) </pre>
637 * @see #tryLock(long,long,boolean)
639 public final FileLock tryLock() throws IOException {
640 return tryLock(0L, Long.MAX_VALUE, false);
    [all...]
FileChannel.java     [all...]
  /frameworks/minikin/libs/minikin/
MinikinInternal.cpp 31 LOG_ALWAYS_FATAL_IF(gMinikinLock.tryLock() == 0);
  /system/core/libutils/include/utils/
Mutex.h 64 status_t tryLock();
137 inline status_t Mutex::tryLock() {
  /external/guava/guava/src/com/google/common/util/concurrent/
Monitor.java 375 if (!fair && lock.tryLock()) {
383 return lock.tryLock(timeoutNanos, TimeUnit.NANOSECONDS);
402 return lock.tryLock(time, unit);
413 return lock.tryLock();
478 if (fair || !lock.tryLock()) {
480 if (!lock.tryLock(time, unit)) {
522 if (fair || !lock.tryLock()) {
526 locked = lock.tryLock(timeoutNanos, TimeUnit.NANOSECONDS);
643 if (!lock.tryLock(time, unit)) {
670 if (!lock.tryLock()) {
    [all...]
CycleDetectingLockFactory.java 54 * {@code lockInterruptibly()}, or {@code tryLock()} methods will result in the
184 * {@code tryLock()}. Although {@code tryLock()} technically recovers from
836 public boolean tryLock() {
839 return super.tryLock();
846 public boolean tryLock(long timeout, TimeUnit unit)
850 return super.tryLock(timeout, unit);
    [all...]
  /external/guava/guava-tests/test/com/google/common/util/concurrent/
CycleDetectingLockFactoryTest.java 473 assertFalse(lockA.tryLock());
476 assertTrue(lockA.tryLock());
484 assertFalse(writeLockA.tryLock());
485 assertFalse(readLockA.tryLock());
488 assertTrue(writeLockA.tryLock());
489 assertTrue(readLockA.tryLock());
497 assertFalse(writeLockA.tryLock());
498 assertTrue(readLockA.tryLock());
502 assertTrue(writeLockA.tryLock());
503 assertTrue(readLockA.tryLock());
    [all...]
  /hardware/qcom/wlan/qcwcn/wifi_hal/
sync.h 33 int tryLock() {
  /packages/apps/Camera2/src/com/android/camera/one/v2/core/
FrameServerImpl.java 103 if (mCameraLock.tryLock()) {
  /cts/tests/tests/libcorefileio/src/android/cts/
FileChannelInterProcessLockTest.java 86 * java.nio.channels.[Asynchronouse]FileChannel#tryLock()
134 * java.nio.channels.[Asynchronous]FileChannel#tryLock(long, long, boolean)
198 * java.nio.channels.[Asynchronous]FileChannel#tryLock(long, long, boolean)
409 * Checks the behavior of java.nio.Channels.[Asynchronous]FileChannel#tryLock()
410 * and #tryLock(J, J, Z)
546 /** Equivalent to {@code tryLock()} */
549 /** Equivalent to {@code tryLock({@link #LOCK_POSITION}, {@link #LOCK_SIZE}, false)} */
553 * Equivalent to {@code tryLock({@code {@link #LOCK_POSITION} + {@link #LOCK_SIZE}},
558 /** Equivalent to {@code tryLock({@link #LOCK_POSITION}, {@link #LOCK_SIZE}, true)} */
562 * Equivalent to {@code tryLock({@code {@link #LOCK_POSITION} + {@link #LOCK_SIZE}}
    [all...]
  /packages/apps/Camera2/src/com/android/camera/tinyplanet/
TinyPlanetPreview.java 82 if (mLock != null && mLock.tryLock()) {
  /libcore/luni/src/test/java/libcore/java/nio/channels/
OldFileChannelTest.java 209 writeOnlyFileChannel.tryLock(0, -1, false);
216 writeOnlyFileChannel.tryLock(-1, 0, false);
223 readWriteFileChannel.tryLock(-1, -1, false);
230 readWriteFileChannel.tryLock(Long.MAX_VALUE, 1, false);
239 FileLock lock = readWriteFileChannel.tryLock(tooBig, 1, false);
243 lock = readWriteFileChannel.tryLock(0, tooBig, false);
249 FileLock lockOne = readWriteFileChannel.tryLock(0, 10, false);
250 FileLock lockTwo = readWriteFileChannel.tryLock(10, 20, false);
254 lockOne = readWriteFileChannel.tryLock(0, 10, false);
    [all...]

Completed in 1108 milliseconds

1 2 3 4 5 6 7