/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/wavelib/ |
D | DspBufferMath.java | 76 for (int i = 0; i < size; i++) { in add() 77 ((DspBufferComplex) r).mReal[i] = in add() 78 ((DspBufferDouble) x).mData[i] + ((DspBufferDouble) y).mData[i]; in add() 79 ((DspBufferComplex) r).mImag[i] = 0; in add() 83 for (int i = 0; i < size; i++) { in add() 84 ((DspBufferComplex) r).mReal[i] = in add() 85 ((DspBufferComplex) x).mReal[i] + ((DspBufferComplex) y).mReal[i]; in add() 86 ((DspBufferComplex) r).mImag[i] = in add() 87 ((DspBufferComplex) x).mImag[i] + ((DspBufferComplex) y).mImag[i]; in add() 91 for (int i = 0; i < size; i++) { in add() [all …]
|
D | DspWindow.java | 110 int i = 0; in fillTriangular() local 112 for (i = 0; i < overlap; i++) { in fillTriangular() 113 value = (2.0 * i + 1) / (2 * overlap); in fillTriangular() 114 b.mData[i] = value; in fillTriangular() 119 for (; i < size - overlap; i++) { in fillTriangular() 120 b.mData[i] = 1.0; in fillTriangular() 125 for (; i < size; i++) { in fillTriangular() 126 value = (2.0 * (size - i) - 1) / (2 * overlap); in fillTriangular() 127 b.mData[i] = value; in fillTriangular() 143 int i = 0; in fillHamming() local [all …]
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | AllocationCopyPaddedTest.java | 42 for (int i = 0; i < arr_len; i++) { in test_AllocationPadded_Byte3_1D() 43 if (inArray[i] != outArray[i]) { in test_AllocationPadded_Byte3_1D() 70 for (int i = 0; i < arr_len; i++) { in test_AllocationPadded_Byte3_2D() 71 if (inArray[i] != outArray[i]) { in test_AllocationPadded_Byte3_2D() 99 for (int i = 0; i < arr_len; i++) { in test_AllocationPadded_Byte3_3D() 100 if (inArray[i] != outArray[i]) { in test_AllocationPadded_Byte3_3D() 117 for (int i = 0; i < arr_len; i++) { in test_AllocationPadded_Short3_1D() 118 inArray[i] = (short)random.nextInt(); in test_AllocationPadded_Short3_1D() 129 for (int i = 0; i < arr_len; i++) { in test_AllocationPadded_Short3_1D() 130 if (inArray[i] != outArray[i]) { in test_AllocationPadded_Short3_1D() [all …]
|
D | AllocationCopyToTest.java | 45 for (int i = 0; i < count; i++) { in test_Allocationcopy1DRangeTo_Byte() 46 if (inArray[i] != outArray[i]) { in test_Allocationcopy1DRangeTo_Byte() 51 for (int i = count; i < arr_len; i++) { in test_Allocationcopy1DRangeTo_Byte() 52 if (outArray[i] != 0) { in test_Allocationcopy1DRangeTo_Byte() 69 for (int i = 0; i < arr_len; i++) { in test_Allocationcopy1DRangeTo_Short() 70 inArray[i] = (short)random.nextInt(); in test_Allocationcopy1DRangeTo_Short() 82 for (int i = 0; i < count; i++) { in test_Allocationcopy1DRangeTo_Short() 83 if (inArray[i] != outArray[i]) { in test_Allocationcopy1DRangeTo_Short() 88 for (int i = count; i < arr_len; i++) { in test_Allocationcopy1DRangeTo_Short() 89 if (outArray[i] != 0) { in test_Allocationcopy1DRangeTo_Short() [all …]
|
D | VLoadTest.java | 47 int i = 0; in createWalk() local 76 tmp[i] = x | (maxsize << 16); in createWalk() 78 i++; in createWalk() 81 walkAlloc = Allocation.createSized(mRS, Element.I32(mRS), i); in createWalk() 82 walkAlloc.copy1DRangeFrom(0, i, tmp); in createWalk() 98 for (int i=0; i < w; i++) { in verify() 99 if (a1[i] != a2[i]) { in verify() 100 throw new RSRuntimeException(s + a1[i] + ", " + a2[i] + ", at " + i); in verify() 102 a2[i] = 0; in verify() 109 for (int i=0; i < w; i++) { in verify() [all …]
|
D | RSBaseCompute.java | 48 for (int i = 0; i < height; i++) { in checkArray() 50 int refIdx = i * refStride + j; in checkArray() 51 int outIdx = i * outStride + j; in checkArray() 53 assertEquals("Incorrect value @ idx = " + i + " |", in checkArray() 64 for (int i = 0; i < height; i++) { in checkArray() 66 int refIdx = i * refStride + j; in checkArray() 67 int outIdx = i * outStride + j; in checkArray() 68 assertEquals("Incorrect value @ idx = " + i + " |", in checkArray() 235 for (int i = 0; i < size; i++) { in enforceOrdering() 236 if (minArray[i] > maxArray[i]) { in enforceOrdering() [all …]
|
D | rsAllocationCopyTest.java | 55 for (int i = 0; i < arr_len; i++) { in test_rsAllocationCopy1D_Byte() 56 if (offset <= i && i < offset + count) { in test_rsAllocationCopy1D_Byte() 57 if (inArray[i] != outArray[i]) { in test_rsAllocationCopy1D_Byte() 62 if (outArray[i] != 0) { in test_rsAllocationCopy1D_Byte() 81 for (int i = 0; i < arr_len; i++) { in test_rsAllocationCopy1D_Short() 82 inArray[i] = (short)random.nextInt(); in test_rsAllocationCopy1D_Short() 102 for (int i = 0; i < arr_len; i++) { in test_rsAllocationCopy1D_Short() 103 if (offset <= i && i < offset + count) { in test_rsAllocationCopy1D_Short() 104 if (inArray[i] != outArray[i]) { in test_rsAllocationCopy1D_Short() 109 if (outArray[i] != 0) { in test_rsAllocationCopy1D_Short() [all …]
|
/cts/common/util/src/com/android/compatibility/common/util/ |
D | Stat.java | 52 for (int i = 1; i < data.length; i++) { in getStat() 53 average += data[i]; in getStat() 54 eX2 += data[i] * data[i]; in getStat() 55 if (data[i] > max) { in getStat() 56 max = data[i]; in getStat() 58 if (data[i] < min) { in getStat() 59 min = data[i]; in getStat() 92 for (int i = 0; i < data.length; i++) { in getStatWithOutlierRejection() 93 if ((data[i] > thresholdMin) && (data[i] < thresholdMax)) { in getStatWithOutlierRejection() 95 average += data[i]; in getStatWithOutlierRejection() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | Common.java | 53 for (int i = 0; i < windowWidth; i++) { in hann() 54 envelopeArray[i] = 0.5 in hann() 55 * (1 - Math.cos(2 * Math.PI * i / windowWidth)); in hann() 65 for (int i = 0; i < PREFIX_NUM_CHIPS; i++) { in prefix() 66 if (i < 10) { in prefix() 67 codeSequence[i] = 1; in prefix() 69 codeSequence[i] = -codeSequence[i - 6] * codeSequence[i - 7] in prefix() 70 * codeSequence[i - 9] * codeSequence[i - 10]; in prefix() 75 for (int i = 0; i < PREFIX_NUM_CHIPS; i++) { in prefix() 76 double value = codeSequence[i]; in prefix() [all …]
|
D | Util.java | 56 for (int i = data.length; i < result.length; i++) { in padZeros() 57 result[i] = new Complex(0, 0); in padZeros() 72 for (int i = 0; i < n; i++) { in computeCrossCorrelation() 73 dottedData[i] = data1Fft[i].multiply(data2Fft[i].conjugate()); in computeCrossCorrelation() 77 for (int i = 0; i < resultComplex.length; i++) { in computeCrossCorrelation() 78 resultDouble[i] = resultComplex[i].abs(); in computeCrossCorrelation() 88 for (int i = 0; i < data.length; i++) { in toDouble() 89 result[i] = data[i]; in toDouble() 99 for (int i = 0; i < data.length; i++) { in toComplex() 100 result[i] = new Complex(data[i], 0.0); in toComplex() [all …]
|
D | Correlation.java | 60 for (int i=minIndex; i<mDataAutocorrelated.length; i++) { in computeCorrelation() 61 average += mDataAutocorrelated[i]; in computeCorrelation() 62 rms += mDataAutocorrelated[i]*mDataAutocorrelated[i]; in computeCorrelation() 63 if (mDataAutocorrelated[i] > maxValue) { in computeCorrelation() 64 maxValue = mDataAutocorrelated[i]; in computeCorrelation() 65 maxIndex = i; in computeCorrelation() 102 for (int i=0; i<mBlockSize; i++) { in downsampleData() 103 dataDownsampled[i] = 0; in downsampleData() 111 for (int i = 0; i<N && currentIndex<mBlockSize; i++) { in downsampleData() 113 if (i> nextGroup) { //advanced to next group. in downsampleData() [all …]
|
/cts/libs/commonutil/src/com/android/cts/util/ |
D | Stat.java | 53 for (int i = 1; i < data.length; i++) { in getStat() 54 average += data[i]; in getStat() 55 eX2 += data[i] * data[i]; in getStat() 56 if (data[i] > max) { in getStat() 57 max = data[i]; in getStat() 59 if (data[i] < min) { in getStat() 60 min = data[i]; in getStat() 93 for (int i = 0; i < data.length; i++) { in getStatWithOutlierRejection() 94 if ((data[i] > thresholdMin) && (data[i] < thresholdMax)) { in getStatWithOutlierRejection() 96 average += data[i]; in getStatWithOutlierRejection() [all …]
|
/cts/suite/cts/deviceTests/browserbench/assets/octane/ |
D | regexp.js | 64 for (var i = 1; i < n; i++) { 67 variants[i] = str.substring(0, pos) + chr + str.substring(pos + 1, str.length); 121 for (var i = 0; i < 6511; i++) { 122 re0.exec(s0[i]); 124 for (var i = 0; i < 1844; i++) { 125 re1.exec(s1[i]); 127 for (var i = 0; i < 739; i++) { 128 s2[i].replace(re2, ''); 130 for (var i = 0; i < 598; i++) { 131 re1.exec(s3[i]); [all …]
|
D | navier-stokes.js | 49 for (var i=7000;i<7100;i++) { 50 this.result+=~~((dens[i]*10)); 75 for (var i = 1; i <= n; i++) { 76 field.setVelocity(i, i, n, n); 77 field.setDensity(i, i, 5); 78 field.setVelocity(i, n - i, -n, -n); 79 field.setDensity(i, n - i, 20); 80 field.setVelocity(128 - i, n + i, -n, -n); 81 field.setDensity(128 - i, n + i, 30); 103 for (var i=0; i<size ; i++ ) x[i] += dt*s[i]; [all …]
|
/cts/suite/audio_quality/test/ |
D | BufferTest.cpp | 45 for (int i = 0; i < BUFFER_SIZE/4; i++) { in TEST_F() local 46 data[2*i] = i; in TEST_F() 47 data[2*i+1] = i; in TEST_F() 57 for (int i = 0; i < BUFFER_SIZE/4; i++) { in TEST_F() local 58 ASSERT_TRUE(data[2*i] == dataRead[2*i]); in TEST_F() 59 ASSERT_TRUE(data[2*i+1] == dataRead[2*i+1]); in TEST_F() 70 for (int i = 0; i < BUFFER_SIZE/2; i++) { in TEST_F() local 71 data[i] = i; in TEST_F() 77 for (int i = 0; i < BUFFER_SIZE/4; i++) { in TEST_F() local 78 data[i] = 2 * i; in TEST_F()
|
D | SignalProcessingInterfaceTest.cpp | 55 for (size_t i = 0; i < in0->getSize(); i++) { in TEST_F() local 56 data0[i] = i; in TEST_F() 60 for (size_t i = 0; i < in1->getSize(); i++) { in TEST_F() local 61 data1[i] = i; in TEST_F() 69 for (size_t i = 0; i < out0->getSize(); i++) { in TEST_F() local 70 outdata0[i] = 0xaa; in TEST_F() 74 for (size_t i = 0; i < out1->getSize(); i++) { in TEST_F() local 75 outdata1[i] = 0xbb; in TEST_F() 151 for (size_t i = 0; i < in0->getSize(); i++) { in TEST_F() local 152 data0[i] = i; in TEST_F() [all …]
|
/cts/suite/cts/deviceTests/opengl/jni/reference/ |
D | ReferenceRenderer.cpp | 31 for (int i = 0; i < NUM_SETUP_TIMES; i++) { in setUp() local 32 mSetUpTimes[i] = 0; in setUp() 48 for (int i = 0; i < NUM_SCENES; i++) { in setUp() local 50 mScenes[i]->setUpContext(); in setUp() 52 mScenes[i]->setUpTextures(); in setUp() 54 mScenes[i]->setUpMeshes(); in setUp() 57 for (int i = 1; i < NUM_SETUP_TIMES; i++) { in setUp() local 59 mSetUpTimes[i] += times[i] - times[i - 1]; in setUp() 67 for (int i = 0; i < NUM_SCENES; i++) { in tearDown() local 68 mScenes[i]->tearDown(); in tearDown() [all …]
|
/cts/tests/tests/content/src/android/content/res/cts/ |
D | AssetManager_AssetInputStreamTest.java | 57 for (int i = 0; i < readlimit; i++) { in testMarkReset() 58 assertEquals(bytes[i], mAssetInputStream.read()); in testMarkReset() 62 for (int i = 0; i < readlimit; i++) { in testMarkReset() 63 assertEquals(bytes[i + readlimit], mAssetInputStream.read()); in testMarkReset() 73 for (int i = 0; i < len; i++) { in testReadMethods() 74 assertEquals(bytes[i], mAssetInputStream.read()); in testReadMethods() 84 for (int i = 0; i < dataLength; i++) { in testReadMethods() 85 assertEquals(bytes[i], data[i]); in testReadMethods() 89 for (int i = 0; i < len - dataLength; i++) { in testReadMethods() 90 assertEquals(bytes[i + dataLength], data[i]); in testReadMethods() [all …]
|
/cts/tests/tests/openglperf/src/android/openglperf/cts/ |
D | Sphere.java | 71 for (int i = 0; i < numIndexBuffers - 1; i++) { in Sphere() 72 mNumIndices[i] = noIndicesPerBuffer; in Sphere() 77 for (int i = 0; i < numIndexBuffers; i++) { in Sphere() 78 mIndices[i] = ByteBuffer.allocateDirect(mNumIndices[i] * SHORT_SIZE) in Sphere() 83 for (int i = 0; i < iMax; i++) { in Sphere() 86 float sini = (float) Math.sin(angleStepI * i); in Sphere() 88 float cosi = (float) Math.cos(angleStepI * i); in Sphere() 96 vLineBuffer[vertexBase + 4] = (1.0f - i) / (float)nSlices; in Sphere() 104 for (int i = 0; i < nSlices; i++) { in Sphere() 106 int i1 = i + 1; in Sphere() [all …]
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/fill_array_data/ |
D | Test_fill_array_data.java | 32 for(int i = 0; i < 5; i++) in testN1() 33 assertEquals(i + 1, arr[i]); in testN1() 43 for(int i = 0; i < 5; i++) in testN2() 44 assertEquals((double)(i + 1), arr[i]); in testN2() 55 for(int i = 0; i < 5; i++) in testN3() 56 assertEquals(i + 1, arr[i]); in testN3() 57 for(int i = 5; i < 10; i++) in testN3() 58 assertEquals(0, arr[i]); in testN3()
|
/cts/suite/cts/deviceTests/opengl/jni/reference/scene/ |
D | Scene.cpp | 47 for (size_t i = 0; i < mTextureIds.size(); i++) { in tearDown() local 48 glDeleteTextures(1, &(mTextureIds[i])); in tearDown() 50 for (size_t i = 0; i < mMeshes.size(); i++) { in tearDown() local 51 delete mMeshes[i]; in tearDown() 53 for (size_t i = 0; i < mSceneGraphs.size(); i++) { in tearDown() local 54 delete mSceneGraphs[i]; in tearDown() 68 for (size_t i = 0; i < mSceneGraphs.size(); i++) { in update() local 69 delete mSceneGraphs[i]; in update()
|
/cts/tests/tests/rscpp/src/android/cts/rscpp/ |
D | RSUtils.java | 31 for (int i = 0; i < array.length; i++) { in genRandom() 32 array[i] = r.nextFloat() * factor + offset; in genRandom() 39 for (int i = 0; i < array.length / stride; i++) { in genRandom() 42 array[i * stride + j] = 0; in genRandom() 44 array[i * stride + j] = r.nextFloat() * factor + offset; in genRandom() 51 for (int i = 0; i < array.length; i++) { in genRandom() 52 array[i] = (r.nextInt(max) * factor + offset); in genRandom() 59 for (int i = 0; i < array.length / stride; i++) { in genRandom() 62 array[i * stride + j] = 0; in genRandom() 64 array[i * stride + j] = r.nextInt() * factor + offset; in genRandom() [all …]
|
/cts/tests/tests/util/src/android/util/cts/ |
D | ArraySetTest.java | 141 for (int i = 0; i < array.size(); ++i) { in compareSets() 142 E entry = array.valueAt(i); in compareSets() 160 for (int i = 0; i < rawArray.length; ++i) { in compareArraySetAndRawArray() 161 assertEquals("ArraySet<E> and raw array unequal at index " + i, in compareArraySetAndRawArray() 162 arraySet.valueAt(i), rawArray[i]); in compareArraySetAndRawArray() 188 for (int i = 0; i < array.size(); i++) { in dump() 189 Log.e(TAG, " " + array.valueAt(i)); in dump() 195 for (int i = 0; i < set1.size(); i++) { in dump() 196 Log.e(TAG, " " + set1.valueAt(i)); in dump() 199 for (int i = 0; i < set2.size(); i++) { in dump() [all …]
|
/cts/tools/dasm/src/java_cup/ |
D | parse_action_row.java | 25 for (int i=0; i<_size; i++) in parse_action_row() 26 under_term[i] = new parse_action(); in parse_action_row() 72 int i, prod, max_prod, max_red; in compute_default() local 79 for (i = 0; i < production.number(); i++) in compute_default() 80 reduction_count[i] = 0; in compute_default() 85 for (i = 0; i < size(); i++) in compute_default() 86 if (under_term[i].kind() == parse_action.REDUCE) in compute_default() 90 prod = ((reduce_action)under_term[i]).reduce_with().index(); in compute_default()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | ColorMatrixTest.java | 48 for(int i = 0; i < len; i++){ in testColorMatrix() 49 assertEquals(mSrc[i], fA1[i]); in testColorMatrix() 57 for(int i = 0; i < len; i++){ in testColorMatrix() 58 assertEquals(fA1[i], fA2[i]); in testColorMatrix() 71 for(int i = 0; i <= 19; i++){ in testReset() 72 if(0 == i % 6){ in testReset() 73 assertEquals(1.0f, ret[i]); in testReset() 77 assertEquals(0.0f, ret[i]); in testReset() 97 for(int i = 19; i >= 0; i--){ in testSet1() 98 assertEquals((float) i, ret[19 - i]); in testSet1() [all …]
|