/cts/tests/tests/renderscript/src/android/renderscript/cts/generated/ |
D | TestCross.java | 85 for (int j = 0; j < 3 ; j++) { in verifyResultsCrossFloat3Float3Float3() 86 args.inLeftVector[j] = arrayInLeftVector[i * 4 + j]; in verifyResultsCrossFloat3Float3Float3() 88 for (int j = 0; j < 3 ; j++) { in verifyResultsCrossFloat3Float3Float3() 89 args.inRightVector[j] = arrayInRightVector[i * 4 + j]; in verifyResultsCrossFloat3Float3Float3() 96 for (int j = 0; j < 3 ; j++) { in verifyResultsCrossFloat3Float3Float3() 97 if (!args.out[j].couldBe(arrayOut[i * 4 + j])) { in verifyResultsCrossFloat3Float3Float3() 104 for (int j = 0; j < 3 ; j++) { in verifyResultsCrossFloat3Float3Float3() 106 appendVariableToMessage(message, arrayInLeftVector[i * 4 + j]); in verifyResultsCrossFloat3Float3Float3() 109 for (int j = 0; j < 3 ; j++) { in verifyResultsCrossFloat3Float3Float3() 111 appendVariableToMessage(message, arrayInRightVector[i * 4 + j]); in verifyResultsCrossFloat3Float3Float3() [all …]
|
D | TestFastNormalize.java | 148 for (int j = 0; j < 2 ; j++) { in verifyResultsFastNormalizeFloat2Float2() 149 args.inV[j] = arrayInV[i * 2 + j]; in verifyResultsFastNormalizeFloat2Float2() 156 for (int j = 0; j < 2 ; j++) { in verifyResultsFastNormalizeFloat2Float2() 157 if (!args.out[j].couldBe(arrayOut[i * 2 + j])) { in verifyResultsFastNormalizeFloat2Float2() 164 for (int j = 0; j < 2 ; j++) { in verifyResultsFastNormalizeFloat2Float2() 166 appendVariableToMessage(message, arrayInV[i * 2 + j]); in verifyResultsFastNormalizeFloat2Float2() 169 for (int j = 0; j < 2 ; j++) { in verifyResultsFastNormalizeFloat2Float2() 171 appendVariableToMessage(message, args.out[j]); in verifyResultsFastNormalizeFloat2Float2() 174 appendVariableToMessage(message, arrayOut[i * 2 + j]); in verifyResultsFastNormalizeFloat2Float2() 175 if (!args.out[j].couldBe(arrayOut[i * 2 + j])) { in verifyResultsFastNormalizeFloat2Float2() [all …]
|
D | TestNormalize.java | 148 for (int j = 0; j < 2 ; j++) { in verifyResultsNormalizeFloat2Float2() 149 args.inV[j] = arrayInV[i * 2 + j]; in verifyResultsNormalizeFloat2Float2() 156 for (int j = 0; j < 2 ; j++) { in verifyResultsNormalizeFloat2Float2() 157 if (!args.out[j].couldBe(arrayOut[i * 2 + j])) { in verifyResultsNormalizeFloat2Float2() 164 for (int j = 0; j < 2 ; j++) { in verifyResultsNormalizeFloat2Float2() 166 appendVariableToMessage(message, arrayInV[i * 2 + j]); in verifyResultsNormalizeFloat2Float2() 169 for (int j = 0; j < 2 ; j++) { in verifyResultsNormalizeFloat2Float2() 171 appendVariableToMessage(message, args.out[j]); in verifyResultsNormalizeFloat2Float2() 174 appendVariableToMessage(message, arrayOut[i * 2 + j]); in verifyResultsNormalizeFloat2Float2() 175 if (!args.out[j].couldBe(arrayOut[i * 2 + j])) { in verifyResultsNormalizeFloat2Float2() [all …]
|
D | TestNativeNormalize.java | 148 for (int j = 0; j < 2 ; j++) { in verifyResultsNativeNormalizeFloat2Float2() 149 args.inV[j] = arrayInV[i * 2 + j]; in verifyResultsNativeNormalizeFloat2Float2() 156 for (int j = 0; j < 2 ; j++) { in verifyResultsNativeNormalizeFloat2Float2() 157 if (!args.out[j].couldBe(arrayOut[i * 2 + j])) { in verifyResultsNativeNormalizeFloat2Float2() 164 for (int j = 0; j < 2 ; j++) { in verifyResultsNativeNormalizeFloat2Float2() 166 appendVariableToMessage(message, arrayInV[i * 2 + j]); in verifyResultsNativeNormalizeFloat2Float2() 169 for (int j = 0; j < 2 ; j++) { in verifyResultsNativeNormalizeFloat2Float2() 171 appendVariableToMessage(message, args.out[j]); in verifyResultsNativeNormalizeFloat2Float2() 174 appendVariableToMessage(message, arrayOut[i * 2 + j]); in verifyResultsNativeNormalizeFloat2Float2() 175 if (!args.out[j].couldBe(arrayOut[i * 2 + j])) { in verifyResultsNativeNormalizeFloat2Float2() [all …]
|
D | TestNativeDistance.java | 166 for (int j = 0; j < 2 ; j++) { in verifyResultsNativeDistanceFloat2Float2Float() 167 args.inLeftVector[j] = arrayInLeftVector[i * 2 + j]; in verifyResultsNativeDistanceFloat2Float2Float() 169 for (int j = 0; j < 2 ; j++) { in verifyResultsNativeDistanceFloat2Float2Float() 170 args.inRightVector[j] = arrayInRightVector[i * 2 + j]; in verifyResultsNativeDistanceFloat2Float2Float() 183 for (int j = 0; j < 2 ; j++) { in verifyResultsNativeDistanceFloat2Float2Float() 185 appendVariableToMessage(message, arrayInLeftVector[i * 2 + j]); in verifyResultsNativeDistanceFloat2Float2Float() 188 for (int j = 0; j < 2 ; j++) { in verifyResultsNativeDistanceFloat2Float2Float() 190 appendVariableToMessage(message, arrayInRightVector[i * 2 + j]); in verifyResultsNativeDistanceFloat2Float2Float() 252 for (int j = 0; j < 3 ; j++) { in verifyResultsNativeDistanceFloat3Float3Float() 253 args.inLeftVector[j] = arrayInLeftVector[i * 4 + j]; in verifyResultsNativeDistanceFloat3Float3Float() [all …]
|
D | TestFastDistance.java | 166 for (int j = 0; j < 2 ; j++) { in verifyResultsFastDistanceFloat2Float2Float() 167 args.inLeftVector[j] = arrayInLeftVector[i * 2 + j]; in verifyResultsFastDistanceFloat2Float2Float() 169 for (int j = 0; j < 2 ; j++) { in verifyResultsFastDistanceFloat2Float2Float() 170 args.inRightVector[j] = arrayInRightVector[i * 2 + j]; in verifyResultsFastDistanceFloat2Float2Float() 183 for (int j = 0; j < 2 ; j++) { in verifyResultsFastDistanceFloat2Float2Float() 185 appendVariableToMessage(message, arrayInLeftVector[i * 2 + j]); in verifyResultsFastDistanceFloat2Float2Float() 188 for (int j = 0; j < 2 ; j++) { in verifyResultsFastDistanceFloat2Float2Float() 190 appendVariableToMessage(message, arrayInRightVector[i * 2 + j]); in verifyResultsFastDistanceFloat2Float2Float() 252 for (int j = 0; j < 3 ; j++) { in verifyResultsFastDistanceFloat3Float3Float() 253 args.inLeftVector[j] = arrayInLeftVector[i * 4 + j]; in verifyResultsFastDistanceFloat3Float3Float() [all …]
|
D | TestDistance.java | 166 for (int j = 0; j < 2 ; j++) { in verifyResultsDistanceFloat2Float2Float() 167 args.inLeftVector[j] = arrayInLeftVector[i * 2 + j]; in verifyResultsDistanceFloat2Float2Float() 169 for (int j = 0; j < 2 ; j++) { in verifyResultsDistanceFloat2Float2Float() 170 args.inRightVector[j] = arrayInRightVector[i * 2 + j]; in verifyResultsDistanceFloat2Float2Float() 183 for (int j = 0; j < 2 ; j++) { in verifyResultsDistanceFloat2Float2Float() 185 appendVariableToMessage(message, arrayInLeftVector[i * 2 + j]); in verifyResultsDistanceFloat2Float2Float() 188 for (int j = 0; j < 2 ; j++) { in verifyResultsDistanceFloat2Float2Float() 190 appendVariableToMessage(message, arrayInRightVector[i * 2 + j]); in verifyResultsDistanceFloat2Float2Float() 252 for (int j = 0; j < 3 ; j++) { in verifyResultsDistanceFloat3Float3Float() 253 args.inLeftVector[j] = arrayInLeftVector[i * 4 + j]; in verifyResultsDistanceFloat3Float3Float() [all …]
|
D | TestDot.java | 166 for (int j = 0; j < 2 ; j++) { in verifyResultsDotFloat2Float2Float() 167 args.inLeftVector[j] = arrayInLeftVector[i * 2 + j]; in verifyResultsDotFloat2Float2Float() 169 for (int j = 0; j < 2 ; j++) { in verifyResultsDotFloat2Float2Float() 170 args.inRightVector[j] = arrayInRightVector[i * 2 + j]; in verifyResultsDotFloat2Float2Float() 183 for (int j = 0; j < 2 ; j++) { in verifyResultsDotFloat2Float2Float() 185 appendVariableToMessage(message, arrayInLeftVector[i * 2 + j]); in verifyResultsDotFloat2Float2Float() 188 for (int j = 0; j < 2 ; j++) { in verifyResultsDotFloat2Float2Float() 190 appendVariableToMessage(message, arrayInRightVector[i * 2 + j]); in verifyResultsDotFloat2Float2Float() 252 for (int j = 0; j < 3 ; j++) { in verifyResultsDotFloat3Float3Float() 253 args.inLeftVector[j] = arrayInLeftVector[i * 4 + j]; in verifyResultsDotFloat3Float3Float() [all …]
|
D | TestClz.java | 72 for (int j = 0; j < 1 ; j++) { in verifyResultsClzCharChar() 80 if (args.out != arrayOut[i * 1 + j]) { in verifyResultsClzCharChar() 93 appendVariableToMessage(message, arrayOut[i * 1 + j]); in verifyResultsClzCharChar() 94 if (args.out != arrayOut[i * 1 + j]) { in verifyResultsClzCharChar() 103 message.append(Integer.toString(j)); in verifyResultsClzCharChar() 140 for (int j = 0; j < 2 ; j++) { in verifyResultsClzChar2Char2() 143 args.inValue = arrayInValue[i * 2 + j]; in verifyResultsClzChar2Char2() 148 if (args.out != arrayOut[i * 2 + j]) { in verifyResultsClzChar2Char2() 161 appendVariableToMessage(message, arrayOut[i * 2 + j]); in verifyResultsClzChar2Char2() 162 if (args.out != arrayOut[i * 2 + j]) { in verifyResultsClzChar2Char2() [all …]
|
D | TestAbs.java | 72 for (int j = 0; j < 1 ; j++) { in verifyResultsAbsCharUchar() 80 if (args.out != arrayOut[i * 1 + j]) { in verifyResultsAbsCharUchar() 93 appendVariableToMessage(message, arrayOut[i * 1 + j]); in verifyResultsAbsCharUchar() 94 if (args.out != arrayOut[i * 1 + j]) { in verifyResultsAbsCharUchar() 103 message.append(Integer.toString(j)); in verifyResultsAbsCharUchar() 140 for (int j = 0; j < 2 ; j++) { in verifyResultsAbsChar2Uchar2() 143 args.inV = arrayInV[i * 2 + j]; in verifyResultsAbsChar2Uchar2() 148 if (args.out != arrayOut[i * 2 + j]) { in verifyResultsAbsChar2Uchar2() 161 appendVariableToMessage(message, arrayOut[i * 2 + j]); in verifyResultsAbsChar2Uchar2() 162 if (args.out != arrayOut[i * 2 + j]) { in verifyResultsAbsChar2Uchar2() [all …]
|
D | TestMin.java | 79 for (int j = 0; j < 1 ; j++) { in verifyResultsMinFloatFloatFloat() 89 if (!args.out.couldBe(arrayOut[i * 1 + j])) { in verifyResultsMinFloatFloatFloat() 105 appendVariableToMessage(message, arrayOut[i * 1 + j]); in verifyResultsMinFloatFloatFloat() 106 if (!args.out.couldBe(arrayOut[i * 1 + j])) { in verifyResultsMinFloatFloatFloat() 115 message.append(Integer.toString(j)); in verifyResultsMinFloatFloatFloat() 158 for (int j = 0; j < 2 ; j++) { in verifyResultsMinFloat2Float2Float2() 161 args.inA = arrayInA[i * 2 + j]; in verifyResultsMinFloat2Float2Float2() 162 args.inB = arrayInB[i * 2 + j]; in verifyResultsMinFloat2Float2Float2() 168 if (!args.out.couldBe(arrayOut[i * 2 + j])) { in verifyResultsMinFloat2Float2Float2() 184 appendVariableToMessage(message, arrayOut[i * 2 + j]); in verifyResultsMinFloat2Float2Float2() [all …]
|
D | TestMax.java | 79 for (int j = 0; j < 1 ; j++) { in verifyResultsMaxFloatFloatFloat() 89 if (!args.out.couldBe(arrayOut[i * 1 + j])) { in verifyResultsMaxFloatFloatFloat() 105 appendVariableToMessage(message, arrayOut[i * 1 + j]); in verifyResultsMaxFloatFloatFloat() 106 if (!args.out.couldBe(arrayOut[i * 1 + j])) { in verifyResultsMaxFloatFloatFloat() 115 message.append(Integer.toString(j)); in verifyResultsMaxFloatFloatFloat() 158 for (int j = 0; j < 2 ; j++) { in verifyResultsMaxFloat2Float2Float2() 161 args.inA = arrayInA[i * 2 + j]; in verifyResultsMaxFloat2Float2Float2() 162 args.inB = arrayInB[i * 2 + j]; in verifyResultsMaxFloat2Float2Float2() 168 if (!args.out.couldBe(arrayOut[i * 2 + j])) { in verifyResultsMaxFloat2Float2Float2() 184 appendVariableToMessage(message, arrayOut[i * 2 + j]); in verifyResultsMaxFloat2Float2Float2() [all …]
|
/cts/apps/CameraITS/tests/scene1/ |
D | test_param_noise_reduction.py | 63 for j in range(3): 64 img = planes[j] 88 for j in range(3): 89 img = planes[j] 92 variances[j].append(variance / ref_variance[j]) 96 for j in range(3): 97 pylab.plot(range(5), variances[j], "rgb"[j]) 102 for j in range(3): 105 assert(variances[j][0] > 106 variances[j][1] * (1.0 - RELATIVE_ERROR_TOLERANCE)) [all …]
|
D | test_reprocess_noise_reduction.py | 121 for j in range(3): 124 assert(variances[0][j] > 125 variances[1][j] * (1.0 - RELATIVE_ERROR_TOLERANCE)) 127 assert(variances[1][j] > 128 variances[2][j] * (1.0 - RELATIVE_ERROR_TOLERANCE)) 130 assert(variances[0][j] > variances[2][j]) 133 assert(variances[0][j] > 134 variances[3][j] * (1.0 - RELATIVE_ERROR_TOLERANCE)) 136 assert(variances[3][j] > 137 variances[2][j] * (1.0 - RELATIVE_ERROR_TOLERANCE)) [all …]
|
/cts/tests/tests/rscpp/src/android/cts/rscpp/ |
D | RSUtils.java | 40 for (int j = 0; j < stride; j++) { in genRandom() 41 if (j >= stride - skip) in genRandom() 42 array[i * stride + j] = 0; in genRandom() 44 array[i * stride + j] = r.nextFloat() * factor + offset; in genRandom() 60 for (int j = 0; j < stride; j++) { in genRandom() 61 if (j >= stride - skip) in genRandom() 62 array[i * stride + j] = 0; in genRandom() 64 array[i * stride + j] = r.nextInt() * factor + offset; in genRandom() 73 for (int j = 0; j < stride; j++) { in genRandom() 74 if (j >= stride - skip) in genRandom() [all …]
|
D | RSYuvTest.java | 90 for (int j = 0; j < (width * height); j++) { in testV17() 91 tmp[i++] = by[j]; in testV17() 93 for (int j = 0; j < (getCWidth() * getCHeight()); j++) { in testV17() 94 tmp[i++] = bv[j]; in testV17() 95 tmp[i++] = bu[j]; in testV17() 129 for (int j = 0; j < (width * height); j++) { in test_YV12() 130 tmp[i++] = by[j]; in test_YV12() 132 for (int j = 0; j < (getCWidth() * getCHeight()); j++) { in test_YV12() 133 tmp[i++] = bu[j]; in test_YV12() 135 for (int j = 0; j < (getCWidth() * getCHeight()); j++) { in test_YV12() [all …]
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | YuvTest.java | 89 for (int j = 0; j < (width * height); j++) { in testV17() 90 tmp[i++] = by[j]; in testV17() 92 for (int j = 0; j < (getCWidth() * getCHeight()); j++) { in testV17() 93 tmp[i++] = bv[j]; in testV17() 94 tmp[i++] = bu[j]; in testV17() 135 for (int j = 0; j < (width * height); j++) { in test_NV21() 136 tmp[i++] = by[j]; in test_NV21() 138 for (int j = 0; j < (getCWidth() * getCHeight()); j++) { in test_NV21() 139 tmp[i++] = bv[j]; in test_NV21() 140 tmp[i++] = bu[j]; in test_NV21() [all …]
|
D | Matrix4fTest.java | 32 for (int j = 0; j < 4; j ++) { in checkIdentity() 33 if (i == j) { in checkIdentity() 34 assertEquals(1.0f, m.getArray()[i*4 + j], delta); in checkIdentity() 36 assertEquals(0.0f, m.getArray()[i*4 + j], delta); in checkIdentity() 46 for (int j = 0; j < 4; j ++) { in getString() 47 builder.append(array[i*4 + j]); in getString() 82 for (int j = 0; j < 4; j ++) { in testGet() 83 assertEquals(setData[i*4 + j], m.get(i, j), 0.0f); in testGet() 91 for (int j = 0; j < 4; j ++) { in testSet() 92 float valToSet = setData[i*4 + j]; in testSet() [all …]
|
D | Matrix3fTest.java | 31 for (int j = 0; j < 3; j ++) { in checkIdentity() 32 if (i == j) { in checkIdentity() 33 assertEquals(1.0f, m.getArray()[i*3 + j], delta); in checkIdentity() 35 assertEquals(0.0f, m.getArray()[i*3 + j], delta); in checkIdentity() 45 for (int j = 0; j < 3; j ++) { in getString() 46 builder.append(array[i*3 + j]); in getString() 80 for (int j = 0; j < 3; j ++) { in testGet() 81 assertEquals(setData[i*3 + j], m.get(i, j), 0.0f); in testGet() 89 for (int j = 0; j < 3; j ++) { in testSet() 90 float valToSet = setData[i*3 + j]; in testSet() [all …]
|
D | foreach.rs | 20 int i, j; 22 for (j = 0; j < dimY; j++) { 24 int v = rsGetElementAt_int(aRaw, i, j); 25 _RS_ASSERT(v == (i + j * dimX)); 41 int i, j; 43 for (j = 0; j < dimY; j++) { 45 int v = rsGetElementAt_int(aRaw, i, j); 46 _RS_ASSERT(v == (99 + i + j * dimX));
|
D | Matrix2fTest.java | 30 for (int j = 0; j < 2; j ++) { in checkIdentity() 31 if (i == j) { in checkIdentity() 32 assertEquals(1.0f, m.getArray()[i*2 + j], delta); in checkIdentity() 34 assertEquals(0.0f, m.getArray()[i*2 + j], delta); in checkIdentity() 44 for (int j = 0; j < 2; j ++) { in getString() 45 builder.append(array[i*2 + j]); in getString() 79 for (int j = 0; j < 2; j ++) { in testGet() 80 assertEquals(setData[i*2 + j], m.get(i, j), 0.0f); in testGet() 88 for (int j = 0; j < 2; j ++) { in testSet() 89 float valToSet = setData[i*2 + j]; in testSet() [all …]
|
/cts/suite/cts/deviceTests/browserbench/assets/octane/ |
D | navier-stokes.js | 114 for (var j = 1; i <= height; i++) { 115 x[j * rowSize] = -x[1 + j * rowSize]; 116 x[(width + 1) + j * rowSize] = -x[width + j * rowSize]; 124 for (var j = 1; j <= height; j++) { 125 x[j * rowSize] = x[1 + j * rowSize]; 126 x[(width + 1) + j * rowSize] = x[width + j * rowSize]; 134 for (var j = 1; j <= height; j++) { 135 x[j * rowSize] = x[1 + j * rowSize]; 136 x[(width + 1) + j * rowSize] = x[width + j * rowSize]; 149 for (var j=1 ; j<=height; j++) { [all …]
|
/cts/tests/tests/rscpp/librscpptest/ |
D | foreach.rs | 20 int i, j; 22 for (j = 0; j < dimY; j++) { 24 int v = rsGetElementAt_int(aRaw, i, j); 25 _RS_ASSERT(v == (i + j * dimX)); 41 int i, j; 43 for (j = 0; j < dimY; j++) { 45 int v = rsGetElementAt_int(aRaw, i, j); 46 _RS_ASSERT(v == (99 + i + j * dimX));
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | WavAnalyzer.java | 81 for (int j = 0; j < Common.REPETITIONS; j++) { in isConsistent() 82 powerAtFreq[j] = power[i][j]; in isConsistent() 154 for (int j = 0; j < noisePoints.length; j++) { in measurePipStrength() 155 noisePoints[j] = noisePoints[j] * Common.WINDOW_FOR_RECORDER[j]; in measurePipStrength() 163 for (int j = 0; j < noisePoints.length; j++) { in measurePipStrength() 164 fourierCoeff = fourierCoeff.add(phasor.multiply(noisePoints[j])); in measurePipStrength() 173 for (int j = 0; j < Common.NOISE_SAMPLES; j++) { in measurePipStrength() 174 meanNoisePower += noisePower[i][j]; in measurePipStrength() 193 for (int j = 0; j < Common.WINDOW_FOR_RECORDER.length; j++) { in measurePipStrength() 194 pipPoints[j] = pipPoints[j] * Common.WINDOW_FOR_RECORDER[j]; in measurePipStrength() [all …]
|
/cts/hostsidetests/theme/src/android/theme/cts/ |
D | ComparisonTask.java | 89 for (int j = 0; j < h; j++) { in compare() 90 final int p1 = expected.getRGB(i, j); in compare() 91 final int p2 = actual.getRGB(i, j); in compare() 122 for (int j = 0; j < height; j++) { in createDiff() 123 final boolean inBounds1 = i < w1 && j < h1; in createDiff() 124 final boolean inBounds2 = i < w2 && j < h2; in createDiff() 129 colorExpected = expected.getRGB(i, j); in createDiff() 130 colorActual = actual.getRGB(i, j); in createDiff() 133 colorExpected = expected.getRGB(i, j); in createDiff() 136 colorActual = actual.getRGB(i, j); in createDiff() [all …]
|