/libcore/luni/src/main/java/java/util/concurrent/ |
D | CopyOnWriteArraySet.java | 132 public Object[] toArray() { in toArray() method in CopyOnWriteArraySet 133 return al.toArray(); in toArray() 177 public <T> T[] toArray(T[] a) { in toArray() method in CopyOnWriteArraySet 178 return al.toArray(a); in toArray()
|
D | DelayQueue.java | 394 public Object[] toArray() { in toArray() method in DelayQueue 398 return q.toArray(); in toArray() 439 public <T> T[] toArray(T[] a) { in toArray() method in DelayQueue 443 return q.toArray(a); in toArray() 496 return new Itr(toArray()); in iterator()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | AbstractCollectionTest.java | 247 Object[] array = ac.toArray(); in test_toArray() 288 ac.toArray(null); in test_toArray$Ljava_lang_Object() 295 ac.toArray(new StringBuffer[ac.size()]); in test_toArray$Ljava_lang_Object() 302 assertSame(a, ac.toArray(a)); in test_toArray$Ljava_lang_Object() 305 assertNotSame(a, ac.toArray(a)); in test_toArray$Ljava_lang_Object() 306 a = ac.toArray(a); in test_toArray$Ljava_lang_Object() 310 ac.toArray(csa); in test_toArray$Ljava_lang_Object()
|
D | LinkedHashSetTest.java | 287 Object[] o = lhs.toArray(); in test_toArray() 308 lhs.toArray(o1); in test_toArray$Ljava_lang_Object() 314 lhs.toArray(null); in test_toArray$Ljava_lang_Object() 321 lhs.toArray(o2); in test_toArray$Ljava_lang_Object()
|
D | ArrayListTest.java | 699 list.toArray(result); in test_removeI() 803 Object[] obj = alist.toArray(); in test_toArray() 828 retArray = alist.toArray(argArray); in test_toArray$Ljava_lang_Object() 831 retArray = alist.toArray(argArray); in test_toArray$Ljava_lang_Object() 844 alist.toArray(strArray); in test_toArray$Ljava_lang_Object() 929 list.toArray(result); in test_removeLjava_lang_Object() 984 mal.toArray(result); in test_removeRangeII() 1065 public Object[] toArray() { in shrinksOnSize() method 1067 return super.toArray(); in shrinksOnSize()
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | CopyOnWriteArraySetTest.java | 261 Object[] a = new CopyOnWriteArraySet().toArray(); in testToArray() 271 assertTrue(Arrays.equals(elements, full.toArray())); in testToArray() 272 assertSame(Object[].class, full.toArray().getClass()); in testToArray() 284 assertSame(a, empty.toArray(a)); in testToArray2() 288 assertSame(a, empty.toArray(a)); in testToArray2() 300 assertTrue(Arrays.equals(elements, full.toArray(a))); in testToArray2() 303 assertSame(Integer[].class, full.toArray(a).getClass()); in testToArray2() 307 assertSame(a, full.toArray(a)); in testToArray2() 312 assertSame(a, full.toArray(a)); in testToArray2() 328 c.toArray(new Long[5]); in testToArray_ArrayStoreException() [all …]
|
D | CopyOnWriteArrayListTest.java | 409 Object[] a = new CopyOnWriteArrayList().toArray(); in testToArray() 419 assertTrue(Arrays.equals(elements, full.toArray())); in testToArray() 420 assertSame(Object[].class, full.toArray().getClass()); in testToArray() 432 assertSame(a, empty.toArray(a)); in testToArray2() 436 assertSame(a, empty.toArray(a)); in testToArray2() 448 assertTrue(Arrays.equals(elements, full.toArray(a))); in testToArray2() 451 assertSame(Integer[].class, full.toArray(a).getClass()); in testToArray2() 455 assertSame(a, full.toArray(a)); in testToArray2() 460 assertSame(a, full.toArray(a)); in testToArray2() 501 c.toArray(new Long[5]); in testToArray_ArrayStoreException() [all …]
|
D | ConcurrentLinkedQueueTest.java | 378 Object[] o = q.toArray(); in testToArray() 389 Integer[] array = q.toArray(ints); in testToArray2() 401 q.toArray(null); in testToArray_NullArg() 412 q.toArray(new String[10]); in testToArray1_BadArg() 503 assertTrue(Arrays.equals(x.toArray(), y.toArray())); in testSerialization()
|
D | LinkedTransferQueueTest.java | 93 assertTrue(Arrays.equals(q.toArray(), in testConstructor5() 94 intList.toArray())); in testConstructor5() 95 assertTrue(Arrays.equals(q.toArray(new Object[0]), in testConstructor5() 96 intList.toArray(new Object[0]))); in testConstructor5() 97 assertTrue(Arrays.equals(q.toArray(new Object[SIZE]), in testConstructor5() 98 intList.toArray(new Object[SIZE]))); in testConstructor5() 457 Object[] o = q.toArray(); in testToArray() 469 Integer[] array = q.toArray(ints); in testToArray2() 482 q.toArray(new String[10]); in testToArray1_BadArg() 622 assertTrue(Arrays.equals(x.toArray(), y.toArray())); in testSerialization()
|
/libcore/support/src/test/java/tests/support/ |
D | Support_MapTest.java | 135 T[] set1TypedArray1 = set1.toArray(zeroLengthArray); in crossCheckOrdering() 159 T[] set1TypedArray2 = set1.toArray(parameterArray1); in crossCheckOrdering() 164 Object[] set1UntypedArray = set1.toArray(); in crossCheckOrdering() 169 T[] set2TypedArray1 = set2.toArray(zeroLengthArray); in crossCheckOrdering() 175 T[] set2TypedArray2 = set1.toArray(parameterArray2); in crossCheckOrdering() 180 Object[] set2UntypedArray = set2.toArray(); in crossCheckOrdering()
|
D | Support_UnmodifiableCollectionTest.java | 93 objArray = col.toArray(); in runTest() 102 col.toArray(objArray); in runTest()
|
/libcore/luni/src/main/java/java/util/ |
D | AbstractCollection.java | 338 public Object[] toArray() { in toArray() method in AbstractCollection 339 return toArrayList().toArray(); in toArray() 342 public <T> T[] toArray(T[] contents) { in toArray() method in AbstractCollection 343 return toArrayList().toArray(contents); in toArray()
|
D | Collection.java | 292 public Object[] toArray(); in toArray() method 315 public <T> T[] toArray(T[] array); in toArray() method
|
D | Set.java | 178 public Object[] toArray(); in toArray() method 195 public <T> T[] toArray(T[] array); in toArray() method
|
D | List.java | 336 public Object[] toArray(); in toArray() method 352 public <T> T[] toArray(T[] array); in toArray() method
|
D | Hashtable.java | 951 public Object[] toArray() { in toArray() method in Hashtable.KeySet 953 return super.toArray(); in toArray() 956 public <T> T[] toArray(T[] a) { in toArray() method in Hashtable.KeySet 958 return super.toArray(a); in toArray() 986 public Object[] toArray() { in toArray() method in Hashtable.Values 988 return super.toArray(); in toArray() 991 public <T> T[] toArray(T[] a) { in toArray() method in Hashtable.Values 993 return super.toArray(a); in toArray() 1048 public Object[] toArray() { in toArray() method in Hashtable.EntrySet 1050 return super.toArray(); in toArray() [all …]
|
D | Collections.java | 444 @Override public java.lang.Object[] toArray() { 446 return c.toArray(); 456 @Override public <T> T[] toArray(T[] array) { 458 return c.toArray(array); 553 list.toArray(array); 577 list.toArray(array); 985 @Override public Object[] toArray() { 986 return c.toArray(); 989 @Override public <T> T[] toArray(T[] array) { 990 return c.toArray(array); [all …]
|
D | Observable.java | 133 observers.toArray(arrays); in notifyObservers()
|
D | ArrayList.java | 97 Object[] a = collection.toArray(); in ArrayList() 188 Object[] newPart = collection.toArray(); in addAll() 228 Object[] newPart = collection.toArray(); in addAll() 494 @Override public Object[] toArray() { in toArray() method in ArrayList 516 @Override public <T> T[] toArray(T[] contents) { in toArray() method in ArrayList
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | AbstractCollectionTest.java | 34 m.values().toArray(); in test_toArray() 35 m.values().toArray(new Integer[m.size()]); in test_toArray()
|
D | OldPriorityQueueTest.java | 78 return Arrays.equals(a.toArray(), b.toArray()); in test_Serialization()
|
/libcore/luni/src/main/java/libcore/reflect/ |
D | ListOfVariables.java | 31 return array.toArray(a); in getArray()
|
/libcore/luni/src/main/java/java/nio/ |
D | SelectorImpl.java | 396 public Object[] toArray() { in toArray() method in SelectorImpl.UnaddableSet 397 return set.toArray(); in toArray() 400 public <T> T[] toArray(T[] a) { in toArray() method in SelectorImpl.UnaddableSet 401 return set.toArray(a); in toArray()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/ |
D | MockAbstractPreferences.java | 94 childs.keySet().toArray(r); in childrenNamesSpi() 152 keys.toArray(results); in keysSpi()
|
/libcore/dalvik/src/main/java/dalvik/system/ |
D | DexPathList.java | 113 suppressedExceptions.toArray(new IOException[suppressedExceptions.size()]); in DexPathList() 158 return result.toArray(new File[result.size()]); in splitLibraryPath() 252 return elements.toArray(new Element[elements.size()]); in makeDexElements()
|