/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/ |
D | CollectionToArrayTester.java | 46 Object[] array = collection.toArray(); in testToArray_noArgs() 59 Object[] array = collection.toArray(); in testToArray_isPlainObjectArray() 65 E[] array = collection.toArray(empty); in testToArray_emptyArray() 75 E[] array = collection.toArray(empty); in testToArray_emptyArray_ordered() 84 Object[] array = collection.toArray(in); in testToArray_emptyArrayOfObject() 95 array, collection.toArray(array)); in testToArray_rightSizedArray() 103 array, collection.toArray(array)); in testToArray_rightSizedArray_ordered() 110 array, collection.toArray(array)); in testToArray_rightSizedArrayOfObject() 118 array, collection.toArray(array)); in testToArray_rightSizedArrayOfObject_ordered() 127 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/test-super/com/google/common/collect/testing/super/com/google/common/collect/testing/testers/ |
D | CollectionToArrayTester.java | 43 Object[] array = collection.toArray(); in testToArray_noArgs() 56 Object[] array = collection.toArray(); in testToArray_isPlainObjectArray() 62 E[] array = collection.toArray(empty); in testToArray_emptyArray() 72 E[] array = collection.toArray(empty); in testToArray_emptyArray_ordered() 81 Object[] array = collection.toArray(in); in testToArray_emptyArrayOfObject() 92 array, collection.toArray(array)); in testToArray_rightSizedArray() 100 array, collection.toArray(array)); in testToArray_rightSizedArray_ordered() 107 array, collection.toArray(array)); in testToArray_rightSizedArrayOfObject() 115 array, collection.toArray(array)); in testToArray_rightSizedArrayOfObject_ordered() 124 array, collection.toArray(array)); in testToArray_oversizedArray() [all …]
|
/external/guava/guava-gwt/test-super/com/google/common/primitives/super/com/google/common/primitives/ |
D | BytesTest.java | 163 assertTrue(Arrays.equals(EMPTY, Bytes.toArray(none))); in testToArray() 166 assertTrue(Arrays.equals(ARRAY1, Bytes.toArray(one))); in testToArray() 171 assertTrue(Arrays.equals(array, Bytes.toArray(three))); in testToArray() 173 assertTrue(Arrays.equals(array, Bytes.toArray(Bytes.asList(array)))); in testToArray() 183 byte[] arr = Bytes.toArray(misleadingSize); in testToArray_threadSafe() 195 Bytes.toArray(list); in testToArray_withNull() 211 assertTrue(Arrays.equals(array, Bytes.toArray(bytes))); in testToArray_withConversion() 212 assertTrue(Arrays.equals(array, Bytes.toArray(shorts))); in testToArray_withConversion() 213 assertTrue(Arrays.equals(array, Bytes.toArray(ints))); in testToArray_withConversion() 214 assertTrue(Arrays.equals(array, Bytes.toArray(floats))); in testToArray_withConversion() [all …]
|
D | IntsTest.java | 266 assertTrue(Arrays.equals(EMPTY, Ints.toArray(none))); in testToArray() 269 assertTrue(Arrays.equals(ARRAY1, Ints.toArray(one))); in testToArray() 274 assertTrue(Arrays.equals(array, Ints.toArray(three))); in testToArray() 276 assertTrue(Arrays.equals(array, Ints.toArray(Ints.asList(array)))); in testToArray() 286 int[] arr = Ints.toArray(misleadingSize); in testToArray_threadSafe() 298 Ints.toArray(list); in testToArray_withNull() 314 assertTrue(Arrays.equals(array, Ints.toArray(bytes))); in testToArray_withConversion() 315 assertTrue(Arrays.equals(array, Ints.toArray(shorts))); in testToArray_withConversion() 316 assertTrue(Arrays.equals(array, Ints.toArray(ints))); in testToArray_withConversion() 317 assertTrue(Arrays.equals(array, Ints.toArray(floats))); in testToArray_withConversion() [all …]
|
D | ShortsTest.java | 274 assertTrue(Arrays.equals(EMPTY, Shorts.toArray(none))); in testToArray() 277 assertTrue(Arrays.equals(ARRAY1, Shorts.toArray(one))); in testToArray() 282 assertTrue(Arrays.equals(array, Shorts.toArray(three))); in testToArray() 284 assertTrue(Arrays.equals(array, Shorts.toArray(Shorts.asList(array)))); in testToArray() 294 short[] arr = Shorts.toArray(misleadingSize); in testToArray_threadSafe() 306 Shorts.toArray(list); in testToArray_withNull() 322 assertTrue(Arrays.equals(array, Shorts.toArray(bytes))); in testToArray_withConversion() 323 assertTrue(Arrays.equals(array, Shorts.toArray(shorts))); in testToArray_withConversion() 324 assertTrue(Arrays.equals(array, Shorts.toArray(ints))); in testToArray_withConversion() 325 assertTrue(Arrays.equals(array, Shorts.toArray(floats))); in testToArray_withConversion() [all …]
|
D | FloatsTest.java | 276 assertTrue(Arrays.equals(EMPTY, Floats.toArray(none))); in testToArray() 279 assertTrue(Arrays.equals(ARRAY1, Floats.toArray(one))); in testToArray() 284 assertTrue(Arrays.equals(array, Floats.toArray(three))); in testToArray() 286 assertTrue(Arrays.equals(array, Floats.toArray(Floats.asList(array)))); in testToArray() 296 float[] arr = Floats.toArray(misleadingSize); in testToArray_threadSafe() 308 Floats.toArray(list); in testToArray_withNull() 324 assertTrue(Arrays.equals(array, Floats.toArray(bytes))); in testToArray_withConversion() 325 assertTrue(Arrays.equals(array, Floats.toArray(shorts))); in testToArray_withConversion() 326 assertTrue(Arrays.equals(array, Floats.toArray(ints))); in testToArray_withConversion() 327 assertTrue(Arrays.equals(array, Floats.toArray(floats))); in testToArray_withConversion() [all …]
|
D | LongsTest.java | 287 assertTrue(Arrays.equals(EMPTY, Longs.toArray(none))); in testToArray() 290 assertTrue(Arrays.equals(ARRAY1, Longs.toArray(one))); in testToArray() 295 assertTrue(Arrays.equals(array, Longs.toArray(three))); in testToArray() 297 assertTrue(Arrays.equals(array, Longs.toArray(Longs.asList(array)))); in testToArray() 307 long[] arr = Longs.toArray(misleadingSize); in testToArray_threadSafe() 319 Longs.toArray(list); in testToArray_withNull() 335 assertTrue(Arrays.equals(array, Longs.toArray(bytes))); in testToArray_withConversion() 336 assertTrue(Arrays.equals(array, Longs.toArray(shorts))); in testToArray_withConversion() 337 assertTrue(Arrays.equals(array, Longs.toArray(ints))); in testToArray_withConversion() 338 assertTrue(Arrays.equals(array, Longs.toArray(floats))); in testToArray_withConversion() [all …]
|
D | DoublesTest.java | 286 assertTrue(Arrays.equals(EMPTY, Doubles.toArray(none))); in testToArray() 289 assertTrue(Arrays.equals(ARRAY1, Doubles.toArray(one))); in testToArray() 294 assertTrue(Arrays.equals(array, Doubles.toArray(three))); in testToArray() 296 assertTrue(Arrays.equals(array, Doubles.toArray(Doubles.asList(array)))); in testToArray() 306 double[] arr = Doubles.toArray(misleadingSize); in testToArray_threadSafe() 318 Doubles.toArray(list); in testToArray_withNull() 334 assertTrue(Arrays.equals(array, Doubles.toArray(bytes))); in testToArray_withConversion() 335 assertTrue(Arrays.equals(array, Doubles.toArray(shorts))); in testToArray_withConversion() 336 assertTrue(Arrays.equals(array, Doubles.toArray(ints))); in testToArray_withConversion() 337 assertTrue(Arrays.equals(array, Doubles.toArray(floats))); in testToArray_withConversion() [all …]
|
D | CharsTest.java | 264 assertTrue(Arrays.equals(EMPTY, Chars.toArray(none))); in testToArray() 267 assertTrue(Arrays.equals(ARRAY1, Chars.toArray(one))); in testToArray() 272 assertTrue(Arrays.equals(array, Chars.toArray(three))); in testToArray() 274 assertTrue(Arrays.equals(array, Chars.toArray(Chars.asList(array)))); in testToArray() 284 char[] arr = Chars.toArray(misleadingSize); in testToArray_threadSafe() 296 Chars.toArray(list); in testToArray_withNull() 314 char[] newArray = Chars.toArray(list); in testAsList_toArray_roundTrip() 329 Chars.toArray(list.subList(1, 3)))); in testAsList_subList_toArray_roundTrip() 331 Chars.toArray(list.subList(2, 2)))); in testAsList_subList_toArray_roundTrip()
|
/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() 213 assertTrue(Arrays.equals(array, Bytes.toArray(bytes))); in testToArray_withConversion() 214 assertTrue(Arrays.equals(array, Bytes.toArray(shorts))); in testToArray_withConversion() 215 assertTrue(Arrays.equals(array, Bytes.toArray(ints))); in testToArray_withConversion() 216 assertTrue(Arrays.equals(array, Bytes.toArray(floats))); in testToArray_withConversion() [all …]
|
D | ShortsTest.java | 334 assertTrue(Arrays.equals(EMPTY, Shorts.toArray(none))); in testToArray() 337 assertTrue(Arrays.equals(ARRAY1, Shorts.toArray(one))); in testToArray() 342 assertTrue(Arrays.equals(array, Shorts.toArray(three))); in testToArray() 344 assertTrue(Arrays.equals(array, Shorts.toArray(Shorts.asList(array)))); in testToArray() 354 short[] arr = Shorts.toArray(misleadingSize); in testToArray_threadSafe() 366 Shorts.toArray(list); in testToArray_withNull() 382 assertTrue(Arrays.equals(array, Shorts.toArray(bytes))); in testToArray_withConversion() 383 assertTrue(Arrays.equals(array, Shorts.toArray(shorts))); in testToArray_withConversion() 384 assertTrue(Arrays.equals(array, Shorts.toArray(ints))); in testToArray_withConversion() 385 assertTrue(Arrays.equals(array, Shorts.toArray(floats))); in testToArray_withConversion() [all …]
|
D | LongsTest.java | 310 assertTrue(Arrays.equals(EMPTY, Longs.toArray(none))); in testToArray() 313 assertTrue(Arrays.equals(ARRAY1, Longs.toArray(one))); in testToArray() 318 assertTrue(Arrays.equals(array, Longs.toArray(three))); in testToArray() 320 assertTrue(Arrays.equals(array, Longs.toArray(Longs.asList(array)))); in testToArray() 330 long[] arr = Longs.toArray(misleadingSize); in testToArray_threadSafe() 342 Longs.toArray(list); in testToArray_withNull() 358 assertTrue(Arrays.equals(array, Longs.toArray(bytes))); in testToArray_withConversion() 359 assertTrue(Arrays.equals(array, Longs.toArray(shorts))); in testToArray_withConversion() 360 assertTrue(Arrays.equals(array, Longs.toArray(ints))); in testToArray_withConversion() 361 assertTrue(Arrays.equals(array, Longs.toArray(floats))); in testToArray_withConversion() [all …]
|
D | IntsTest.java | 327 assertTrue(Arrays.equals(EMPTY, Ints.toArray(none))); in testToArray() 330 assertTrue(Arrays.equals(ARRAY1, Ints.toArray(one))); in testToArray() 335 assertTrue(Arrays.equals(array, Ints.toArray(three))); in testToArray() 337 assertTrue(Arrays.equals(array, Ints.toArray(Ints.asList(array)))); in testToArray() 347 int[] arr = Ints.toArray(misleadingSize); in testToArray_threadSafe() 359 Ints.toArray(list); in testToArray_withNull() 375 assertTrue(Arrays.equals(array, Ints.toArray(bytes))); in testToArray_withConversion() 376 assertTrue(Arrays.equals(array, Ints.toArray(shorts))); in testToArray_withConversion() 377 assertTrue(Arrays.equals(array, Ints.toArray(ints))); in testToArray_withConversion() 378 assertTrue(Arrays.equals(array, Ints.toArray(floats))); in testToArray_withConversion() [all …]
|
D | DoublesTest.java | 311 assertTrue(Arrays.equals(EMPTY, Doubles.toArray(none))); in testToArray() 314 assertTrue(Arrays.equals(ARRAY1, Doubles.toArray(one))); in testToArray() 319 assertTrue(Arrays.equals(array, Doubles.toArray(three))); in testToArray() 321 assertTrue(Arrays.equals(array, Doubles.toArray(Doubles.asList(array)))); in testToArray() 331 double[] arr = Doubles.toArray(misleadingSize); in testToArray_threadSafe() 343 Doubles.toArray(list); in testToArray_withNull() 359 assertTrue(Arrays.equals(array, Doubles.toArray(bytes))); in testToArray_withConversion() 360 assertTrue(Arrays.equals(array, Doubles.toArray(shorts))); in testToArray_withConversion() 361 assertTrue(Arrays.equals(array, Doubles.toArray(ints))); in testToArray_withConversion() 362 assertTrue(Arrays.equals(array, Doubles.toArray(floats))); in testToArray_withConversion() [all …]
|
D | FloatsTest.java | 302 assertTrue(Arrays.equals(EMPTY, Floats.toArray(none))); in testToArray() 305 assertTrue(Arrays.equals(ARRAY1, Floats.toArray(one))); in testToArray() 310 assertTrue(Arrays.equals(array, Floats.toArray(three))); in testToArray() 312 assertTrue(Arrays.equals(array, Floats.toArray(Floats.asList(array)))); in testToArray() 322 float[] arr = Floats.toArray(misleadingSize); in testToArray_threadSafe() 334 Floats.toArray(list); in testToArray_withNull() 350 assertTrue(Arrays.equals(array, Floats.toArray(bytes))); in testToArray_withConversion() 351 assertTrue(Arrays.equals(array, Floats.toArray(shorts))); in testToArray_withConversion() 352 assertTrue(Arrays.equals(array, Floats.toArray(ints))); in testToArray_withConversion() 353 assertTrue(Arrays.equals(array, Floats.toArray(floats))); in testToArray_withConversion() [all …]
|
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()
|
/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 | ForwardingImmutableSet.java | 59 @Override public Object[] toArray() { in toArray() method in ForwardingImmutableSet 60 return delegate.toArray(); in toArray() 63 @Override public <T> T[] toArray(T[] other) { in toArray() method in ForwardingImmutableSet 64 return delegate.toArray(other); in toArray()
|
D | ForwardingImmutableList.java | 53 @Override public Object[] toArray() { in toArray() method in ForwardingImmutableList 56 return delegateList().toArray(new Object[size()]); in toArray() 87 @Override public <T> T[] toArray(T[] other) { in toArray() method in ForwardingImmutableList 88 return delegateList().toArray(other); in toArray()
|
/external/guava/guava/src/com/google/common/collect/ |
D | ForwardingCollection.java | 113 public Object[] toArray() { in toArray() method in ForwardingCollection 114 return delegate().toArray(); in toArray() 118 public <T> T[] toArray(T[] array) { in toArray() method in ForwardingCollection 119 return delegate().toArray(array); in toArray() 242 return toArray(newArray); in standardToArray()
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | SynchronizedQueueTest.java | 141 public Object[] toArray() { in toArray() method in SynchronizedQueueTest.TestQueue 143 return delegate.toArray(); in toArray() 147 public <T> T[] toArray(T[] array) { in toArray() method in SynchronizedQueueTest.TestQueue 149 return delegate.toArray(array); in toArray() 174 create().toArray(); in testHoldsLockOnAllOperations() 175 create().toArray(new String[] { "foo" }); in testHoldsLockOnAllOperations()
|
/external/jetty/src/java/org/eclipse/jetty/util/ |
D | ConcurrentHashSet.java | 110 public Object[] toArray() in toArray() method in ConcurrentHashSet 112 return _keys.toArray(); in toArray() 116 public <T> T[] toArray(T[] a) in toArray() method in ConcurrentHashSet 118 return _keys.toArray(a); in toArray()
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/estimation/ |
D | SimpleEstimationProblem.java | 66 return parameters.toArray(new EstimatedParameter[parameters.size()]); in getAllParameters() 84 return unbound.toArray(new EstimatedParameter[unbound.size()]); in getUnboundParameters() 93 return measurements.toArray(new WeightedMeasurement[measurements.size()]); in getMeasurements()
|
/external/guava/guava-tests/benchmark/com/google/common/collect/ |
D | ConcurrentHashMultisetBenchmark.java | 213 @Override public Object[] toArray() { 214 return snapshot().toArray(); 217 @Override public <T> T[] toArray(T[] array) { 218 return snapshot().toArray(array); 483 @Override public Object[] toArray() { 484 return snapshot().toArray(); 487 @Override public <T> T[] toArray(T[] array) { 488 return snapshot().toArray(array);
|