/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/ |
D | CollectionToArrayTester.java | 45 Object[] array = collection.toArray(); in testToArray_noArgs() 58 Object[] array = collection.toArray(); in testToArray_isPlainObjectArray() 64 E[] array = collection.toArray(empty); in testToArray_emptyArray() 74 E[] array = collection.toArray(empty); in testToArray_emptyArray_ordered() 83 Object[] array = collection.toArray(in); in testToArray_emptyArrayOfObject() 94 array, collection.toArray(array)); in testToArray_rightSizedArray() 102 array, collection.toArray(array)); in testToArray_rightSizedArray_ordered() 109 array, collection.toArray(array)); in testToArray_rightSizedArrayOfObject() 117 array, collection.toArray(array)); in testToArray_rightSizedArrayOfObject_ordered() 126 array, collection.toArray(array)); in testToArray_oversizedArray() [all …]
|
D | ListToArrayTester.java | 38 Object[] actual = getList().toArray(); in testToArray_noArg() 45 Object[] actual = getList().toArray(new Object[0]); in testToArray_tooSmall() 51 Object[] actual = getList().toArray(new Object[getNumElements()]); in testToArray_largeEnough()
|
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
D | ForwardingImmutableCollection.java | 58 @Override public Object[] toArray() { in toArray() method in ForwardingImmutableCollection 59 return delegate.toArray(); in toArray() 62 @Override public <T> T[] toArray(T[] other) { in toArray() method in ForwardingImmutableCollection 63 return delegate.toArray(other); in toArray()
|
D | ImmutableCollection.java | 45 public Object[] toArray() { in toArray() method in ImmutableCollection 47 return toArray(newArray); in toArray() 50 public <T> T[] toArray(T[] other) { in toArray() method in ImmutableCollection 131 E[] castedArray = (E[]) toArray(); in createAsList()
|
/external/guava/guava-tests/test/com/google/common/primitives/ |
D | BytesTest.java | 165 assertTrue(Arrays.equals(EMPTY, Bytes.toArray(none))); in testToArray() 168 assertTrue(Arrays.equals(ARRAY1, Bytes.toArray(one))); in testToArray() 173 assertTrue(Arrays.equals(array, Bytes.toArray(three))); in testToArray() 175 assertTrue(Arrays.equals(array, Bytes.toArray(Bytes.asList(array)))); in testToArray() 185 byte[] arr = Bytes.toArray(misleadingSize); in testToArray_threadSafe() 197 Bytes.toArray(list); in testToArray_withNull() 215 byte[] newArray = Bytes.toArray(list); in testAsList_toArray_roundTrip() 230 Bytes.toArray(list.subList(1, 3)))); in testAsList_subList_toArray_roundTrip() 232 Bytes.toArray(list.subList(2, 2)))); in testAsList_subList_toArray_roundTrip()
|
D | LongsTest.java | 301 assertTrue(Arrays.equals(EMPTY, Longs.toArray(none))); in testToArray() 304 assertTrue(Arrays.equals(ARRAY1, Longs.toArray(one))); in testToArray() 309 assertTrue(Arrays.equals(array, Longs.toArray(three))); in testToArray() 311 assertTrue(Arrays.equals(array, Longs.toArray(Longs.asList(array)))); in testToArray() 321 long[] arr = Longs.toArray(misleadingSize); in testToArray_threadSafe() 333 Longs.toArray(list); in testToArray_withNull() 351 long[] newArray = Longs.toArray(list); in testAsList_toArray_roundTrip() 366 Longs.toArray(list.subList(1, 3)))); in testAsList_subList_toArray_roundTrip() 368 Longs.toArray(list.subList(2, 2)))); in testAsList_subList_toArray_roundTrip()
|
D | BooleansTest.java | 161 assertTrue(Arrays.equals(EMPTY, Booleans.toArray(none))); in testToArray() 164 assertTrue(Arrays.equals(ARRAY_FALSE, Booleans.toArray(one))); in testToArray() 169 assertTrue(Arrays.equals(array, Booleans.toArray(three))); in testToArray() 171 assertTrue(Arrays.equals(array, Booleans.toArray(Booleans.asList(array)))); in testToArray() 185 boolean[] arr = Booleans.toArray(misleadingSize); in testToArray_threadSafe() 197 Booleans.toArray(list); in testToArray_withNull()
|
D | DoublesTest.java | 302 assertTrue(Arrays.equals(EMPTY, Doubles.toArray(none))); in testToArray() 305 assertTrue(Arrays.equals(ARRAY1, Doubles.toArray(one))); in testToArray() 310 assertTrue(Arrays.equals(array, Doubles.toArray(three))); in testToArray() 312 assertTrue(Arrays.equals(array, Doubles.toArray(Doubles.asList(array)))); in testToArray() 322 double[] arr = Doubles.toArray(misleadingSize); in testToArray_threadSafe() 334 Doubles.toArray(list); in testToArray_withNull() 352 double[] newArray = Doubles.toArray(list); in testAsList_toArray_roundTrip() 367 Doubles.toArray(list.subList(1, 3)))); in testAsList_subList_toArray_roundTrip() 369 Doubles.toArray(list.subList(2, 2)))); in testAsList_subList_toArray_roundTrip()
|
D | ShortsTest.java | 328 assertTrue(Arrays.equals(EMPTY, Shorts.toArray(none))); in testToArray() 331 assertTrue(Arrays.equals(ARRAY1, Shorts.toArray(one))); in testToArray() 336 assertTrue(Arrays.equals(array, Shorts.toArray(three))); in testToArray() 338 assertTrue(Arrays.equals(array, Shorts.toArray(Shorts.asList(array)))); in testToArray() 348 short[] arr = Shorts.toArray(misleadingSize); in testToArray_threadSafe() 360 Shorts.toArray(list); in testToArray_withNull() 378 short[] newArray = Shorts.toArray(list); in testAsList_toArray_roundTrip() 393 Shorts.toArray(list.subList(1, 3)))); in testAsList_subList_toArray_roundTrip() 395 Shorts.toArray(list.subList(2, 2)))); in testAsList_subList_toArray_roundTrip()
|
D | CharsTest.java | 318 assertTrue(Arrays.equals(EMPTY, Chars.toArray(none))); in testToArray() 321 assertTrue(Arrays.equals(ARRAY1, Chars.toArray(one))); in testToArray() 326 assertTrue(Arrays.equals(array, Chars.toArray(three))); in testToArray() 328 assertTrue(Arrays.equals(array, Chars.toArray(Chars.asList(array)))); in testToArray() 338 char[] arr = Chars.toArray(misleadingSize); in testToArray_threadSafe() 350 Chars.toArray(list); in testToArray_withNull() 368 char[] newArray = Chars.toArray(list); in testAsList_toArray_roundTrip() 383 Chars.toArray(list.subList(1, 3)))); in testAsList_subList_toArray_roundTrip() 385 Chars.toArray(list.subList(2, 2)))); in testAsList_subList_toArray_roundTrip()
|
D | FloatsTest.java | 294 assertTrue(Arrays.equals(EMPTY, Floats.toArray(none))); in testToArray() 297 assertTrue(Arrays.equals(ARRAY1, Floats.toArray(one))); in testToArray() 302 assertTrue(Arrays.equals(array, Floats.toArray(three))); in testToArray() 304 assertTrue(Arrays.equals(array, Floats.toArray(Floats.asList(array)))); in testToArray() 314 float[] arr = Floats.toArray(misleadingSize); in testToArray_threadSafe() 326 Floats.toArray(list); in testToArray_withNull() 344 float[] newArray = Floats.toArray(list); in testAsList_toArray_roundTrip() 359 Floats.toArray(list.subList(1, 3)))); in testAsList_subList_toArray_roundTrip() 361 Floats.toArray(list.subList(2, 2)))); in testAsList_subList_toArray_roundTrip()
|
D | IntsTest.java | 321 assertTrue(Arrays.equals(EMPTY, Ints.toArray(none))); in testToArray() 324 assertTrue(Arrays.equals(ARRAY1, Ints.toArray(one))); in testToArray() 329 assertTrue(Arrays.equals(array, Ints.toArray(three))); in testToArray() 331 assertTrue(Arrays.equals(array, Ints.toArray(Ints.asList(array)))); in testToArray() 341 int[] arr = Ints.toArray(misleadingSize); in testToArray_threadSafe() 353 Ints.toArray(list); in testToArray_withNull() 371 int[] newArray = Ints.toArray(list); in testAsList_toArray_roundTrip() 386 Ints.toArray(list.subList(1, 3)))); in testAsList_subList_toArray_roundTrip() 388 Ints.toArray(list.subList(2, 2)))); in testAsList_subList_toArray_roundTrip()
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/ |
D | AbstractCollectionTest.java | 243 Object[] array = ac.toArray(); in test_toArray() 282 ac.toArray(null); in test_toArray$Ljava_lang_Object() 289 ac.toArray(new StringBuffer[ac.size()]); in test_toArray$Ljava_lang_Object() 296 assertSame(a, ac.toArray(a)); in test_toArray$Ljava_lang_Object() 299 assertNotSame(a, ac.toArray(a)); in test_toArray$Ljava_lang_Object() 300 a = ac.toArray(a); in test_toArray$Ljava_lang_Object() 304 ac.toArray(csa); in test_toArray$Ljava_lang_Object()
|
/external/guava/guava/src/com/google/common/collect/ |
D | ImmutableCollection.java | 56 public Object[] toArray() { in toArray() method in ImmutableCollection 61 public <T> T[] toArray(T[] other) { in toArray() method in ImmutableCollection 167 return new ImmutableAsList<E>(toArray(), this); in createAsList() 194 @Override public Object[] toArray() { in toArray() method in ImmutableCollection.EmptyImmutableCollection 198 @Override public <T> T[] toArray(T[] array) { in toArray() method in ImmutableCollection.EmptyImmutableCollection 266 return new SerializedForm(toArray()); in writeReplace()
|
D | ImmutableEnumSet.java | 73 @Override public Object[] toArray() { in toArray() method in ImmutableEnumSet 74 return delegate.toArray(); in toArray() 77 @Override public <T> T[] toArray(T[] array) { in toArray() method in ImmutableEnumSet 78 return delegate.toArray(array); in toArray()
|
D | ForwardingCollection.java | 114 public Object[] toArray() { in toArray() method in ForwardingCollection 115 return delegate().toArray(); in toArray() 119 public <T> T[] toArray(T[] array) { in toArray() method in ForwardingCollection 120 return delegate().toArray(array); in toArray() 252 return toArray(newArray); in standardToArray()
|
D | ConcurrentHashMultiset.java | 186 @Override public Object[] toArray() { in toArray() method in ConcurrentHashMultiset 187 return snapshot().toArray(); in toArray() 190 @Override public <T> T[] toArray(T[] array) { in toArray() method in ConcurrentHashMultiset 191 return snapshot().toArray(array); in toArray() 536 @Override public Object[] toArray() { 537 return snapshot().toArray(); 540 @Override public <T> T[] toArray(T[] array) { 541 return snapshot().toArray(array);
|
D | ImmutableSet.java | 195 : uniqueElementsList.toArray(); in construct() 334 Object[] elements = 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) { 524 return new SerializedForm(toArray());
|
/external/doclava/src/com/google/doclava/ |
D | Comment.java | 414 return results.toArray(new TagInfo[results.size()]); in tags() 515 mInlineTags = mInlineTagsList.toArray(new TagInfo[mInlineTagsList.size()]); in initImpl() 516 mParamTags = mParamTagsList.toArray(new ParamTagInfo[mParamTagsList.size()]); in initImpl() 517 mSeeTags = mSeeTagsList.toArray(new SeeTagInfo[mSeeTagsList.size()]); in initImpl() 518 mThrowsTags = mThrowsTagsList.toArray(new ThrowsTagInfo[mThrowsTagsList.size()]); in initImpl() 520 ParsedTagInfo.joinTags(mReturnTagsList.toArray(new ParsedTagInfo[mReturnTagsList.size()])); in initImpl() 522 ParsedTagInfo.joinTags(mDeprecatedTagsList.toArray(new ParsedTagInfo[mDeprecatedTagsList in initImpl() 524 mUndeprecateTags = mUndeprecateTagsList.toArray(new TagInfo[mUndeprecateTagsList.size()]); in initImpl() 525 mAttrTags = mAttrTagsList.toArray(new AttrTagInfo[mAttrTagsList.size()]); in initImpl() 526 mBriefTags = mBriefTagsList.toArray(new TagInfo[mBriefTagsList.size()]); in initImpl()
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | SynchronizedSetTest.java | 133 @Override public Object[] toArray() { in toArray() method in SynchronizedSetTest.TestSet 135 return super.toArray(); in toArray() 138 @Override public <T> T[] toArray(T[] a) { in toArray() method in SynchronizedSetTest.TestSet 140 return super.toArray(a); in toArray()
|
D | ForwardingQueueTest.java | 81 @Override public Object[] toArray() { in toArray() method in ForwardingQueueTest.StandardImplForwardingQueue 85 @Override public <T> T[] toArray(T[] array) { in toArray() method in ForwardingQueueTest.StandardImplForwardingQueue 226 forward.toArray(); in testToArray() 231 forward.toArray(new String[0]); in testToArray_TArray()
|
D | ForwardingSetTest.java | 89 @Override public Object[] toArray() { in toArray() method in ForwardingSetTest.StandardImplForwardingSet 93 @Override public <T> T[] toArray(T[] array) { in toArray() method in ForwardingSetTest.StandardImplForwardingSet 208 forward().toArray(); in testToArray() 213 forward().toArray(new String[0]); in testToArray_TArray()
|
D | ForwardingCollectionTest.java | 81 @Override public Object[] toArray() { in toArray() method in ForwardingCollectionTest.StandardImplForwardingCollection 85 @Override public <T> T[] toArray(T[] array) { in toArray() method in ForwardingCollectionTest.StandardImplForwardingCollection 201 forward.toArray(); in testToArray() 206 forward.toArray(new String[0]); in testToArray_TArray()
|
/external/guava/guava-tests/test/com/google/common/cache/ |
D | PopulatedCachesTest.java | 198 Object[] expectedArray = Maps.newHashMap(cache.asMap()).keySet().toArray(new Object[0]); in testKeySet_populated() 200 ASSERT.that(asList(keys.toArray())).hasContentsAnyOrder(expectedArray); in testKeySet_populated() 201 ASSERT.that(asList(keys.toArray(new Object[(int) cache.size()]))) in testKeySet_populated() 226 Object[] expectedArray = Maps.newHashMap(cache.asMap()).values().toArray(new Object[0]); in testValues_populated() 228 ASSERT.that(asList(values.toArray())).hasContentsAnyOrder(expectedArray); in testValues_populated() 229 ASSERT.that(asList(values.toArray(new Object[(int) cache.size()]))) in testValues_populated() 253 ASSERT.that(entries.toArray()).hasContentsAnyOrder(entrySet.toArray()); in testEntrySet_populated() 254 ASSERT.that(entries.toArray(new Entry[0])) in testEntrySet_populated() 255 .hasContentsAnyOrder(entrySet.toArray(new Entry[0])); in testEntrySet_populated()
|
/external/jmdns/src/javax/jmdns/impl/ |
D | JmmDNSImpl.java | 123 return result.toArray(new String[result.size()]); in getNames() 136 return result.toArray(new String[result.size()]); in getHostNames() 149 return result.toArray(new InetAddress[result.size()]); in getInetAddresses() 163 return result.toArray(new InetAddress[result.size()]); in getInterfaces() 219 return result.toArray(new ServiceInfo[result.size()]); in getServiceInfos() 422 return result.toArray(new ServiceInfo[result.size()]); in list() 452 result.put(subtype, infoForSubType.toArray(new ServiceInfo[infoForSubType.size()])); in listBySubtype() 482 return _networkListeners.toArray(new NetworkTopologyListener[_networkListeners.size()]); in networkListeners()
|