Home
last modified time | relevance | path

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

/libcore/luni/src/main/java/java/util/concurrent/
DSemaphore.java151 return getState(); in getPermits()
156 int available = getState(); in nonfairTryAcquireShared()
166 int current = getState(); in tryReleaseShared()
177 int current = getState(); in reducePermits()
188 int current = getState(); in drainPermits()
224 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.java616 return getState() != 0; in isHeldExclusively()
640 if (getState() >= 0 && (t = thread) != null && !t.isInterrupted()) { in interruptIfStarted()
DForkJoinPool.java1310 (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/
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 …]
DReentrantLock.java105 int c = getState(); in nonfairTryAcquire()
124 int c = getState() - releases; in tryRelease()
149 return getState() == 0 ? null : getExclusiveOwnerThread(); in getOwner()
153 return isHeldExclusively() ? getState() : 0; in getHoldCount()
157 return getState() != 0; in isLocked()
210 int c = getState(); in tryAcquire()
DAbstractQueuedLongSynchronizer.java75 protected final long getState() { in getState() method in AbstractQueuedLongSynchronizer
1143 + "[State = " + getState() + ", " in toString()
1248 long savedState = getState(); in fullyRelease()
DAbstractQueuedSynchronizer.java544 protected final int getState() { in getState() method in AbstractQueuedSynchronizer
1614 + "[State = " + getState() + ", " in toString()
1719 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/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/support/src/test/java/org/apache/harmony/security/tests/support/
DMySignature1.java114 public int getState() { in getState() method in MySignature1
/libcore/ojluni/src/main/java/sun/misc/
DVM.java91 public static final int getState() { in getState() method in VM
/libcore/ojluni/src/main/java/java/lang/
DThread.java1186 if (getState() == Thread.State.TERMINATED) { in getThreadGroup()
1812 public State getState() { in getState() method in Thread
/libcore/jsr166-tests/src/test/java/jsr166/
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()
DJSR166TestCase.java1215 Thread.State s = thread.getState();
1298 if (t.getState() != Thread.State.TERMINATED) {
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DThreadTest.java951 Thread.State state = Thread.currentThread().getState(); in test_getState()
/libcore/ojluni/src/main/java/sun/security/x509/
DX500Name.java516 public String getState() throws IOException { in getState() method in X500Name