Home
last modified time | relevance | path

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

12345678910>>...181

/frameworks/av/media/libstagefright/codecs/amrwb/src/
Dqpisf_2s.cpp141 int16 i, j, tmp; in Dpisf_2s_46b() local
147 for (i = 0; i < 9; i++) in Dpisf_2s_46b()
149 isf_q[i] = dico1_isf[(indice[0] << 3) + indice[0] + i]; in Dpisf_2s_46b()
151 for (i = 0; i < 7; i++) in Dpisf_2s_46b()
153 isf_q[i + 9] = dico2_isf[(indice[1] << 3) - indice[1] + i]; in Dpisf_2s_46b()
156 for (i = 0; i < 3; i++) in Dpisf_2s_46b()
158 isf_q[i] += dico21_isf[indice[2] * 3 + i]; in Dpisf_2s_46b()
159 isf_q[i + 3] += dico22_isf[indice[3] * 3 + i]; in Dpisf_2s_46b()
160 isf_q[i + 6] += dico23_isf[indice[4] * 3 + i]; in Dpisf_2s_46b()
161 isf_q[i + 9] += dico24_isf[indice[5] * 3 + i]; in Dpisf_2s_46b()
[all …]
Disf_extrapolation.cpp124 int16 i, MaxCorr; in isf_extrapolation() local
129 for (i = 1; i < (M - 1); i++) in isf_extrapolation()
131 IsfDiff[i - 1] = sub_int16(HfIsf[i], HfIsf[i - 1]); in isf_extrapolation()
136 for (i = 3; i < (M - 1); i++) in isf_extrapolation()
138 L_tmp = mac_16by16_to_int32(L_tmp, IsfDiff[i - 1], INV_LENGTH); in isf_extrapolation()
146 for (i = 0; i < (M - 2); i++) in isf_extrapolation()
148 if (IsfDiff[i] > tmp) in isf_extrapolation()
150 tmp = IsfDiff[i]; in isf_extrapolation()
154 for (i = 0; i < (M - 2); i++) in isf_extrapolation()
156 IsfDiff[i] = shl_int16(IsfDiff[i], exp); in isf_extrapolation()
[all …]
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
Dqpisf_2s.c66 Word32 i, k, temp, min_err, distance; in Qpisf_2s_46b() local
70 for (i = 0; i < ORDER; i++) in Qpisf_2s_46b()
72 isf[i] = vo_sub(isf1[i], mean_isf[i]); in Qpisf_2s_46b()
73 isf[i] = vo_sub(isf[i], vo_mult(MU, past_isfq[i])); in Qpisf_2s_46b()
82 for (i = 0; i < 9; i++) in Qpisf_2s_46b()
84 isf_stage2[i] = vo_sub(isf[i], dico1_isf[i + surv1[k] * 9]); in Qpisf_2s_46b()
97 for (i = 0; i < 3; i++) in Qpisf_2s_46b()
99 indice[i + 2] = tmp_ind[i]; in Qpisf_2s_46b()
111 for (i = 0; i < 7; i++) in Qpisf_2s_46b()
113 isf_stage2[i] = vo_sub(isf[9 + i], dico2_isf[i + surv1[k] * 7]); in Qpisf_2s_46b()
[all …]
Dqisf_ns.c41 Word16 i; in Qisf_ns() local
44 for (i = 0; i < ORDER; i++) in Qisf_ns()
46 isf_q[i] = sub(isf1[i], mean_isf_noise[i]); in Qisf_ns()
77 Word16 i; in Disf_ns() local
79 for (i = 0; i < 2; i++) in Disf_ns()
81 isf_q[i] = dico1_isf_noise[indice[0] * 2 + i]; in Disf_ns()
83 for (i = 0; i < 3; i++) in Disf_ns()
85 isf_q[i + 2] = dico2_isf_noise[indice[1] * 3 + i]; in Disf_ns()
87 for (i = 0; i < 3; i++) in Disf_ns()
89 isf_q[i + 5] = dico3_isf_noise[indice[2] * 3 + i]; in Disf_ns()
[all …]
Dhp6k.c60 Word32 i, L_tmp; in Filt_6k_7k() local
63 for (i = lg - 1; i >= 0; i--) in Filt_6k_7k()
65 x[i + L_FIR - 1] = signal[i] >> 2; /* gain of filter = 4 */ in Filt_6k_7k()
67 for (i = 0; i < lg; i++) in Filt_6k_7k()
69 L_tmp = (x[i] + x[i+ 30]) * fir_6k_7k[0]; in Filt_6k_7k()
70 L_tmp += (x[i+1] + x[i + 29]) * fir_6k_7k[1]; in Filt_6k_7k()
71 L_tmp += (x[i+2] + x[i + 28]) * fir_6k_7k[2]; in Filt_6k_7k()
72 L_tmp += (x[i+3] + x[i + 27]) * fir_6k_7k[3]; in Filt_6k_7k()
73 L_tmp += (x[i+4] + x[i + 26]) * fir_6k_7k[4]; in Filt_6k_7k()
74 L_tmp += (x[i+5] + x[i + 25]) * fir_6k_7k[5]; in Filt_6k_7k()
[all …]
Ddtx.c101 Word32 i; in dtx_enc_reset() local
112 for (i = 0; i < DTX_HIST_SIZE; i++) in dtx_enc_reset()
114 Copy(isf_init, &st->isf_hist[i * M], M); in dtx_enc_reset()
124 for (i = 0; i < 28; i++) in dtx_enc_reset()
126 st->D[i] = 0; in dtx_enc_reset()
129 for (i = 0; i < DTX_HIST_SIZE - 1; i++) in dtx_enc_reset()
131 st->sumD[i] = 0; in dtx_enc_reset()
165 Word32 i, j; in dtx_enc() local
175 for (i = 0; i < M; i++) in dtx_enc()
177 L_isf[i] = 0; in dtx_enc()
[all …]
/frameworks/base/core/tests/coretests/src/android/database/
DNewDatabasePerformanceTests.java58 Log.i(TAG, "Testing with WAL enabled"); in Log.i()
91 Log.i(TAG, "Setup for " + getClass().getSimpleName() + " took " in setUp()
101 Log.i(TAG, "Test " + getClass().getSimpleName() + " took " + duration + " ms"); in tearDown()
108 Log.i(TAG, "Test " + getClass().getSimpleName() + " write_bytes=" + testWriteBytes in tearDown()
164 for (int i = 0; i < DATASET_SIZE; i++) { in testRun()
165 String t = "t" + i; in testRun()
167 mDatabase.execSQL("INSERT INTO " + t + " VALUES(" + i + "," + i + ",'" in testRun()
168 + numberName(i) + "')"); in testRun()
183 for (int i = 0; i < DATASET_SIZE; i++) { in prepareForTest()
185 mStatements[i] = in prepareForTest()
[all …]
/frameworks/base/core/java/android/text/util/
DRfc822Tokenizer.java50 int i = 0; in tokenize() local
53 while (i < cursor) { in tokenize()
54 char c = text.charAt(i); in tokenize()
57 i++; in tokenize()
59 while (i < cursor && text.charAt(i) == ' ') { in tokenize()
60 i++; in tokenize()
79 i++; in tokenize()
81 while (i < cursor) { in tokenize()
82 c = text.charAt(i); in tokenize()
85 i++; in tokenize()
[all …]
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
DUT_alloc_copyPadded.java102 for (int i = 0; i < arr_len; i++) { in testAllocation_Byte3_1D()
103 if (inArray[i] != outArray[i]) { in testAllocation_Byte3_1D()
105 … android.util.Log.v("Alloc Padding Test", "" + i + " " + inArray[i] + " " + outArray[i]); in testAllocation_Byte3_1D()
134 for (int i = 0; i < arr_len; i++) { in testAllocation_Byte3_2D()
135 if (inArray[i] != outArray[i]) { in testAllocation_Byte3_2D()
137 … android.util.Log.v("Alloc Padding Test", "" + i + " " + inArray[i] + " " + outArray[i]); in testAllocation_Byte3_2D()
167 for (int i = 0; i < arr_len; i++) { in testAllocation_Byte3_3D()
168 if (inArray[i] != outArray[i]) { in testAllocation_Byte3_3D()
170 … android.util.Log.v("Alloc Padding Test", "" + i + " " + inArray[i] + " " + outArray[i]); in testAllocation_Byte3_3D()
189 for (int i = 0; i < arr_len; i++) { in testAllocation_Short3_1D()
[all …]
DUT_alloc_copy.java79 for (int i = 0; i < count; i++) { in allocation_copy1DRangeTo_Byte()
80 if (inArray[i] != outArray[i]) { in allocation_copy1DRangeTo_Byte()
82 …ndroid.util.Log.v("Allocation CopyTo Test", "Failed: " + i + " " + inArray[i] + " " + outArray[i]); in allocation_copy1DRangeTo_Byte()
86 for (int i = count; i < arr_len; i++) { in allocation_copy1DRangeTo_Byte()
87 if (outArray[i] != 0) { in allocation_copy1DRangeTo_Byte()
89 …ndroid.util.Log.v("Allocation CopyTo Test", "Failed: " + i + " " + inArray[i] + " " + outArray[i]); in allocation_copy1DRangeTo_Byte()
108 for (int i = 0; i < arr_len; i++) { in allocation_copy1DRangeTo_Short()
109 inArray[i] = (short)random.nextInt(); in allocation_copy1DRangeTo_Short()
121 for (int i = 0; i < count; i++) { in allocation_copy1DRangeTo_Short()
122 if (inArray[i] != outArray[i]) { in allocation_copy1DRangeTo_Short()
[all …]
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
DUT_alloc_copyPadded.java100 for (int i = 0; i < arr_len; i++) { in testAllocation_Byte3_1D()
101 if (inArray[i] != outArray[i]) { in testAllocation_Byte3_1D()
103 … android.util.Log.v("Alloc Padding Test", "" + i + " " + inArray[i] + " " + outArray[i]); in testAllocation_Byte3_1D()
132 for (int i = 0; i < arr_len; i++) { in testAllocation_Byte3_2D()
133 if (inArray[i] != outArray[i]) { in testAllocation_Byte3_2D()
135 … android.util.Log.v("Alloc Padding Test", "" + i + " " + inArray[i] + " " + outArray[i]); in testAllocation_Byte3_2D()
165 for (int i = 0; i < arr_len; i++) { in testAllocation_Byte3_3D()
166 if (inArray[i] != outArray[i]) { in testAllocation_Byte3_3D()
168 … android.util.Log.v("Alloc Padding Test", "" + i + " " + inArray[i] + " " + outArray[i]); in testAllocation_Byte3_3D()
187 for (int i = 0; i < arr_len; i++) { in testAllocation_Short3_1D()
[all …]
DUT_alloc_copy.java77 for (int i = 0; i < count; i++) { in allocation_copy1DRangeTo_Byte()
78 if (inArray[i] != outArray[i]) { in allocation_copy1DRangeTo_Byte()
80 …ndroid.util.Log.v("Allocation CopyTo Test", "Failed: " + i + " " + inArray[i] + " " + outArray[i]); in allocation_copy1DRangeTo_Byte()
84 for (int i = count; i < arr_len; i++) { in allocation_copy1DRangeTo_Byte()
85 if (outArray[i] != 0) { in allocation_copy1DRangeTo_Byte()
87 …ndroid.util.Log.v("Allocation CopyTo Test", "Failed: " + i + " " + inArray[i] + " " + outArray[i]); in allocation_copy1DRangeTo_Byte()
106 for (int i = 0; i < arr_len; i++) { in allocation_copy1DRangeTo_Short()
107 inArray[i] = (short)random.nextInt(); in allocation_copy1DRangeTo_Short()
119 for (int i = 0; i < count; i++) { in allocation_copy1DRangeTo_Short()
120 if (inArray[i] != outArray[i]) { in allocation_copy1DRangeTo_Short()
[all …]
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/
DUT_alloc_copyPadded.java99 for (int i = 0; i < arr_len; i++) { in testAllocation_Byte3_1D()
100 if (inArray[i] != outArray[i]) { in testAllocation_Byte3_1D()
102 … android.util.Log.v("Alloc Padding Test", "" + i + " " + inArray[i] + " " + outArray[i]); in testAllocation_Byte3_1D()
131 for (int i = 0; i < arr_len; i++) { in testAllocation_Byte3_2D()
132 if (inArray[i] != outArray[i]) { in testAllocation_Byte3_2D()
134 … android.util.Log.v("Alloc Padding Test", "" + i + " " + inArray[i] + " " + outArray[i]); in testAllocation_Byte3_2D()
164 for (int i = 0; i < arr_len; i++) { in testAllocation_Byte3_3D()
165 if (inArray[i] != outArray[i]) { in testAllocation_Byte3_3D()
167 … android.util.Log.v("Alloc Padding Test", "" + i + " " + inArray[i] + " " + outArray[i]); in testAllocation_Byte3_3D()
186 for (int i = 0; i < arr_len; i++) { in testAllocation_Short3_1D()
[all …]
DUT_alloc_copy.java75 for (int i = 0; i < count; i++) { in allocation_copy1DRangeTo_Byte()
76 if (inArray[i] != outArray[i]) { in allocation_copy1DRangeTo_Byte()
78 …ndroid.util.Log.v("Allocation CopyTo Test", "Failed: " + i + " " + inArray[i] + " " + outArray[i]); in allocation_copy1DRangeTo_Byte()
82 for (int i = count; i < arr_len; i++) { in allocation_copy1DRangeTo_Byte()
83 if (outArray[i] != 0) { in allocation_copy1DRangeTo_Byte()
85 …ndroid.util.Log.v("Allocation CopyTo Test", "Failed: " + i + " " + inArray[i] + " " + outArray[i]); in allocation_copy1DRangeTo_Byte()
104 for (int i = 0; i < arr_len; i++) { in allocation_copy1DRangeTo_Short()
105 inArray[i] = (short)random.nextInt(); in allocation_copy1DRangeTo_Short()
117 for (int i = 0; i < count; i++) { in allocation_copy1DRangeTo_Short()
118 if (inArray[i] != outArray[i]) { in allocation_copy1DRangeTo_Short()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsCpuTimesTest.java129 for (int i = 0; i < numClusters; ++i) { in testUpdateCpuTimeLocked()
130 verify(mKernelCpuSpeedReaders[i]).readDelta(); in testUpdateCpuTimeLocked()
135 for (int i = 0; i < numClusters; ++i) { in testUpdateCpuTimeLocked()
136 Mockito.reset(mKernelCpuSpeedReaders[i]); in testUpdateCpuTimeLocked()
159 for (int i = 0; i < numClusters; ++i) { in testUpdateCpuTimeLocked()
160 verify(mKernelCpuSpeedReaders[i]).readDelta(); in testUpdateCpuTimeLocked()
174 for (int i = 0; i < partialTimers.size(); ++i) { in testMarkPartialTimersAsEligible()
175 partialTimers.get(i).mInList = inList[i]; in testMarkPartialTimersAsEligible()
183 for (int i = 0; i < partialTimers.size(); ++i) { in testMarkPartialTimersAsEligible()
184 assertTrue("Timer id=" + i, partialTimers.get(i).mInList); in testMarkPartialTimersAsEligible()
[all …]
/frameworks/native/libs/math/include/math/
DTVecHelpers.h64 for (size_t i = 0; i < lhs.size(); i++) { variable
65 lhs[i] += v[i];
72 for (size_t i = 0; i < lhs.size(); i++) { variable
73 lhs[i] -= v[i];
85 for (size_t i = 0; i < lhs.size(); i++) { variable
86 lhs[i] += v[i];
92 for (size_t i = 0; i < lhs.size(); i++) { variable
93 lhs[i] -= v[i];
145 for (size_t i = 0; i < lhs.size(); i++) { variable
146 lhs[i] *= v[i];
[all …]
/frameworks/base/core/java/android/util/
DSpline.java99 for (int i = 1; i < x.length; i++) { in isStrictlyIncreasing()
100 float curr = x[i]; in isStrictlyIncreasing()
114 for (int i = 1; i < x.length; i++) { in isMonotonic()
115 float curr = x[i]; in isMonotonic()
140 for (int i = 0; i < n - 1; i++) { in MonotoneCubicSpline()
141 float h = x[i + 1] - x[i]; in MonotoneCubicSpline()
146 d[i] = (y[i + 1] - y[i]) / h; in MonotoneCubicSpline()
151 for (int i = 1; i < n - 1; i++) { in MonotoneCubicSpline()
152 m[i] = (d[i - 1] + d[i]) * 0.5f; in MonotoneCubicSpline()
157 for (int i = 0; i < n - 1; i++) { in MonotoneCubicSpline()
[all …]
/frameworks/native/libs/input/tests/
DInputWindow_test.cpp29 InputWindowInfo i; in TEST() local
30 i.token = nullptr; in TEST()
33 ASSERT_EQ(OK, i.write(p)); in TEST()
41 InputWindowInfo i; in TEST() local
42 i.token = new BBinder(); in TEST()
43 i.name = "Foobar"; in TEST()
44 i.layoutParamsFlags = 7; in TEST()
45 i.layoutParamsType = 39; in TEST()
46 i.dispatchingTimeout = 12; in TEST()
47 i.frameLeft = 93; in TEST()
[all …]
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/
Dint_lsf.cpp221 Word16 i; in Int_lsf() local
227 for (i = M - 1; i >= 0; i--) in Int_lsf()
229 if (*(lsf_old + i) < 0) in Int_lsf()
231 temp1 = ~(~(*(lsf_old + i)) >> 2); in Int_lsf()
235 temp1 = *(lsf_old + i) >> 2; in Int_lsf()
237 if (*(lsf_new + i) < 0) in Int_lsf()
239 temp2 = ~(~(*(lsf_new + i)) >> 2); in Int_lsf()
243 temp2 = *(lsf_new + i) >> 2; in Int_lsf()
245 *(lsf_out + i) = add((Word16)(*(lsf_old + i) - temp1), in Int_lsf()
253 for (i = M - 1; i >= 0; i--) in Int_lsf()
[all …]
Ddec_lag3.cpp198 Word16 i; in Dec_lag3() local
215 i = in Dec_lag3()
221 *T0 = i; in Dec_lag3()
225 i = add(i, i, pOverflow); in Dec_lag3()
226 i = add(i, *T0, pOverflow); in Dec_lag3()
231 i, in Dec_lag3()
256 i = in Dec_lag3()
262 i = in Dec_lag3()
264 i, in Dec_lag3()
268 i = in Dec_lag3()
[all …]
/frameworks/base/cmds/statsd/src/matchers/
Dmatcher_util.cpp116 for (int i = start; i < end; i++) { in matchesSimple() local
117 int pos = values[i].mField.getPosAtDepth(depth); in matchesSimple()
120 newStart = i; in matchesSimple()
122 newEnd = i + 1; in matchesSimple()
146 for (int i = start; i < end; i++) { in matchesSimple() local
147 int pos = values[i].mField.getPosAtDepth(depth); in matchesSimple()
151 end = i; in matchesSimple()
160 for (int i = start; i < end; i++) { in matchesSimple() local
161 if (values[i].mField.isLastPos(depth)) { in matchesSimple()
162 start = i; in matchesSimple()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DMatrix.java64 for (int i = 0; i < mem.length; i++) { in Matrix()
65 mem[i] = that.mem[i]; in Matrix()
77 public double get(int i, int j) { in get() argument
78 if (!(0 <= i && i < n && 0 <= j && j < m)) throw new IndexOutOfBoundsException(); in get()
79 return mem[i * m + j]; in get()
90 public void put(int i, int j, double v) { in put() argument
91 if (!(0 <= i && i < n && 0 <= j && j < m)) throw new IndexOutOfBoundsException(); in put()
92 mem[i * m + j] = v; in put()
119 for (int i = 0; i < mem.length; i++) { in plus()
120 result.mem[i] = this.mem[i] + that.mem[i]; in plus()
[all …]
/frameworks/base/libs/hwui/tests/unit/
DVectorDrawableAtlasTests.cpp39 for (uint32_t i = 0; i < MAX_RECTS; i++) { in RENDERTHREAD_SKIA_PIPELINE_TEST() local
40 VDRects[i] = atlas.requestNewEntry(10, 10, renderThread.getGrContext()); in RENDERTHREAD_SKIA_PIPELINE_TEST()
41 if (0 == i) { in RENDERTHREAD_SKIA_PIPELINE_TEST()
44 ASSERT_TRUE(VDRects[i].key != INVALID_ATLAS_KEY); in RENDERTHREAD_SKIA_PIPELINE_TEST()
45 ASSERT_TRUE(VDRects[i].surface.get() != nullptr); in RENDERTHREAD_SKIA_PIPELINE_TEST()
46 ASSERT_TRUE(VDRects[i].rect.width() == 10 && VDRects[i].rect.height() == 10); in RENDERTHREAD_SKIA_PIPELINE_TEST()
49 if (atlasSurface.get() == VDRects[i].surface.get()) { in RENDERTHREAD_SKIA_PIPELINE_TEST()
50 for (uint32_t j = 0; j < i; j++) { in RENDERTHREAD_SKIA_PIPELINE_TEST()
52 ASSERT_FALSE(VDRects[i].rect.intersect(VDRects[j].rect)); in RENDERTHREAD_SKIA_PIPELINE_TEST()
59 for (uint32_t i = 1; i < MAX_RECTS / 3; i++) { in RENDERTHREAD_SKIA_PIPELINE_TEST() local
[all …]
/frameworks/layoutlib/bridge/src/android/view/math/
DMath3DHelper.java85 for (int i = 1; i < n; i++) { in centroid3d()
86 int k = i + 1; in centroid3d()
87 float a0 = poly[i * 3 + 0] - poly[0 * 3 + 0]; in centroid3d()
88 float a1 = poly[i * 3 + 1] - poly[0 * 3 + 1]; in centroid3d()
89 float a2 = poly[i * 3 + 2] - poly[0 * 3 + 2]; in centroid3d()
98 cx += areaOfTriangle * (poly[i * 3 + 0] + poly[k * 3 + 0] + poly[0 * 3 + 0]); in centroid3d()
99 cy += areaOfTriangle * (poly[i * 3 + 1] + poly[k * 3 + 1] + poly[0 * 3 + 1]); in centroid3d()
100 cz += areaOfTriangle * (poly[i * 3 + 2] + poly[k * 3 + 2] + poly[0 * 3 + 2]); in centroid3d()
130 for (int i = 2; i < n; i++) { in hull()
131 lUpper[lUpperSize * 2 + 0] = points[i * 2 + 0]; in hull()
[all …]
/frameworks/base/core/java/android/transition/
DTransitionSet.java228 for (int i = 0; i < numTransitions; ++i) { in setDuration()
229 mTransitions.get(i).setDuration(duration); in setDuration()
245 for (int i = 0; i < numTransitions; ++i) { in setInterpolator()
246 mTransitions.get(i).setInterpolator(interpolator); in setInterpolator()
254 for (int i = 0; i < mTransitions.size(); i++) { in addTarget()
255 mTransitions.get(i).addTarget(target); in addTarget()
262 for (int i = 0; i < mTransitions.size(); i++) { in addTarget()
263 mTransitions.get(i).addTarget(targetId); in addTarget()
270 for (int i = 0; i < mTransitions.size(); i++) { in addTarget()
271 mTransitions.get(i).addTarget(targetName); in addTarget()
[all …]

12345678910>>...181