Home
last modified time | relevance | path

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

/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()