/libcore/ojluni/src/main/java/java/util/ |
D | ArrayDeque.java | 150 final Object[] es = elements = Arrays.copyOf(elements, newCapacity); in grow() local 152 if (tail < head || (tail == head && es[head] != null)) { in grow() 155 System.arraycopy(es, head, in grow() 156 es, head + newSpace, in grow() 159 es[i] = null; in grow() 265 static final <E> E elementAt(Object[] es, int i) { in elementAt() argument 266 return (E) es[i]; in elementAt() 274 static final <E> E nonNullElementAt(Object[] es, int i) { in nonNullElementAt() argument 275 @SuppressWarnings("unchecked") E e = (E) es[i]; in nonNullElementAt() 294 final Object[] es = elements; in addFirst() local [all …]
|
D | PriorityQueue.java | 257 private static Object[] ensureNonEmpty(Object[] es) { in ensureNonEmpty() argument 258 return (es.length > 0) ? es : new Object[1]; in ensureNonEmpty() 271 Object[] es = c.toArray(); in initElementsFromCollection() local 272 int len = es.length; in initElementsFromCollection() 274 es = Arrays.copyOf(es, len, Object[].class); in initElementsFromCollection() 276 for (Object e : es) in initElementsFromCollection() 279 this.queue = ensureNonEmpty(es); in initElementsFromCollection() 359 final Object[] es = queue; 361 if (o.equals(es[i])) 394 final Object[] es = queue; [all …]
|
D | RegularEnumSet.java | 199 if (!(c instanceof RegularEnumSet<?> es)) in containsAll() 202 if (es.elementType != elementType) in containsAll() 203 return es.isEmpty(); in containsAll() 205 return (es.elements & ~elements) == 0; in containsAll() 217 if (!(c instanceof RegularEnumSet<?> es)) in addAll() 220 if (es.elementType != elementType) { in addAll() 221 if (es.isEmpty()) in addAll() 225 es.elementType + " != " + elementType); in addAll() 229 elements |= es.elements; in addAll() 242 if (!(c instanceof RegularEnumSet<?> es)) in removeAll() [all …]
|
D | JumboEnumSet.java | 251 if (!(c instanceof JumboEnumSet<?> es)) in containsAll() 254 if (es.elementType != elementType) in containsAll() 255 return es.isEmpty(); in containsAll() 258 if ((es.elements[i] & ~elements[i]) != 0) in containsAll() 272 if (!(c instanceof JumboEnumSet<?> es)) in addAll() 275 if (es.elementType != elementType) { in addAll() 276 if (es.isEmpty()) in addAll() 280 es.elementType + " != " + elementType); in addAll() 284 elements[i] |= es.elements[i]; in addAll() 297 if (!(c instanceof JumboEnumSet<?> es)) in removeAll() [all …]
|
D | ArrayList.java | 297 Object[] es = elementData; in indexOfRange() local 300 if (es[i] == null) { in indexOfRange() 306 if (o.equals(es[i])) { in indexOfRange() 326 Object[] es = elementData; in lastIndexOfRange() local 329 if (es[i] == null) { in lastIndexOfRange() 335 if (o.equals(es[i])) { in lastIndexOfRange() 422 static <E> E elementAt(Object[] es, int index) { in elementAt() argument 423 return (E) es[index]; in elementAt() 559 final Object[] es = elementData; in remove() local 561 @SuppressWarnings("unchecked") E oldValue = (E) es[index]; in remove() [all …]
|
D | Vector.java | 282 final Object[] es = elementData; in setSize() local 284 es[i] = null; in setSize() 652 final Object[] es = elementData; in removeAllElements() local 654 es[i] = null; in removeAllElements() 735 static <E> E elementAt(Object[] es, int index) { in elementAt() argument 736 return (E) es[index]; in elementAt() 981 final Object[] es = elementData; in bulkRemove() local 985 for (i = 0; i < end && !filter.test(elementAt(es, i)); i++) in bulkRemove() 995 if (filter.test(elementAt(es, i))) in bulkRemove() 1003 es[w++] = es[i]; in bulkRemove() [all …]
|
D | EnumMap.java | 463 Set<Map.Entry<K,V>> es = entrySet; in entrySet() local 464 if (es != null) in entrySet() 465 return es; in entrySet()
|
D | ImmutableCollections.java | 725 Object[] es = elements; in indexOf() local 726 for (int i = 0; i < es.length; i++) { in indexOf() 727 if (Objects.equals(o, es[i])) { in indexOf() 739 Object[] es = elements; in lastIndexOf() local 740 for (int i = es.length - 1; i >= 0; i--) { in lastIndexOf() 741 if (Objects.equals(o, es[i])) { in lastIndexOf()
|
D | TreeMap.java | 1201 EntrySet es = entrySet; in entrySet() local 1202 return (es != null) ? es : (entrySet = new EntrySet()); in entrySet() 2280 EntrySetView es = entrySetView; in entrySet() local 2281 return (es != null) ? es : (entrySetView = new AscendingEntrySetView()); in entrySet() 2375 EntrySetView es = entrySetView; in entrySet() local 2376 return (es != null) ? es : (entrySetView = new DescendingEntrySetView()); in entrySet()
|
D | LinkedHashMap.java | 929 Set<Map.Entry<K, V>> es = entrySet; in sequencedEntrySet() local 930 if (es == null) { in sequencedEntrySet() 937 return (SequencedSet<Map.Entry<K, V>>) es; in sequencedEntrySet()
|
D | WeakHashMap.java | 968 Set<Map.Entry<K,V>> es = entrySet; in entrySet() local 969 return es != null ? es : (entrySet = new EntrySet()); in entrySet()
|
D | IdentityHashMap.java | 1178 Set<Map.Entry<K,V>> es = entrySet; in entrySet() local 1179 if (es != null) in entrySet() 1180 return es; in entrySet()
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | PriorityBlockingQueue.java | 258 Object[] es = c.toArray(); in PriorityBlockingQueue() local 259 int n = es.length; in PriorityBlockingQueue() 263 if (es.getClass() != Object[].class) in PriorityBlockingQueue() 264 es = Arrays.copyOf(es, n, Object[].class); in PriorityBlockingQueue() 266 for (Object e : es) in PriorityBlockingQueue() 270 this.queue = ensureNonEmpty(es); in PriorityBlockingQueue() 277 private static Object[] ensureNonEmpty(Object[] es) { in ensureNonEmpty() argument 278 return (es.length > 0) ? es : new Object[1]; in ensureNonEmpty() 320 final Object[] es; in dequeue() local 323 if ((result = (E) ((es = queue)[0])) != null) { in dequeue() [all …]
|
D | CopyOnWriteArrayList.java | 144 Object[] es; in CopyOnWriteArrayList() local 146 es = ((CopyOnWriteArrayList<?>)c).getArray(); in CopyOnWriteArrayList() 148 es = c.toArray(); in CopyOnWriteArrayList() 152 if (es.getClass() != Object[].class) in CopyOnWriteArrayList() 153 es = Arrays.copyOf(es, es.length, Object[].class); in CopyOnWriteArrayList() 155 setArray(es); in CopyOnWriteArrayList() 196 private static int indexOfRange(Object o, Object[] es, int from, int to) { in indexOfRange() argument 199 if (es[i] == null) in indexOfRange() 203 if (o.equals(es[i])) in indexOfRange() 217 private static int lastIndexOfRange(Object o, Object[] es, int from, int to) { in lastIndexOfRange() argument [all …]
|
D | LinkedBlockingQueue.java | 816 Object[] es = null; in forEachRemaining() local 821 if (es == null) { in forEachRemaining() 826 es = new Object[len]; in forEachRemaining() 827 es[0] = nextItem; in forEachRemaining() 833 if ((es[n] = p.item) != null) { in forEachRemaining() 841 @SuppressWarnings("unchecked") E e = (E) es[i]; in forEachRemaining() 992 Object[] es = null; // container for batch of elements in forEachFrom() local 997 if (es == null) { in forEachFrom() 1002 es = new Object[len]; in forEachFrom() 1005 if ((es[n] = p.item) != null) in forEachFrom() [all …]
|
D | LinkedBlockingDeque.java | 1115 Object[] es = null; in forEachRemaining() local 1120 if (es == null) { in forEachRemaining() 1125 es = new Object[len]; in forEachRemaining() 1126 es[0] = nextItem; in forEachRemaining() 1132 if ((es[n] = p.item) != null) { in forEachRemaining() 1140 @SuppressWarnings("unchecked") E e = (E) es[i]; in forEachRemaining() 1305 Object[] es = null; // container for batch of elements in forEachFrom() local 1310 if (es == null) { in forEachFrom() 1315 es = new Object[len]; in forEachFrom() 1318 if ((es[n] = p.item) != null) in forEachFrom() [all …]
|
D | ArrayBlockingQueue.java | 1551 final Object[] es = items; in bulkRemoveModified() local 1556 for (int i = beg + 1, to = (i <= end) ? end : es.length, k = beg; in bulkRemoveModified() 1559 if (filter.test(itemAt(es, i))) in bulkRemoveModified() 1565 for (int i = beg + 1, to = (i <= end) ? end : es.length, k = beg; in bulkRemoveModified() 1570 es[w++] = es[i]; in bulkRemoveModified() 1575 es[w++] = es[i]; in bulkRemoveModified() 1582 circularClear(es, putIndex = w, end); in bulkRemoveModified()
|
D | ConcurrentSkipListMap.java | 1678 EntrySet<K,V> es; in entrySet() local 1679 if ((es = entrySet) != null) return es; in entrySet() 2889 EntrySet<K,V> es; in entrySet() local 2890 if ((es = entrySetView) != null) return es; in entrySet()
|
/libcore/ojluni/src/test/java/util/IdentityHashMap/ |
D | ToArray.java | 75 Set<Map.Entry<Integer,Integer>> es = map.entrySet(); in main() local 76 if (es.toArray().length != 0) in main() 78 if (es.toArray(new Object[]{Boolean.TRUE})[0] != null) in main() 81 if (es.toArray().length != 1) in main() 83 Object[] x = es.toArray(new Object[]{Boolean.TRUE, Boolean.TRUE}); in main()
|
D | ToString.java | 42 Set<Map.Entry<String, String>> es = m.entrySet(); in main() local 44 Iterator<Map.Entry<String, String>> i = es.iterator(); in main()
|
/libcore/luni/src/test/java/libcore/java/security/ |
D | MessageDigestTest.java | 37 ExecutorService es = Executors.newFixedThreadPool(THREAD_COUNT); in testMessageDigest_MultipleThreads_Misuse() local 44 es.submit(new Callable<Void>() { in testMessageDigest_MultipleThreads_Misuse() 60 es.shutdown(); in testMessageDigest_MultipleThreads_Misuse() 61 assertTrue("Test should not timeout", es.awaitTermination(1, TimeUnit.MINUTES)); in testMessageDigest_MultipleThreads_Misuse()
|
/libcore/luni/src/test/java/libcore/libcore/icu/ |
D | DecimalFormatDataTest.java | 37 DecimalFormatData es = DecimalFormatData.getInstance(new Locale("es")); in testDecimalFormatSymbols_es() local 38 assertEquals(',', es.getDecimalSeparator()); in testDecimalFormatSymbols_es() 39 assertEquals('.', es.getGroupingSeparator()); in testDecimalFormatSymbols_es()
|
/libcore/ojluni/src/main/java/sun/misc/ |
D | MessageUtils.java | 134 StackTraceElement[] es = t.getStackTrace(); in where() local 135 for (int i = 1; i < es.length; i++) { in where() 138 System.err.println("\t" + es[i].toString()); in where()
|
/libcore/ojluni/src/test/java/util/zip/ZipFile/ |
D | TestCleaner.java | 122 var es = zf.entries(); in openAndCloseZipFile() local 123 while (es.hasMoreElements()) { in openAndCloseZipFile() 124 zf.getInputStream(es.nextElement()).read(); in openAndCloseZipFile()
|
/libcore/ojluni/src/test/java/lang/invoke/VarHandles/ |
D | VarHandleBaseByteArrayTest.java | 69 EnumSet<MemoryMode> es = EnumSet.noneOf(MemoryMode.class); in enumSet() local 72 es.add(m); in enumSet() 75 return es; in enumSet()
|