Home
last modified time | relevance | path

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

12

/libcore/ojluni/src/main/java/java/util/concurrent/
DSemaphore.java180 return getState(); in getPermits()
185 int available = getState(); in nonfairTryAcquireShared()
195 int current = getState(); in tryReleaseShared()
206 int current = getState(); in reducePermits()
217 int current = getState(); in drainPermits()
253 int available = getState(); in tryAcquireShared()
DCountDownLatch.java170 return getState(); in getCount()
174 return (getState() == 0) ? 1 : -1; in tryAcquireShared()
180 int c = getState(); in tryReleaseShared()
DThreadPoolExecutor.java650 return getState() != 0; in isHeldExclusively()
674 if (getState() >= 0 && (t = thread) != null && !t.isInterrupted()) { in interruptIfStarted()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DSignatureTest.java64 assertEquals(0, s.getState()); in testConstructor()
70 assertEquals(0, s1.getState()); in testConstructor()
75 assertEquals(0, s2.getState()); in testConstructor()
101 assertEquals("state", MySignature1.UNINITIALIZED, s.getState()); in testGetProvider()
108 assertEquals("state", MySignature1.UNINITIALIZED, s.getState()); in testGetAlgorithm()
119 assertEquals("state", MySignature1.VERIFY, s.getState()); in testInitVerifyPublicKey()
139 assertEquals("state", MySignature1.VERIFY, s.getState()); in testInitVerifyCertificate()
160 assertEquals("state", MySignature1.SIGN, s.getState()); in testInitSignPrivateKey()
194 assertEquals("state", MySignature1.SIGN, s.getState()); in testInitSignPrivateKeySecureRandom()
229 assertEquals("state", MySignature1.SIGN, s.getState()); in testSign()
[all …]
/libcore/ojluni/src/main/java/java/util/concurrent/locks/
DReentrantReadWriteLock.java341 setState(getState()); // ensures visibility of readHolds in Sync()
374 int nextc = getState() - releases; in tryRelease()
395 int c = getState(); in tryAcquire()
435 int c = getState(); in tryReleaseShared()
467 int c = getState(); in tryAcquireShared()
506 int c = getState(); in fullTryAcquireShared()
559 int c = getState(); in tryWriteLock()
581 int c = getState(); in tryReadLock()
621 return ((exclusiveCount(getState()) == 0) ? in getOwner()
627 return sharedCount(getState()); in getReadLockCount()
[all …]
DReentrantLock.java134 int c = getState(); in nonfairTryAcquire()
154 int c = getState() - releases; in tryRelease()
179 return getState() == 0 ? null : getExclusiveOwnerThread(); in getOwner()
183 return isHeldExclusively() ? getState() : 0; in getHoldCount()
187 return getState() != 0; in isLocked()
242 int c = getState(); in tryAcquire()
DAbstractQueuedLongSynchronizer.java104 protected final long getState() { in getState() method in AbstractQueuedLongSynchronizer
1172 + "[State = " + getState() + ", " in toString()
1277 long savedState = getState(); in fullyRelease()
DAbstractQueuedSynchronizer.java572 protected final int getState() { in getState() method in AbstractQueuedSynchronizer
1646 + "[State = " + getState() + ", " in toString()
1751 int savedState = getState(); in fullyRelease()
/libcore/luni/src/test/java/libcore/java/lang/
DOldThreadTest.java307 Thread.State state = Thread.currentThread().getState(); in test_getState()
348 assertEquals(Thread.State.NEW, th.getState()); in test_getState()
351 assertEquals(Thread.State.RUNNABLE, th.getState()); in test_getState()
356 assertEquals(Thread.State.WAITING, th.getState()); in test_getState()
361 assertEquals(Thread.State.BLOCKED, th.getState()); in test_getState()
367 assertEquals(Thread.State.TIMED_WAITING, th.getState()); in test_getState()
372 assertEquals(Thread.State.TERMINATED, th.getState()); in test_getState()
/libcore/ojluni/src/main/java/sun/net/
DProgressMonitor.java129 … ProgressEvent(pi, pi.getURL(), pi.getMethod(), pi.getContentType(), pi.getState(), pi.getProgress… in registerSource()
166 … ProgressEvent(pi, pi.getURL(), pi.getMethod(), pi.getContentType(), pi.getState(), pi.getProgress… in unregisterSource()
198 … ProgressEvent(pi, pi.getURL(), pi.getMethod(), pi.getContentType(), pi.getState(), pi.getProgress… in updateProgress()
DProgressEvent.java105 public ProgressSource.State getState() { in getState() method in ProgressEvent
DProgressSource.java140 public State getState() { in getState() method in ProgressSource
/libcore/luni/src/test/java/libcore/java/util/concurrent/
DTestUtils.java34 if (thread.getState() != Thread.State.TERMINATED) { in joinThreadOrFail()
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
DMySignature1.java114 public int getState() { in getState() method in MySignature1
/libcore/ojluni/annotations/hiddenapi/sun/misc/
DVM.java60 public static final int getState() { in getState() method in VM
/libcore/ojluni/src/main/java/sun/misc/
DVM.java92 public static final int getState() { in getState() method in VM
/libcore/ojluni/annotations/mmodule/java/lang/
DThread.annotated.java138 public java.lang.Thread.State getState() { throw new RuntimeException("Stub!"); } in getState() method in Thread
/libcore/ojluni/src/main/java/java/lang/
DThread.java1314 if (getState() == Thread.State.TERMINATED) { in getThreadGroup()
2001 public State getState() { in getState() method in Thread
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DThread.annotated.java132 @libcore.util.NonNull public java.lang.Thread.State getState() { throw new RuntimeException("Stub!"… in getState() method in Thread
/libcore/jsr166-tests/src/test/java/jsr166/
DJSR166TestCase.java1215 Thread.State s = thread.getState();
1239 Thread.State s = thread.getState();
1338 if (t.getState() != Thread.State.TERMINATED) {
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()
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()
/libcore/ojluni/annotations/hiddenapi/java/lang/
DThread.java278 public java.lang.Thread.State getState() { in getState() method in Thread
/libcore/ojluni/src/test/java/util/concurrent/tck/
DJSR166TestCase.java1322 Thread.State s = thread.getState();
1348 Thread.State s = thread.getState();
1447 if (t.getState() != Thread.State.TERMINATED) {
DAbstractQueuedLongSynchronizerTest.java69 long state = getState(); in isHeldExclusively()
80 if (getState() != LOCKED) throw new IllegalMonitorStateException(); in tryRelease()
118 public boolean isSignalled() { return getState() != 0; } in isSignalled()

12