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.java145 return getState(); in getPermits()
150 int available = getState(); in nonfairTryAcquireShared()
160 int current = getState(); in tryReleaseShared()
171 int current = getState(); in reducePermits()
182 int current = getState(); in drainPermits()
218 int available = getState(); in tryAcquireShared()
DCountDownLatch.java140 return getState(); in getCount()
144 return (getState() == 0) ? 1 : -1; in tryAcquireShared()
150 int c = getState(); in tryReleaseShared()
DThreadPoolExecutor.java596 return getState() != 0; in isHeldExclusively()
620 if (getState() >= 0 && (t = thread) != null && !t.isInterrupted()) { in interruptIfStarted()
DForkJoinPool.java1017 (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.java102 int c = getState(); in nonfairTryAcquire()
120 int c = getState() - releases; in tryRelease()
145 return getState() == 0 ? null : getExclusiveOwnerThread(); in getOwner()
149 return isHeldExclusively() ? getState() : 0; in getHoldCount()
153 return getState() != 0; in isLocked()
204 int c = getState(); in tryAcquire()
DReentrantReadWriteLock.java311 setState(getState()); // ensures visibility of readHolds in Sync()
344 int nextc = getState() - releases; in tryRelease()
365 int c = getState(); in tryAcquire()
405 int c = getState(); in tryReleaseShared()
437 int c = getState(); in tryAcquireShared()
476 int c = getState(); in fullTryAcquireShared()
529 int c = getState(); in tryWriteLock()
551 int c = getState(); in tryReadLock()
591 return ((exclusiveCount(getState()) == 0) ? in getOwner()
597 return sharedCount(getState()); in getReadLockCount()
[all …]
DAbstractQueuedSynchronizer.java519 protected final int getState() { in getState() method in AbstractQueuedSynchronizer
1593 int s = getState(); in toString()
1699 int savedState = getState(); in fullyRelease()
DAbstractQueuedLongSynchronizer.java289 protected final long getState() { in getState() method in AbstractQueuedLongSynchronizer
1363 long s = getState(); in toString()
1469 long 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.java600 Thread.State s = thread.getState(); in waitForThreadToEnterWaitState()
653 if (t.getState() != Thread.State.TERMINATED) { in awaitTermination()
DAbstractQueuedLongSynchronizerTest.java30 long state = getState(); in isHeldExclusively()
41 if (getState() != LOCKED) throw new IllegalMonitorStateException(); in tryRelease()
79 public boolean isSignalled() { return getState() != 0; } in isSignalled()
DAbstractQueuedSynchronizerTest.java33 int state = getState(); in isHeldExclusively()
44 if (getState() != LOCKED) throw new IllegalMonitorStateException(); in tryRelease()
83 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()