Home
last modified time | relevance | path

Searched refs:Array (Results 1 – 25 of 85) sorted by relevance

1234

/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
DMarshalQueryableArray.java24 import java.lang.reflect.Array;
62 int length = Array.getLength(value); in marshal()
91 array = Array.newInstance(mComponentClass, arraySize); in unmarshal()
94 Array.set(array, i, elem); in unmarshal()
107 array = copyListToArray(arrayList, Array.newInstance(mComponentClass, arraySize)); in unmarshal()
126 int arrayLength = Array.getLength(value); in calculateMarshalSize()
149 marshaler.marshal((TElem)Array.get(array, index), buffer); in marshalArrayElement()
160 Object elem = Array.get(array, index); in calculateElementMarshalSize()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DFrameValues.java19 import java.lang.reflect.Array;
35 return Array.getLength(super.getValue()); in getCount()
54 Object[] array = (Object[])Array.newInstance(value.getClass(), 1); in getValues()
78 return Array.get(value, index); in getValueAtIndex()
128 Array.set(curValue, index, value); in setValueAtIndex()
/frameworks/compile/slang/tests/P_reduce_general_inputs/
DScriptC_reduce_general_inputs.java.expect129 throw new RSIllegalArgumentException("Array \"in1\" is null!");
136 throw new RSIllegalArgumentException("Array \"in2\" is null!");
140 … throw new RSRuntimeException("Array length mismatch between parameters \"in1\" and \"in2\"!");
193 throw new RSIllegalArgumentException("Array \"in1\" is null!");
200 throw new RSIllegalArgumentException("Array \"in2\" is null!");
204 … throw new RSRuntimeException("Array length mismatch between parameters \"in1\" and \"in2\"!");
257 throw new RSIllegalArgumentException("Array \"in1\" is null!");
264 throw new RSIllegalArgumentException("Array \"in2\" is null!");
268 throw new RSIllegalArgumentException("Array \"in2\" is not a multiple of 2 in length!");
272 … throw new RSRuntimeException("Array length mismatch between parameters \"in1\" and \"in2\"!");
[all …]
/frameworks/compile/slang/tests/P_reduce_general_input/
DScriptC_reduce_general_input.java.expect156 throw new RSIllegalArgumentException("Array \"in1\" is null!");
189 throw new RSIllegalArgumentException("Array \"in1\" is null!");
222 throw new RSIllegalArgumentException("Array \"in1\" is null!");
255 throw new RSIllegalArgumentException("Array \"in1\" is null!");
288 throw new RSIllegalArgumentException("Array \"in1\" is null!");
321 throw new RSIllegalArgumentException("Array \"in1\" is null!");
354 throw new RSIllegalArgumentException("Array \"in1\" is null!");
387 throw new RSIllegalArgumentException("Array \"in1\" is null!");
420 throw new RSIllegalArgumentException("Array \"in1\" is null!");
453 throw new RSIllegalArgumentException("Array \"in1\" is null!");
[all …]
/frameworks/ml/nn/common/random/
Drandom_distributions.h82 typedef Array<Eigen::half, kResultElementCount> ResultType;
106 typedef Array<bfloat16, kResultElementCount> ResultType;
130 typedef Array<float, kResultElementCount> ResultType;
154 typedef Array<double, kResultElementCount> ResultType;
178 typedef Array<int32, kResultElementCount> ResultType;
213 typedef Array<int64, kResultElementCount> ResultType;
334 typedef Array<Eigen::half, kResultElementCount> ResultType;
361 typedef Array<bfloat16, kResultElementCount> ResultType;
390 typedef Array<float, kResultElementCount> ResultType;
414 typedef Array<double, kResultElementCount> ResultType;
[all …]
Dphilox_random.h55 class Array {
57 PHILOX_DEVICE_INLINE Array() { in Array() function
107 using ResultType = Array<uint32, 4>;
115 using Key = Array<uint32, 2>;
/frameworks/base/telephony/common/com/android/internal/telephony/util/
DArrayUtils.java21 import java.lang.reflect.Array;
62 result = (T[]) Array.newInstance(kind, end + 1); in appendElement()
66 result = (T[]) Array.newInstance(kind, 1); in appendElement()
101 final T[] all = (T[]) Array.newInstance(kind, totalLength); in concatElements()
120 return (T[]) Array.newInstance(kind, 0); in createEmptyArray()
/frameworks/compile/slang/tests/P_reduce_general_accumulator/
DScriptC_reduce_general_accumulator.java.expect88 throw new RSIllegalArgumentException("Array \"in1\" is null!");
121 throw new RSIllegalArgumentException("Array \"in1\" is null!");
154 throw new RSIllegalArgumentException("Array \"in1\" is null!");
187 throw new RSIllegalArgumentException("Array \"in1\" is null!");
220 throw new RSIllegalArgumentException("Array \"in1\" is null!");
253 throw new RSIllegalArgumentException("Array \"in1\" is null!");
286 throw new RSIllegalArgumentException("Array \"in1\" is null!");
319 throw new RSIllegalArgumentException("Array \"in1\" is null!");
352 throw new RSIllegalArgumentException("Array \"in1\" is null!");
385 throw new RSIllegalArgumentException("Array \"in1\" is null!");
[all …]
/frameworks/base/core/jni/hwbinder/
DEphemeralStorage.cpp87 JNIEnv *env, Type ## Array arrayObj) { \
88 Type ## Array obj = (Type ## Array)env->NewGlobalRef(arrayObj); \
117 (Type ## Array)item.mObj, \ in DEFINE_ALLOC_VECTOR_METHODS()
/frameworks/base/tools/aapt2/
DValueVisitor.h43 virtual void Visit(Array* value) { VisitAny(value); } in Visit()
86 virtual void Visit(const Array* value) { in Visit()
127 void VisitSubValues(Array* array) { in VisitSubValues()
149 DECL_VISIT_COMPOUND_VALUE(Array);
DResourceValues_test.cpp72 Array a; in TEST()
76 Array b; in TEST()
80 Array c; in TEST()
83 Array d; in TEST()
96 Array a; in TEST()
100 std::unique_ptr<Array> b(a.Clone(&pool)); in TEST()
/frameworks/compile/slang/tests/P_reduce_general_result/
DScriptC_reduce_general_result.java.expect2723 throw new RSIllegalArgumentException("Array \"in1\" is null!");
2756 throw new RSIllegalArgumentException("Array \"in1\" is null!");
2760 throw new RSIllegalArgumentException("Array \"in1\" is not a multiple of 2 in length!");
2793 throw new RSIllegalArgumentException("Array \"in1\" is null!");
2797 throw new RSIllegalArgumentException("Array \"in1\" is not a multiple of 4 in length!");
2830 throw new RSIllegalArgumentException("Array \"in1\" is null!");
2863 throw new RSIllegalArgumentException("Array \"in1\" is null!");
2867 throw new RSIllegalArgumentException("Array \"in1\" is not a multiple of 2 in length!");
2900 throw new RSIllegalArgumentException("Array \"in1\" is null!");
2904 throw new RSIllegalArgumentException("Array \"in1\" is not a multiple of 4 in length!");
[all …]
/frameworks/libs/net/common/hostdevice/com/android/testutils/
DMiscAsserts.kt29 fun <T> assertEmpty(ts: Array<T>) = ts.size.let { len -> in <lambda>()
33 fun <T> assertLength(expected: Int, got: Array<T>) = got.size.let { len -> in len()
67 fun assertContainsStringsExactly(actual: Array<String>, vararg expected: String) { in assertContainsStringsExactly()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DCameraMetadataTest.java52 import java.lang.reflect.Array;
258 int len = Array.getLength(array); in formatArray()
261 Object elem = Array.get(array, i); in formatArray()
293 Array.getLength(expected), Array.getLength(actual)); in assertArrayEquals()
295 int len = Array.getLength(expected); in assertArrayEquals()
298 Object expectedElement = Array.get(expected, i); in assertArrayEquals()
299 Object actualElement = Array.get(actual, i); in assertArrayEquals()
317 int len = Array.getLength(array); in assertArrayContains()
320 Object actualElement = Array.get(array, i); in assertArrayContains()
1405 int readValuesLength = Array.getLength(expectedReadValues); in validateArrayMetadataReadWriteOverride()
[all …]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
DFloatArrayToSizeFilter.java28 import java.lang.reflect.Array;
60 int size = Array.getLength(array); in onProcess()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DObjectCounter.java21 import java.lang.reflect.Array;
116 T[] output = (T[]) Array.newInstance(protoClass, size()); in toProto()
DIntCounter.java23 import java.lang.reflect.Array;
132 T[] output = (T[]) Array.newInstance(protoClass, size()); in toProto()
/frameworks/base/core/java/com/android/internal/util/
DRingBuffer.java21 import java.lang.reflect.Array;
41 mBuffer = (T[]) Array.newInstance(c, capacity); in RingBuffer()
DArrayUtils.java29 import java.lang.reflect.Array;
129 cache = Array.newInstance(kind, 0); in emptyArray()
334 final T[] res = (T[]) Array.newInstance(kind, an + bn); in concatElements()
361 result = (T[])Array.newInstance(kind, end + 1); in appendElement()
365 result = (T[])Array.newInstance(kind, 1); in appendElement()
385 T[] result = (T[])Array.newInstance(kind, length - 1); in removeElement()
/frameworks/compile/slang/tests/P_reduce_general_examples/
DScriptC_reduce_general_examples.java.expect209 throw new RSIllegalArgumentException("Array \"in1\" is null!");
242 throw new RSIllegalArgumentException("Array \"in1\" is null!");
276 throw new RSIllegalArgumentException("Array \"in1\" is null!");
283 throw new RSIllegalArgumentException("Array \"in2\" is null!");
287 … throw new RSRuntimeException("Array length mismatch between parameters \"in1\" and \"in2\"!");
339 throw new RSIllegalArgumentException("Array \"in1\" is null!");
372 throw new RSIllegalArgumentException("Array \"in1\" is null!");
405 throw new RSIllegalArgumentException("Array \"in1\" is null!");
438 throw new RSIllegalArgumentException("Array \"in1\" is null!");
471 throw new RSIllegalArgumentException("Array \"in1\" is null!");
/frameworks/compile/slang/tests/P_reduce_general_examples_backward/
DScriptC_reduce_general_examples_backward.java.expect209 throw new RSIllegalArgumentException("Array \"in1\" is null!");
242 throw new RSIllegalArgumentException("Array \"in1\" is null!");
276 throw new RSIllegalArgumentException("Array \"in1\" is null!");
283 throw new RSIllegalArgumentException("Array \"in2\" is null!");
287 … throw new RSRuntimeException("Array length mismatch between parameters \"in1\" and \"in2\"!");
339 throw new RSIllegalArgumentException("Array \"in1\" is null!");
372 throw new RSIllegalArgumentException("Array \"in1\" is null!");
405 throw new RSIllegalArgumentException("Array \"in1\" is null!");
438 throw new RSIllegalArgumentException("Array \"in1\" is null!");
471 throw new RSIllegalArgumentException("Array \"in1\" is null!");
/frameworks/base/core/java/android/text/
DSpanSet.java21 import java.lang.reflect.Array;
55 spans = (E[]) Array.newInstance(classType, length); in init()
/frameworks/compile/slang/tests/P_reduce_general_examples_explicit/
DScriptC_reduce_general_examples_explicit.java.expect171 throw new RSIllegalArgumentException("Array \"in1\" is null!");
204 throw new RSIllegalArgumentException("Array \"in1\" is null!");
237 throw new RSIllegalArgumentException("Array \"in1\" is null!");
271 throw new RSIllegalArgumentException("Array \"in1\" is null!");
278 throw new RSIllegalArgumentException("Array \"in2\" is null!");
282 … throw new RSRuntimeException("Array length mismatch between parameters \"in1\" and \"in2\"!");
334 throw new RSIllegalArgumentException("Array \"in1\" is null!");
/frameworks/libs/net/common/devicetests/com/android/testutils/
DFakeDns.kt45 fun setAnswer(hostname: String, answer: Array<String>, type: Int) = synchronized(answers) { in <lambda>()
54 private fun generateAnswer(answer: Array<String>) = in generateAnswer()
/frameworks/base/tests/net/java/android/net/util/
DKeepaliveUtilsTest.kt50 private fun getMockedContextWithStringArrayRes(id: Int, res: Array<out String?>?): Context { in getMockedContextWithStringArrayRes()
61 fun assertRunWithException(res: Array<out String?>?) { in testGetSupportedKeepalives()

1234