/external/libnfc-nci/halimpl/bcm2079x/adaptation/ |
Mutex.h | 82 ** Function: tryLock 89 bool tryLock ();
|
Mutex.cpp | 109 ** Function: tryLock 116 bool Mutex::tryLock () 121 ALOGE ("Mutex::tryLock: error=0x%X", res);
|
/libcore/luni/src/main/java/java/util/concurrent/locks/ |
Lock.java | 68 * #tryLock()}), an attempt to acquire the lock that can be 70 * the lock that can timeout ({@link #tryLock(long, TimeUnit)}). 216 * if (lock.tryLock()) { 232 boolean tryLock(); 292 boolean tryLock(long time, TimeUnit unit) throws InterruptedException;
|
ReentrantLock.java | 38 * Also note that the untimed {@link #tryLock()} method does not 97 * Performs non-fair tryLock. tryAcquire is implemented in 98 * subclasses, but both need nonfair try for trylock method. 316 * fair ordering policy, a call to {@code tryLock()} <em>will</em> 322 * {@link #tryLock(long, TimeUnit) tryLock(0, TimeUnit.SECONDS) } 335 public boolean tryLock() { 348 * are waiting for the lock. This is in contrast to the {@link #tryLock()} 349 * method. If you want a timed {@code tryLock} that does permit barging on 353 * if (lock.tryLock() || [all...] |
ReentrantReadWriteLock.java | 52 * {@link ReadLock#tryLock()} and {@link WriteLock#tryLock()} methods 523 * Performs tryLock for write, enabling barging in both modes. 544 * Performs tryLock for read, enabling barging in both modes. 754 * fair ordering policy, a call to {@code tryLock()} 760 * for this lock, then use {@link #tryLock(long, TimeUnit) 761 * tryLock(0, TimeUnit.SECONDS) } which is almost equivalent 770 public boolean tryLock() { 785 * lock. This is in contrast to the {@link #tryLock()} 786 * method. If you want a timed {@code tryLock} that doe [all...] |
/packages/apps/Nfc/nci/jni/ |
Mutex.h | 78 ** Function: tryLock 85 bool tryLock ();
|
Mutex.cpp | 106 ** Function: tryLock 113 bool Mutex::tryLock () 118 ALOGE ("Mutex::tryLock: error=0x%X", res);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
ReadOnlyBinaryDictionary.java | 64 if (mLock.readLock().tryLock()) { 77 if (mLock.readLock().tryLock()) { 89 if (mLock.readLock().tryLock()) { 101 if (mLock.readLock().tryLock()) {
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/nio/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 | 863 * @tests java.nio.channels.FileChannel#tryLock() 867 // Verify that calling tryLock() leads to the method 868 // tryLock(long, long, boolean) being called with a 0 for the 871 mockFileChannel.tryLock(); 876 * @tests java.nio.channels.FileChannel#tryLock(long, long, boolean) 881 readOnlyFileChannel.tryLock(0, 10, false); 889 writeOnlyFileChannel.tryLock(0, 10, false); 897 readWriteFileChannel.tryLock(0, 10, false); 905 readWriteFileChannel.tryLock(-1, 0, false); 913 * @tests java.nio.channels.FileChannel#tryLock(long, long, boolean [all...] |
/libcore/luni/src/main/java/java/nio/channels/ |
FileChannel.java | 192 * <code>tryLock()</code> methods. 570 * {@code fileChannel.tryLock(0L, Long.MAX_VALUE, false);} 586 public final FileLock tryLock() throws IOException { 587 return tryLock(0L, Long.MAX_VALUE, false); 619 public abstract FileLock tryLock(long position, long size, boolean shared) [all...] |
/external/chromium_org/third_party/WebKit/Source/wtf/ |
ThreadingPrimitives.h | 81 bool tryLock(); 95 MutexTryLocker(Mutex& mutex) : m_mutex(mutex), m_locked(mutex.tryLock()) { }
|
ThreadingPthreads.cpp | 318 bool Mutex::tryLock()
|
/system/core/include/utils/ |
Mutex.h | 59 status_t tryLock(); 117 inline status_t Mutex::tryLock() {
|
/hardware/samsung_slsi/exynos5/libexynosutils/ |
ExynosMutex.cpp | 157 bool ExynosMutex::tryLock(void) 167 ALOGD("%s::%s'trylock() start", __func__, m_name); 170 ret = ((Mutex *)m_mutex)->tryLock(); 173 ALOGD("%s::%s'trylock() end", __func__, m_name); 247 return ((ExynosMutex *)handle)->tryLock();
|
ExynosMutex.h | 70 //! trylock Mutex 71 bool tryLock(void);
|
/external/guava/guava/src/com/google/common/util/concurrent/ |
Monitor.java | 311 if (!fair && lock.tryLock()) { 321 return lock.tryLock(remainingNanos, TimeUnit.NANOSECONDS); 340 return lock.tryLock(time, unit); 351 return lock.tryLock(); 410 if (!fair && lock.tryLock()) { 414 if (!lock.tryLock(time, unit)) { 445 if (!fair && lock.tryLock()) { 453 if (lock.tryLock(remainingNanos, TimeUnit.NANOSECONDS)) { 564 if (!lock.tryLock(time, unit)) { 591 if (!lock.tryLock()) { [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...] |
/external/chromium_org/third_party/WebKit/Source/modules/webdatabase/ |
DatabaseBackend.cpp | 130 ASSERT(!m_transactionInProgressMutex.tryLock()); // Locked by caller.
|
DatabaseBackendBase.cpp | 147 ASSERT(!guidMutex().tryLock()); 156 ASSERT(!guidMutex().tryLock()); 172 ASSERT(!guidMutex().tryLock()); 180 ASSERT(!guidMutex().tryLock());
|
/external/chromium_org/third_party/WebKit/Source/modules/webdatabase/sqlite/ |
SQLiteDatabase.cpp | 122 while (!m_lockingMutex.tryLock()) { 135 ASSERT(!m_lockingMutex.tryLock());
|
/libcore/luni/src/main/java/java/util/concurrent/ |
ConcurrentHashMap.java | 282 * The maximum number of times to tryLock in a prescan before 334 HashEntry<K,V> node = tryLock() ? null : 458 while (!tryLock()) { 496 while (!tryLock()) { 520 if (!tryLock()) 555 if (!tryLock()) 579 if (!tryLock()) [all...] |
/external/chromium_org/third_party/WebKit/Source/modules/webaudio/ |
AudioContext.cpp | 740 bool AudioContext::tryLock(bool& mustReleaseLock) 749 // In release build treat tryLock() as lock() (since above ASSERT(isAudioThread) never fires) - this is the best we can do. 762 hasLock = m_contextGraphMutex.tryLock(); 802 // It's OK if the tryLock() fails, we'll just take slightly longer to pick up the changes. 804 if (tryLock(mustReleaseLock)) { 820 // Must use a tryLock() here too. Don't worry, the lock will very rarely be contended and this method is called frequently. 824 if (tryLock(mustReleaseLock)) { 825 // Take care of finishing any derefs where the tryLock() failed previously. [all...] |
AudioContext.h | 194 bool tryLock(bool& mustReleaseLock); 223 // In AudioNode::deref() a tryLock() is used for calling finishDeref(), but if it fails keep track here.
|