/frameworks/av/media/module/codecs/amrwb/dec/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/module/codecs/amrwb/enc/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/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/services/tests/powerstatstests/src/com/android/server/power/stats/ |
D | BatteryStatsCpuTimesTest.java | 147 for (int i = 0; i < numClusters; ++i) { in testUpdateCpuTimeLocked() 148 verify(mKernelCpuSpeedReaders[i]).readDelta(); in testUpdateCpuTimeLocked() 153 for (int i = 0; i < numClusters; ++i) { in testUpdateCpuTimeLocked() 154 Mockito.reset(mKernelCpuSpeedReaders[i]); in testUpdateCpuTimeLocked() 178 for (int i = 0; i < numClusters; ++i) { in testUpdateCpuTimeLocked() 179 verify(mKernelCpuSpeedReaders[i]).readDelta(); in testUpdateCpuTimeLocked() 193 for (int i = 0; i < partialTimers.size(); ++i) { in testMarkPartialTimersAsEligible() 194 partialTimers.get(i).mInList = inList[i]; in testMarkPartialTimersAsEligible() 202 for (int i = 0; i < partialTimers.size(); ++i) { in testMarkPartialTimersAsEligible() 203 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/math/include/math/ |
D | TVecHelpers.h | 66 for (size_t i = 0; i < lhs.size(); i++) { variable 67 lhs[i] += v[i]; 74 for (size_t i = 0; i < lhs.size(); i++) { variable 75 lhs[i] -= v[i]; 87 for (size_t i = 0; i < lhs.size(); i++) { variable 88 lhs[i] += v[i]; 94 for (size_t i = 0; i < lhs.size(); i++) { variable 95 lhs[i] -= v[i]; 147 for (size_t i = 0; i < lhs.size(); i++) { variable 148 lhs[i] *= v[i]; [all …]
|
/frameworks/av/media/module/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/libs/binary_translation/tests/perf_tests/ |
D | perf_test.cc | 46 for (int i = 0; i < 1000 * 1000 * 1000; i++) { in TEST() local 62 for (int i = 0; i < 1000 * 1000 * 1000; i++) { in TEST() local 63 int mod = i % 4; in TEST() 83 for (int i = -N; i < N; i++) { in TEST() local 85 c += ((i * i + j * j) < N * N); in TEST() 97 for (int i = 0; i < 100 * 1000 * 1000; i++) { in TEST() local 99 a += fptrs[(i ^ (i >> 2)) & 3](); in TEST() 115 for (int i = 0; i < 300 * 1000; i++) { in TEST() local 130 int i; in TEST() local 131 for (i = 0; i < 30 * 1000 * 1000; i++) { in TEST() [all …]
|
/frameworks/native/libs/gui/tests/ |
D | WindowInfo_test.cpp | 36 WindowInfo i, i2; in TEST() local 37 i.token = nullptr; in TEST() 40 ASSERT_EQ(OK, i.writeToParcel(&p)); in TEST() 48 WindowInfo i; in TEST() local 49 i.token = new BBinder(); in TEST() 50 i.windowToken = new BBinder(); in TEST() 51 i.id = 1; in TEST() 52 i.name = "Foobar"; in TEST() 53 i.layoutParamsFlags = WindowInfo::Flag::SLIPPERY; in TEST() 54 i.layoutParamsType = WindowInfo::Type::INPUT_METHOD; in TEST() [all …]
|
/frameworks/base/core/java/android/database/ |
D | MergeCursor.java | 48 for (int i = 0; i < mCursors.length; i++) { in MergeCursor() 49 if (mCursors[i] == null) continue; in MergeCursor() 51 mCursors[i].registerDataSetObserver(mObserver); in MergeCursor() 60 for (int i = 0 ; i < length ; i++) { in getCount() 61 if (mCursors[i] != null) { in getCount() 62 count += mCursors[i].getCount(); in getCount() 75 for (int i = 0 ; i < length; i++) { in onMove() 76 if (mCursors[i] == null) { in onMove() 80 if (newPosition < (cursorStartPos + mCursors[i].getCount())) { in onMove() 81 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/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ZenModeEventLoggerFake.java | 59 private boolean outOfRange(int i) { in outOfRange() argument 60 return i < 0 || i >= mChanges.size(); in outOfRange() 64 private void checkInRange(int i) throws IllegalArgumentException { in checkInRange() argument 65 if (outOfRange(i)) { in checkInRange() 66 throw new IllegalArgumentException("invalid index for logged event: " + i); in checkInRange() 71 public int getEventId(int i) throws IllegalArgumentException { in getEventId() argument 72 checkInRange(i); in getEventId() 73 return mChanges.get(i).getEventId().getId(); in getEventId() 77 public int getPrevZenMode(int i) throws IllegalArgumentException { in getPrevZenMode() argument 78 checkInRange(i); in getPrevZenMode() [all …]
|
/frameworks/av/media/libeffects/lvm/lib/Reverb/src/ |
D | LVREV_GetInstanceHandle.cpp | 49 LVM_INT16 i; in LVREV_GetInstanceHandle() local 97 for (size_t i = 0; i < pInstanceParams->NumDelays; i++) { in LVREV_GetInstanceHandle() local 98 pLVREV_Private->pDelay_T[i] = (LVM_FLOAT*)calloc(LVREV_MAX_T_DELAY[i], sizeof(LVM_FLOAT)); in LVREV_GetInstanceHandle() 100 pLVREV_Private->pScratchDelayLine[i] = (LVM_FLOAT*)calloc(MaxBlockSize, sizeof(LVM_FLOAT)); in LVREV_GetInstanceHandle() 103 for (size_t i = 0; i < LVREV_DELAYLINES_4; i++) { in LVREV_GetInstanceHandle() local 104 pLVREV_Private->T[i] = LVREV_MAX_T_DELAY[i]; in LVREV_GetInstanceHandle() 163 for (i = 0; i < 4; i++) { in LVREV_GetInstanceHandle() 164 pLVREV_Private->pOffsetA[i] = pLVREV_Private->pDelay_T[i]; in LVREV_GetInstanceHandle() 165 pLVREV_Private->pOffsetB[i] = pLVREV_Private->pDelay_T[i]; in LVREV_GetInstanceHandle() 167 pLVREV_Private->Mixer_APTaps[i].CallbackParam2 = 0; in LVREV_GetInstanceHandle() [all …]
|
/frameworks/opt/net/voip/src/jni/rtp/ |
D | EchoSuppressor.cpp | 100 for (int i = mTailLength - 1; i >= 0; --i) { in run() local 101 mXs[i + mWindowSize] = mXs[i]; in run() 103 for (int i = mWindowSize - 1, j = 0; i >= 0; --i, j += mScale) { in run() local 111 mXs[i] = sum >> mShift; in run() 115 for (int i = mTailLength - mWindowSize - 1; i >= 0; --i) { in run() local 116 mXSums[i + mWindowSize] = mXSums[i]; in run() 117 mX2Sums[i + mWindowSize] = mX2Sums[i]; in run() 120 for (int i = mWindowSize - 1; i >= 0; --i) { in run() local 121 uint16_t x = mXs[i]; in run() 122 mXSums[i] = mXSums[i + 1] + x - xRecords[i]; in run() [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 …]
|