Home
last modified time | relevance | path

Searched refs:toArray (Results 1 – 25 of 823) sorted by relevance

12345678910>>...33

/external/conscrypt/repackaged/openjdk/src/test/java/com/android/org/conscrypt/
DAbstractSessionContextTest.java47 private static NativeSslSession[] toArray(NativeSslSession... sessions) { in toArray() method in AbstractSessionContextTest
59 assertSessionContextContents(toArray(a), toArray(b)); in testSimpleAddition()
62 assertSessionContextContents(toArray(a, b), toArray()); in testSimpleAddition()
76 assertSessionContextContents(toArray(a, b, c, d), toArray()); in testTrimToSize()
79 assertSessionContextContents(toArray(c, d), toArray(a, b)); in testTrimToSize()
91 assertSessionContextContents(toArray(a), toArray(b, c, d)); in testImplicitRemovalOfOldest()
94 assertSessionContextContents(toArray(a, b), toArray(c, d)); in testImplicitRemovalOfOldest()
97 assertSessionContextContents(toArray(b, c), toArray(a, d)); in testImplicitRemovalOfOldest()
100 assertSessionContextContents(toArray(c, d), toArray(a, b)); in testImplicitRemovalOfOldest()
/external/conscrypt/openjdk/src/test/java/org/conscrypt/
DAbstractSessionContextTest.java43 private static NativeSslSession[] toArray(NativeSslSession... sessions) { in toArray() method in AbstractSessionContextTest
55 assertSessionContextContents(toArray(a), toArray(b)); in testSimpleAddition()
58 assertSessionContextContents(toArray(a, b), toArray()); in testSimpleAddition()
72 assertSessionContextContents(toArray(a, b, c, d), toArray()); in testTrimToSize()
75 assertSessionContextContents(toArray(c, d), toArray(a, b)); in testTrimToSize()
87 assertSessionContextContents(toArray(a), toArray(b, c, d)); in testImplicitRemovalOfOldest()
90 assertSessionContextContents(toArray(a, b), toArray(c, d)); in testImplicitRemovalOfOldest()
93 assertSessionContextContents(toArray(b, c), toArray(a, d)); in testImplicitRemovalOfOldest()
96 assertSessionContextContents(toArray(c, d), toArray(a, b)); in testImplicitRemovalOfOldest()
/external/guava/guava-gwt/test-super/com/google/common/collect/testing/super/com/google/common/collect/testing/testers/
DCollectionToArrayTester.java43 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-testlib/src/com/google/common/collect/testing/testers/
DCollectionToArrayTester.java46 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 …]
/external/tensorflow/tensorflow/java/src/test/java/org/tensorflow/
DGraphTest.java144 Output<?>[] grads0 = g.addGradients(y1, toArray(x1)); in addGradientsToGraph()
149 Output<?>[] grads1 = g.addGradients(y2, toArray(x1, x2)); in addGradientsToGraph()
183 Output<?>[] grad = g.addGradients(null, toArray(y0, y1), toArray(x), null); in addGradientSumsToGraph()
209 Output<?>[] grad0 = g.addGradients(y1, toArray(y0)); in addGradientsWithInitialValuesToGraph()
214 Output<?>[] grad1 = g.addGradients(null, toArray(y0), toArray(x), toArray(grad0[0])); in addGradientsWithInitialValuesToGraph()
238 Output<?>[] grad0 = g.addGradients(null, toArray(y0), toArray(x), null); in validateGradientsNames()
241 Output<?>[] grad1 = g.addGradients(null, toArray(y0), toArray(x), null); in validateGradientsNames()
244 Output<?>[] grad2 = g.addGradients("more_gradients", toArray(y0), toArray(x), null); in validateGradientsNames()
247 Output<?>[] grad3 = g.addGradients("even_more_gradients", toArray(y0), toArray(x), null); in validateGradientsNames()
251 g.addGradients("even_more_gradients", toArray(y0), toArray(x), null); in validateGradientsNames()
[all …]
/external/guava/guava-tests/test/com/google/common/primitives/
DBytesTest.java165 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 …]
DLongsTest.java310 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 …]
DShortsTest.java334 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 …]
DIntsTest.java327 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 …]
DDoublesTest.java310 assertTrue(Arrays.equals(EMPTY, Doubles.toArray(none))); in testToArray()
313 assertTrue(Arrays.equals(ARRAY1, Doubles.toArray(one))); in testToArray()
318 assertTrue(Arrays.equals(array, Doubles.toArray(three))); in testToArray()
320 assertTrue(Arrays.equals(array, Doubles.toArray(Doubles.asList(array)))); in testToArray()
330 double[] arr = Doubles.toArray(misleadingSize); in testToArray_threadSafe()
342 Doubles.toArray(list); in testToArray_withNull()
358 assertTrue(Arrays.equals(array, Doubles.toArray(bytes))); in testToArray_withConversion()
359 assertTrue(Arrays.equals(array, Doubles.toArray(shorts))); in testToArray_withConversion()
360 assertTrue(Arrays.equals(array, Doubles.toArray(ints))); in testToArray_withConversion()
361 assertTrue(Arrays.equals(array, Doubles.toArray(floats))); in testToArray_withConversion()
[all …]
DFloatsTest.java301 assertTrue(Arrays.equals(EMPTY, Floats.toArray(none))); in testToArray()
304 assertTrue(Arrays.equals(ARRAY1, Floats.toArray(one))); in testToArray()
309 assertTrue(Arrays.equals(array, Floats.toArray(three))); in testToArray()
311 assertTrue(Arrays.equals(array, Floats.toArray(Floats.asList(array)))); in testToArray()
321 float[] arr = Floats.toArray(misleadingSize); in testToArray_threadSafe()
333 Floats.toArray(list); in testToArray_withNull()
349 assertTrue(Arrays.equals(array, Floats.toArray(bytes))); in testToArray_withConversion()
350 assertTrue(Arrays.equals(array, Floats.toArray(shorts))); in testToArray_withConversion()
351 assertTrue(Arrays.equals(array, Floats.toArray(ints))); in testToArray_withConversion()
352 assertTrue(Arrays.equals(array, Floats.toArray(floats))); in testToArray_withConversion()
[all …]
/external/guava/guava-gwt/test-super/com/google/common/primitives/super/com/google/common/primitives/
DBytesTest.java163 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 …]
DFloatsTest.java276 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 …]
DShortsTest.java274 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 …]
DDoublesTest.java286 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 …]
DLongsTest.java288 assertTrue(Arrays.equals(EMPTY, Longs.toArray(none))); in testToArray()
291 assertTrue(Arrays.equals(ARRAY1, Longs.toArray(one))); in testToArray()
296 assertTrue(Arrays.equals(array, Longs.toArray(three))); in testToArray()
298 assertTrue(Arrays.equals(array, Longs.toArray(Longs.asList(array)))); in testToArray()
308 long[] arr = Longs.toArray(misleadingSize); in testToArray_threadSafe()
320 Longs.toArray(list); in testToArray_withNull()
336 assertTrue(Arrays.equals(array, Longs.toArray(bytes))); in testToArray_withConversion()
337 assertTrue(Arrays.equals(array, Longs.toArray(shorts))); in testToArray_withConversion()
338 assertTrue(Arrays.equals(array, Longs.toArray(ints))); in testToArray_withConversion()
339 assertTrue(Arrays.equals(array, Longs.toArray(floats))); in testToArray_withConversion()
[all …]
DIntsTest.java266 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 …]
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DForwardingImmutableCollection.java58 @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()
DForwardingImmutableSet.java59 @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()
/external/testng/src/main/java/org/testng/junit/
DJUnitTestClass.java105 return m_testMethods.toArray(new ITestNGMethod[m_testMethods.size()]); in getTestMethods()
113 return m_beforeTest.toArray(new ITestNGMethod[m_beforeTest.size()]); in getBeforeTestMethods()
121 return m_afterTest.toArray(new ITestNGMethod[m_afterTest.size()]); in getAfterTestMethods()
129 return m_beforeClass.toArray(new ITestNGMethod[m_beforeClass.size()]); in getBeforeClassMethods()
137 return m_afterClass.toArray(new ITestNGMethod[m_afterClass.size()]); in getAfterClassMethods()
/external/guava/guava/src/com/google/common/collect/
DForwardingCollection.java113 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/
DSynchronizedQueueTest.java141 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/doclava/src/com/google/doclava/
DComment.java454 return results.toArray(TagInfo.getArray(results.size())); in tags()
597 mInlineTags = mInlineTagsList.toArray(TagInfo.getArray(mInlineTagsList.size())); in initImpl()
598 mTags = mTagsList.toArray(TagInfo.getArray(mTagsList.size())); in initImpl()
599 mParamTags = mParamTagsList.toArray(ParamTagInfo.getArray(mParamTagsList.size())); in initImpl()
600 mSeeTags = mSeeTagsList.toArray(SeeTagInfo.getArray(mSeeTagsList.size())); in initImpl()
601 mThrowsTags = mThrowsTagsList.toArray(ThrowsTagInfo.getArray(mThrowsTagsList.size())); in initImpl()
603 mReturnTagsList.toArray(ParsedTagInfo.getArray(mReturnTagsList.size()))); in initImpl()
605 mDeprecatedTagsList.toArray(ParsedTagInfo.getArray(mDeprecatedTagsList.size()))); in initImpl()
606 mUndeprecateTags = mUndeprecateTagsList.toArray(TagInfo.getArray(mUndeprecateTagsList.size())); in initImpl()
607 mAttrTags = mAttrTagsList.toArray(AttrTagInfo.getArray(mAttrTagsList.size())); in initImpl()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DCollectionSet.java48 public Object[] toArray() { in toArray() method in CollectionSet
49 return data.toArray(); in toArray()
53 public <T> T[] toArray(T[] a) { in toArray() method in CollectionSet
54 return data.toArray(a); in toArray()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DCollectionSet.java46 public Object[] toArray() { in toArray() method in CollectionSet
47 return data.toArray(); in toArray()
51 public <T> T[] toArray(T[] a) { in toArray() method in CollectionSet
52 return data.toArray(a); in toArray()

12345678910>>...33