Home
last modified time | relevance | path

Searched refs:availablePermits (Results 1 – 6 of 6) sorted by relevance

/libcore/ojluni/src/test/java/util/concurrent/tck/
DSemaphoreTest.java186 assertEquals(permits, s.availablePermits()); in testConstructor()
197 assertEquals(permits, s.availablePermits()); in testConstructorDefaultsToNonFair()
209 assertEquals(2, s.availablePermits()); in testTryAcquireInSameThread()
212 assertEquals(0, s.availablePermits()); in testTryAcquireInSameThread()
215 assertEquals(0, s.availablePermits()); in testTryAcquireInSameThread()
420 assertEquals(0, s.availablePermits()); in testDrainPermits()
423 assertEquals(10, s.availablePermits()); in testDrainPermits()
425 assertEquals(0, s.availablePermits()); in testDrainPermits()
462 assertEquals(10, s.availablePermits()); in testReducePermits()
464 assertEquals(10, s.availablePermits()); in testReducePermits()
[all …]
/libcore/jsr166-tests/src/test/java/jsr166/
DSemaphoreTest.java163 assertEquals(permits, s.availablePermits()); in testConstructor()
174 assertEquals(permits, s.availablePermits()); in testConstructorDefaultsToNonFair()
186 assertEquals(2, s.availablePermits()); in testTryAcquireInSameThread()
189 assertEquals(0, s.availablePermits()); in testTryAcquireInSameThread()
192 assertEquals(0, s.availablePermits()); in testTryAcquireInSameThread()
397 assertEquals(0, s.availablePermits()); in testDrainPermits()
400 assertEquals(10, s.availablePermits()); in testDrainPermits()
402 assertEquals(0, s.availablePermits()); in testDrainPermits()
439 assertEquals(10, s.availablePermits()); in testReducePermits()
441 assertEquals(10, s.availablePermits()); in testReducePermits()
[all …]
/libcore/ojluni/src/main/java/java/util/concurrent/
DSemaphore.java629 public int availablePermits() { in availablePermits() method in Semaphore
/libcore/luni/src/test/java/libcore/java/net/
DFtpURLConnectionTest.java436 assertEquals(expectedConnectionAttempts, connectionAttempts.availablePermits()); in waitAndAssertConnectionCount()
/libcore/ojluni/src/test/java/lang/ref/
DCleanerTest.java493 return semaphore.availablePermits() != 0; in isCleaned()
/libcore/api/
Dcurrent.txt16298 method public int availablePermits();