Home
last modified time | relevance | path

Searched refs:i (Results 1 – 25 of 2413) sorted by relevance

12345678910>>...97

/cts/tests/tests/util/src/android/util/cts/
DSparseArrayMapTest.java41 for (int i = 0; i < KEYS_1.length; i++) { in testStoreSingleInt()
42 sam.add(0, KEYS_1[i], i); in testStoreSingleInt()
48 for (int i = 0; i < KEYS_1.length; i++) { in testStoreSingleInt()
49 assertEquals(i, sam.get(0, KEYS_1[i]).intValue()); in testStoreSingleInt()
57 for (int i = 0; i < KEYS_1.length; i++) { in testStoreMultipleInt()
58 sam.add(0, KEYS_1[i], i); in testStoreMultipleInt()
60 for (int i = 0; i < KEYS_2.length; i++) { in testStoreMultipleInt()
61 sam.add(1, KEYS_2[i], i); in testStoreMultipleInt()
67 for (int i = 0; i < KEYS_1.length; i++) { in testStoreMultipleInt()
68 assertEquals(i, sam.get(0, KEYS_1[i]).intValue()); in testStoreMultipleInt()
[all …]
DArraySetTest.java155 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 …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/wavelib/
DDspBufferMath.java76 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 …]
DVectorAverage.java46 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 …]
DDspWindow.java110 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/
DAllocationCopyPaddedTest.java42 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 …]
DAllocationCopyToTest.java53 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 …]
DVLoadTest.java61 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 …]
DRSBaseCompute.java48 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 …]
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DPasswordMinimumRestrictionsTest.java69 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/audiolib/
DAudioCommon.java56 for (int i = 0; i < windowWidth; i++) { in hann()
57 envelopeArray[i] = 0.5 in hann()
58 * (1 - Math.cos(2 * Math.PI * i / windowWidth)); in hann()
68 for (int i = 0; i < PREFIX_NUM_CHIPS; i++) { in prefix()
69 if (i < 10) { in prefix()
70 codeSequence[i] = 1; in prefix()
72 codeSequence[i] = -codeSequence[i - 6] * codeSequence[i - 7] in prefix()
73 * codeSequence[i - 9] * codeSequence[i - 10]; in prefix()
78 for (int i = 0; i < PREFIX_NUM_CHIPS; i++) { in prefix()
79 double value = codeSequence[i]; in prefix()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DUtil.java56 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 …]
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-0817/
Dpoc.cpp40 for (OMX_U32 i = 0; i < def.nBufferCountActual; ++i) { in allocateHidlPortBuffers() local
58 int i; in poc() local
85 for (i = 0; i < inBufferCnt; ++i) { in poc()
86 inBufferId[i] = inputBuffers[i].mID; in poc()
88 inputBuffers[i].mHidlMemory); in poc()
90 omxUtilsUseBuffer(OMX_UTILS_IP_PORT, inputBuffers[i].mHidlMemory, &inBufferId[i]); in poc()
94 for (i = 0; i < outBufferCnt; ++i) { in poc()
95 outBufferId[i] = outputBuffers[i].mID; in poc()
96 omxUtilsUseBuffer(OMX_UTILS_OP_PORT, outputBuffers[i].mHidlMemory, &outBufferId[i]); in poc()
102 for (i = 0; i < inBufferCnt; ++i) { in poc()
[all …]
/cts/tests/location/location_gnss/src/android/location/cts/gnss/pseudorange/
DGpsMathOperations.java33 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/hostsidetests/securitybulletin/securityPatch/CVE-2017-0837/
Dpoc.cpp34 int i = 0; in acquireSoundTriggerSessionThread() local
44 AudioSystem::acquireSoundTriggerSession(&(ctxt->audioSession[++i]), &ioHandle, &device); in acquireSoundTriggerSessionThread()
45 if (i >= MAX_NUMBER_OF_AUDIO_SESSIONS) { in acquireSoundTriggerSessionThread()
46 i = 0; in acquireSoundTriggerSessionThread()
54 int i = 0; in releaseSoundTriggerSessionThread() local
62 AudioSystem::releaseSoundTriggerSession(ctxt->audioSession[++i]); in releaseSoundTriggerSessionThread()
63 if (i >= MAX_NUMBER_OF_AUDIO_SESSIONS) { in releaseSoundTriggerSessionThread()
64 i = 0; in releaseSoundTriggerSessionThread()
76 for (int i = 0; i < MAX_NUMBER_OF_ACQUIRE_SESSION_THREADS; ++i) { in main() local
77 pthread_create(&thread[i], nullptr, acquireSoundTriggerSessionThread, in main()
[all …]
/cts/tests/openglperf2/jni/reference/
DReferenceRenderer.cpp32 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/securitybulletin/securityPatch/CVE-2019-9347/
Dpoc.cpp27 for (OMX_U32 i = 0; i < def.nBufferCountActual; ++i) { in allocateHidlPortBuffers() local
70 for (int i = 0; i < inBufferCnt; i++) { in main() local
71 inBufferId[i] = inputBuffers[i].mID; in main()
75 for (int i = 0; i < outBufferCnt; i++) { in main() local
76 outBufferId[i] = outputBuffers[i].mID; in main()
84 for (int i = 0; i < inBufferCnt; i++) { in main() local
85 omxUtilsEmptyBuffer(inBufferId[i], OMXBuffer::sPreset, flags, timeUs, in main()
88 for (int i = 0; i < outBufferCnt; i++) { in main() local
89 omxUtilsFillBuffer(outBufferId[i], OMXBuffer::sPreset, -1); in main()
110 for (int i = 0; i < inBufferCnt; i++) { in main() local
[all …]
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-8432/
Dpoc.c60 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/
DSphere.java71 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-2017-13241/
Dpoc.cpp31 for (OMX_U32 i = 0; i < def.nBufferCountActual; ++i) { in allocateHidlPortBuffers() local
84 for (int i = 0; i < inBufferCnt; i++) { in main() local
85 inBufferId[i] = inputBuffers[i].mID; in main()
86 err = omxUtilsUseBuffer(OMX_UTILS_IP_PORT, inputBuffers[i].mHidlMemory, in main()
87 &inBufferId[i]); in main()
91 for (int i = 0; i < outBufferCnt; i++) { in main() local
92 outBufferId[i] = outputBuffers[i].mID; in main()
93 err = omxUtilsUseBuffer(OMX_UTILS_OP_PORT, outputBuffers[i].mHidlMemory, in main()
94 &outBufferId[i]); in main()
100 for (int i = 0; i < inBufferCnt; i++) { in main() local
[all …]
/cts/tests/camera/src/android/hardware/camera2/cts/
DOfflineSessionTest.java107 for (int i = 0; i < mCameraIdsUnderTest.length; i++) { in testInvalidOutput()
109 Log.i(TAG, "Testing camera device " + mCameraIdsUnderTest[i]); in testInvalidOutput()
111 if (!mAllStaticInfo.get(mCameraIdsUnderTest[i]).isColorOutputSupported()) { in testInvalidOutput()
112 Log.i(TAG, "Camera " + mCameraIdsUnderTest[i] + in testInvalidOutput()
117 if (!mAllStaticInfo.get(mCameraIdsUnderTest[i]).isOfflineProcessingSupported()) { in testInvalidOutput()
118 Log.i(TAG, "Camera " + mCameraIdsUnderTest[i] + in testInvalidOutput()
123 openDevice(mCameraIdsUnderTest[i]); in testInvalidOutput()
193 for (int i = 0; i < mCameraIdsUnderTest.length; i++) { in testOfflineCallbacks()
195 Log.i(TAG, "Testing camera2 API for camera device " + mCameraIdsUnderTest[i]); in testOfflineCallbacks()
197 if (!mAllStaticInfo.get(mCameraIdsUnderTest[i]).isColorOutputSupported()) { in testOfflineCallbacks()
[all …]
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-2485/
Dpoc.cpp42 for (OMX_U32 i = 0; i < def.nBufferCountActual; ++i) { in allocateHidlPortBuffers() local
120 for (int i = 0; i < inBufferCnt; ++i) { in main() local
121 inBufferId[i] = inputBuffers[i].mID; in main()
123 mapMemory(inputBuffers[i].mHidlMemory); in main()
124 memcpy((void *)mem->getPointer(), (void *)(buffer + INPUT_BUFFER_SIZE * i), in main()
126 omxUtilsUseBuffer(OMX_UTILS_IP_PORT, inputBuffers[i].mHidlMemory, in main()
127 &inBufferId[i]); in main()
132 for (int i = 0; i < outBufferCnt; ++i) { in main() local
133 outBufferId[i] = outputBuffers[i].mID; in main()
134 omxUtilsUseBuffer(OMX_UTILS_OP_PORT, outputBuffers[i].mHidlMemory, in main()
[all …]
/cts/tests/tests/rscpp/src/android/cts/rscpp/
DRSUtils.java31 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/tools/vm-tests-tf/src/dot/junit/opcodes/fill_array_data/
DTest_fill_array_data.java32 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/hostsidetests/securitybulletin/securityPatch/CVE-2017-0840/
Dpoc.cpp25 for (OMX_U32 i = 0; i < def.nBufferCountActual; ++i) { in allocateHidlPortBuffers() local
66 for (int i = 0; i < inBufferCnt; i++) { in main() local
68 omxUtilsUseBuffer(OMX_UTILS_IP_PORT, omxBuf, &inBufferId[i]); in main()
80 for (int i = 0; i < outBufferCnt; i++) { in main() local
81 outBufferId[i] = outputBuffers[i].mID; in main()
87 for (int i = 0; i < inBufferCnt; i++) { in main() local
89 omxUtilsEmptyBuffer(inBufferId[i], omxBuf, 0, 0, -1); in main()
91 for (int i = 0; i < 1; i++) { in main() local
93 omxUtilsFillBuffer(outBufferId[i], omxBuf, -1); in main()
114 for (int i = 0; i < inBufferCnt; i++) { in main() local
[all …]

12345678910>>...97