/libcore/ojluni/src/test/java/util/WeakHashMap/ |
D | GCDuringIteration.java | 113 void checkIterator(final Iterator<Map.Entry<Foo, Integer>> it, int first) { in checkIterator() argument 114 for (int i = first; i >= 0; --i) { in checkIterator() 149 int first = firstValue(map); in test() local 151 foos[first] = null; in test() 152 gcAwait(() -> map.size() == first); in test() 153 checkIterator(it, first-1); in test() 154 equal(map.size(), first); in test() local 155 equal(firstValue(map), first-1); in test() 159 int first = firstValue(map); in test() local 164 foos[first] = null; in test() [all …]
|
/libcore/ojluni/src/test/java/net/SocketOptions/ |
D | SupportedOptionsSet.java | 47 first(); in testSupportedOptionsSet() 51 static void first() throws IOException { in first() method in SupportedOptionsSet 57 Set<?> first = s.supportedOptions(); in first() local 59 assertNotEqual(first, second, in first() 62 first = ds.supportedOptions(); in first() 64 assertNotEqual(first, second, in first() 76 Set<?> first = ss.supportedOptions(); in second() local 78 assertNotEqual(first, second, in second() 81 first = ms.supportedOptions(); in second() 83 assertNotEqual(first, second, in second()
|
/libcore/luni/src/test/java/libcore/java/util/random/ |
D | RandomGeneratorFactoryTest.java | 159 private static void checkNextBoolean(RandomGenerator first, RandomGenerator second) { in checkNextBoolean() argument 161 boolean firstResult = first.nextBoolean(); in checkNextBoolean() 164 i, first, firstResult, second, secondResult); in checkNextBoolean() 169 private static void checkNextInt(RandomGenerator first, RandomGenerator second) { in checkNextInt() argument 171 int firstResult = first.nextInt(); in checkNextInt() 174 i, first, firstResult, second, secondResult); in checkNextInt() 179 private static void checkNextLong(RandomGenerator first, RandomGenerator second) { in checkNextLong() argument 181 long firstResult = first.nextLong(); in checkNextLong() 184 i, first, firstResult, second, secondResult); in checkNextLong() 189 private static void checkNextDouble(RandomGenerator first, RandomGenerator second) { in checkNextDouble() argument [all …]
|
/libcore/ojluni/src/main/java/jdk/internal/ref/ |
D | Cleaner.java | 72 private static Cleaner first = null; field in Cleaner 79 if (first != null) { in add() 80 cl.next = first; in add() 81 first.prev = cl; in add() 83 first = cl; in add() 94 if (first == cl) { in remove() 96 first = cl.next; in remove() 98 first = cl.prev; in remove()
|
/libcore/ojluni/src/main/java/sun/misc/ |
D | Cleaner.java | 71 static private Cleaner first = null; field in Cleaner 78 if (first != null) { in add() 79 cl.next = first; in add() 80 first.prev = cl; in add() 82 first = cl; in add() 93 if (first == cl) { in remove() 95 first = cl.next; in remove() 97 first = cl.prev; in remove()
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | DelayQueue.java | 194 E first = q.peek(); in poll() local 195 return (first == null || first.getDelay(NANOSECONDS) > 0) in poll() 215 E first = q.peek(); in take() local 216 if (first == null) in take() 219 long delay = first.getDelay(NANOSECONDS); in take() 222 first = null; // don't retain ref while waiting in take() 260 E first = q.peek(); in poll() local 261 if (first == null) { in poll() 267 long delay = first.getDelay(NANOSECONDS); in poll() 272 first = null; // don't retain ref while waiting in poll() [all …]
|
D | ScheduledThreadPoolExecutor.java | 1160 RunnableScheduledFuture<?> first = queue[0]; in poll() local 1161 return (first == null || first.getDelay(NANOSECONDS) > 0) in poll() 1163 : finishPoll(first); in poll() 1174 RunnableScheduledFuture<?> first = queue[0]; in take() local 1175 if (first == null) in take() 1178 long delay = first.getDelay(NANOSECONDS); in take() 1180 return finishPoll(first); in take() 1181 first = null; // don't retain ref while waiting in take() 1210 RunnableScheduledFuture<?> first = queue[0]; in poll() local 1211 if (first == null) { in poll() [all …]
|
D | LinkedBlockingDeque.java | 143 transient Node<E> first; field in LinkedBlockingDeque 213 Node<E> f = first; in linkFirst() 215 first = node; in linkFirst() 235 if (first == null) in linkLast() 236 first = node; in linkLast() 249 Node<E> f = first; in unlinkFirst() 256 first = n; in unlinkFirst() 280 first = null; in unlinkLast() 563 return (first == null) ? null : first.item; in peekFirst() 584 for (Node<E> p = first; p != null; p = p.next) { in removeFirstOccurrence() [all …]
|
D | ConcurrentLinkedDeque.java | 491 private void unlinkFirst(Node<E> first, Node<E> next) { in unlinkFirst() argument 498 NEXT.compareAndSet(first, next, p)) { in unlinkFirst() 500 if (first.prev == null && in unlinkFirst() 502 p.prev == first) { in unlinkFirst() 688 p = first(); in succ() 709 Node<E> first() { in first() method in ConcurrentLinkedDeque 872 Node<E> first = first(), p = first; in peekFirst() local 879 if (first.prev != null) continue restart; in peekFirst() 915 for (Node<E> first = first(), p = first;;) { in pollFirst() 919 if (first.prev != null) continue restart; in pollFirst() [all …]
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | Streams.java | 326 T first; field in Streams.StreamBuilderImpl 343 first = t; in StreamBuilderImpl() 352 first = t; in accept() 358 buffer.accept(first); in accept() 397 action.accept(first); in tryAdvance() 411 action.accept(first); in forEachRemaining() 422 int first; field in Streams.IntStreamBuilderImpl 439 first = t; in IntStreamBuilderImpl() 448 first = t; in accept() 454 buffer.accept(first); in accept() [all …]
|
/libcore/ojluni/src/main/java/java/util/jar/ |
D | JarInputStream.java | 48 private JarEntry first; field in JarInputStream 86 first = checkManifest(e); in JarInputStream() 141 if (first == null) { in getNextEntry() 148 e = first; in getNextEntry() 149 if (first.getName().equalsIgnoreCase(JarIndex.INDEX_NAME)) in getNextEntry() 151 first = null; in getNextEntry() 206 if (first == null) { in read()
|
/libcore/ojluni/src/main/java/sun/security/util/ |
D | ObjectIdentifier.java | 149 int first = 0, second; in ObjectIdentifier() local 169 first = bignum.intValue(); in ObjectIdentifier() 172 checkSecondComponent(first, bignum); in ObjectIdentifier() 173 bignum = bignum.add(BigInteger.valueOf(40*first)); in ObjectIdentifier() 183 first = num; in ObjectIdentifier() 186 checkSecondComponent(first, num); in ObjectIdentifier() 187 num += 40 * first; in ObjectIdentifier() 629 private static void checkFirstComponent(int first) throws IOException { in checkFirstComponent() argument 630 if (first < 0 || first > 2) { in checkFirstComponent() 635 private static void checkFirstComponent(BigInteger first) throws IOException { in checkFirstComponent() argument [all …]
|
/libcore/ojluni/src/main/java/java/util/concurrent/locks/ |
D | AbstractQueuedSynchronizer.java | 640 boolean interrupted = false, first = false; in acquire() 656 if (!first && (pred = (node == null) ? null : node.prev) != null && in acquire() 657 !(first = (head == pred))) { in acquire() 666 if (first || pred == null) { in acquire() 678 if (first) { in acquire() 706 } else if (first && spins != 0) { in acquire() 1143 Thread first = null, w; Node h, s; in getFirstQueuedThread() local 1145 (first = s.waiter) == null || in getFirstQueuedThread() 1150 first = w; in getFirstQueuedThread() 1152 return first; in getFirstQueuedThread() [all …]
|
D | AbstractQueuedLongSynchronizer.java | 275 boolean interrupted = false, first = false; in acquire() 291 if (!first && (pred = (node == null) ? null : node.prev) != null && in acquire() 292 !(first = (head == pred))) { in acquire() 301 if (first || pred == null) { in acquire() 313 if (first) { in acquire() 341 } else if (first && spins != 0) { in acquire() 777 Thread first = null, w; Node h, s; in getFirstQueuedThread() local 779 (first = s.waiter) == null || in getFirstQueuedThread() 784 first = w; in getFirstQueuedThread() 786 return first; in getFirstQueuedThread() [all …]
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | ThreadGroupTest.java | 46 Thread first = createHangThread(group); in interrupt_shouldInterruptAllThreadsInAGroup() local 49 first.start(); in interrupt_shouldInterruptAllThreadsInAGroup() 62 Thread first = createHangThread(parentGroup); in interrupt_shouldInterruptThreadsInSubgroups() local 65 first.start(); in interrupt_shouldInterruptThreadsInSubgroups() 78 Thread first = createHangThread(parentGroup); in interrupt_shouldNotInterruptThreadsInParentGroup() local 81 first.start(); in interrupt_shouldNotInterruptThreadsInParentGroup()
|
/libcore/ojluni/src/main/java/java/util/ |
D | LinkedList.java | 99 transient Node<E> first; field in LinkedList 137 final Node<E> f = first; in linkFirst() 139 first = newNode; in linkFirst() 156 first = newNode; in linkLast() 172 first = newNode; in linkBefore() 188 first = next; in unlinkFirst() 209 first = null; in unlinkLast() 227 first = next; in unlink() 253 final Node<E> f = first; in getFirst() 279 final Node<E> f = first; in removeFirst() [all …]
|
D | SortedSet.java | 213 E first(); in first() method 307 return this.first(); 336 E e = this.first();
|
D | ArrayPrefixHelpers.java | 204 int first; in compute() local 207 first = org + 1; in compute() 211 first = l; in compute() 213 for (int i = first; i < h; ++i) // cumulate in compute() 358 int first; in compute() local 361 first = org + 1; in compute() 365 first = l; in compute() 367 for (int i = first; i < h; ++i) // cumulate in compute() 510 int first; in compute() local 513 first = org + 1; in compute() [all …]
|
/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/ojluni/src/test/java/util/Collections/ |
D | EmptyNavigableSet.java | 185 assertThrowsNSEE(navigableSet::first, description); in testFirst() 272 Object first = isDescending(navigableSet) ? BigInteger.TEN : BigInteger.ZERO; in testSubSet() local 273 Object last = (BigInteger.ZERO == first) ? BigInteger.TEN : BigInteger.ZERO; in testSubSet() 276 () -> navigableSet.subSet(last, true, first, false), in testSubSet() 280 navigableSet.subSet(first, true, last, false); in testSubSet() 285 Object first = isDescending(navigableSet) ? BigInteger.TEN : BigInteger.ZERO; in testSubSetRanges() local 286 Object last = (BigInteger.ZERO == first) ? BigInteger.TEN : BigInteger.ZERO; in testSubSetRanges() 288 NavigableSet subSet = navigableSet.subSet(first, true, last, true); in testSubSetRanges() 291 subSet.subSet(first, true, last, true); in testSubSetRanges() 294 NavigableSet ns = subSet.subSet(first, false, last, false); in testSubSetRanges() [all …]
|
D | EmptyNavigableMap.java | 253 Object first = isDescending(navigableMap) ? BigInteger.TEN : BigInteger.ZERO; in testSubMap() local 254 Object last = (BigInteger.ZERO == first) ? BigInteger.TEN : BigInteger.ZERO; in testSubMap() 257 () -> navigableMap.subMap(last, true, first, false), in testSubMap() 260 navigableMap.subMap(first, true, last, false); in testSubMap() 265 Object first = isDescending(navigableMap) ? BigInteger.TEN : BigInteger.ZERO; in testSubMapRanges() local 266 Object last = (BigInteger.ZERO == first) ? BigInteger.TEN : BigInteger.ZERO; in testSubMapRanges() 268 NavigableMap subMap = navigableMap.subMap(first, true, last, true); in testSubMapRanges() 271 subMap.subMap(first, true, last, true); in testSubMapRanges() 274 NavigableMap ns = subMap.subMap(first, false, last, false); in testSubMapRanges() 277 () -> ns.subMap(first, true, last, true), in testSubMapRanges() [all …]
|
/libcore/ojluni/src/test/java/util/Map/ |
D | LockStep.java | 66 Map first = maps.get(0); in mapsEqual() local 68 mapsEqual(first, map); in mapsEqual() 78 Map first = maps.get(0); in removeLastTwo() local 79 int size = first.size(); in removeLastTwo() 80 Iterator fit = first.keySet().iterator(); in removeLastTwo()
|
/libcore/ojluni/src/test/java/time/test/java/time/chrono/ |
D | TestExampleCode.java | 105 ChronoLocalDate first = now1 in test_chronoPackageExample() local 108 ChronoLocalDate last = first in test_chronoPackageExample() 112 first, last); in test_chronoPackageExample() 158 ThaiBuddhistDate first = now1 in test_calendarPackageExample() local 161 ThaiBuddhistDate last = first in test_calendarPackageExample() 165 first, last); in test_calendarPackageExample()
|
/libcore/ojluni/annotations/hiddenapi/sun/security/util/ |
D | ObjectIdentifier.java | 123 private static void checkFirstComponent(int first) throws java.io.IOException { in checkFirstComponent() argument 127 private static void checkFirstComponent(java.math.BigInteger first) throws java.io.IOException { in checkFirstComponent() argument 131 private static void checkSecondComponent(int first, int second) throws java.io.IOException { in checkSecondComponent() argument 135 private static void checkSecondComponent(int first, java.math.BigInteger second) in checkSecondComponent() argument
|
/libcore/ojluni/src/test/java/text/BreakIterator/ |
D | ExceptionTest.java | 47 final int first = bi.first(); in main() local 48 if (first != 0) { in main() 49 throw new RuntimeException("first != 0: " + first); in main()
|