/libcore/luni/src/main/java/java/util/concurrent/ |
D | DelayQueue.java | 158 E first = q.peek(); in poll() local 159 if (first == null || first.getDelay(NANOSECONDS) > 0) in poll() 180 E first = q.peek(); in take() local 181 if (first == null) in take() 184 long delay = first.getDelay(NANOSECONDS); in take() 187 first = null; // don't retain ref while waiting in take() 225 E first = q.peek(); in poll() local 226 if (first == null) { in poll() 232 long delay = first.getDelay(NANOSECONDS); in poll() 237 first = null; // don't retain ref while waiting in poll() [all …]
|
D | ScheduledThreadPoolExecutor.java | 1031 RunnableScheduledFuture<?> first = queue[0]; in poll() local 1032 if (first == null || first.getDelay(NANOSECONDS) > 0) in poll() 1035 return finishPoll(first); in poll() 1046 RunnableScheduledFuture<?> first = queue[0]; in take() local 1047 if (first == null) in take() 1050 long delay = first.getDelay(NANOSECONDS); in take() 1052 return finishPoll(first); in take() 1053 first = null; // don't retain ref while waiting in take() 1082 RunnableScheduledFuture<?> first = queue[0]; in poll() local 1083 if (first == null) { in poll() [all …]
|
D | LinkedBlockingDeque.java | 110 transient Node<E> first; field in LinkedBlockingDeque 189 Node<E> f = first; in linkFirst() 191 first = node; in linkFirst() 211 if (first == null) in linkLast() 212 first = node; in linkLast() 225 Node<E> f = first; in unlinkFirst() 232 first = n; in unlinkFirst() 256 first = null; in unlinkLast() 538 return (first == null) ? null : first.item; in peekFirst() 559 for (Node<E> p = first; p != null; p = p.next) { in removeFirstOccurrence() [all …]
|
D | ConcurrentLinkedQueue.java | 374 Node<E> first() { in first() method in ConcurrentLinkedQueue 397 return first() == null; in isEmpty() 418 for (Node<E> p = first(); p != null; p = succ(p)) in size() 436 for (Node<E> p = first(); p != null; p = succ(p)) { in contains() 458 for (Node<E> p = first(); p != null; p = succ(p)) { in remove() 552 for (Node<E> p = first(); p != null; p = succ(p)) { in toArray() 600 for (p = first(); p != null && k < a.length; p = succ(p)) { in toArray() 613 for (Node<E> q = first(); q != null; q = succ(q)) { in toArray() 671 p = first(); in advance() 730 for (Node<E> p = first(); p != null; p = succ(p)) { in writeObject()
|
D | ConcurrentLinkedDeque.java | 503 private void unlinkFirst(Node<E> first, Node<E> next) { in unlinkFirst() argument 509 if (o != null && p.prev != p && first.casNext(next, p)) { in unlinkFirst() 511 if (first.prev == null && in unlinkFirst() 513 p.prev == first) { in unlinkFirst() 698 return (p == q) ? first() : q; in succ() 717 Node<E> first() { in first() method in ConcurrentLinkedDeque 794 for (Node<E> p = first(); p != null; p = succ(p)) { in toArrayList() 905 for (Node<E> p = first(); p != null; p = succ(p)) { in peekFirst() 937 for (Node<E> p = first(); p != null; p = succ(p)) { in pollFirst() 1015 for (Node<E> p = first(); p != null; p = succ(p)) { in removeFirstOccurrence() [all …]
|
D | LinkedBlockingQueue.java | 181 Node<E> first = h.next; in dequeue() local 183 head = first; in dequeue() 184 E x = first.item; in dequeue() 185 first.item = null; in dequeue() 478 Node<E> first = head.next; in peek() local 479 if (first == null) in peek() 482 return first.item; in peek()
|
/libcore/luni/src/test/java/libcore/util/ |
D | ZoneInfoDBTest.java | 84 ZoneInfo first = data.makeTimeZone(tzId); in testMakeTimeZone_timeZoneMutability() local 86 assertNotSame(first, second); in testMakeTimeZone_timeZoneMutability() 88 assertTrue(first.hasSameRules(second)); in testMakeTimeZone_timeZoneMutability() 90 first.setID("Not Europe/London"); in testMakeTimeZone_timeZoneMutability() 92 assertFalse(first.getID().equals(second.getID())); in testMakeTimeZone_timeZoneMutability() 94 first.setRawOffset(3600); in testMakeTimeZone_timeZoneMutability() 95 assertFalse(first.getRawOffset() == second.getRawOffset()); in testMakeTimeZone_timeZoneMutability()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | FileWriterTest.java | 62 String first = "The first string for testing. "; in test_ConstructorLjava_io_FileZ() local 63 fileWriter.write(first); in test_ConstructorLjava_io_FileZ() 72 char[] out = new char[first.length() + second.length() + 10]; in test_ConstructorLjava_io_FileZ() 75 assertEquals(first + second, new String(out, 0, length)); in test_ConstructorLjava_io_FileZ() 78 first = "The first string for testing. "; in test_ConstructorLjava_io_FileZ() 79 fileWriter.write(first); in test_ConstructorLjava_io_FileZ() 88 out = new char[first.length() + second.length() + 10]; in test_ConstructorLjava_io_FileZ()
|
/libcore/libart/src/main/java/java/lang/ |
D | ClassLoader.java | 424 Enumeration<URL> first = parent.getResources(resName); in getResources() local 427 return new TwoEnumerationsInOne(first, second); in getResources() 732 private final Enumeration<URL> first; field in TwoEnumerationsInOne 736 public TwoEnumerationsInOne(Enumeration<URL> first, Enumeration<URL> second) { in TwoEnumerationsInOne() argument 737 this.first = first; in TwoEnumerationsInOne() 743 return first.hasMoreElements() || second.hasMoreElements(); in hasMoreElements() 748 if (first.hasMoreElements()) { in nextElement() 749 return first.nextElement(); in nextElement()
|
/libcore/luni/src/main/java/libcore/icu/ |
D | ICU.java | 78 final int first = string.indexOf('_'); in parseLangScriptRegionAndVariants() local 79 final int second = string.indexOf('_', first + 1); in parseLangScriptRegionAndVariants() 82 if (first == -1) { in parseLangScriptRegionAndVariants() 89 outputArray[IDX_LANGUAGE] = string.substring(0, first); in parseLangScriptRegionAndVariants() 90 final String secondString = string.substring(first + 1); in parseLangScriptRegionAndVariants() 110 outputArray[IDX_LANGUAGE] = string.substring(0, first); in parseLangScriptRegionAndVariants() 111 final String secondString = string.substring(first + 1, second); in parseLangScriptRegionAndVariants() 133 outputArray[IDX_VARIANT] = string.substring(first + 1); in parseLangScriptRegionAndVariants() 140 outputArray[IDX_LANGUAGE] = string.substring(0, first); in parseLangScriptRegionAndVariants() 141 final String secondString = string.substring(first + 1, second); in parseLangScriptRegionAndVariants()
|
/libcore/luni/src/main/java/java/util/concurrent/locks/ |
D | AbstractQueuedSynchronizer.java | 1847 private void doSignal(Node first) { in doSignal() argument 1849 if ( (firstWaiter = first.nextWaiter) == null) in doSignal() 1851 first.nextWaiter = null; in doSignal() 1852 } while (!transferForSignal(first) && in doSignal() 1853 (first = firstWaiter) != null); in doSignal() 1860 private void doSignalAll(Node first) { in doSignalAll() argument 1863 Node next = first.nextWaiter; in doSignalAll() 1864 first.nextWaiter = null; in doSignalAll() 1865 transferForSignal(first); in doSignalAll() 1866 first = next; in doSignalAll() [all …]
|
D | AbstractQueuedLongSynchronizer.java | 1619 private void doSignal(Node first) { in doSignal() argument 1621 if ( (firstWaiter = first.nextWaiter) == null) in doSignal() 1623 first.nextWaiter = null; in doSignal() 1624 } while (!transferForSignal(first) && in doSignal() 1625 (first = firstWaiter) != null); in doSignal() 1632 private void doSignalAll(Node first) { in doSignalAll() argument 1635 Node next = first.nextWaiter; in doSignalAll() 1636 first.nextWaiter = null; in doSignalAll() 1637 transferForSignal(first); in doSignalAll() 1638 first = next; in doSignalAll() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | AttributedCharacterIteratorTest.java | 53 assertEquals("Wrong first1", 'T', it.first()); in test_first() 55 assertEquals("Wrong first2", 'T', it.first()); in test_first() 57 assertEquals("Wrong first3", 's', it.first()); in test_first() 59 assertTrue("Wrong first4", it.first() == CharacterIterator.DONE); in test_first()
|
D | BreakIteratorTest.java | 75 assertEquals(iterator.first(), iterator.current()); in testCurrent() 79 assertEquals(0, iterator.first()); in testFirst() 81 assertEquals(0, iterator.first()); in testFirst() 273 int n = bi.first(); in test_next()
|
D | StringCharacterIteratorTest.java | 180 assertEquals('f', fixture.first()); in test_first() 182 assertEquals('f', fixture.first()); in test_first() 184 assertEquals('f', fixture.first()); in test_first() 187 assertEquals('i', fixture.first()); in test_first() 191 assertEquals("Wrong first char", 's', it1.first()); in test_first() 194 assertTrue("Not DONE", it1.first() == CharacterIterator.DONE); in test_first()
|
D | AttributedStringTest.java | 37 buf.append(it.first()); in test_ConstructorLjava_lang_String() 114 public char first() { in first() method in AttributedStringTest.testAttributedCharacterIterator
|
/libcore/luni/src/main/java/java/text/ |
D | RuleBasedBreakIterator.java | 38 @Override public int first() { in first() method in RuleBasedBreakIterator 39 return wrapped.first(); in first()
|
D | CharacterIterator.java | 56 public char first(); in first() method
|
/libcore/luni/src/main/java/java/util/ |
D | LinkedList.java | 534 Link<E> first = voidLink.next; in getFirstImpl() local 535 if (first != voidLink) { in getFirstImpl() 536 return first.data; in getFirstImpl() 680 Link<E> first = voidLink.next; in removeFirstImpl() local 681 if (first != voidLink) { in removeFirstImpl() 682 Link<E> next = first.next; in removeFirstImpl() 687 return first.data; in removeFirstImpl() 907 Link<E> first = voidLink.next; in peekFirstImpl() local 908 return first == voidLink ? null : first.data; in peekFirstImpl()
|
D | SortedSet.java | 48 public E first(); in first() method
|
/libcore/luni/src/main/java/java/io/ |
D | PipedReader.java | 242 boolean first = true; in read() 248 if (!first && lastWriter != null && !lastWriter.isAlive()) { in read() 251 first = false; in read()
|
/libcore/luni/src/test/java/libcore/java/sql/ |
D | OldResultSetTest.java | 193 assertFalse(emptyTarget.first()); in testtestFirst() 194 assertTrue(target.first()); in testtestFirst() 199 target.first(); in testtestFirst() 243 target.first(); in testtestIsFirst() 325 target.first(); in testPrevious()
|
/libcore/luni/src/test/java/libcore/java/util/prefs/ |
D | OldAbstractPreferencesTest.java | 668 AbstractPreferences first = (AbstractPreferences) pref.node("First node"); in testChildrenNames() local 672 assertEquals(0, first.childrenNames().length); in testChildrenNames() 687 first.childrenNames(); in testChildrenNames() 729 AbstractPreferences first = (AbstractPreferences) pref.node("First node"); in testNode() local 733 first.node("blabla/"); in testNode() 740 first.node("///invalid"); in testNode() 751 first.node(new String(sb)); in testNode() 755 first.node(new String(sb)); in testNode() 771 first.node(""); in testNode() 847 AbstractPreferences first = (AbstractPreferences) pref.node("First node"); in testName() local [all …]
|
/libcore/json/src/main/java/org/json/ |
D | JSONTokener.java | 354 int first = nextCleanInternal(); in readObject() local 355 if (first == '}') { in readObject() 357 } else if (first != -1) { in readObject()
|
/libcore/luni/src/test/java/libcore/java/text/ |
D | OldAttributedStringTest.java | 33 buf.append(it.first()); in assertEqualString() 173 buf.append(it.first()); in test_ConstructorLjava_lang_StringLjava_util_Map() 278 public char first() { in first() method in OldAttributedStringTest.testAttributedCharacterIterator 403 assertEquals("Incorrect iteration on AttributedString", it.first(), in test_getIterator()
|