/frameworks/base/core/tests/coretests/src/android/text/ |
D | PackedIntVectorTest.java | 57 for (int j = 0; j < width; j++) { in testBasic() 58 ins[j] = i + j; in testBasic() 69 for (int j = 0; j < width; j++) { in testBasic() 71 assertEquals(0, p.getValue(at, j)); in testBasic() 73 assertEquals(p.getValue(at, j), i + j); in testBasic() local 81 for (int j = 0; j < width; j++) { in testBasic() 82 p.setValue(i, j, i * j); in testBasic() 84 assertEquals(p.getValue(i, j), i * j); in testBasic() local 90 for (int j = 0; j < width; j++) { in testBasic() 91 p.adjustValuesBelow(j * 2, j, j + 27); in testBasic() [all …]
|
/frameworks/base/core/java/com/android/internal/widget/remotecompose/core/operations/utilities/easing/ |
D | MonotonicCurveFit.java | 44 for (int j = 0; j < dim; j++) { in MonotonicCurveFit() 47 slope[i][j] = (y[i + 1][j] - y[i][j]) / dt; in MonotonicCurveFit() 49 tangent[i][j] = slope[i][j]; in MonotonicCurveFit() 51 tangent[i][j] = (slope[i - 1][j] + slope[i][j]) * 0.5f; in MonotonicCurveFit() 54 tangent[n - 1][j] = slope[n - 2][j]; in MonotonicCurveFit() 58 for (int j = 0; j < dim; j++) { in MonotonicCurveFit() 59 if (slope[i][j] == 0.) { in MonotonicCurveFit() 60 tangent[i][j] = 0.; in MonotonicCurveFit() 61 tangent[i + 1][j] = 0.; in MonotonicCurveFit() 63 double a = tangent[i][j] / slope[i][j]; in MonotonicCurveFit() [all …]
|
/frameworks/av/media/module/codecs/amrwb/dec/src/ |
D | low_pass_filt_7k.cpp | 149 int16 i, j; in low_pass_filt_7k() local 169 for (j = 1; j < L_FIR - 1; j += 4) in low_pass_filt_7k() 173 int16 tmp1 = x[(i<<2)+j ]; in low_pass_filt_7k() 174 int16 tmp2 = x[(i<<2)+j+1]; in low_pass_filt_7k() 175 int16 tmp3 = x[(i<<2)+j+2]; in low_pass_filt_7k() 177 L_tmp1 = fxp_mac_16by16(tmp1, fir_7k[j ], L_tmp1); in low_pass_filt_7k() 178 L_tmp2 = fxp_mac_16by16(tmp2, fir_7k[j ], L_tmp2); in low_pass_filt_7k() 179 L_tmp1 = fxp_mac_16by16(tmp2, fir_7k[j+1], L_tmp1); in low_pass_filt_7k() 180 L_tmp2 = fxp_mac_16by16(tmp3, fir_7k[j+1], L_tmp2); in low_pass_filt_7k() 181 L_tmp3 = fxp_mac_16by16(tmp3, fir_7k[j ], L_tmp3); in low_pass_filt_7k() [all …]
|
D | band_pass_6k_7k.cpp | 156 int16 i, j; in band_pass_6k_7k() local 191 for (j = 1; j < L_FIR - 1; j += 4) in band_pass_6k_7k() 193 int16 tmp1 = x[(i<<2)+j ]; in band_pass_6k_7k() 194 int16 tmp2 = x[(i<<2)+j+1]; in band_pass_6k_7k() 195 int16 tmp3 = x[(i<<2)+j+2]; in band_pass_6k_7k() 197 L_tmp1 = fxp_mac_16by16(tmp1, fir_6k_7k[j ], L_tmp1); in band_pass_6k_7k() 198 L_tmp2 = fxp_mac_16by16(tmp2, fir_6k_7k[j ], L_tmp2); in band_pass_6k_7k() 199 L_tmp1 = fxp_mac_16by16(tmp2, fir_6k_7k[j+1], L_tmp1); in band_pass_6k_7k() 200 L_tmp2 = fxp_mac_16by16(tmp3, fir_6k_7k[j+1], L_tmp2); in band_pass_6k_7k() 201 L_tmp3 = fxp_mac_16by16(tmp3, fir_6k_7k[j ], L_tmp3); in band_pass_6k_7k() [all …]
|
D | phase_dispersion.cpp | 160 int16 i, j, state; in phase_dispersion() local 200 j = 0; in phase_dispersion() 205 j++; in phase_dispersion() 209 if (j > 2) in phase_dispersion() 232 for (j = 0; j < L_SUBFR; j++) in phase_dispersion() 234 code2[i + j] = add_int16(code2[i + j], mult_int16_r(code[i], ph_imp_low[j])); in phase_dispersion() 245 for (j = 0; j < L_SUBFR; j++) in phase_dispersion() 247 code2[i + j] = add_int16(code2[i + j], mult_int16_r(code[i], ph_imp_mid[j])); in phase_dispersion()
|
/frameworks/base/apct-tests/perftests/core/src/android/libcore/regression/ |
D | StringBuilderPerfTest.java | 42 for (int j = 0; j < mLength; ++j) { in timeAppendBoolean() 53 for (int j = 0; j < mLength; ++j) { in timeAppendChar() 65 for (int j = 0; j < mLength; ++j) { in timeAppendCharArray() 77 for (int j = 0; j < mLength; ++j) { in timeAppendCharSequence() 89 for (int j = 0; j < mLength; ++j) { in timeAppendSubCharSequence() 101 for (int j = 0; j < mLength; ++j) { in timeAppendDouble() 113 for (int j = 0; j < mLength; ++j) { in timeAppendFloat() 125 for (int j = 0; j < mLength; ++j) { in timeAppendInt() 137 for (int j = 0; j < mLength; ++j) { in timeAppendLong() 156 for (int j = 0; j < mLength; ++j) { in timeAppendObject() [all …]
|
/frameworks/av/media/module/codecs/amrnb/dec/src/ |
D | if2_to_ets.cpp | 147 Word16 j; in if2_to_ets() local 160 for (j = 4; j < 8; j++) in if2_to_ets() 163 (if2_input_ptr[0] >> j) & 0x01; in if2_to_ets() 167 for (j = 0; j < 8; j++) in if2_to_ets() 174 (if2_input_ptr[i] >> j) & 0x01; in if2_to_ets() 180 for (j = 4; j < 8; j++) in if2_to_ets() 183 (if2_input_ptr[0] >> j) & 0x01; in if2_to_ets() 187 for (j = 0; j < 8; j++) in if2_to_ets() 190 (if2_input_ptr[i] >> j) & 0x01; in if2_to_ets()
|
D | d2_11pf.cpp | 158 Word16 j; in decode_2i40_11bits() local 164 j = index & 0x1; in decode_2i40_11bits() 170 pos[0] = i * 5 + j * 2 + 1; in decode_2i40_11bits() 177 j = index & 0x3; in decode_2i40_11bits() 183 if (j == 3) in decode_2i40_11bits() 189 pos[1] = i * 5 + j; in decode_2i40_11bits() 201 for (j = 0; j < NB_PULSE; j++) in decode_2i40_11bits() 218 cod[pos[j]] = i * 16383 - 8192; in decode_2i40_11bits()
|
/frameworks/base/apct-tests/perftests/core/src/android/util/ |
D | ArraySetPerfTest.java | 50 for (int j = 0; j < SET_SIZE_SMALL; j++) { in testForEach_Small() 51 set.add(j); in testForEach_Small() 66 for (int j = 0; j < SET_SIZE_LARGE; j++) { in testForEach_Large() 67 set.add(j); in testForEach_Large() 132 for (int j = 0; j < SET_SIZE_SMALL; ++j) { in testRemoveIf_Small_Base() 133 set.add(j); in testRemoveIf_Small_Base() 146 for (int j = 0; j < SET_SIZE_SMALL; ++j) { in testRemoveIf_Small_RemoveNothing() 147 set.add(j); in testRemoveIf_Small_RemoveNothing() 161 for (int j = 0; j < SET_SIZE_SMALL; j++) { in testRemoveIf_Small_RemoveAll() 162 set.add(j); in testRemoveIf_Small_RemoveAll() [all …]
|
D | ArrayMapPerfTest.java | 50 for (int j = 0; j < SET_SIZE_SMALL; j++) { in testForEach_Small() 51 map.put(Integer.toString(j), j); in testForEach_Small() local 66 for (int j = 0; j < SET_SIZE_LARGE; j++) { in testForEach_Large() 67 map.put(Integer.toString(j), j); in testForEach_Large() local 81 for (int j = 0; j < SET_SIZE_SMALL; j++) { in testReplaceAll_Small() 82 map.put(j, j); in testReplaceAll_Small() 96 for (int j = 0; j < SET_SIZE_LARGE; j++) { in testReplaceAll_Large() 97 map.put(j, j); in testReplaceAll_Large()
|
/frameworks/av/media/module/codecs/amrwb/enc/src/ |
D | levinson.c | 115 Word32 i, j; in Levinson() local 167 for (j = 1; j < i; j++) in Levinson() 168 t0 = vo_L_add(t0, Mpy_32(Rh[j], Rl[j], Ah[i - j], Al[i - j])); in Levinson() 190 for (j = 0; j < M; j++) in Levinson() 192 A[j + 1] = old_A[j]; in Levinson() 203 for (j = 1; j < i; j++) in Levinson() 205 t0 = Mpy_32(Kh, Kl, Ah[i - j], Al[i - j]); in Levinson() 206 t0 = vo_L_add(t0, ((Ah[j] << 16) + (Al[j] << 1))); in Levinson() 207 Anh[j] = t0 >> 16; in Levinson() 208 Anl[j] = (t0 & 0xffff)>>1; in Levinson() [all …]
|
D | cor_h_x.c | 41 Word32 i, j; in cor_h_x() local 57 for (j = i; j < L_SUBFR; j++) in cor_h_x() 70 for (j = i+1; j < L_SUBFR; j++) in cor_h_x() 83 for (j = i+2; j < L_SUBFR; j++) in cor_h_x() 96 for (j = i+3; j < L_SUBFR; j++) in cor_h_x() 119 j = norm_l(L_tot) - 4; /* 4 -> 16 x tot */ in cor_h_x() 124 *p1++ = vo_round(L_shl(*p3++, j)); in cor_h_x() 125 *p1++ = vo_round(L_shl(*p3++, j)); in cor_h_x() 126 *p1++ = vo_round(L_shl(*p3++, j)); in cor_h_x() 127 *p1++ = vo_round(L_shl(*p3++, j)); in cor_h_x()
|
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/ |
D | Matrix.java | 66 for (int j = 0; j < 4; j++) { in print() 67 s+= ((j == 0) ? "[ " : " , ") + trim(" "+df.format(m[i * 4 + j])); in print() 100 for (int j = 0; j < 4; j++) { in mult4() 101 sum += m[col + j] * src[j]; in mult4() 111 for (int j = 0; j < 3; j++) { in mult3() 112 sum += m[col + j] * src[j]; in mult3() 122 for (int j = 0; j < 3; j++) { in mult3v() 123 sum += m[col + j] * src[j]; in mult3v() 133 for (int j = 0; j < 4; j++) { in mult4() 134 sum += m[col + j] * src[j]; in mult4() [all …]
|
/frameworks/base/core/tests/benchmarks/src/android/os/ |
D | ParcelBenchmark.java | 44 for (int j = 0; j < INNER_REPS; j++) { in timeWriteByte() 53 for (int j = 0; j < INNER_REPS; j++) { in timeReadByte() 63 for (int j = 0; j < INNER_REPS; j++) { in timeWriteInt() 72 for (int j = 0; j < INNER_REPS; j++) { in timeReadInt() 82 for (int j = 0; j < INNER_REPS; j++) { in timeWriteLong() 91 for (int j = 0; j < INNER_REPS; j++) { in timeReadLong()
|
/frameworks/rs/ |
D | rsMatrix3x3.cpp | 56 for (int j=0 ; j<3 ; j++) { in loadMultiply() local 57 const float rhs_ij = ((const Matrix3x3 *)rhs)->get(i, j); in loadMultiply() 58 ri0 += ((const Matrix3x3 *)lhs)->get(j, 0) * rhs_ij; in loadMultiply() 59 ri1 += ((const Matrix3x3 *)lhs)->get(j, 1) * rhs_ij; in loadMultiply() 60 ri2 += ((const Matrix3x3 *)lhs)->get(j, 2) * rhs_ij; in loadMultiply() 70 int i, j; in transpose() local 73 for (j = i + 1; j < 3; ++j) { in transpose() 74 temp = get(i, j); in transpose() 75 set(i, j, get(j, i)); in transpose() 76 set(j, i, temp); in transpose()
|
/frameworks/av/media/libeffects/lvm/lib/Reverb/src/ |
D | LVREV_Process.cpp | 160 LVM_INT16 j, size; in ReverbBlock() local 218 for (j = 0; j < NumberOfDelayLines; j++) { in ReverbBlock() 219 pDelayLine = pPrivate->pScratchDelayLine[j]; in ReverbBlock() 225 MixSoft_2St_D32C31_SAT(&pPrivate->Mixer_APTaps[j], pPrivate->pOffsetA[j], in ReverbBlock() 226 pPrivate->pOffsetB[j], pDelayLine, (LVM_INT16)NumSamples); in ReverbBlock() 229 Copy_Float(&pPrivate->pDelay_T[j][NumSamples], pPrivate->pDelay_T[j], in ReverbBlock() 230 (LVM_INT16)(pPrivate->T[j] - NumSamples)); /* 32-bit data */ in ReverbBlock() 232 MixSoft_1St_D32C31_WRA(&pPrivate->Mixer_SGFeedback[j], pDelayLine, in ReverbBlock() 233 &pPrivate->pDelay_T[j][pPrivate->T[j] - NumSamples], in ReverbBlock() 236 Mac3s_Sat_Float(&pPrivate->pDelay_T[j][pPrivate->T[j] - NumSamples], in ReverbBlock() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/content/ |
D | SyncStorageEngineTest.java | 115 for (int j = 0; j < NUM_PERIODIC_SYNC_TIMES; j++) { in populateStatus() 119 for (int j = 0; j < NUM_EVENTS; j++) { in populateStatus() 127 for (int j = 0; j < NUM_SOURCES; j++) { in populateStatus() 128 ss.perSourceLastSuccessTimes[j] = r.nextLong(); in populateStatus() 130 for (int j = 0; j < NUM_SOURCES; j++) { in populateStatus() 131 ss.perSourceLastFailureTimes[j] = r.nextLong(); in populateStatus() 165 for (int j = 0; j < NUM_PERIODIC_SYNC_TIMES; j++) { in verifyStatus() 166 assertEquals(ssOther.getPeriodicSyncTime(j), ss.getPeriodicSyncTime(j)); in verifyStatus() 169 for (int j = 0; j < NUM_EVENTS; j++) { in verifyStatus() 170 assertEquals(ssOther.getEventTime(j), ss.getEventTime(j)); in verifyStatus() [all …]
|
/frameworks/av/media/module/codecs/amrnb/enc/src/ |
D | ets_to_if2.cpp | 146 Word16 j = 0; in ets_to_if2() local 153 if2_output_ptr[j++] = (UWord8)(frame_type_3gpp) | in ets_to_if2() 161 if2_output_ptr[j] = in ets_to_if2() 163 if2_output_ptr[j] |= in ets_to_if2() 165 if2_output_ptr[j] |= in ets_to_if2() 167 if2_output_ptr[j] |= in ets_to_if2() 169 if2_output_ptr[j] |= in ets_to_if2() 171 if2_output_ptr[j] |= in ets_to_if2() 173 if2_output_ptr[j] |= in ets_to_if2() 175 if2_output_ptr[j++] |= in ets_to_if2() [all …]
|
D | ets_to_wmf.cpp | 171 Word16 j = 0; in ets_to_wmf() local 178 wmf_output_ptr[j++] = (UWord8)(frame_type_3gpp) & 0x0f; in ets_to_wmf() 182 wmf_output_ptr[j] = in ets_to_wmf() 184 wmf_output_ptr[j] |= in ets_to_wmf() 186 wmf_output_ptr[j] |= in ets_to_wmf() 188 wmf_output_ptr[j] |= in ets_to_wmf() 190 wmf_output_ptr[j] |= in ets_to_wmf() 192 wmf_output_ptr[j] |= in ets_to_wmf() 194 wmf_output_ptr[j] |= in ets_to_wmf() 196 wmf_output_ptr[j++] |= in ets_to_wmf() [all …]
|
D | s10_8pf.cpp | 569 Word16 i, j, k/*, m*/; in search_10and8i40() local 657 for (j = ipos[2]; j < L_CODE; j += step) in search_10and8i40() 660 p_temp2 = &rr[j][0]; in search_10and8i40() 662 alp1 = (s + (Word32) * (p_temp2 + j)) >> 1; in search_10and8i40() 669 ps1 = dn[j]; in search_10and8i40() 686 ia = j; in search_10and8i40() 724 for (j = ipos[4]; j < L_CODE; j += step) in search_10and8i40() 727 p_temp2 = &rr[j][0]; in search_10and8i40() 730 alp1 = alp0 + ((Word32) * (p_temp2 + j) << 11); in search_10and8i40() 745 ps1 = dn[j]; in search_10and8i40() [all …]
|
/frameworks/base/core/java/android/net/metrics/ |
D | WakeupEvent.java | 42 StringJoiner j = new StringJoiner(", ", "WakeupEvent(", ")"); in toString() local 43 j.add(String.format("%tT.%tL", timestampMs, timestampMs)); in toString() 44 j.add(iface); in toString() 45 j.add("uid: " + Integer.toString(uid)); in toString() 46 j.add("eth=0x" + Integer.toHexString(ethertype)); in toString() 47 j.add("srcMac=" + dstHwAddr); // really!! http://b/292404319#comment11 in toString() 49 j.add("ipNxtHdr=" + ipNextHeader); in toString() 50 j.add("srcIp=" + srcIp); in toString() 51 j.add("dstIp=" + dstIp); in toString() 53 j.add("srcPort=" + srcPort); in toString() [all …]
|
/frameworks/av/media/module/codecs/mp3dec/src/ |
D | pvmp3_mpeg2_stereo_proc.cpp | 236 int32 j; in pvmp3_mpeg2_stereo_proc() local 340 for (j = 0; j < 3; j++) in pvmp3_mpeg2_stereo_proc() 350 (scalefac_R->s[j][12]) = (scalefac_R->s[j][11]); in pvmp3_mpeg2_stereo_proc() 351 …scalefac_IIP_buffer[36 + j] = scalefac_IIP_buffer[33 + j]; /* legal/illegal in sfb 12 same as in … in pvmp3_mpeg2_stereo_proc() 356 sfbStart = 3 * mp3_sfBandIndex[sfreq].s[sfb] + j * sfbNo; in pvmp3_mpeg2_stereo_proc() 358 if ((uint32)(scalefac_R->s[j][sfb]) != scalefac_IIP_buffer[3*sfb + j]) in pvmp3_mpeg2_stereo_proc() 360 … pvmp3_st_intensity_ver2(xr, xl, io, scalefac_R->s[j][sfb], sfbStart, sfbNo); in pvmp3_mpeg2_stereo_proc() 377 for (j = 0; j < 3; j++) in pvmp3_mpeg2_stereo_proc() 385 i = 3 * mp3_sfBandIndex[sfreq].s[sfb] + (j + 1) * lines - 1; in pvmp3_mpeg2_stereo_proc() 421 (scalefac_R->s[j][12]) = (scalefac_R->s[j][11]); in pvmp3_mpeg2_stereo_proc() [all …]
|
/frameworks/av/media/module/codecs/m4v_h263/enc/src/ |
D | sad_halfpel.cpp | 66 Int i, j; in HalfPel1_SAD_MB() local 80 for (j = 0; j < 16; j++) in HalfPel1_SAD_MB() 83 temp = ((p1[j] + p2[j] + 1) >> 1) - *kk++; in HalfPel1_SAD_MB() 98 Int i, j; in HalfPel2_SAD_MB() local 111 for (j = 0; j < 16; j++) in HalfPel2_SAD_MB() 114 temp = ((p1[j] + p2[j] + p3[j] + p4[j] + 2) >> 2) - *kk++; in HalfPel2_SAD_MB() 140 Int i, j; in HalfPel1_SAD_Blk() local 154 for (j = 0; j < 8; j++) in HalfPel1_SAD_Blk() 157 temp = ((p1[j] + p2[j] + 1) >> 1) - *kk++; in HalfPel1_SAD_Blk() 172 Int i, j; in HalfPel2_SAD_Blk() local [all …]
|
D | vlc_encode_inline.h | 25 Int idx, run, level, j; in zero_run_search() local 29 j = 0; in zero_run_search() 42 j++; in zero_run_search() 48 level = dataBlock[j]; in zero_run_search() 49 dataBlock[j] = 0; /* reset output */ in zero_run_search() 50 j++; in zero_run_search() 79 j++; in zero_run_search() 85 level = dataBlock[j]; in zero_run_search() 86 dataBlock[j] = 0; /* reset output */ in zero_run_search() 87 j++; in zero_run_search() [all …]
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | SparseSetArrayTest.java | 46 for (int j = 100; j < 110; ++j) { in testAddAll() 47 array.add(j); in testAddAll() 51 sparseSetArray.add(i, j); in testAddAll() 67 for (int j = 100; j < 110; ++j) { in testCopyConstructor() 68 sparseSetArray.add(i, j); in testCopyConstructor() 79 for (int j = 0; j < array.size(); j++) { in testCopyConstructor() 80 assertThat(array.valueAt(j)).isEqualTo(arrayCopy.valueAt(j)); in testCopyConstructor()
|