Home
last modified time | relevance | path

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

12345678910>>...174

/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/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/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/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/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/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/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsCpuTimesTest.java123 for (int i = 0; i < numClusters; ++i) { in testUpdateCpuTimeLocked()
124 verify(mKernelCpuSpeedReaders[i]).readDelta(); in testUpdateCpuTimeLocked()
129 for (int i = 0; i < numClusters; ++i) { in testUpdateCpuTimeLocked()
130 Mockito.reset(mKernelCpuSpeedReaders[i]); in testUpdateCpuTimeLocked()
152 for (int i = 0; i < numClusters; ++i) { in testUpdateCpuTimeLocked()
153 verify(mKernelCpuSpeedReaders[i]).readDelta(); in testUpdateCpuTimeLocked()
167 for (int i = 0; i < partialTimers.size(); ++i) { in testMarkPartialTimersAsEligible()
168 partialTimers.get(i).mInList = inList[i]; in testMarkPartialTimersAsEligible()
176 for (int i = 0; i < partialTimers.size(); ++i) { in testMarkPartialTimersAsEligible()
177 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/base/core/tests/coretests/src/android/graphics/
DBitmapTest.java83 for (int i = 0; i < 100; i++) { in testGetPixelsWithAlpha()
84 colors[i] = (0xFF << 24) | (i << 16) | (i << 8) | i; in testGetPixelsWithAlpha()
92 for (int i = 0; i < 100; i++) { in testGetPixelsWithAlpha()
93 int p = bm.getPixel(i % 10, i / 10); in testGetPixelsWithAlpha()
94 assertEquals("getPixels", p, pixels[i]); in testGetPixelsWithAlpha()
97 for (int i = 0; i < 100; i++) { in testGetPixelsWithAlpha()
98 int p = bm.getPixel(i % 10, i / 10); in testGetPixelsWithAlpha()
99 assertEquals("getPixel", p, colors[i]); in testGetPixelsWithAlpha()
101 ((0xFF << 24) | (i << 16) | (i << 8) | i)); in testGetPixelsWithAlpha()
109 for (int i = 0; i < 100; i++) { in testGetPixelsWithoutAlpha()
[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 …]
/frameworks/base/cmds/statsd/src/matchers/
Dmatcher_util.cpp117 for (int i = start; i < end; i++) { in matchesSimple() local
118 int pos = values[i].mField.getPosAtDepth(depth); in matchesSimple()
121 newStart = i; in matchesSimple()
123 newEnd = i + 1; in matchesSimple()
147 for (int i = start; i < end; i++) { in matchesSimple() local
148 int pos = values[i].mField.getPosAtDepth(depth); in matchesSimple()
152 end = i; in matchesSimple()
161 for (int i = start; i < end; i++) { in matchesSimple() local
162 if (values[i].mField.isLastPos(depth)) { in matchesSimple()
163 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/core/java/android/transition/
DTransitionSet.java190 for (int i = 0; i < numTransitions; ++i) { in setDuration()
191 mTransitions.get(i).setDuration(duration); in setDuration()
209 for (int i = 0; i < mTransitions.size(); i++) { in addTarget()
210 mTransitions.get(i).addTarget(target); in addTarget()
217 for (int i = 0; i < mTransitions.size(); i++) { in addTarget()
218 mTransitions.get(i).addTarget(targetId); in addTarget()
225 for (int i = 0; i < mTransitions.size(); i++) { in addTarget()
226 mTransitions.get(i).addTarget(targetName); in addTarget()
233 for (int i = 0; i < mTransitions.size(); i++) { in addTarget()
234 mTransitions.get(i).addTarget(targetType); in addTarget()
[all …]
/frameworks/rs/tests/java_api/RsTest_11/src/com/android/rs/test/
Dfp_mad.rs13 for (int i=0; i < (1000); i++) {
14 data_f4[i] = (data_f4[i] * 0.02f +
15 data_f4[i+1] * 0.04f +
16 data_f4[i+2] * 0.05f +
17 data_f4[i+3] * 0.1f +
18 data_f4[i+4] * 0.2f +
19 data_f4[i+5] * 0.2f +
20 data_f4[i+6] * 0.1f +
21 data_f4[i+7] * 0.05f +
22 data_f4[i+8] * 0.04f +
[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/rs/tests/java_api/RsTest_16/src/com/android/rs/test/
Dfp_mad.rs13 for (int i=0; i < (1000); i++) {
14 data_f4[i] = (data_f4[i] * 0.02f +
15 data_f4[i+1] * 0.04f +
16 data_f4[i+2] * 0.05f +
17 data_f4[i+3] * 0.1f +
18 data_f4[i+4] * 0.2f +
19 data_f4[i+5] * 0.2f +
20 data_f4[i+6] * 0.1f +
21 data_f4[i+7] * 0.05f +
22 data_f4[i+8] * 0.04f +
[all …]

12345678910>>...174