Home
last modified time | relevance | path

Searched refs:idx (Results 1 – 25 of 56) sorted by relevance

123

/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dgetset.rs34 void __attribute__((kernel)) copy1D_##ty(int idx) { \
35 ty i = rsGetElementAt_##ty(gAlloc1DIn, idx); \
36 rsSetElementAt_##ty(gAlloc1DOut, i, idx); \
38 void __attribute__((kernel)) copy1D_##ty##2(int idx) { \
39 ty##2 i = rsGetElementAt_##ty##2(gAlloc1DIn, idx); \
40 rsSetElementAt_##ty##2(gAlloc1DOut, i, idx); \
42 void __attribute__((kernel)) copy1D_##ty##3(int idx) { \
43 ty##3 i = rsGetElementAt_##ty##3(gAlloc1DIn, idx); \
44 rsSetElementAt_##ty##3(gAlloc1DOut, i, idx); \
46 void __attribute__((kernel)) copy1D_##ty##4(int idx) { \
[all …]
DSampleTest.java40 int idx = 0; in createAlloc() local
47 tmp[idx++] = 0x0000ffff; in createAlloc()
51 tmp[idx++] = 0x00ff00ff; in createAlloc()
55 tmp[idx++] = 0x00ffff00; in createAlloc()
59 tmp[idx++] = 0xffffff00; in createAlloc()
Dreduce.rs51 int idx;
60 accum->min.idx = -1;
62 accum->max.idx = -1;
68 me.idx = x;
78 if ((accum->min.idx < 0) || (val->min.val < accum->min.val))
80 if ((accum->max.idx < 0) || (val->max.val > accum->max.val))
86 result->x = val->min.idx;
87 result->y = val->max.idx;
134 for (uint32_t idx = 0; idx < len; ++idx) {
135 const half val = rsGetElementAt_half(in, idx);
[all …]
DReduceTest.java176 for (int idx = 0; idx < input.length; ++idx) in addint()
177 rslt += input[idx]; in addint()
215 for (int idx = 0; idx < input.length; ++idx) { in findMinAndMax()
216 if (input[idx] < minVal) { in findMinAndMax()
217 minVal = input[idx]; in findMinAndMax()
218 minIdx = idx; in findMinAndMax()
220 if (input[idx] > maxVal) { in findMinAndMax()
221 maxVal = input[idx]; in findMinAndMax()
222 maxIdx = idx; in findMinAndMax()
495 for (int idx = 0; idx < input1.length; ++idx) in sumXor()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Renderer/RenderUtils/
DObjImporter.java121 int idx; in parse() local
126 idx = Integer.parseInt(subParts.nextToken()); in parse()
128 if (idx < 0) idx = (vertices.size() / 3) + idx; in parse()
129 else idx -= 1; in parse()
131 currObjIndexData.vertexIndices.add(idx); in parse()
133 quadvids[i - 1] = idx; in parse()
135 idx = Integer.parseInt(subParts.nextToken()); in parse()
136 if (idx < 0) idx = (texCoords.size() / 2) + idx; in parse()
137 else idx -= 1; in parse()
139 currObjIndexData.texCoordIndices.add(idx); in parse()
[all …]
/cts/tests/tests/graphics/src/android/graphics/cts/
DSweepGradientTest.java104 int idx; in verifyColors() local
106 for (idx = 0; idx < positions.length; idx++) { in verifyColors()
107 if (positions[idx] > relPos) { in verifyColors()
111 if (idx == 0) { in verifyColors()
114 } else if (idx == positions.length) { in verifyColors()
119 int i1 = idx - 1; // index of next lower color and position in verifyColors()
120 int i2 = idx; // index of next higher color and position in verifyColors()
DYuvImageTest.java306 int idx = row * width + col; in convertArgbsToYuvs() local
307 argb2yuv(argb[idx], yuvColor); in convertArgbsToYuvs()
308 yuv[idx] = yuvColor[0]; in convertArgbsToYuvs()
321 int idx = row * width + col; in convertArgbsToYuvs() local
322 argb2yuv(argb[idx], yuvColor0); in convertArgbsToYuvs()
323 argb2yuv(argb[idx + 1], yuvColor1); in convertArgbsToYuvs()
324 int offset = idx / 2 * 4; in convertArgbsToYuvs()
357 int idx = row * width + col; in compareBitmaps() local
358 mse += distance(expColors[idx], actualColors[idx]); in compareBitmaps()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/aget/d/
DT_aget_1.java20 public int run(int[] arr, int idx) { in run() argument
21 return arr[idx]; in run()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/aget_byte/d/
DT_aget_byte_1.java20 public byte run(byte[] arr, int idx) { in run() argument
21 return arr[idx]; in run()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/aget_wide/d/
DT_aget_wide_2.java21 public double run(double[] arr, int idx) { in run() argument
22 return arr[idx]; in run()
DT_aget_wide_1.java21 public long run(long[] arr, int idx) { in run() argument
22 return arr[idx]; in run()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/aget_char/d/
DT_aget_char_1.java20 public char run(char[] arr, int idx) { in run() argument
21 return arr[idx]; in run()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/aget_short/d/
DT_aget_short_1.java20 public short run(short[] arr, int idx) { in run() argument
21 return arr[idx]; in run()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/aget_boolean/d/
DT_aget_boolean_1.java20 public boolean run(boolean[] arr, int idx) { in run() argument
21 return arr[idx]; in run()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/aput_byte/d/
DT_aput_byte_1.java20 public void run(byte[] arr, int idx, byte value) { in run() argument
21 arr[idx] = value; in run()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/aput_short/d/
DT_aput_short_1.java20 public void run(short[] arr, int idx, short value) { in run() argument
21 arr[idx] = value; in run()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/aput_wide/d/
DT_aput_wide_2.java21 public void run(double[] arr, int idx, double value) { in run() argument
22 arr[idx] = value; in run()
DT_aput_wide_1.java21 public void run(long[] arr, int idx, long value) { in run() argument
22 arr[idx] = value; in run()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/aput/d/
DT_aput_1.java20 public void run(int[] arr, int idx, int value) { in run() argument
21 arr[idx] = value; in run()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/aput_boolean/d/
DT_aput_boolean_1.java20 public void run(boolean[] arr, int idx, boolean value) { in run() argument
21 arr[idx] = value; in run()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/aget_object/d/
DT_aget_object_1.java21 public String run(String [] arr, int idx) { in run() argument
22 return arr[idx]; in run()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/aput_char/d/
DT_aput_char_1.java20 public void run(char[] arr, int idx, char value) { in run() argument
21 arr[idx] = value; in run()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/aput_object/d/
DT_aput_object_1.java21 public void run(String[] arr, int idx, String value) { in run() argument
22 arr[idx] = value; in run()
DT_aput_object_2.java21 public void run(Integer[] arr, int idx, Integer value) { in run() argument
22 arr[idx] = value; in run()
/cts/hostsidetests/services/activityandwindowmanager/util/src/android/server/cts/
DSurfaceTraceReceiver.java194 int idx = offset + length - 1; in indexAfterLastSigil() local
197 while (idx > offset) { in indexAfterLastSigil()
198 if (data[idx] == sigil) { in indexAfterLastSigil()
201 return idx+4; in indexAfterLastSigil()
206 idx--; in indexAfterLastSigil()
208 return idx; // idx == offset at this point in indexAfterLastSigil()

123