/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 | 69 for (int i = 0; i < METHOD_LIST.length; i++) { in tearDown() 70 invokeSetMethod(METHOD_LIST[i], mDevicePolicyManager, ADMIN_RECEIVER_COMPONENT, in tearDown() 71 mCurrentAdminPreviousPasswordRestriction.get(i)); in tearDown() 72 invokeSetMethod(METHOD_LIST[i], mParentDpm, ADMIN_RECEIVER_COMPONENT, in tearDown() 73 mCurrentAdminPreviousPasswordRestriction.get(i)); in tearDown() 82 for (int i = 0; i < METHOD_LIST.length; i++) { in testPasswordMinimumRestriction() 83 invokeSetMethod(METHOD_LIST[i], mDevicePolicyManager, ADMIN_RECEIVER_COMPONENT, in testPasswordMinimumRestriction() 84 TEST_PASSWORD_LENGTH + i); in testPasswordMinimumRestriction() 85 invokeSetMethod(METHOD_LIST[i], mParentDpm, ADMIN_RECEIVER_COMPONENT, in testPasswordMinimumRestriction() 86 TEST_PASSWORD_LENGTH + 2 * i); in testPasswordMinimumRestriction() [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/util/src/android/util/cts/ |
D | ArraySetTest.java | 155 for (int i = 0; i < array.size(); ++i) { in compareSets() 156 E entry = array.valueAt(i); in compareSets() 174 for (int i = 0; i < rawArray.length; ++i) { in compareArraySetAndRawArray() 175 assertEquals("ArraySet<E> and raw array unequal at index " + i, in compareArraySetAndRawArray() 176 arraySet.valueAt(i), rawArray[i]); in compareArraySetAndRawArray() 202 for (int i = 0; i < array.size(); i++) { in dump() 203 Log.e(TAG, " " + array.valueAt(i)); in dump() 209 for (int i = 0; i < set1.size(); i++) { in dump() 210 Log.e(TAG, " " + set1.valueAt(i)); in dump() 213 for (int i = 0; i < set2.size(); i++) { in dump() [all …]
|
D | SparseIntArrayTest.java | 44 for (int i = 0; i < length; i++) { in testSparseIntArrayWithDefaultCapacity() 45 sparseIntArray.put(KEYS[i], VALUES[i]); in testSparseIntArrayWithDefaultCapacity() 46 assertEquals(i + 1, sparseIntArray.size()); in testSparseIntArrayWithDefaultCapacity() 48 for (int i = 0; i < length; i++) { in testSparseIntArrayWithDefaultCapacity() 49 assertEquals(VALUES[i], sparseIntArray.get(KEYS[i])); in testSparseIntArrayWithDefaultCapacity() 51 for (int i = 0; i < length; i++) { in testSparseIntArrayWithDefaultCapacity() 52 assertEquals(sparseIntArray.indexOfValue(VALUES[i]), in testSparseIntArrayWithDefaultCapacity() 53 sparseIntArray.indexOfKey(KEYS[i])); in testSparseIntArrayWithDefaultCapacity() 94 for (int i = 0; i < length; i++) { in testSparseIntArrayWithSpecifiedCapacity() 95 sparseIntArray.put(KEYS[i], VALUES[i]); in testSparseIntArrayWithSpecifiedCapacity() [all …]
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | MultiViewTest.java | 76 Log.i(TAG, "Camera " + cameraId + " does not support color outputs, skipping"); in testTextureViewPreview() 108 Log.i(TAG, "Camera " + cameraId + " does not support color outputs, skipping"); in testTextureViewPreviewWithImageReader() 152 Log.i(TAG, "Camera " + cameraId + " does not support color outputs, skipping"); in testDualTextureViewPreview() 189 Log.i(TAG, "Camera " + cameraId + " does not support color outputs, skipping"); in testDualTextureViewAndImageReaderPreview() 231 for (int i = 0; i < NUM_CAMERAS_TESTED; i++) { in testDualCameraPreview() 232 openCamera(mCameraIds[i]); in testDualCameraPreview() 233 if (!getStaticInfo(mCameraIds[i]).isColorOutputSupported()) { in testDualCameraPreview() 234 Log.i(TAG, "Camera " + mCameraIds[i] + in testDualCameraPreview() 238 List<TextureView> views = Arrays.asList(mTextureView[i]); in testDualCameraPreview() 240 startTextureViewPreview(mCameraIds[i], views, /*ImageReader*/null); in testDualCameraPreview() [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/tests/location/src/android/location/cts/psedorange/ |
D | GpsMathOperations.java | 33 for (int i = 0; i < inputVector.length; i++) { in vectorNorm() 34 normSqured = Math.pow(inputVector[i], 2) + normSqured; in vectorNorm() 51 for (int i = 0; i < firstVector.length; i++) { in subtractTwoVectors() 52 result[i] = firstVector[i] - secondVector[i]; in subtractTwoVectors() 72 for (int i = 0; i < matrixLength; i++) { in matrixByColVectMultiplication() 74 result[i] += matrix[i][j] * vector[j]; in matrixByColVectMultiplication() 91 for (int i = 0; i < firstVector.length; i++) { in dotProduct() 92 result = firstVector[i] * secondVector[i] + result; in dotProduct()
|
/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/hostsidetests/securitybulletin/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/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/tests/tests/media/src/android/media/cts/ |
D | DynamicsProcessingTest.java | 265 for (int i = 0; i < channelCount; i++) { in test1_6Channel_perStage() 266 Channel channelTest = mDP.getChannelByChannelIndex(i); in test1_6Channel_perStage() 267 assertEquals("inputGain is different in channel " + i, TEST_GAIN1, in test1_6Channel_perStage() 270 Eq preEqTest = new Eq(mDP.getPreEqByChannelIndex(i)); in test1_6Channel_perStage() 272 assertEquals("preEQBand gain is different in channel " + i + " band " + in test1_6Channel_perStage() 275 Mbc mbcTest = new Mbc(mDP.getMbcByChannelIndex(i)); in test1_6Channel_perStage() 277 assertEquals("mbcBand preGain is different in channel " + i + " band " + in test1_6Channel_perStage() 280 Eq postEqTest = new Eq(mDP.getPostEqByChannelIndex(i)); in test1_6Channel_perStage() 282 assertEquals("postEQBand gain is different in channel " + i + " band " + in test1_6Channel_perStage() 285 Limiter limiterTest = new Limiter(mDP.getLimiterByChannelIndex(i)); in test1_6Channel_perStage() [all …]
|
/cts/apps/CameraITS/tests/scene4/ |
D | test_multi_camera_alignment.py | 273 for i in ids: 274 prop = cam.get_camera_properties_by_id(i) 276 physical_ids.append(i) 277 props_physical[i] = cam.get_camera_properties_by_id(i) 294 for i, fmt in enumerate(fmts): 324 for i in physical_ids: 327 caps[(fmt, i)], props=props_physical[i]) 328 size[i] = (caps[fmt, i]['width'], caps[fmt, i]['height']) 332 its.image.write_image(img, '%s_%s_%s.jpg' % (NAME, fmt, i)) 344 ical = props_physical[i]['android.lens.intrinsicCalibration'] [all …]
|
/cts/suite/audio_quality/lib/src/task/ |
D | TaskProcess.cpp | 85 for (size_t i = 0; i < N; i++) { in prepareParams() local 86 if ((paramTypes != NULL) && paramTypes[i] && (list[i].getType() != EId)) { in prepareParams() 87 LOGE("mismatching types %d %d", paramTypes[i], list[i].getType()); in prepareParams() 90 if ((paramTypes != NULL) && !paramTypes[i] && (list[i].getType() == EId)) { in prepareParams() 91 LOGE("mismatching types %d %d", paramTypes[i], list[i].getType()); in prepareParams() 94 switch(list[i].getType()) { in prepareParams() 102 *(buffer.get()) = getTestCase()->findBuffer(list[i].getParamString()); in prepareParams() 110 buffersPtr[i].reset(buffer.release()); in prepareParams() 111 voidPtrs[i] = buffersPtr[i].get(); in prepareParams() 115 valuesPtr[i].reset(new TaskCase::Value()); in prepareParams() [all …]
|
/cts/tests/tests/content/src/android/content/res/cts/ |
D | AssetManager_AssetInputStreamTest.java | 77 for (int i = 0; i < 10; i++) { in testMarkReset() 78 assertEquals(EXPECTED_BYTES[i], mAssetInputStream.read()); in testMarkReset() 82 for (int i = 0; i < 10; i++) { in testMarkReset() 83 assertEquals(EXPECTED_BYTES[10 + i], mAssetInputStream.read()); in testMarkReset() 90 for (int i = 0; i < EXPECTED_BYTES.length; i++) { in testSingleByteRead() 91 assertEquals(EXPECTED_BYTES[i], mAssetInputStream.read()); in testSingleByteRead() 92 assertEquals(EXPECTED_BYTES.length - i - 1, mAssetInputStream.available()); in testSingleByteRead() 104 for (int i = 0; i < 10; i++) { in testByteArrayRead() 105 assertEquals(EXPECTED_BYTES[i], buffer[i]); in testByteArrayRead() 110 for (int i = 0; i < 5; i++) { in testByteArrayRead() [all …]
|