Home
last modified time | relevance | path

Searched refs:getState (Results 1 – 16 of 16) sorted by relevance

/libcore/luni/src/main/java/java/util/concurrent/
DSemaphore.java146 return getState(); in getPermits()
151 int available = getState(); in nonfairTryAcquireShared()
161 int current = getState(); in tryReleaseShared()
172 int current = getState(); in reducePermits()
183 int current = getState(); in drainPermits()
219 int available = getState(); in tryAcquireShared()
DCountDownLatch.java141 return getState(); in getCount()
145 return (getState() == 0) ? 1 : -1; in tryAcquireShared()
151 int c = getState(); in tryReleaseShared()
DThreadPoolExecutor.java597 return getState() != 0; in isHeldExclusively()
621 if (getState() >= 0 && (t = thread) != null && !t.isInterrupted()) { in interruptIfStarted()
DForkJoinPool.java1010 (s = wt.getState()) != Thread.State.BLOCKED && in isApparentlyUnblocked()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DSignatureTest.java63 assertEquals(0, s.getState()); in testConstructor()
69 assertEquals(0, s1.getState()); in testConstructor()
74 assertEquals(0, s2.getState()); in testConstructor()
100 assertEquals("state", MySignature1.UNINITIALIZED, s.getState()); in testGetProvider()
107 assertEquals("state", MySignature1.UNINITIALIZED, s.getState()); in testGetAlgorithm()
118 assertEquals("state", MySignature1.VERIFY, s.getState()); in testInitVerifyPublicKey()
138 assertEquals("state", MySignature1.VERIFY, s.getState()); in testInitVerifyCertificate()
159 assertEquals("state", MySignature1.SIGN, s.getState()); in testInitSignPrivateKey()
193 assertEquals("state", MySignature1.SIGN, s.getState()); in testInitSignPrivateKeySecureRandom()
228 assertEquals("state", MySignature1.SIGN, s.getState()); in testSign()
[all …]
/libcore/luni/src/main/java/java/util/concurrent/locks/
DReentrantLock.java103 int c = getState(); in nonfairTryAcquire()
121 int c = getState() - releases; in tryRelease()
146 return getState() == 0 ? null : getExclusiveOwnerThread(); in getOwner()
150 return isHeldExclusively() ? getState() : 0; in getHoldCount()
154 return getState() != 0; in isLocked()
205 int c = getState(); in tryAcquire()
DReentrantReadWriteLock.java312 setState(getState()); // ensures visibility of readHolds in Sync()
345 int nextc = getState() - releases; in tryRelease()
366 int c = getState(); in tryAcquire()
406 int c = getState(); in tryReleaseShared()
438 int c = getState(); in tryAcquireShared()
477 int c = getState(); in fullTryAcquireShared()
530 int c = getState(); in tryWriteLock()
552 int c = getState(); in tryReadLock()
592 return ((exclusiveCount(getState()) == 0) ? in getOwner()
598 return sharedCount(getState()); in getReadLockCount()
[all …]
DAbstractQueuedLongSynchronizer.java290 protected final long getState() { in getState() method in AbstractQueuedLongSynchronizer
1364 long s = getState(); in toString()
1470 long savedState = getState(); in fullyRelease()
DAbstractQueuedSynchronizer.java516 protected final int getState() { in getState() method in AbstractQueuedSynchronizer
1590 int s = getState(); in toString()
1696 int savedState = getState(); in fullyRelease()
/libcore/luni/src/test/java/libcore/java/lang/
DOldThreadTest.java306 Thread.State state = Thread.currentThread().getState(); in test_getState()
347 assertEquals(Thread.State.NEW, th.getState()); in test_getState()
350 assertEquals(Thread.State.RUNNABLE, th.getState()); in test_getState()
355 assertEquals(Thread.State.WAITING, th.getState()); in test_getState()
360 assertEquals(Thread.State.BLOCKED, th.getState()); in test_getState()
366 assertEquals(Thread.State.TIMED_WAITING, th.getState()); in test_getState()
371 assertEquals(Thread.State.TERMINATED, th.getState()); in test_getState()
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
DMySignature1.java114 public int getState() { in getState() method in MySignature1
/libcore/libart/src/main/java/java/lang/
DThread.java590 public State getState() { in getState() method in Thread
603 if (getState() == Thread.State.TERMINATED) { in getThreadGroup()
/libcore/jsr166-tests/src/test/java/jsr166/
DJSR166TestCase.java628 Thread.State s = thread.getState(); in waitForThreadToEnterWaitState()
711 if (t.getState() != Thread.State.TERMINATED) { in awaitTermination()
DAbstractQueuedSynchronizerTest.java49 int state = getState(); in isHeldExclusively()
60 if (getState() != LOCKED) throw new IllegalMonitorStateException(); in tryRelease()
99 public boolean isSignalled() { return getState() != 0; } in isSignalled()
DAbstractQueuedLongSynchronizerTest.java46 long state = getState(); in isHeldExclusively()
57 if (getState() != LOCKED) throw new IllegalMonitorStateException(); in tryRelease()
95 public boolean isSignalled() { return getState() != 0; } in isSignalled()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DThreadTest.java946 Thread.State state = Thread.currentThread().getState(); in test_getState()