/external/guava/guava/src/com/google/common/collect/ |
EmptyImmutableSortedSet.java | 63 @Override public Object[] toArray() { 67 @Override public <T> T[] toArray(T[] a) {
|
SingletonImmutableSet.java | 77 @Override public Object[] toArray() { 81 @Override public <T> T[] toArray(T[] array) { 87 // Writes will produce ArrayStoreException when the toArray() doc requires.
|
ConcurrentHashMultiset.java | 182 * Note: the superclass toArray() methods assume that size() gives a correct 186 @Override public Object[] toArray() { 187 return snapshot().toArray(); 190 @Override public <T> T[] toArray(T[] array) { 191 return snapshot().toArray(array); 532 * Note: the superclass toArray() methods assume that size() gives a correct 536 @Override public Object[] toArray() { 537 return snapshot().toArray(); 540 @Override public <T> T[] toArray(T[] array) { 541 return snapshot().toArray(array) [all...] |
EmptyImmutableList.java | 92 @Override public Object[] toArray() { 96 @Override public <T> T[] toArray(T[] a) {
|
ImmutableSet.java | 195 : uniqueElementsList.toArray(); 284 // TODO(benyu): here we could avoid toArray() for 0 or 1-element list, 334 Object[] elements = collection.toArray(); 344 // as specified by Collection.toArray(). 403 @Override public Object[] toArray() { 409 @Override public <T> T[] toArray(T[] array) { 476 @Override public Object[] toArray() { 477 return toArray(new Object[size()]); 480 @Override public <T> T[] toArray(T[] array) { 488 // Writes will produce ArrayStoreException when the toArray() doc require [all...] |
/external/mockito/cglib-and-asm/src/org/mockito/cglib/proxy/ |
CallbackHelper.java | 64 return (Callback[])callbacks.toArray(new Callback[callbacks.size()]); 77 return (Class[])callbacks.toArray(new Class[callbacks.size()]);
|
/libcore/support/src/test/java/tests/support/ |
Support_UnmodifiableCollectionTest.java | 91 // toArray 93 objArray = col.toArray(); 96 "UnmodifiableCollectionTest - toArray returned incorrect array", 100 // toArray (Object[]) 102 col.toArray(objArray); 105 "UnmodifiableCollectionTest - toArray(Object) filled array incorrectly",
|
Support_MapTest.java | 91 // same across iterator(), toArray() and toArray(T[]) for a given map *and* the same for the 102 // same across iterator(), toArray() and toArray(T[]) for a given map *and* the same for the 135 T[] set1TypedArray1 = set1.toArray(zeroLengthArray); 138 // Compare set1.iterator(), set2.iterator() and set1.toArray(new T[0]) 157 // set1.toArray(new T[size]) 159 T[] set1TypedArray2 = set1.toArray(parameterArray1); 163 // set1.toArray() 164 Object[] set1UntypedArray = set1.toArray(); [all...] |
/packages/apps/Email/src/com/android/email/mail/store/imap/ |
ImapUtility.java | 89 return list.toArray(stringList); 124 return list.toArray(stringList);
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/ui/tree/ |
UiModelTreeContentProvider.java | 52 return node.getUiChildren().toArray(); 107 return roots.toArray();
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/launch/ |
AMReceiver.java | 143 AdtPlugin.printErrorToConsole(mLaunchInfo.getProject(), array.toArray()); 145 AdtPlugin.printToConsole(mLaunchInfo.getProject(), array.toArray());
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/ui/ |
ResourceContentProvider.java | 74 (ResourceType)parentElement).toArray(); 106 return types.toArray();
|
/external/guava/guava-tests/test/com/google/common/primitives/ |
BooleansTest.java | 161 assertTrue(Arrays.equals(EMPTY, Booleans.toArray(none))); 164 assertTrue(Arrays.equals(ARRAY_FALSE, Booleans.toArray(one))); 169 assertTrue(Arrays.equals(array, Booleans.toArray(three))); 171 assertTrue(Arrays.equals(array, Booleans.toArray(Booleans.asList(array)))); 185 boolean[] arr = Booleans.toArray(misleadingSize); 197 Booleans.toArray(list);
|
CharsTest.java | 318 assertTrue(Arrays.equals(EMPTY, Chars.toArray(none))); 321 assertTrue(Arrays.equals(ARRAY1, Chars.toArray(one))); 326 assertTrue(Arrays.equals(array, Chars.toArray(three))); 328 assertTrue(Arrays.equals(array, Chars.toArray(Chars.asList(array)))); 338 char[] arr = Chars.toArray(misleadingSize); 350 Chars.toArray(list); 368 char[] newArray = Chars.toArray(list); 383 Chars.toArray(list.subList(1, 3)))); 385 Chars.toArray(list.subList(2, 2))));
|
DoublesTest.java | 302 assertTrue(Arrays.equals(EMPTY, Doubles.toArray(none))); 305 assertTrue(Arrays.equals(ARRAY1, Doubles.toArray(one))); 310 assertTrue(Arrays.equals(array, Doubles.toArray(three))); 312 assertTrue(Arrays.equals(array, Doubles.toArray(Doubles.asList(array)))); 322 double[] arr = Doubles.toArray(misleadingSize); 334 Doubles.toArray(list); 352 double[] newArray = Doubles.toArray(list); 367 Doubles.toArray(list.subList(1, 3)))); 369 Doubles.toArray(list.subList(2, 2))));
|
FloatsTest.java | 294 assertTrue(Arrays.equals(EMPTY, Floats.toArray(none))); 297 assertTrue(Arrays.equals(ARRAY1, Floats.toArray(one))); 302 assertTrue(Arrays.equals(array, Floats.toArray(three))); 304 assertTrue(Arrays.equals(array, Floats.toArray(Floats.asList(array)))); 314 float[] arr = Floats.toArray(misleadingSize); 326 Floats.toArray(list); 344 float[] newArray = Floats.toArray(list); 359 Floats.toArray(list.subList(1, 3)))); 361 Floats.toArray(list.subList(2, 2))));
|
IntsTest.java | 321 assertTrue(Arrays.equals(EMPTY, Ints.toArray(none))); 324 assertTrue(Arrays.equals(ARRAY1, Ints.toArray(one))); 329 assertTrue(Arrays.equals(array, Ints.toArray(three))); 331 assertTrue(Arrays.equals(array, Ints.toArray(Ints.asList(array)))); 341 int[] arr = Ints.toArray(misleadingSize); 353 Ints.toArray(list); 371 int[] newArray = Ints.toArray(list); 386 Ints.toArray(list.subList(1, 3)))); 388 Ints.toArray(list.subList(2, 2))));
|
LongsTest.java | 301 assertTrue(Arrays.equals(EMPTY, Longs.toArray(none))); 304 assertTrue(Arrays.equals(ARRAY1, Longs.toArray(one))); 309 assertTrue(Arrays.equals(array, Longs.toArray(three))); 311 assertTrue(Arrays.equals(array, Longs.toArray(Longs.asList(array)))); 321 long[] arr = Longs.toArray(misleadingSize); 333 Longs.toArray(list); 351 long[] newArray = Longs.toArray(list); 366 Longs.toArray(list.subList(1, 3)))); 368 Longs.toArray(list.subList(2, 2))));
|
ShortsTest.java | 328 assertTrue(Arrays.equals(EMPTY, Shorts.toArray(none))); 331 assertTrue(Arrays.equals(ARRAY1, Shorts.toArray(one))); 336 assertTrue(Arrays.equals(array, Shorts.toArray(three))); 338 assertTrue(Arrays.equals(array, Shorts.toArray(Shorts.asList(array)))); 348 short[] arr = Shorts.toArray(misleadingSize); 360 Shorts.toArray(list); 378 short[] newArray = Shorts.toArray(list); 393 Shorts.toArray(list.subList(1, 3)))); 395 Shorts.toArray(list.subList(2, 2))));
|
/frameworks/ex/common/java/com/android/common/contacts/ |
DataUsageStatUpdater.java | 107 Log.d(TAG, "updateWithAddress: " + Arrays.toString(addresses.toArray())); 122 whereArgs.toArray(new String[0]), null); 157 Log.d(TAG, "updateWithPhoneNumber: " + Arrays.toString(numbers.toArray())); 172 whereArgs.toArray(new String[0]), null); 249 whereBuilder.toString(), whereArgs.toArray(new String[0])) > 0) {
|
/libcore/luni/src/main/java/java/util/concurrent/ |
DelayQueue.java | 394 public Object[] toArray() { 398 return q.toArray(); 417 * <p>Like the {@link #toArray()} method, this method acts as bridge between 425 * <pre> {@code Delayed[] a = q.toArray(new Delayed[0]);}</pre> 427 * Note that {@code toArray(new Object[0])} is identical in function to 428 * {@code toArray()}. 439 public <T> T[] toArray(T[] a) { 443 return q.toArray(a); 496 return new Itr(toArray());
|
/dalvik/hit/src/com/android/hit/ |
Queries.java | 145 return theClass.mInstances.toArray(instances); 173 instanceList.toArray(result); 237 return resultList.toArray(resultArray);
|
/external/smack/src/org/jivesoftware/smack/util/collections/ |
AbstractReferenceMap.java | 296 * The <code>setValue()</code> method on the <code>toArray</code> entries has no effect. 491 public Object[] toArray() { 492 return toArray(new Object[0]); 495 public <T> T[] toArray(T[] arr) { 503 return list.toArray(arr); 517 public Object[] toArray() { 518 return toArray(new Object[0]); 521 public <T> T[] toArray(T[] arr) { 527 return list.toArray(arr); 541 public Object[] toArray() { [all...] |
/libcore/jsr166-tests/src/test/java/jsr166/ |
CopyOnWriteArrayListTest.java | 405 * toArray() returns an Object array containing all elements from 409 Object[] a = new CopyOnWriteArrayList().toArray(); 419 assertTrue(Arrays.equals(elements, full.toArray())); 420 assertSame(Object[].class, full.toArray().getClass()); 424 * toArray(Integer array) returns an Integer array containing all 432 assertSame(a, empty.toArray(a)); 436 assertSame(a, empty.toArray(a)); 448 assertTrue(Arrays.equals(elements, full.toArray(a))); 451 assertSame(Integer[].class, full.toArray(a).getClass()); 455 assertSame(a, full.toArray(a)) [all...] |
/external/apache-harmony/support/src/test/java/tests/support/ |
Support_UnmodifiableMapTest.java | 142 // toArray 144 objArray = keySet.toArray(); 147 "UnmodifiableMapTest - keySetTest - toArray returned incorrect array", 151 // toArray (Object[]) 153 keySet.toArray(objArray); 156 "UnmodifiableMapTest - keySetTest - toArray(Object) filled array incorrectly",
|