Home
last modified time | relevance | path

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

12345678910>>...40

/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/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/guava/guava-testlib/src/com/google/common/collect/testing/testers/
DCollectionToArrayTester.java46 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()
95 "toArray(sameSizeE[]) should return the given array", array, collection.toArray(array)); in testToArray_rightSizedArray()
103 "toArray(sameSizeE[]) should return the given array", array, collection.toArray(array)); in testToArray_rightSizedArray_ordered()
112 collection.toArray(array)); in testToArray_rightSizedArrayOfObject()
122 collection.toArray(array)); in testToArray_rightSizedArrayOfObject_ordered()
131 "toArray(overSizedE[]) should return the given array", array, collection.toArray(array)); in testToArray_oversizedArray()
[all …]
/external/guava/android/guava-testlib/src/com/google/common/collect/testing/testers/
DCollectionToArrayTester.java46 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()
95 "toArray(sameSizeE[]) should return the given array", array, collection.toArray(array)); in testToArray_rightSizedArray()
103 "toArray(sameSizeE[]) should return the given array", array, collection.toArray(array)); in testToArray_rightSizedArray_ordered()
112 collection.toArray(array)); in testToArray_rightSizedArrayOfObject()
122 collection.toArray(array)); in testToArray_rightSizedArrayOfObject_ordered()
131 "toArray(overSizedE[]) should return the given array", 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/android/guava-tests/test/com/google/common/primitives/
DBytesTest.java154 assertTrue(Arrays.equals(EMPTY, Bytes.toArray(none))); in testToArray()
157 assertTrue(Arrays.equals(ARRAY1, Bytes.toArray(one))); in testToArray()
162 assertTrue(Arrays.equals(array, Bytes.toArray(three))); in testToArray()
164 assertTrue(Arrays.equals(array, Bytes.toArray(Bytes.asList(array)))); in testToArray()
173 byte[] arr = Bytes.toArray(misleadingSize); in testToArray_threadSafe()
185 Bytes.toArray(list); in testToArray_withNull()
201 assertTrue(Arrays.equals(array, Bytes.toArray(bytes))); in testToArray_withConversion()
202 assertTrue(Arrays.equals(array, Bytes.toArray(shorts))); in testToArray_withConversion()
203 assertTrue(Arrays.equals(array, Bytes.toArray(ints))); in testToArray_withConversion()
204 assertTrue(Arrays.equals(array, Bytes.toArray(floats))); in testToArray_withConversion()
[all …]
DShortsTest.java403 assertTrue(Arrays.equals(EMPTY, Shorts.toArray(none))); in testToArray()
406 assertTrue(Arrays.equals(ARRAY1, Shorts.toArray(one))); in testToArray()
411 assertTrue(Arrays.equals(array, Shorts.toArray(three))); in testToArray()
413 assertTrue(Arrays.equals(array, Shorts.toArray(Shorts.asList(array)))); in testToArray()
422 short[] arr = Shorts.toArray(misleadingSize); in testToArray_threadSafe()
434 Shorts.toArray(list); in testToArray_withNull()
450 assertTrue(Arrays.equals(array, Shorts.toArray(bytes))); in testToArray_withConversion()
451 assertTrue(Arrays.equals(array, Shorts.toArray(shorts))); in testToArray_withConversion()
452 assertTrue(Arrays.equals(array, Shorts.toArray(ints))); in testToArray_withConversion()
453 assertTrue(Arrays.equals(array, Shorts.toArray(floats))); in testToArray_withConversion()
[all …]
DIntsTest.java374 assertTrue(Arrays.equals(EMPTY, Ints.toArray(none))); in testToArray()
377 assertTrue(Arrays.equals(ARRAY1, Ints.toArray(one))); in testToArray()
382 assertTrue(Arrays.equals(array, Ints.toArray(three))); in testToArray()
384 assertTrue(Arrays.equals(array, Ints.toArray(Ints.asList(array)))); in testToArray()
393 int[] arr = Ints.toArray(misleadingSize); in testToArray_threadSafe()
405 Ints.toArray(list); in testToArray_withNull()
421 assertTrue(Arrays.equals(array, Ints.toArray(bytes))); in testToArray_withConversion()
422 assertTrue(Arrays.equals(array, Ints.toArray(shorts))); in testToArray_withConversion()
423 assertTrue(Arrays.equals(array, Ints.toArray(ints))); in testToArray_withConversion()
424 assertTrue(Arrays.equals(array, Ints.toArray(floats))); in testToArray_withConversion()
[all …]
/external/guava/guava-tests/test/com/google/common/primitives/
DBytesTest.java154 assertTrue(Arrays.equals(EMPTY, Bytes.toArray(none))); in testToArray()
157 assertTrue(Arrays.equals(ARRAY1, Bytes.toArray(one))); in testToArray()
162 assertTrue(Arrays.equals(array, Bytes.toArray(three))); in testToArray()
164 assertTrue(Arrays.equals(array, Bytes.toArray(Bytes.asList(array)))); in testToArray()
173 byte[] arr = Bytes.toArray(misleadingSize); in testToArray_threadSafe()
185 Bytes.toArray(list); in testToArray_withNull()
201 assertTrue(Arrays.equals(array, Bytes.toArray(bytes))); in testToArray_withConversion()
202 assertTrue(Arrays.equals(array, Bytes.toArray(shorts))); in testToArray_withConversion()
203 assertTrue(Arrays.equals(array, Bytes.toArray(ints))); in testToArray_withConversion()
204 assertTrue(Arrays.equals(array, Bytes.toArray(floats))); in testToArray_withConversion()
[all …]
DShortsTest.java403 assertTrue(Arrays.equals(EMPTY, Shorts.toArray(none))); in testToArray()
406 assertTrue(Arrays.equals(ARRAY1, Shorts.toArray(one))); in testToArray()
411 assertTrue(Arrays.equals(array, Shorts.toArray(three))); in testToArray()
413 assertTrue(Arrays.equals(array, Shorts.toArray(Shorts.asList(array)))); in testToArray()
422 short[] arr = Shorts.toArray(misleadingSize); in testToArray_threadSafe()
434 Shorts.toArray(list); in testToArray_withNull()
450 assertTrue(Arrays.equals(array, Shorts.toArray(bytes))); in testToArray_withConversion()
451 assertTrue(Arrays.equals(array, Shorts.toArray(shorts))); in testToArray_withConversion()
452 assertTrue(Arrays.equals(array, Shorts.toArray(ints))); in testToArray_withConversion()
453 assertTrue(Arrays.equals(array, Shorts.toArray(floats))); in testToArray_withConversion()
[all …]
DFloatsTest.java393 assertTrue(Arrays.equals(EMPTY, Floats.toArray(none))); in testToArray()
396 assertTrue(Arrays.equals(ARRAY1, Floats.toArray(one))); in testToArray()
401 assertTrue(Arrays.equals(array, Floats.toArray(three))); in testToArray()
403 assertTrue(Arrays.equals(array, Floats.toArray(Floats.asList(array)))); in testToArray()
412 float[] arr = Floats.toArray(misleadingSize); in testToArray_threadSafe()
424 Floats.toArray(list); in testToArray_withNull()
440 assertTrue(Arrays.equals(array, Floats.toArray(bytes))); in testToArray_withConversion()
441 assertTrue(Arrays.equals(array, Floats.toArray(shorts))); in testToArray_withConversion()
442 assertTrue(Arrays.equals(array, Floats.toArray(ints))); in testToArray_withConversion()
443 assertTrue(Arrays.equals(array, Floats.toArray(floats))); in testToArray_withConversion()
[all …]
DIntsTest.java374 assertTrue(Arrays.equals(EMPTY, Ints.toArray(none))); in testToArray()
377 assertTrue(Arrays.equals(ARRAY1, Ints.toArray(one))); in testToArray()
382 assertTrue(Arrays.equals(array, Ints.toArray(three))); in testToArray()
384 assertTrue(Arrays.equals(array, Ints.toArray(Ints.asList(array)))); in testToArray()
393 int[] arr = Ints.toArray(misleadingSize); in testToArray_threadSafe()
405 Ints.toArray(list); in testToArray_withNull()
421 assertTrue(Arrays.equals(array, Ints.toArray(bytes))); in testToArray_withConversion()
422 assertTrue(Arrays.equals(array, Ints.toArray(shorts))); in testToArray_withConversion()
423 assertTrue(Arrays.equals(array, Ints.toArray(ints))); in testToArray_withConversion()
424 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.java62 public Object[] toArray() { in toArray() method in ForwardingImmutableCollection
63 return delegate.toArray(); in toArray()
67 public <T> T[] toArray(T[] other) { in toArray() method in ForwardingImmutableCollection
68 return delegate.toArray(other); in toArray()
DForwardingImmutableSet.java64 public Object[] toArray() { in toArray() method in ForwardingImmutableSet
65 return delegate.toArray(); in toArray()
69 public <T> T[] toArray(T[] other) { in toArray() method in ForwardingImmutableSet
70 return delegate.toArray(other); in toArray()
DForwardingImmutableList.java51 public Object[] toArray() { in toArray() method in ForwardingImmutableList
54 return delegateList().toArray(new Object[size()]); in toArray()
92 public <T> T[] toArray(T[] other) { in toArray() method in ForwardingImmutableList
93 return delegateList().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/android/guava-tests/test/com/google/common/math/
DQuantilesTest.java133 double[] dataset = Doubles.toArray(SIXTEEN_SQUARES_DOUBLES); in testMedian_computeInPlace()
145 double[] dataset = Doubles.toArray(SIXTEEN_SQUARES_DOUBLES); in testQuartiles_index_computeInPlace()
159 double[] dataset = Doubles.toArray(SIXTEEN_SQUARES_DOUBLES); in testQuartiles_indexes_varargs_computeInPlace()
187 double[] dataset = Doubles.toArray(SIXTEEN_SQUARES_DOUBLES); in testScale_index_compute_doubleVarargs()
198 long[] dataset = Longs.toArray(SIXTEEN_SQUARES_LONGS); in testScale_index_compute_longVarargs()
206 int[] dataset = Ints.toArray(SIXTEEN_SQUARES_INTEGERS); in testScale_index_compute_intVarargs()
214 double[] dataset = Doubles.toArray(SIXTEEN_SQUARES_DOUBLES); in testScale_index_computeInPlace()
295 double[] dataset = Doubles.toArray(SIXTEEN_SQUARES_DOUBLES); in testScale_indexes_varargs_compute_doubleVarargs()
311 long[] dataset = Longs.toArray(SIXTEEN_SQUARES_LONGS); in testScale_indexes_varargs_compute_longVarargs()
324 int[] dataset = Ints.toArray(SIXTEEN_SQUARES_INTEGERS); in testScale_indexes_varargs_compute_intVarargs()
[all …]
/external/guava/guava-tests/test/com/google/common/math/
DQuantilesTest.java133 double[] dataset = Doubles.toArray(SIXTEEN_SQUARES_DOUBLES); in testMedian_computeInPlace()
145 double[] dataset = Doubles.toArray(SIXTEEN_SQUARES_DOUBLES); in testQuartiles_index_computeInPlace()
159 double[] dataset = Doubles.toArray(SIXTEEN_SQUARES_DOUBLES); in testQuartiles_indexes_varargs_computeInPlace()
187 double[] dataset = Doubles.toArray(SIXTEEN_SQUARES_DOUBLES); in testScale_index_compute_doubleVarargs()
198 long[] dataset = Longs.toArray(SIXTEEN_SQUARES_LONGS); in testScale_index_compute_longVarargs()
206 int[] dataset = Ints.toArray(SIXTEEN_SQUARES_INTEGERS); in testScale_index_compute_intVarargs()
214 double[] dataset = Doubles.toArray(SIXTEEN_SQUARES_DOUBLES); in testScale_index_computeInPlace()
295 double[] dataset = Doubles.toArray(SIXTEEN_SQUARES_DOUBLES); in testScale_indexes_varargs_compute_doubleVarargs()
311 long[] dataset = Longs.toArray(SIXTEEN_SQUARES_LONGS); in testScale_indexes_varargs_compute_longVarargs()
324 int[] dataset = Ints.toArray(SIXTEEN_SQUARES_INTEGERS); in testScale_indexes_varargs_compute_intVarargs()
[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()
/external/guava/android/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/guava/guava-tests/test/com/google/common/collect/
DSynchronizedQueueTest.java142 public Object[] toArray() { in toArray() method in SynchronizedQueueTest.TestQueue
144 return delegate.toArray(); in toArray()
148 public <T> T[] toArray(T[] array) { in toArray() method in SynchronizedQueueTest.TestQueue
150 return delegate.toArray(array); in toArray()
175 create().toArray(); in testHoldsLockOnAllOperations()
176 create().toArray(new String[] {"foo"}); in testHoldsLockOnAllOperations()
/external/guava/guava/src/com/google/common/collect/
DForwardingCollection.java119 public Object[] toArray() { in toArray() method in ForwardingCollection
120 return delegate().toArray(); in toArray()
125 public <T> T[] toArray(T[] array) { in toArray() method in ForwardingCollection
126 return delegate().toArray(array); in toArray()
243 return toArray(newArray); in standardToArray()
/external/guava/android/guava/src/com/google/common/collect/
DForwardingCollection.java119 public Object[] toArray() { in toArray() method in ForwardingCollection
120 return delegate().toArray(); in toArray()
125 public <T> T[] toArray(T[] array) { in toArray() method in ForwardingCollection
126 return delegate().toArray(array); in toArray()
243 return toArray(newArray); in standardToArray()
/external/doclava/src/com/google/doclava/
DComment.java462 return results.toArray(TagInfo.getArray(results.size())); in tags()
605 mInlineTags = mInlineTagsList.toArray(TagInfo.getArray(mInlineTagsList.size())); in initImpl()
606 mTags = mTagsList.toArray(TagInfo.getArray(mTagsList.size())); in initImpl()
607 mParamTags = mParamTagsList.toArray(ParamTagInfo.getArray(mParamTagsList.size())); in initImpl()
608 mSeeTags = mSeeTagsList.toArray(SeeTagInfo.getArray(mSeeTagsList.size())); in initImpl()
609 mThrowsTags = mThrowsTagsList.toArray(ThrowsTagInfo.getArray(mThrowsTagsList.size())); in initImpl()
611 mReturnTagsList.toArray(ParsedTagInfo.getArray(mReturnTagsList.size()))); in initImpl()
613 mDeprecatedTagsList.toArray(ParsedTagInfo.getArray(mDeprecatedTagsList.size()))); in initImpl()
614 mUndeprecateTags = mUndeprecateTagsList.toArray(TagInfo.getArray(mUndeprecateTagsList.size())); in initImpl()
615 mAttrTags = mAttrTagsList.toArray(AttrTagInfo.getArray(mAttrTagsList.size())); in initImpl()
[all …]

12345678910>>...40