/libcore/luni/src/main/java/java/util/concurrent/ |
D | Semaphore.java | 145 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()
|
D | CountDownLatch.java | 140 return getState(); in getCount() 144 return (getState() == 0) ? 1 : -1; in tryAcquireShared() 150 int c = getState(); in tryReleaseShared()
|
D | ThreadPoolExecutor.java | 596 return getState() != 0; in isHeldExclusively() 620 if (getState() >= 0 && (t = thread) != null && !t.isInterrupted()) { in interruptIfStarted()
|
D | ForkJoinPool.java | 1017 (s = wt.getState()) != Thread.State.BLOCKED && in isApparentlyUnblocked()
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | SignatureTest.java | 63 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/ |
D | ReentrantLock.java | 102 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()
|
D | ReentrantReadWriteLock.java | 311 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 …]
|
D | AbstractQueuedSynchronizer.java | 519 protected final int getState() { in getState() method in AbstractQueuedSynchronizer 1593 int s = getState(); in toString() 1699 int savedState = getState(); in fullyRelease()
|
D | AbstractQueuedLongSynchronizer.java | 289 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/ |
D | OldThreadTest.java | 306 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/ |
D | MySignature1.java | 114 public int getState() { in getState() method in MySignature1
|
/libcore/libart/src/main/java/java/lang/ |
D | Thread.java | 590 public State getState() { in getState() method in Thread 603 if (getState() == Thread.State.TERMINATED) { in getThreadGroup()
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | JSR166TestCase.java | 600 Thread.State s = thread.getState(); in waitForThreadToEnterWaitState() 653 if (t.getState() != Thread.State.TERMINATED) { in awaitTermination()
|
D | AbstractQueuedLongSynchronizerTest.java | 30 long state = getState(); in isHeldExclusively() 41 if (getState() != LOCKED) throw new IllegalMonitorStateException(); in tryRelease() 79 public boolean isSignalled() { return getState() != 0; } in isSignalled()
|
D | AbstractQueuedSynchronizerTest.java | 33 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/ |
D | ThreadTest.java | 946 Thread.State state = Thread.currentThread().getState(); in test_getState()
|