Home
last modified time | relevance | path

Searched defs:array (Results 1 – 25 of 6340) sorted by relevance

12345678910>>...254

/aosp_15_r20/external/apache-commons-lang/src/main/java/org/apache/commons/lang3/
H A DArrayUtils.java211 public static boolean[] add(final boolean[] array, final boolean element) { in add()
248 public static boolean[] add(final boolean[] array, final int index, final boolean element) { in add()
274 public static byte[] add(final byte[] array, final byte element) { in add()
312 public static byte[] add(final byte[] array, final int index, final byte element) { in add()
338 public static char[] add(final char[] array, final char element) { in add()
377 public static char[] add(final char[] array, final int index, final char element) { in add()
404 public static double[] add(final double[] array, final double element) { in add()
442 public static double[] add(final double[] array, final int index, final double element) { in add()
468 public static float[] add(final float[] array, final float element) { in add()
506 public static float[] add(final float[] array, final int index, final float element) { in add()
[all …]
/aosp_15_r20/external/apache-commons-lang/src/test/java/org/apache/commons/lang3/
H A DArrayUtilsTest.java77 final String[] array = ArrayUtils.toArray("foo", "bar"); in testArrayCreation() local
87 … final Number[] array = ArrayUtils.<Number>toArray(Integer.valueOf(42), Double.valueOf(Math.PI)); in testArrayCreationWithDifferentTypes() local
90 assertEquals(Double.valueOf(Math.PI), array[1]); in testArrayCreationWithDifferentTypes() local
204 final Object[] array = {"0", "1", "2", "3", null, "0"}; in testContains() local
217 final Object[] array = {"0", "1", "2", "3", null, "0"}; in testContainsAny() local
242 final Object[] array = new LANG1261ChildObject[]{new LANG1261ChildObject()}; in testContains_LANG_1261() local
273 char[] array = null; in testContainsChar() local
286 double[] array = null; in testContainsDouble() local
307 double[] array = null; in testContainsDoubleTolerance() local
319 float[] array = null; in testContainsFloat() local
[all …]
/aosp_15_r20/external/fbjni/test/
H A DPrimitiveArrayTests.java67 private static native boolean nativeTestGetSetBooleanArray(boolean[] array); in nativeTestGetSetBooleanArray()
77 private static native boolean nativeTestPinBooleanArray(boolean[] array); in nativeTestPinBooleanArray()
93 private static native boolean nativeTestGetSetByteArray(byte[] array); in nativeTestGetSetByteArray()
97 char[] array = new char[MAGIC]; in testGetSetCharArray() local
109 private static native boolean nativeTestGetSetCharArray(char[] array); in nativeTestGetSetCharArray()
113 short[] array = new short[MAGIC]; in testGetSetShortArray() local
125 private static native boolean nativeTestGetSetShortArray(short[] array); in nativeTestGetSetShortArray()
141 private static native boolean nativeTestGetSetIntArray(int[] array); in nativeTestGetSetIntArray()
157 private static native boolean nativeTestGetSetLongArray(long[] array); in nativeTestGetSetLongArray()
173 private static native boolean nativeTestGetSetFloatArray(float[] array); in nativeTestGetSetFloatArray()
[all …]
/aosp_15_r20/external/caliper/examples/src/main/java/examples/
H A DCopyArrayBenchmark.java50 @Override Object[] copy(Object[] array) { in copy()
53 @Override boolean[] copy(boolean[] array) { in copy()
56 @Override byte[] copy(byte[] array) { in copy()
59 @Override char[] copy(char[] array) { in copy()
62 @Override double[] copy(double[] array) { in copy()
65 @Override float[] copy(float[] array) { in copy()
68 @Override int[] copy(int[] array) { in copy()
71 @Override long[] copy(long[] array) { in copy()
74 @Override short[] copy(short[] array) { in copy()
79 @Override Object[] copy(Object[] array) { in copy()
[all …]
/aosp_15_r20/external/pigweed/pw_minimal_cpp_stdlib/public/pw_minimal_cpp_stdlib/internal/
H A Darray.h23 struct array { struct
24 using value_type = T;
25 using size_type = decltype(kSize);
26 using difference_type =
28 using reference = value_type&;
29 using const_reference = const value_type&;
30 using pointer = value_type*;
31 using const_pointer = const value_type*;
32 using iterator = T*;
33 using const_iterator = const T*;
[all …]
/aosp_15_r20/external/llvm-libc/src/__support/CPP/
H A Darray.h20 template <class T, size_t N> struct array { struct
24 T Data[N];
25 using value_type = T;
26 using iterator = T *;
27 using const_iterator = const T *;
28 using reverse_iterator = cpp::reverse_iterator<iterator>;
29 using const_reverse_iterator = cpp::reverse_iterator<const_iterator>;
31 LIBC_INLINE constexpr T *data() { return Data; } in data()
32 LIBC_INLINE constexpr const T *data() const { return Data; } in data()
34 LIBC_INLINE constexpr T &front() { return Data[0]; } in front()
[all …]
/aosp_15_r20/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
H A DLayerDrawableTest.java99 Drawable[] array = new Drawable[]{mBitmapDrawable, mColorDrawable}; in testConstructor() local
117 Drawable[] array = new Drawable[0]; in testInflate() local
172 Drawable[] array = new Drawable[] { mBitmapDrawable, mColorDrawable }; in testFindDrawableByLayerId() local
194 Drawable[] array = new Drawable[] { mBitmapDrawable, mColorDrawable }; in testAccessId() local
210 Drawable[] array = new Drawable[] { mBitmapDrawable, mColorDrawable }; in testSetIdIndexTooLow() local
217 Drawable[] array = new Drawable[] { mBitmapDrawable, mColorDrawable }; in testSetIdIndexTooHigh() local
224 Drawable[] array = new Drawable[] { mBitmapDrawable, mColorDrawable }; in testGetIdIndexTooLow() local
231 Drawable[] array = new Drawable[] { mBitmapDrawable, mColorDrawable }; in testGetIdIndexTooHigh() local
238 Drawable[] array = new Drawable[] { mBitmapDrawable, mColorDrawable }; in testGetNumberOfLayers() local
256 Drawable[] array = new Drawable[] { mBitmapDrawable, mColorDrawable }; in testAccessDrawable() local
[all …]
/aosp_15_r20/art/test/449-checker-bce/src/
H A DMain.java72 static void narrow(int[] array, int offset) { in narrow()
126 static void constantIndexing1(int[] array) { in constantIndexing1()
154 static void $opt$noinline$constantIndexing2(int[] array) { in $opt$noinline$constantIndexing2()
189 static void constantIndexing2b(int[] array) { in constantIndexing2b()
218 static void constantIndexing2c(int[] array) { in constantIndexing2c()
286 static void constantIndexing4(int[] array) { in constantIndexing4()
304 static void constantIndexing5(int[] array) { in constantIndexing5()
325 static void constantIndexing6(int[] array) { in constantIndexing6()
352 static void constantIndexing7(int[] array, int base) { in constantIndexing7()
382 static void constantIndexing8(int[] array, int base) { in constantIndexing8()
[all …]
/aosp_15_r20/external/guava/android/guava-testlib/src/com/google/common/collect/testing/testers/
H A DCollectionToArrayTester.java48 Object[] array = collection.toArray(); in testToArray_noArgs() local
49 expectArrayContentsAnyOrder(createSamplesArray(), array); in testToArray_noArgs() local
60 Object[] array = collection.toArray(); in testToArray_isPlainObjectArray() local
66 E[] array = collection.toArray(empty); in testToArray_emptyArray() local
70 expectArrayContentsAnyOrder(createSamplesArray(), array); in testToArray_emptyArray() local
76 E[] array = collection.toArray(empty); in testToArray_emptyArray_ordered() local
80 expectArrayContentsInOrder(getOrderedElements(), array); in testToArray_emptyArray_ordered() local
85 Object[] array = collection.toArray(in); in testToArray_emptyArrayOfObject() local
91 expectArrayContentsAnyOrder(createSamplesArray(), array); in testToArray_emptyArrayOfObject() local
95 E[] array = getSubjectGenerator().createArray(getNumElements()); in testToArray_rightSizedArray() local
[all …]
/aosp_15_r20/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/
H A DCollectionToArrayTester.java48 Object[] array = collection.toArray(); in testToArray_noArgs() local
49 expectArrayContentsAnyOrder(createSamplesArray(), array); in testToArray_noArgs() local
60 Object[] array = collection.toArray(); in testToArray_isPlainObjectArray() local
66 E[] array = collection.toArray(empty); in testToArray_emptyArray() local
70 expectArrayContentsAnyOrder(createSamplesArray(), array); in testToArray_emptyArray() local
76 E[] array = collection.toArray(empty); in testToArray_emptyArray_ordered() local
80 expectArrayContentsInOrder(getOrderedElements(), array); in testToArray_emptyArray_ordered() local
85 Object[] array = collection.toArray(in); in testToArray_emptyArrayOfObject() local
91 expectArrayContentsAnyOrder(createSamplesArray(), array); in testToArray_emptyArrayOfObject() local
95 E[] array = getSubjectGenerator().createArray(getNumElements()); in testToArray_rightSizedArray() local
[all …]
/aosp_15_r20/external/skia/tests/
H A DSkSLMemoryLayoutTest.cpp379 auto array = SkSL::Type::MakeArrayType(context, "float[4]", *context.fTypes.fFloat, 4); in DEF_TEST() local
386 auto array = SkSL::Type::MakeArrayType(context, "half[4]", *context.fTypes.fHalf, 4); in DEF_TEST() local
393 auto array = SkSL::Type::MakeArrayType(context, "float2[4]", *context.fTypes.fFloat2, 4); in DEF_TEST() local
400 auto array = SkSL::Type::MakeArrayType(context, "float3[4]", *context.fTypes.fFloat3, 4); in DEF_TEST() local
407 auto array = SkSL::Type::MakeArrayType(context, "float4[4]", *context.fTypes.fFloat4, 4); in DEF_TEST() local
414 auto array = SkSL::Type::MakeArrayType(context, "mat3[4]", *context.fTypes.fFloat3x3, 4); in DEF_TEST() local
501 auto array = SkSL::Type::MakeArrayType(context, "A[3]", *structA, 3); in DEF_TEST() local
671 auto array = SkSL::Type::MakeArrayType(context, "float[4]", *context.fTypes.fFloat, 4); in DEF_TEST() local
678 auto array = SkSL::Type::MakeArrayType(context, "half[4]", *context.fTypes.fHalf, 4); in DEF_TEST() local
685 auto array = SkSL::Type::MakeArrayType(context, "float2[4]", *context.fTypes.fFloat2, 4); in DEF_TEST() local
[all …]
/aosp_15_r20/external/apache-commons-lang/src/test/java/org/apache/commons/lang3/builder/
H A DToStringBuilderTest.java146 Object[] array = { null, base, new int[] { 3, 6 } }; in testReflectionObjectArray() local
155 long[] array = { 1, 2, -3, 4 }; in testReflectionLongArray() local
164 int[] array = { 1, 2, -3, 4 }; in testReflectionIntArray() local
173 short[] array = { 1, 2, -3, 4 }; in testReflectionShortArray() local
191 char[] array = { 'A', '2', '_', 'D' }; in testReflectionCharArray() local
200 double[] array = { 1.0, 2.9876, -3.00001, 4.3 }; in testReflectionDoubleArray() local
209 float[] array = { 1.0f, 2.9876f, -3.00001f, 4.3f }; in testReflectionFloatArray() local
229 float[][] array = { { 1.0f, 2.29686f }, null, { Float.NaN } }; in testReflectionFloatArrayArray() local
239 long[][] array = { { 1, 2 }, null, { 5 } }; in testReflectionLongArrayArray() local
248 int[][] array = { { 1, 2 }, null, { 5 } }; in testReflectionIntArrayArray() local
[all …]
/aosp_15_r20/external/apache-commons-lang/src/main/java/org/apache/commons/lang3/builder/
H A DToStringBuilder.java278 public ToStringBuilder append(final boolean[] array) { in append()
302 public ToStringBuilder append(final byte[] array) { in append()
326 public ToStringBuilder append(final char[] array) { in append()
350 public ToStringBuilder append(final double[] array) { in append()
374 public ToStringBuilder append(final float[] array) { in append()
398 public ToStringBuilder append(final int[] array) { in append()
422 public ToStringBuilder append(final long[] array) { in append()
446 public ToStringBuilder append(final Object[] array) { in append()
470 public ToStringBuilder append(final short[] array) { in append()
496 public ToStringBuilder append(final String fieldName, final boolean[] array) { in append()
[all …]
/aosp_15_r20/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DPriorityQueueTest.java49 Integer[] array = { 2, 45, 7, -12, 9 }; in test_iterator() local
118 Integer[] array = { 2, 45, 7, -12, 9 }; in test_iterator_remove() local
146 String[] array = { "ONE", "TWO", "THREE", "FOUR", "FIVE" }; in test_iterator_removeEquals() local
161 Integer[] array = { 2, 45, 7, -12, 9 }; in test_iterator_remove_illegalState() local
190 int[] array = { 2, 45, 7, -12, 9 }; in test_size() local
263 Integer[] array = { 2, 45, 7, -12, 9 }; in test_ConstructorILjava_util_Comparator_cast() local
274 Integer[] array = { 2, 45, 7, -12, 9 }; in test_ConstructorLjava_util_Colleciton() local
320 String[] array = { "AAAAA", "AA", "AAAA", "AAAAAAAA" }; in test_ConstructorLjava_util_Colleciton_from_priorityqueue() local
339 int[] array = { 3, 5, 79, -17, 5 }; in test_ConstructorLjava_util_Colleciton_from_sortedset() local
360 int[] array = { 2, 45, 7, -12, 9 }; in test_ConstructorLjava_util_PriorityQueue() local
[all …]
/aosp_15_r20/packages/services/Car/tests/CarLibUnitTest/src/com/android/car/internal/util/
DArrayUtilsTest.java106 Integer[] array = new Integer[0]; in testIsEmptyAndSize() local
127 Integer[] array = null; in testContains() local
139 Integer[] array = new Integer[]{1, 2}; in testIndexOf() local
147 Integer[] array = new Integer[]{1, 2}; in testContainsAll() local
155 Integer[] array = new Integer[]{1, 2}; in testContainsAny() local
162 int[] array = null; in testContainsInt() local
174 long[] array = null; in testContainsLong() local
186 char[] array = null; in testContainsChar() local
198 char[] array = null; in testContainsAllChar() local
215 long[] array = null; in testTotal() local
[all …]
/aosp_15_r20/libcore/ojluni/annotations/sdk/nullability/java/lang/reflect/
H A DArray.annotated.java40 …nt getLength(@libcore.util.NonNull java.lang.Object array) { throw new RuntimeException("Stub!"); } in getLength()
42 … int index) throws java.lang.ArrayIndexOutOfBoundsException, java.lang.IllegalArgumentException { … in get()
44 …ang.ArrayIndexOutOfBoundsException, java.lang.IllegalArgumentException { throw new RuntimeExceptio… in getBoolean()
46 …rayIndexOutOfBoundsException, java.lang.IllegalArgumentException { throw new RuntimeException("Stu… in getByte()
48 …rayIndexOutOfBoundsException, java.lang.IllegalArgumentException { throw new RuntimeException("Stu… in getChar()
50 …ArrayIndexOutOfBoundsException, java.lang.IllegalArgumentException { throw new RuntimeException("S… in getShort()
52 …yIndexOutOfBoundsException, java.lang.IllegalArgumentException { throw new RuntimeException("Stub!… in getInt()
54 …rayIndexOutOfBoundsException, java.lang.IllegalArgumentException { throw new RuntimeException("Stu… in getLong()
56 …ArrayIndexOutOfBoundsException, java.lang.IllegalArgumentException { throw new RuntimeException("S… in getFloat()
58 …g.ArrayIndexOutOfBoundsException, java.lang.IllegalArgumentException { throw new RuntimeException(… in getDouble()
[all …]
/aosp_15_r20/out/soong/.intermediates/libcore/core_oj_api_files/gen/gensrcs/libcore/ojluni/src/main/java/java/lang/reflect/
DArray.java138 public static int getLength(Object array) in getLength()
179 public static Object get(Object array, int index) in get()
231 public static boolean getBoolean(Object array, int index) in getBoolean()
256 public static byte getByte(Object array, int index) in getByte()
281 public static char getChar(Object array, int index) in getChar()
306 public static short getShort(Object array, int index) in getShort()
333 public static int getInt(Object array, int index) in getInt()
364 public static long getLong(Object array, int index) in getLong()
397 public static float getFloat(Object array, int index) in getFloat()
432 public static double getDouble(Object array, int index) in getDouble()
[all …]
/aosp_15_r20/libcore/ojluni/src/main/java/java/lang/reflect/
H A DArray.java138 public static int getLength(Object array) in getLength()
179 public static Object get(Object array, int index) in get()
231 public static boolean getBoolean(Object array, int index) in getBoolean()
256 public static byte getByte(Object array, int index) in getByte()
281 public static char getChar(Object array, int index) in getChar()
306 public static short getShort(Object array, int index) in getShort()
333 public static int getInt(Object array, int index) in getInt()
364 public static long getLong(Object array, int index) in getLong()
397 public static float getFloat(Object array, int index) in getFloat()
432 public static double getDouble(Object array, int index) in getDouble()
[all …]
/aosp_15_r20/out/soong/.intermediates/libcore/core_oj_api_files/gen/3/libcore/ojluni/src/main/java/java/lang/reflect/
DArray.java138 public static int getLength(Object array) in getLength()
179 public static Object get(Object array, int index) in get()
231 public static boolean getBoolean(Object array, int index) in getBoolean()
256 public static byte getByte(Object array, int index) in getByte()
281 public static char getChar(Object array, int index) in getChar()
306 public static short getShort(Object array, int index) in getShort()
333 public static int getInt(Object array, int index) in getInt()
364 public static long getLong(Object array, int index) in getLong()
397 public static float getFloat(Object array, int index) in getFloat()
432 public static double getDouble(Object array, int index) in getDouble()
[all …]
/aosp_15_r20/frameworks/base/core/java/com/android/internal/util/
H A DArrayUtils.java130 @RavenwoodReplace public static native void zeroize(byte[] array); in zeroize()
135 public static void zeroize$ravenwood(byte[] array) { in zeroize$ravenwood()
144 @RavenwoodReplace public static native void zeroize(char[] array); in zeroize()
149 public static void zeroize$ravenwood(char[] array) { in zeroize$ravenwood()
217 public static boolean isEmpty(@Nullable Collection<?> array) { in isEmpty()
232 public static <T> boolean isEmpty(@Nullable T[] array) { in isEmpty()
239 public static boolean isEmpty(@Nullable int[] array) { in isEmpty()
246 public static boolean isEmpty(@Nullable long[] array) { in isEmpty()
253 public static boolean isEmpty(@Nullable byte[] array) { in isEmpty()
260 public static boolean isEmpty(@Nullable boolean[] array) { in isEmpty()
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/pdl-compiler/tests/canonical/
Dle_test_vectors.json1032 "array": [] array
1043 "array": [ array
1058 "array": [] array
1069 "array": [ array
1084 "array": [] array
1095 "array": [ array
1111 "array": [ array
1127 "array": [] array
1133 "array": [ array
1160 "array": [] array
[all …]
Dbe_test_vectors.json1032 "array": [] array
1043 "array": [ array
1058 "array": [] array
1069 "array": [ array
1084 "array": [] array
1095 "array": [ array
1111 "array": [ array
1127 "array": [] array
1133 "array": [ array
1160 "array": [] array
[all …]
/aosp_15_r20/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DGrowingIntArrayTest.kt34 val array = GrowingIntArray(1) in testAddAndGet() constant
47 val array = GrowingIntArray(10) in testForEach() constant
61 val array = GrowingIntArray(10) in testForEach_EmptyArray() constant
69 val array = GrowingIntArray(10) in testRemoveValues() constant
81 val array = GrowingIntArray(10) in testContains() constant
94 val array = GrowingIntArray(10) in testClear() constant
104 val array = GrowingIntArray(0) in testEnsureHasCapacity() constant
113 val array = GrowingIntArray(10) in testGetMinimizedBackingArray() constant
/aosp_15_r20/libcore/json/src/test/java/libcore/org/json/
H A DJSONArrayTest.java36 JSONArray array = new JSONArray(); in testEmptyArray() local
82 JSONArray array = new JSONArray(); in testBooleans() local
132 JSONArray array = new JSONArray(); in testCoerceStringToBoolean() local
144 JSONArray array = new JSONArray(); in testNulls() local
186 JSONArray array = new JSONArray("[\"null\",null]"); in testParseNullYieldsJSONObjectNull() local
205 JSONArray array = new JSONArray(); in testNumbers() local
251 JSONArray array = new JSONArray(); in testStrings() local
304 JSONArray array = new JSONArray(); in testJoin() local
320 JSONArray array = new JSONArray(Arrays.asList(5, 6)); in testJoinWithNull() local
325 JSONArray array = new JSONArray(Arrays.asList(5, 6)); in testJoinWithSpecialCharacters() local
[all …]
/aosp_15_r20/external/sdv/vsomeip/third_party/boost/phoenix/test/algorithm/
Dtransformation1.cpp58 int array[] = {1,2,3}; in copy_test() local
73 int array[] = {1,2,3}; in copy_backward_test() local
99 int array[] = {1,2,3}; in transform_test() local
121 int array[] = {1,2,3}; in replace_test() local
133 int array[] = {1,2,3}; in replace_if_test() local
173 int array[] = {0,0,0}; in fill_test() local
185 int array[] = {0,0,0}; in fill_n_test() local
210 int array[3]; in generate_test() local
222 int array[] = {0,0,1}; in generate_n_test() local
235 int array[] = {1,2,3}; in remove_test() local
[all …]

12345678910>>...254