Home
last modified time | relevance | path

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

12

/cts/tests/sensor/src/android/hardware/cts/helpers/sensorverification/
DEventOrderingVerificationTest.java66 List<Integer> indices = getIndices(stats); in testSingleOutofOrder() local
67 assertTrue(indices.contains(2)); in testSingleOutofOrder()
83 List<Integer> indices = getIndices(stats); in testMultipleOutOfOrder() local
84 assertTrue(indices.contains(1)); in testMultipleOutOfOrder()
85 assertTrue(indices.contains(2)); in testMultipleOutOfOrder()
86 assertTrue(indices.contains(3)); in testMultipleOutOfOrder()
87 assertTrue(indices.contains(4)); in testMultipleOutOfOrder()
109 List<Integer> indices = new ArrayList<Integer>(primitiveIndices.length); in getIndices() local
111 indices.add(index); in getIndices()
113 return indices; in getIndices()
DEventGapVerificationTest.java69 int[] indices) { in runVerification() argument
86 assertEquals(indices.length, stats.getValue(SensorStats.EVENT_GAP_COUNT_KEY)); in runVerification()
89 assertEquals(indices.length, actualIndices.length); in runVerification()
91 for (int i = 0; i < indices.length; i++) { in runVerification()
92 assertEquals(indices[i], actualIndices[i]); in runVerification()
DAbstractSensorVerification.java52 int[] indices = new int[eventsCount]; in getIndexArray() local
54 indices[i] = indexedEvents.get(i).index; in getIndexArray()
56 return indices; in getIndexArray()
DTimestampClockSourceVerificationTest.java165 int[] indices) { in runVerification() argument
183 … assertEquals(indices.length, stats.getValue(SensorStats.EVENT_TIME_WRONG_CLOCKSOURCE_COUNT_KEY)); in runVerification()
189 assertEquals(indices.length, actualIndices.length); in runVerification()
191 for (int i = 0; i < indices.length; i++) { in runVerification()
192 assertEquals(indices[i], actualIndices[i]); in runVerification()
/cts/tests/wallpapereffectsgeneration/src/android/wallpapereffectsgeneration/cts/
DWallpaperEffectsGenerationTestUtils.java30 int[] indices = new int[indicesNum]; in createIndices() local
32 indices[i] = i; in createIndices()
34 return indices; in createIndices()
DTexturedMeshTest.java46 final int[] indices = WallpaperEffectsGenerationTestUtils.createIndices(500000); in testCreateTexturedMeshRequest() local
51 .setIndices(indices) in testCreateTexturedMeshRequest()
58 assertThat(texturedMesh.getIndices()).isEqualTo(indices); in testCreateTexturedMeshRequest()
72 assertThat(copy.getIndices()).isEqualTo(indices); in testCreateTexturedMeshRequest()
DCinematicEffectResponseTest.java54 final int[] indices = WallpaperEffectsGenerationTestUtils.createIndices(1500000); in testCreateCinematicEffectResponse() local
59 .setIndices(indices) in testCreateCinematicEffectResponse()
120 assertThat(mesh.getIndices()).isEqualTo(indices); in testCreateCinematicEffectResponse()
163 assertThat(meshCopy.getIndices()).isEqualTo(indices); in testCreateCinematicEffectResponse()
/cts/tests/tests/graphics/src/android/graphics/cts/
DCanvas_VertexModeTest.java53 short[] indices = { 0, 1, 2, 3, 4, 1 }; in testValues() local
67 indices, in testValues()
80 indices, in testValues()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/cube/
DCube.java55 byte indices[] = { in Cube()
84 mIndexBuffer = ByteBuffer.allocateDirect(indices.length); in Cube()
85 mIndexBuffer.put(indices); in Cube()
/cts/hostsidetests/adpf/app/hintsession/src/cpp/
DModel.h61 inline Model(std::vector<Vertex> vertices, std::vector<Index> indices, in Model() argument
65 indices_(std::move(indices)), in Model()
DRenderer.cpp310 thread_local std::vector<Index> indices = {0, 1, 2, 0, 2, 3}; in addHead() local
311 thread_local Model baseModel{vertices, indices, spAndroidRobotTexture}; in addHead()
/cts/hostsidetests/input/app/src/android/input/cts/hostside/app/
DEmulateInputDevice.kt191 for (i in pointers.indices) { in <lambda>()
198 for (i in pointers.indices) { in <lambda>()
206 for (i in pointers.indices) { in <lambda>()
/cts/tests/tests/openglperf/src/android/openglperf/cts/
DPlanetsRenderer.java208 ShortBuffer[] indices = mSpheres[i].getIndices(); in onDrawFrame() local
222 indices[j]); in onDrawFrame()
412 ShortBuffer[] indices = mSpheres[i].getIndices(); in createVbo() local
418 indices[j].limit() * Sphere.SHORT_SIZE, indices[j], in createVbo()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DCanvasTests.java590 final short[] indices = { in testDrawVerticesTooFewVerts() local
597 verts, 8, texs, 0, colors, 0, indices, in testDrawVerticesTooFewVerts()
606 final short[] indices = { in testDrawVerticesTooFewTexs() local
613 verts, 0, texs, 30, colors, 0, indices, in testDrawVerticesTooFewTexs()
622 final short[] indices = { in testDrawVerticesTooFewColors() local
629 verts, 0, texs, 0, colors, 30, indices, in testDrawVerticesTooFewColors()
638 final short[] indices = { in testDrawVerticesTooFewIndices() local
645 verts, 0, texs, 0, colors, 0, indices, in testDrawVerticesTooFewIndices()
DRuntimeShaderTests.kt322 for (i in rotatedPrimaries.indices) { in <lambda>()
/cts/tests/media/jni/
DNativeExtractorTest.cpp357 int* indices; in generateSeekTestArgs() local
360 indices = new int[MAX_SEEK_POINTS]; in generateSeekTestArgs()
362 indices[0] = 0; in generateSeekTestArgs()
363 indices[MAX_SEEK_POINTS - 1] = size - 1; in generateSeekTestArgs()
366 indices[i] = (int)(r * (MAX_SEEK_POINTS - 1) + 1); in generateSeekTestArgs()
369 indices = new int[size]; in generateSeekTestArgs()
371 for (int i = 0; i < size; i++) indices[i] = i; in generateSeekTestArgs()
408 delete[] indices; in generateSeekTestArgs()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Renderer/RenderUtils/
DObjImporter.java155 int[] indices = new int[]{0, 1, 2, 0, 2, 3}; in parse() local
158 int index = indices[i]; in parse()
/cts/tests/sensor/src/android/hardware/cts/accessories/
DHidCommand.kt152 for (i in dataList.indices) { in readData()
/cts/tests/media/src/android/mediav2/cts/
DExtractorTest.java953 int[] indices;
955 indices = new int[MAX_SEEK_POINTS];
956 indices[0] = 0;
957 indices[MAX_SEEK_POINTS - 1] = size - 1;
959 indices[i] = (int) (mRandNum.nextDouble() * (MAX_SEEK_POINTS - 1) + 1);
962 indices = new int[size];
963 for (int i = 0; i < size; i++) indices[i] = i;
968 for (int i : indices) {
/cts/tests/input/src/android/input/cts/
DDrawingTabletTest.kt163 for (i in INJECTION_POINTS.indices) { in verifyTaps()
/cts/tests/tests/text/src/android/text/cts/
DStaticLayoutLineBreakAutoTest.kt112 for (i in expected.indices) { in assertLineBreak()
/cts/tests/tests/jni/libjnitest/
Dandroid_jni_cts_InstanceNonce.c187 static int indices[] = { 0, 50, 99 }; in InstanceNonce_returnStringArray() local
215 (*env)->SetObjectArrayElement(env, result, indices[i], s); in InstanceNonce_returnStringArray()
Dandroid_jni_cts_StaticNonce.c246 static int indices[] = { 0, 50, 99 }; in StaticNonce_returnStringArray() local
275 (*env)->SetObjectArrayElement(env, result, indices[i], s); in StaticNonce_returnStringArray()
/cts/tests/tests/media/codec/src/android/media/codec/cts/
DMediaCodecTest.java1074 List<Integer> indices = new ArrayList<>(); in getOutputBufferIndices() local
1076 feedMoreFrames = indices.isEmpty(); in getOutputBufferIndices()
1081 indices.add(index); in getOutputBufferIndices()
1085 assertFalse(indices.isEmpty()); in getOutputBufferIndices()
1086 return indices; in getOutputBufferIndices()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/
DCameraTestUtils.java1067 ArrayList<Integer> indices = remainingResultIndicesMap.get(request); in getTotalCaptureResultsForRequests() local
1068 if (indices == null) { in getTotalCaptureResultsForRequests()
1069 indices = new ArrayList<>(); in getTotalCaptureResultsForRequests()
1070 remainingResultIndicesMap.put(request, indices); in getTotalCaptureResultsForRequests()
1072 indices.add(i); in getTotalCaptureResultsForRequests()
1080 ArrayList<Integer> indices = remainingResultIndicesMap.get(request); in getTotalCaptureResultsForRequests() local
1081 if (indices != null) { in getTotalCaptureResultsForRequests()
1082 results[indices.get(0)] = result; in getTotalCaptureResultsForRequests()
1083 indices.remove(0); in getTotalCaptureResultsForRequests()
1086 if (indices.isEmpty()) { in getTotalCaptureResultsForRequests()

12