Home
last modified time | relevance | path

Searched refs:indices (Results 1 – 25 of 142) sorted by relevance

123456

/frameworks/ml/nn/runtime/test/specs/V1_3/
Dgather_quant8_signed.mod.py19 indices = Input("indices", "TENSOR_INT32", "{3, 2}") variable
22 model = Model().Operation("GATHER", input0, axis, indices).To(output0)
33 indices: [2, 0,
46 def test(input0, axis, indices, output0, input_data, output_data): argument
47 model = Model().Operation("GATHER", input0, axis, indices).To(output0)
62 indices=[1, 0],
73 indices=[1], # Unlike TensorFlow, 0-D arguments and outputs are not supported.
83 indices=[1],
92 indices=[1, 0],
101 indices=[0, 0],
[all …]
/frameworks/av/media/codec2/sfplugin/tests/
DReflectedParamUpdater_test.cpp155 std::vector<C2Param::Index> indices; in TEST_F() local
156 updater.getParamIndicesFromMessage(msg, &indices); in TEST_F()
157 EXPECT_EQ(1, std::count_if(indices.begin(), indices.end(), in TEST_F()
159 EXPECT_EQ(1, std::count_if(indices.begin(), indices.end(), in TEST_F()
161 EXPECT_EQ(0, std::count_if(indices.begin(), indices.end(), in TEST_F()
163 EXPECT_EQ(0, std::count_if(indices.begin(), indices.end(), in TEST_F()
165 EXPECT_EQ(0, std::count_if(indices.begin(), indices.end(), in TEST_F()
201 std::vector<C2Param::Index> indices; in TEST_F() local
202 updater.getParamIndicesFromMessage(msg, &indices); in TEST_F()
203 EXPECT_EQ(0, std::count_if(indices.begin(), indices.end(), in TEST_F()
[all …]
/frameworks/ml/nn/runtime/test/specs/V1_2/
Dgather.mod.py17 def test(input0, axis, indices, output0, input_data, output_data): argument
18 model = Model().Operation("GATHER", input0, axis, indices).To(output0)
43 indices=[1, 0],
54 indices=[1], # Unlike TensorFlow, 0-D arguments and outputs are not supported.
64 indices=[1],
73 indices=[1, 0],
82 indices=[0, 0],
95 indices=[1, 3],
104 indices=[1, 0],
115 indices=[2, 0],
Dgather_higher_rank.mod.py19 indices = Input("indices", "TENSOR_INT32", "{3, 2}") variable
22 model = Model().Operation("GATHER", input0, axis, indices).To(output0)
33 indices: [2, 0,
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
Ddtx.c39 Word16 indices[],
45 Word16 indices[],
381 Word16 indices[], in aver_isf_history() argument
393 if ((indices[k] + 1) != 0) in aver_isf_history()
397 isf_tmp[k * M + i] = isf_old[indices[k] * M + i]; in aver_isf_history()
398 isf_old[indices[k] * M + i] = isf_old[indices[2] * M + i]; in aver_isf_history()
418 if ((indices[k] + 1) != 0) in aver_isf_history()
422 isf_old[indices[k] * M + i] = isf_tmp[k * M + i]; in aver_isf_history()
432 Word16 indices[], in find_frame_indices() argument
507 indices[0] = 0; in find_frame_indices()
[all …]
/frameworks/base/cmds/statsd/src/anomaly/
Dindexed_priority_queue.h75 std::unordered_map<sp<const AA>, size_t, SpHash<AA>> indices; variable
98 indices.insert({a, idx}); in push()
106 size_t idx = indices[a]; in remove()
112 indices.erase(a); in remove()
119 indices[last_a] = idx; in remove()
120 indices.erase(a); in remove()
137 indices.erase(a); in pop()
144 indices[last_a] = idx; in pop()
145 indices.erase(a); in pop()
154 indices.clear(); in clear()
[all …]
/frameworks/native/opengl/tools/glgen/stubs/gles11/
DglDrawElementsInstanced.cpp8 GLvoid *indices = (GLvoid *) 0; in android_glDrawElementsInstanced__IIILjava_nio_Buffer_2I() local
10 indices = (GLvoid *)getPointer(_env, indices_buf, &_array, &_remaining, &_bufferOffset); in android_glDrawElementsInstanced__IIILjava_nio_Buffer_2I()
11 if (indices == NULL) { in android_glDrawElementsInstanced__IIILjava_nio_Buffer_2I()
13 indices = (GLvoid *) (_indicesBase + _bufferOffset); in android_glDrawElementsInstanced__IIILjava_nio_Buffer_2I()
19 (GLvoid *)indices, in android_glDrawElementsInstanced__IIILjava_nio_Buffer_2I()
23 releasePointer(_env, _array, indices, JNI_FALSE); in android_glDrawElementsInstanced__IIILjava_nio_Buffer_2I()
DglDrawElementsInstancedBaseVertex.cpp11 void *indices = (void *) 0; in android_glDrawElementsInstancedBaseVertex__IIILjava_nio_Buffer_2II() local
13 indices = (void *)getPointer(_env, indices_buf, &_array, &_remaining, &_bufferOffset); in android_glDrawElementsInstancedBaseVertex__IIILjava_nio_Buffer_2II()
20 if (indices == NULL) { in android_glDrawElementsInstancedBaseVertex__IIILjava_nio_Buffer_2II()
22 indices = (void *) (_indicesBase + _bufferOffset); in android_glDrawElementsInstancedBaseVertex__IIILjava_nio_Buffer_2II()
28 (void *)indices, in android_glDrawElementsInstancedBaseVertex__IIILjava_nio_Buffer_2II()
35 releasePointer(_env, _array, indices, JNI_FALSE); in android_glDrawElementsInstancedBaseVertex__IIILjava_nio_Buffer_2II()
/frameworks/base/tests/ProtoInputStreamTests/src/com/android/test/protoinputstream/
DProtoInputStreamFloatTest.java268 int[] indices = new int[9]; in testRepeated() local
273 results[0][indices[0]++] = pi.readFloat(fieldId1); in testRepeated()
276 results[1][indices[1]++] = pi.readFloat(fieldId2); in testRepeated()
279 results[2][indices[2]++] = pi.readFloat(fieldId3); in testRepeated()
282 results[3][indices[3]++] = pi.readFloat(fieldId4); in testRepeated()
285 results[4][indices[4]++] = pi.readFloat(fieldId5); in testRepeated()
288 results[5][indices[5]++] = pi.readFloat(fieldId6); in testRepeated()
291 results[6][indices[6]++] = pi.readFloat(fieldId7); in testRepeated()
294 results[7][indices[7]++] = pi.readFloat(fieldId8); in testRepeated()
297 results[8][indices[8]++] = pi.readFloat(fieldId9); in testRepeated()
[all …]
DProtoInputStreamDoubleTest.java295 int[] indices = new int[9]; in testRepeated() local
300 results[0][indices[0]++] = pi.readDouble(fieldId1); in testRepeated()
303 results[1][indices[1]++] = pi.readDouble(fieldId2); in testRepeated()
306 results[2][indices[2]++] = pi.readDouble(fieldId3); in testRepeated()
309 results[3][indices[3]++] = pi.readDouble(fieldId4); in testRepeated()
312 results[4][indices[4]++] = pi.readDouble(fieldId5); in testRepeated()
315 results[5][indices[5]++] = pi.readDouble(fieldId6); in testRepeated()
318 results[6][indices[6]++] = pi.readDouble(fieldId7); in testRepeated()
321 results[7][indices[7]++] = pi.readDouble(fieldId8); in testRepeated()
324 results[8][indices[8]++] = pi.readDouble(fieldId9); in testRepeated()
[all …]
DProtoInputStreamSInt64Test.java242 int[] indices = new int[7]; in testRepeated() local
247 results[0][indices[0]++] = pi.readLong(fieldId1); in testRepeated()
250 results[1][indices[1]++] = pi.readLong(fieldId2); in testRepeated()
253 results[2][indices[2]++] = pi.readLong(fieldId3); in testRepeated()
256 results[3][indices[3]++] = pi.readLong(fieldId4); in testRepeated()
259 results[4][indices[4]++] = pi.readLong(fieldId5); in testRepeated()
262 results[5][indices[5]++] = pi.readLong(fieldId6); in testRepeated()
265 results[6][indices[6]++] = pi.readLong(fieldId7); in testRepeated()
403 int[] indices = new int[7]; in testPacked() local
408 results[0][indices[0]++] = pi.readLong(fieldId1); in testPacked()
[all …]
DProtoInputStreamInt64Test.java249 int[] indices = new int[7]; in testRepeated() local
254 results[0][indices[0]++] = pi.readLong(fieldId1); in testRepeated()
257 results[1][indices[1]++] = pi.readLong(fieldId2); in testRepeated()
260 results[2][indices[2]++] = pi.readLong(fieldId3); in testRepeated()
263 results[3][indices[3]++] = pi.readLong(fieldId4); in testRepeated()
266 results[4][indices[4]++] = pi.readLong(fieldId5); in testRepeated()
269 results[5][indices[5]++] = pi.readLong(fieldId6); in testRepeated()
272 results[6][indices[6]++] = pi.readLong(fieldId7); in testRepeated()
426 int[] indices = new int[7]; in testPacked() local
431 results[0][indices[0]++] = pi.readLong(fieldId1); in testPacked()
[all …]
DProtoInputStreamFixed64Test.java257 int[] indices = new int[7]; in testRepeated() local
262 results[0][indices[0]++] = pi.readLong(fieldId1); in testRepeated()
265 results[1][indices[1]++] = pi.readLong(fieldId2); in testRepeated()
268 results[2][indices[2]++] = pi.readLong(fieldId3); in testRepeated()
271 results[3][indices[3]++] = pi.readLong(fieldId4); in testRepeated()
274 results[4][indices[4]++] = pi.readLong(fieldId5); in testRepeated()
277 results[5][indices[5]++] = pi.readLong(fieldId6); in testRepeated()
280 results[6][indices[6]++] = pi.readLong(fieldId7); in testRepeated()
428 int[] indices = new int[7]; in testPacked() local
433 results[0][indices[0]++] = pi.readLong(fieldId1); in testPacked()
[all …]
DProtoInputStreamSFixed64Test.java257 int[] indices = new int[7]; in testRepeated() local
262 results[0][indices[0]++] = pi.readLong(fieldId1); in testRepeated()
265 results[1][indices[1]++] = pi.readLong(fieldId2); in testRepeated()
268 results[2][indices[2]++] = pi.readLong(fieldId3); in testRepeated()
271 results[3][indices[3]++] = pi.readLong(fieldId4); in testRepeated()
274 results[4][indices[4]++] = pi.readLong(fieldId5); in testRepeated()
277 results[5][indices[5]++] = pi.readLong(fieldId6); in testRepeated()
280 results[6][indices[6]++] = pi.readLong(fieldId7); in testRepeated()
428 int[] indices = new int[7]; in testPacked() local
433 results[0][indices[0]++] = pi.readLong(fieldId1); in testPacked()
[all …]
DProtoInputStreamUInt64Test.java247 int[] indices = new int[7]; in testRepeated() local
252 results[0][indices[0]++] = pi.readLong(fieldId1); in testRepeated()
255 results[1][indices[1]++] = pi.readLong(fieldId2); in testRepeated()
258 results[2][indices[2]++] = pi.readLong(fieldId3); in testRepeated()
261 results[3][indices[3]++] = pi.readLong(fieldId4); in testRepeated()
264 results[4][indices[4]++] = pi.readLong(fieldId5); in testRepeated()
267 results[5][indices[5]++] = pi.readLong(fieldId6); in testRepeated()
270 results[6][indices[6]++] = pi.readLong(fieldId7); in testRepeated()
422 int[] indices = new int[7]; in testPacked() local
427 results[0][indices[0]++] = pi.readLong(fieldId1); in testPacked()
[all …]
DProtoInputStreamEnumTest.java209 int[] indices = new int[5]; in testRepeated() local
214 results[0][indices[0]++] = pi.readInt(fieldId1); in testRepeated()
217 results[1][indices[1]++] = pi.readInt(fieldId2); in testRepeated()
220 results[2][indices[2]++] = pi.readInt(fieldId3); in testRepeated()
223 results[3][indices[3]++] = pi.readInt(fieldId4); in testRepeated()
226 results[4][indices[4]++] = pi.readInt(fieldId5); in testRepeated()
356 int[] indices = new int[5]; in testPacked() local
361 results[0][indices[0]++] = pi.readInt(fieldId1); in testPacked()
364 results[1][indices[1]++] = pi.readInt(fieldId2); in testPacked()
367 results[2][indices[2]++] = pi.readInt(fieldId3); in testPacked()
[all …]
DProtoInputStreamFixed32Test.java203 int[] indices = new int[5]; in testRepeated() local
208 results[0][indices[0]++] = pi.readInt(fieldId1); in testRepeated()
211 results[1][indices[1]++] = pi.readInt(fieldId2); in testRepeated()
214 results[2][indices[2]++] = pi.readInt(fieldId3); in testRepeated()
217 results[3][indices[3]++] = pi.readInt(fieldId4); in testRepeated()
220 results[4][indices[4]++] = pi.readInt(fieldId5); in testRepeated()
337 int[] indices = new int[5]; in testPacked() local
342 results[0][indices[0]++] = pi.readInt(fieldId1); in testPacked()
345 results[1][indices[1]++] = pi.readInt(fieldId2); in testPacked()
348 results[2][indices[2]++] = pi.readInt(fieldId3); in testPacked()
[all …]
DProtoInputStreamSFixed32Test.java203 int[] indices = new int[5]; in testRepeated() local
208 results[0][indices[0]++] = pi.readInt(fieldId1); in testRepeated()
211 results[1][indices[1]++] = pi.readInt(fieldId2); in testRepeated()
214 results[2][indices[2]++] = pi.readInt(fieldId3); in testRepeated()
217 results[3][indices[3]++] = pi.readInt(fieldId4); in testRepeated()
220 results[4][indices[4]++] = pi.readInt(fieldId5); in testRepeated()
337 int[] indices = new int[5]; in testPacked() local
342 results[0][indices[0]++] = pi.readInt(fieldId1); in testPacked()
345 results[1][indices[1]++] = pi.readInt(fieldId2); in testPacked()
348 results[2][indices[2]++] = pi.readInt(fieldId3); in testPacked()
[all …]
DProtoInputStreamUInt32Test.java208 int[] indices = new int[5]; in testRepeated() local
213 results[0][indices[0]++] = pi.readInt(fieldId1); in testRepeated()
216 results[1][indices[1]++] = pi.readInt(fieldId2); in testRepeated()
219 results[2][indices[2]++] = pi.readInt(fieldId3); in testRepeated()
222 results[3][indices[3]++] = pi.readInt(fieldId4); in testRepeated()
225 results[4][indices[4]++] = pi.readInt(fieldId5); in testRepeated()
354 int[] indices = new int[5]; in testPacked() local
359 results[0][indices[0]++] = pi.readInt(fieldId1); in testPacked()
362 results[1][indices[1]++] = pi.readInt(fieldId2); in testPacked()
365 results[2][indices[2]++] = pi.readInt(fieldId3); in testPacked()
[all …]
DProtoInputStreamSInt32Test.java203 int[] indices = new int[5]; in testRepeated() local
208 results[0][indices[0]++] = pi.readInt(fieldId1); in testRepeated()
211 results[1][indices[1]++] = pi.readInt(fieldId2); in testRepeated()
214 results[2][indices[2]++] = pi.readInt(fieldId3); in testRepeated()
217 results[3][indices[3]++] = pi.readInt(fieldId4); in testRepeated()
220 results[4][indices[4]++] = pi.readInt(fieldId5); in testRepeated()
337 int[] indices = new int[5]; in testPacked() local
342 results[0][indices[0]++] = pi.readInt(fieldId1); in testPacked()
345 results[1][indices[1]++] = pi.readInt(fieldId2); in testPacked()
348 results[2][indices[2]++] = pi.readInt(fieldId3); in testPacked()
[all …]
DProtoInputStreamInt32Test.java209 int[] indices = new int[5]; in testRepeated() local
214 results[0][indices[0]++] = pi.readInt(fieldId1); in testRepeated()
217 results[1][indices[1]++] = pi.readInt(fieldId2); in testRepeated()
220 results[2][indices[2]++] = pi.readInt(fieldId3); in testRepeated()
223 results[3][indices[3]++] = pi.readInt(fieldId4); in testRepeated()
226 results[4][indices[4]++] = pi.readInt(fieldId5); in testRepeated()
355 int[] indices = new int[5]; in testPacked() local
360 results[0][indices[0]++] = pi.readInt(fieldId1); in testPacked()
363 results[1][indices[1]++] = pi.readInt(fieldId2); in testPacked()
366 results[2][indices[2]++] = pi.readInt(fieldId3); in testPacked()
[all …]
DProtoInputStreamBoolTest.java179 int[] indices = new int[3]; in testRepeated() local
184 results[0][indices[0]++] = pi.readBoolean(fieldId1); in testRepeated()
187 results[1][indices[1]++] = pi.readBoolean(fieldId2); in testRepeated()
190 results[2][indices[2]++] = pi.readBoolean(fieldId3); in testRepeated()
299 int[] indices = new int[3]; in testPacked() local
305 results[0][indices[0]++] = pi.readBoolean(fieldId1); in testPacked()
308 results[1][indices[1]++] = pi.readBoolean(fieldId2); in testPacked()
311 results[2][indices[2]++] = pi.readBoolean(fieldId3); in testPacked()
/frameworks/av/media/libstagefright/codecs/amrwb/src/
Ddtx_decoder_amr_wb.cpp669 int16 indices[], in aver_isf_history() argument
682 if (indices[k] + 1 != 0) in aver_isf_history()
686 isf_tmp[k * M + i] = isf_old[indices[k] * M + i]; in aver_isf_history()
687 isf_old[indices[k] * M + i] = isf_old[indices[2] * M + i]; in aver_isf_history()
708 if (indices[k] + 1 != 0) in aver_isf_history()
712 isf_old[indices[k] * M + i] = isf_tmp[k * M + i]; in aver_isf_history()
727 int16 indices[], in find_frame_indices() argument
803 indices[0] = 0; in find_frame_indices()
804 indices[2] = 0; in find_frame_indices()
810 indices[0] = i; in find_frame_indices()
[all …]
/frameworks/base/cmds/incident_helper/tests/
Dih_util_test.cpp69 std::vector<int> indices = { 3, 10 }; in TEST() local
71 result = parseRecordByColumns("12345", indices); in TEST()
75 result = parseRecordByColumns("abc \t2345 6789 ", indices); in TEST()
84 result = parseRecordByColumns(extraColumn1, indices); in TEST()
89 result = parseRecordByColumns(emptyMidColm, indices); in TEST()
93 result = parseRecordByColumns(longFirstClm, indices); in TEST()
97 result = parseRecordByColumns(lngFrstEmpty, indices); in TEST()
/frameworks/native/libs/renderengine/gl/
DGLShadowVertexGenerator.cpp84 void GLShadowVertexGenerator::fillIndices(uint16_t* indices) const { in fillIndices()
87 0 /* starting vertex offset */, indices); in fillIndices()
92 &(indices[mAmbientShadowIndexCount])); in fillIndices()

123456