Searched refs:availablePermits (Results 1 – 6 of 6) sorted by relevance
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | SemaphoreTest.java | 186 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/ |
D | SemaphoreTest.java | 163 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/ |
D | Semaphore.java | 629 public int availablePermits() { in availablePermits() method in Semaphore
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | FtpURLConnectionTest.java | 436 assertEquals(expectedConnectionAttempts, connectionAttempts.availablePermits()); in waitAndAssertConnectionCount()
|
/libcore/ojluni/src/test/java/lang/ref/ |
D | CleanerTest.java | 493 return semaphore.availablePermits() != 0; in isCleaned()
|
/libcore/api/ |
D | current.txt | 16298 method public int availablePermits();
|