/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 | VectorAverage.java | 46 for (int i = 0; i < size; i++) { in setData() 47 mData[i] += data[i]; in setData() 53 for (int i = 0; i < size; i++) { in setData() 54 if (data[i] > mData[i]) { in setData() 55 mData[i] = data[i]; in setData() 62 for (int i = 0; i < size; i++) { in setData() 63 if (data[i] < mData[i]) { in setData() 64 mData[i] = data[i]; in setData() 79 for (int i = 0; i < nCount; i++) { in getData() 80 data[i] = 0; in getData() [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() 71 for (int i = 0; i < arr_len; i++) { in test_AllocationPadded_Byte3_2D() 72 if (inArray[i] != outArray[i]) { in test_AllocationPadded_Byte3_2D() 101 for (int i = 0; i < arr_len; i++) { in test_AllocationPadded_Byte3_3D() 102 if (inArray[i] != outArray[i]) { in test_AllocationPadded_Byte3_3D() 120 for (int i = 0; i < arr_len; i++) { in test_AllocationPadded_Short3_1D_Helper() 121 inArray[i] = (short)random.nextInt(); in test_AllocationPadded_Short3_1D_Helper() 132 for (int i = 0; i < arr_len; i++) { in test_AllocationPadded_Short3_1D_Helper() 133 if (inArray[i] != outArray[i]) { in test_AllocationPadded_Short3_1D_Helper() [all …]
|
D | AllocationCopyToTest.java | 53 for (int i = 0; i < count; i++) { in test_Allocationcopy1DRangeTo_Byte() 54 if (inArray[i] != outArray[i]) { in test_Allocationcopy1DRangeTo_Byte() 59 for (int i = count; i < arr_len; i++) { in test_Allocationcopy1DRangeTo_Byte() 60 if (outArray[i] != 0) { in test_Allocationcopy1DRangeTo_Byte() 77 for (int i = 0; i < arr_len; i++) { in test_Allocationcopy1DRangeTo_Short_Helper() 78 inArray[i] = (short)random.nextInt(); in test_Allocationcopy1DRangeTo_Short_Helper() 95 for (int i = 0; i < count; i++) { in test_Allocationcopy1DRangeTo_Short_Helper() 96 if (inArray[i] != outArray[i]) { in test_Allocationcopy1DRangeTo_Short_Helper() 101 for (int i = count; i < arr_len; i++) { in test_Allocationcopy1DRangeTo_Short_Helper() 102 if (outArray[i] != 0) { in test_Allocationcopy1DRangeTo_Short_Helper() [all …]
|
D | VLoadTest.java | 61 int i = 0; in createWalk() local 90 tmp[i] = x | (maxsize << 16); in createWalk() 92 i++; in createWalk() 95 walkAlloc = Allocation.createSized(mRS, Element.I32(mRS), i); in createWalk() 96 walkAlloc.copy1DRangeFrom(0, i, tmp); in createWalk() 112 for (int i=0; i < w; i++) { in verify() 113 if (a1[i] != a2[i]) { in verify() 114 throw new RSRuntimeException(s + a1[i] + ", " + a2[i] + ", at " + i); in verify() 116 a2[i] = 0; in verify() 123 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() 247 for (int i = 0; i < size; i++) { in enforceOrdering() 248 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/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | PasswordMinimumRestrictionsTest.java | 68 for (int i = 0; i < METHOD_LIST.length; i++) { in tearDown() 69 invokeSetMethod(METHOD_LIST[i], mDevicePolicyManager, ADMIN_RECEIVER_COMPONENT, in tearDown() 70 mCurrentAdminPreviousPasswordRestriction.get(i)); in tearDown() 71 invokeSetMethod(METHOD_LIST[i], mParentDpm, ADMIN_RECEIVER_COMPONENT, in tearDown() 72 mCurrentAdminPreviousPasswordRestriction.get(i)); in tearDown() 81 for (int i = 0; i < METHOD_LIST.length; i++) { in testPasswordMinimumRestriction() 82 invokeSetMethod(METHOD_LIST[i], mDevicePolicyManager, ADMIN_RECEIVER_COMPONENT, in testPasswordMinimumRestriction() 83 TEST_PASSWORD_LENGTH + i); in testPasswordMinimumRestriction() 84 invokeSetMethod(METHOD_LIST[i], mParentDpm, ADMIN_RECEIVER_COMPONENT, in testPasswordMinimumRestriction() 85 TEST_PASSWORD_LENGTH + 2 * i); in testPasswordMinimumRestriction() [all …]
|
/cts/common/util/src/com/android/compatibility/common/util/ |
D | Stat.java | 55 for (int i = 1; i < data.length; i++) { in getStat() 56 average += data[i]; in getStat() 57 if (data[i] > max) { in getStat() 58 max = data[i]; in getStat() 60 if (data[i] < min) { in getStat() 61 min = data[i]; in getStat() 66 for (int i = 0; i < data.length; i++) { in getStat() 67 double diff = average - data[i]; in getStat() 95 for (int i = 0; i < data.length; i++) { in getStatWithOutlierRejection() 96 if ((data[i] > thresholdMin) && (data[i] < thresholdMax)) { 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 | 62 for (int i=minIndex; i<mDataAutocorrelated.length; i++) { in computeCorrelation() 63 average += mDataAutocorrelated[i]; in computeCorrelation() 64 rms += mDataAutocorrelated[i]*mDataAutocorrelated[i]; in computeCorrelation() 65 if (mDataAutocorrelated[i] > maxValue) { in computeCorrelation() 66 maxValue = mDataAutocorrelated[i]; in computeCorrelation() 67 maxIndex = i; in computeCorrelation() 104 for (int i=0; i<mBlockSize; i++) { in downsampleData() 105 dataDownsampled[i] = 0; in downsampleData() 115 for (int i = 0; i<N && currentIndex<mBlockSize; i++) { in downsampleData() 117 if (i> nextGroup) { //advanced to next group. in downsampleData() [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/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/tests/openglperf2/jni/reference/ |
D | ReferenceRenderer.cpp | 32 for (int i = 0; i < NUM_SETUP_TIMES; i++) { in setUp() local 33 mSetUpTimes[i] = 0; in setUp() 49 for (int i = 0; i < NUM_SCENES; i++) { in setUp() local 51 mScenes[i]->setUpContext(); in setUp() 53 mScenes[i]->setUpTextures(); in setUp() 55 mScenes[i]->setUpMeshes(); in setUp() 58 for (int i = 1; i < NUM_SETUP_TIMES; i++) { in setUp() local 60 mSetUpTimes[i] += times[i] - times[i - 1]; in setUp() 68 for (int i = 0; i < NUM_SCENES; i++) { in tearDown() local 69 mScenes[i]->tearDown(); in tearDown() [all …]
|
/cts/hostsidetests/security/securityPatch/CVE-2016-8432/ |
D | poc.c | 60 int i; in prepare() local 69 for(i = 0; i < CMD_NUM; i++){ in prepare() 70 cmdbufs[i].words = 0; in prepare() 71 cmdbufs[i].offset = 0; in prepare() 72 cmdbufs[i].handle = 0; in prepare() 73 relocs[i].cmdbuf.handle = 0; in prepare() 74 relocs[i].cmdbuf.offset = 0; in prepare() 75 relocs[i].target.handle = 0; in prepare() 76 relocs[i].target.offset = 0; in prepare() 102 int i; in main() local [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/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 | 154 for (int i = 0; i < array.size(); ++i) { in compareSets() 155 E entry = array.valueAt(i); in compareSets() 173 for (int i = 0; i < rawArray.length; ++i) { in compareArraySetAndRawArray() 174 assertEquals("ArraySet<E> and raw array unequal at index " + i, in compareArraySetAndRawArray() 175 arraySet.valueAt(i), rawArray[i]); in compareArraySetAndRawArray() 201 for (int i = 0; i < array.size(); i++) { in dump() 202 Log.e(TAG, " " + array.valueAt(i)); in dump() 208 for (int i = 0; i < set1.size(); i++) { in dump() 209 Log.e(TAG, " " + set1.valueAt(i)); in dump() 212 for (int i = 0; i < set2.size(); i++) { in dump() [all …]
|
D | SparseIntArrayTest.java | 43 for (int i = 0; i < length; i++) { in testSparseIntArrayWithDefaultCapacity() 44 sparseIntArray.put(KEYS[i], VALUES[i]); in testSparseIntArrayWithDefaultCapacity() 45 assertEquals(i + 1, sparseIntArray.size()); in testSparseIntArrayWithDefaultCapacity() 47 for (int i = 0; i < length; i++) { in testSparseIntArrayWithDefaultCapacity() 48 assertEquals(VALUES[i], sparseIntArray.get(KEYS[i])); in testSparseIntArrayWithDefaultCapacity() 50 for (int i = 0; i < length; i++) { in testSparseIntArrayWithDefaultCapacity() 51 assertEquals(sparseIntArray.indexOfValue(VALUES[i]), in testSparseIntArrayWithDefaultCapacity() 52 sparseIntArray.indexOfKey(KEYS[i])); in testSparseIntArrayWithDefaultCapacity() 93 for (int i = 0; i < length; i++) { in testSparseIntArrayWithSpecifiedCapacity() 94 sparseIntArray.put(KEYS[i], VALUES[i]); in testSparseIntArrayWithSpecifiedCapacity() [all …]
|
/cts/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/util/ |
D | LinearPartition.java | 64 for (int i = table[n - 1][k] + 1; i < n + 1; i++) { in split() 65 partition.add(seq.get(i)); in split() 75 for (int i = 0; i < n + 1; i++) { in split() 76 partition.add(seq.get(i)); in split() 92 for (int i = 0; i < n; i++) { in buildPartitionTable() 93 table[i][0] = seq.get(i).getRuntimeHint() + ((i > 0) ? (table[i - 1][0]) : 0); in buildPartitionTable() 100 for (int i = 1; i < n; i++) { in buildPartitionTable() 102 table[i][j] = Integer.MAX_VALUE; in buildPartitionTable() 103 for (int x = 0; x < i; x++) { in buildPartitionTable() 104 float cost = Math.max(table[x][j - 1], table[i][0] - table[x][0]); in buildPartitionTable() [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/tests/openglperf2/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()
|