/frameworks/av/media/libstagefright/codecs/amrwb/src/ |
D | qpisf_2s.cpp | 141 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 …]
|
D | isf_extrapolation.cpp | 124 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/ |
D | qpisf_2s.c | 66 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 …]
|
D | qisf_ns.c | 41 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 …]
|
D | hp6k.c | 60 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 …]
|
D | dtx.c | 101 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/ |
D | Rfc822Tokenizer.java | 50 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/ |
D | NewDatabasePerformanceTests.java | 58 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/ |
D | UT_alloc_copyPadded.java | 99 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 …]
|
D | UT_alloc_copy.java | 75 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/supportlibsrc_gen/com/android/rs/unittest/ |
D | UT_alloc_copyPadded.java | 102 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 …]
|
D | UT_alloc_copy.java | 79 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/ |
D | UT_alloc_copyPadded.java | 100 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 …]
|
D | UT_alloc_copy.java | 77 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/base/core/tests/coretests/src/com/android/internal/os/ |
D | BatteryStatsCpuTimesTest.java | 129 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/base/core/java/android/util/ |
D | Spline.java | 99 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/ |
D | InputWindow_test.cpp | 29 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.id = 1; in TEST() 44 i.name = "Foobar"; in TEST() 45 i.layoutParamsFlags = 7; in TEST() 46 i.layoutParamsType = 39; in TEST() 47 i.dispatchingTimeout = 12; in TEST() [all …]
|
/frameworks/native/libs/math/include/math/ |
D | TVecHelpers.h | 64 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/av/media/libstagefright/codecs/amrnb/dec/src/ |
D | int_lsf.cpp | 221 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 …]
|
D | dec_lag3.cpp | 198 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/opt/net/wifi/service/java/com/android/server/wifi/util/ |
D | Matrix.java | 64 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/cmds/statsd/src/matchers/ |
D | matcher_util.cpp | 115 for (int i = start; i < end; i++) { in matchesSimple() local 116 int pos = values[i].mField.getPosAtDepth(depth); in matchesSimple() 119 newStart = i; in matchesSimple() 121 newEnd = i + 1; in matchesSimple() 145 for (int i = start; i < end; i++) { in matchesSimple() local 146 int pos = values[i].mField.getPosAtDepth(depth); in matchesSimple() 150 end = i; in matchesSimple() 159 for (int i = start; i < end; i++) { in matchesSimple() local 160 if (values[i].mField.isLastPos(depth)) { in matchesSimple() 161 start = i; in matchesSimple() [all …]
|
/frameworks/base/core/java/android/database/ |
D | MergeCursor.java | 47 for (int i = 0; i < mCursors.length; i++) { in MergeCursor() 48 if (mCursors[i] == null) continue; in MergeCursor() 50 mCursors[i].registerDataSetObserver(mObserver); in MergeCursor() 59 for (int i = 0 ; i < length ; i++) { in getCount() 60 if (mCursors[i] != null) { in getCount() 61 count += mCursors[i].getCount(); in getCount() 74 for (int i = 0 ; i < length; i++) { in onMove() 75 if (mCursors[i] == null) { in onMove() 79 if (newPosition < (cursorStartPos + mCursors[i].getCount())) { in onMove() 80 mCursor = mCursors[i]; in onMove() [all …]
|
/frameworks/base/core/java/com/android/internal/database/ |
D | SortCursor.java | 65 for (int i = 0 ; i < length ; i++) { in SortCursor() 66 if (mCursors[i] == null) continue; in SortCursor() 69 mCursors[i].registerDataSetObserver(mObserver); in SortCursor() 71 mCursors[i].moveToFirst(); in SortCursor() 74 mSortColumns[i] = mCursors[i].getColumnIndexOrThrow(sortcolumn); in SortCursor() 88 for (int i = mRowNumCache.length - 1; i >= 0; i--) { in SortCursor() 89 mRowNumCache[i] = -2; in SortCursor() 99 for (int i = 0 ; i < length ; i++) { in getCount() 100 if (mCursors[i] != null) { in getCount() 101 count += mCursors[i].getCount(); in getCount() [all …]
|
/frameworks/base/core/java/android/transition/ |
D | TransitionSet.java | 228 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 …]
|