/development/simulator/app/ |
Semaphore.h | 47 bool tryAcquire(void); // take a timeout?
|
Semaphore.cpp | 55 bool Semaphore::tryAcquire(void) 181 bool Semaphore::tryAcquire(void) 186 LOG(LOG_WARN, "sem", "tryAcquire failed (errno=%d)\n", errno); 323 bool Semaphore::tryAcquire(void) 494 bool Semaphore::tryAcquire(void)
|
Shmem.cpp | 556 return mSem.tryAcquire();
|
/libcore/luni/src/test/java/tests/api/java/util/concurrent/ |
SemaphoreTest.java | 86 * tryAcquire succeeds when sufficient permits, else fails 91 assertTrue(s.tryAcquire()); 92 assertTrue(s.tryAcquire()); 94 assertFalse(s.tryAcquire()); 143 assertTrue(s.tryAcquire(SHORT_DELAY_MS, MILLISECONDS)); 145 assertTrue(s.tryAcquire(SHORT_DELAY_MS, MILLISECONDS)); 147 assertTrue(s.tryAcquire(SHORT_DELAY_MS, MILLISECONDS)); 149 assertTrue(s.tryAcquire(SHORT_DELAY_MS, MILLISECONDS)); 151 assertTrue(s.tryAcquire(SHORT_DELAY_MS, MILLISECONDS)); 214 assertTrue(s.tryAcquire(SHORT_DELAY_MS, MILLISECONDS)) [all...] |
AbstractQueuedLongSynchronizerTest.java | 38 public boolean tryAcquire(long acquires) { 114 * tryAcquire on an released sync succeeds 118 assertTrue(rl.tryAcquire(1)); 342 * TryAcquire on exclusively held sync fails 349 threadAssertFalse(sync.tryAcquire(1)); [all...] |
AbstractQueuedSynchronizerTest.java | 34 public boolean tryAcquire(int acquires) { 111 * tryAcquire on an released sync succeeds 115 assertTrue(rl.tryAcquire(1)); 339 * TryAcquire on exclusively held sync fails 346 threadAssertFalse(sync.tryAcquire(1)); [all...] |
/libcore/luni/src/main/java/java/util/concurrent/ |
Semaphore.java | 107 * Also note that the untimed {@link #tryAcquire() tryAcquire} methods do not 322 * fair ordering policy, a call to {@code tryAcquire()} <em>will</em> 328 * {@link #tryAcquire(long, TimeUnit) tryAcquire(0, TimeUnit.SECONDS) } 334 public boolean tryAcquire() { 379 public boolean tryAcquire(long timeout, TimeUnit unit) 483 * policy, a call to {@code tryAcquire} <em>will</em> 488 * honor the fairness setting, then use {@link #tryAcquire(int, 489 * long, TimeUnit) tryAcquire(permits, 0, TimeUnit.SECONDS) [all...] |
ThreadPoolExecutor.java | 593 protected boolean tryAcquire(int unused) { 608 public boolean tryLock() { return tryAcquire(1); } [all...] |
/libcore/luni/src/main/java/java/util/concurrent/locks/ |
ReentrantLock.java | 100 * Performs non-fair tryLock. tryAcquire is 188 protected final boolean tryAcquire(int acquires) { 204 * Fair version of tryAcquire. Don't grant access unless 207 protected final boolean tryAcquire(int acquires) {
|
AbstractQueuedLongSynchronizer.java | 593 * cancel if tryAcquire throws exception) and other control, at 611 if (p == head && tryAcquire(arg)) { 638 if (p == head && tryAcquire(arg)) { 669 if (p == head && tryAcquire(arg)) { 824 protected boolean tryAcquire(long arg) { [all...] |
AbstractQueuedSynchronizer.java | 86 * <li> {@link #tryAcquire} 112 * while (!tryAcquire(arg)) { 127 * define <tt>tryAcquire</tt> and/or <tt>tryAcquireShared</tt> to 130 * In particular, most fair synchronizers can define <tt>tryAcquire</tt> 143 * invocations of <tt>tryAcquire</tt> interspersed with other 182 * public boolean tryAcquire(int acquires) { 215 * public boolean tryLock() { return sync.tryAcquire(1); } [all...] |
ReentrantReadWriteLock.java | 336 * Note that tryRelease and tryAcquire can be called by 339 * condition wait and re-established in tryAcquire. 353 protected final boolean tryAcquire(int acquires) { 525 * This is identical in effect to tryAcquire except for lack [all...] |
/external/nist-sip/java/gov/nist/javax/sip/stack/ |
IOHandler.java | 180 boolean retval = this.ioSemaphore.tryAcquire(10000, TimeUnit.MILLISECONDS); 253 boolean retval = this.ioSemaphore.tryAcquire(10000, TimeUnit.MILLISECONDS);
|
SIPServerTransaction.java | [all...] |
SIPTransaction.java | [all...] |
SIPDialog.java | [all...] |
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/ |
MediaRecorderStressTest.java | 86 if (! sem.tryAcquire(WAIT_TIMEOUT, TimeUnit.MILLISECONDS)) { 123 if (! sem.tryAcquire(WAIT_TIMEOUT, TimeUnit.MILLISECONDS)) {
|
/cts/tools/host/src/com/android/cts/ |
DeviceManager.java | 332 mSemaphore.tryAcquire(LONG_DELAY, TimeUnit.MILLISECONDS);
|
/external/nist-sip/java/gov/nist/javax/sip/ |
SipStackImpl.java | [all...] |
/prebuilt/sdk/5/ |
android.jar | |
/prebuilt/sdk/7/ |
android.jar | |
/prebuilt/sdk/8/ |
android.jar | |