Home
last modified time | relevance | path

Searched refs:getPriority (Results 1 – 8 of 8) sorted by relevance

/libcore/luni/src/test/java/libcore/java/lang/
DThreadTest.java159 int priority = thread.getPriority() + 1; in testSetPriority_starting()
165 assertEquals(priority, thread.getPriority()); in testSetPriority_starting()
187 int originalPriority = joinedThread.getPriority(); in testSetPriority_joined()
191 assertEquals(originalPriority, joinedThread.getPriority()); in testSetPriority_joined()
197 int oldPriority = thread.getPriority(); in checkSetPriority_inBounds_succeeds()
201 assertEquals(priority, thread.getPriority()); in checkSetPriority_inBounds_succeeds()
206 assertEquals(oldPriority, thread.getPriority()); in checkSetPriority_inBounds_succeeds()
217 int oldPriority = thread.getPriority(); in checkSetPriority_outOfBounds_fails()
223 assertEquals(oldPriority, thread.getPriority()); // priority shouldn't have changed in checkSetPriority_outOfBounds_fails()
/libcore/ojluni/src/main/java/java/lang/
DThread.java529 this.priority = parent.getPriority(); in init()
1271 public final int getPriority() { in getPriority() method in Thread
1598 return "Thread[" + getName() + "," + getPriority() + "," + in toString()
1601 return "Thread[" + getName() + "," + getPriority() + "," + in toString()
/libcore/ojluni/annotations/mmodule/java/lang/
DThread.annotated.java95 public final int getPriority() { throw new RuntimeException("Stub!"); } in getPriority() method in Thread
/libcore/jsr166-tests/src/test/java/jsr166/
DExecutorsTest.java315 assertTrue(current.getPriority() <= Thread.NORM_PRIORITY); in testDefaultThreadFactory()
353 assertTrue(current.getPriority() <= Thread.NORM_PRIORITY); in testPrivilegedThreadFactory()
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DThread.annotated.java90 public final int getPriority() { throw new RuntimeException("Stub!"); } in getPriority() method in Thread
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DThreadTest.java404 st.getPriority() == Thread.MAX_PRIORITY); in test_getPriority()
812 st.getPriority() == Thread.MAX_PRIORITY); in test_setPriorityI()
/libcore/ojluni/src/main/java/java/util/concurrent/
DExecutors.java572 if (t.getPriority() != Thread.NORM_PRIORITY)
/libcore/ojluni/annotations/hiddenapi/java/lang/
DThread.java186 public final int getPriority() { in getPriority() method in Thread