/frameworks/base/core/tests/coretests/src/android/text/ |
D | PackedIntVectorTest.java | 54 for (int j = 0; j < width; j++) { in testBasic() 55 ins[j] = i + j; in testBasic() 66 for (int j = 0; j < width; j++) { in testBasic() 68 assertEquals(0, p.getValue(at, j)); in testBasic() 70 assertEquals(p.getValue(at, j), i + j); in testBasic() local 78 for (int j = 0; j < width; j++) { in testBasic() 79 p.setValue(i, j, i * j); in testBasic() 81 assertEquals(p.getValue(i, j), i * j); in testBasic() local 87 for (int j = 0; j < width; j++) { in testBasic() 88 p.adjustValuesBelow(j * 2, j, j + 27); in testBasic() [all …]
|
/frameworks/av/media/libstagefright/codecs/amrwb/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/av/media/libstagefright/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()
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/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/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/m4p10/src/ |
D | omxVCM4P10_SubAndTransformQDQResidual.c | 104 OMX_INT i, j; in omxVCM4P10_SubAndTransformQDQResidual() local 151 for (j = 0; j < 4; j++) in omxVCM4P10_SubAndTransformQDQResidual() 155 pDstQuantCoeff [4 * j + i] = 0; in omxVCM4P10_SubAndTransformQDQResidual() 158 pDstDeQuantCoeff [4 * j + i] = 0; in omxVCM4P10_SubAndTransformQDQResidual() 173 for (j = 0; j < 4; j++) in omxVCM4P10_SubAndTransformQDQResidual() 177 Buf [j * 4 + i] = in omxVCM4P10_SubAndTransformQDQResidual() 178 pSrcOrg [j * iSrcOrgStep + i] - pSrcPred [j * iSrcPredStep + i]; in omxVCM4P10_SubAndTransformQDQResidual() 192 for (j = 0; j < 4; j++) in omxVCM4P10_SubAndTransformQDQResidual() 196 MF = armVCM4P10_MFMatrix[QPmod][armVCM4P10_PosToVCol4x4[j * 4 + i]]; in omxVCM4P10_SubAndTransformQDQResidual() 197 Value = armAbs(m[j * 4 + i]) * MF + f; in omxVCM4P10_SubAndTransformQDQResidual() [all …]
|
D | omxVCM4P10_TransformQuant_LumaDC.c | 71 OMX_INT i, j; in omxVCM4P10_TransformQuant_LumaDC() local 85 j = i * 4; in omxVCM4P10_TransformQuant_LumaDC() 87 m1[i][0] = pSrcDst[j + 0] + pSrcDst[j + 2]; /* a+c */ in omxVCM4P10_TransformQuant_LumaDC() 88 m1[i][1] = pSrcDst[j + 1] + pSrcDst[j + 3]; /* b+d */ in omxVCM4P10_TransformQuant_LumaDC() 89 m1[i][2] = pSrcDst[j + 0] - pSrcDst[j + 2]; /* a-c */ in omxVCM4P10_TransformQuant_LumaDC() 90 m1[i][3] = pSrcDst[j + 1] - pSrcDst[j + 3]; /* b-d */ in omxVCM4P10_TransformQuant_LumaDC() 120 for (j = 0; j < 4; j++) in omxVCM4P10_TransformQuant_LumaDC() 124 Value = (armAbs((m2[j][i]/* + 1*/) / 2) * MF + Two_f) >> QbitsPlusOne; in omxVCM4P10_TransformQuant_LumaDC() 125 pSrcDst[j * 4 + i] = (OMX_S16)((m2[j][i] < 0) ? -Value : Value); in omxVCM4P10_TransformQuant_LumaDC()
|
D | omxVCM4P10_InvTransformDequant_LumaDC.c | 72 OMX_INT i, j; in omxVCM4P10_InvTransformDequant_LumaDC() local 87 j = i * 4; in omxVCM4P10_InvTransformDequant_LumaDC() 89 m1[i][0] = pSrc[j + 0] + pSrc[j + 2]; /* a+c */ in omxVCM4P10_InvTransformDequant_LumaDC() 90 m1[i][1] = pSrc[j + 1] + pSrc[j + 3]; /* b+d */ in omxVCM4P10_InvTransformDequant_LumaDC() 91 m1[i][2] = pSrc[j + 0] - pSrc[j + 2]; /* a-c */ in omxVCM4P10_InvTransformDequant_LumaDC() 92 m1[i][3] = pSrc[j + 1] - pSrc[j + 3]; /* b-d */ in omxVCM4P10_InvTransformDequant_LumaDC() 120 for (j = 0; j < 4; j++) in omxVCM4P10_InvTransformDequant_LumaDC() 126 Value = (m2[j][i] * V + (1 << (1 - QPer))) >> (2 - QPer); in omxVCM4P10_InvTransformDequant_LumaDC() 130 Value = m2[j][i] * V * (1 << (QPer - 2)); in omxVCM4P10_InvTransformDequant_LumaDC() 133 pDst[j * 4 + i] = (OMX_S16) Value; in omxVCM4P10_InvTransformDequant_LumaDC()
|
/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.c | 181 LVM_INT16 j, size; in ReverbBlock() local 258 for(j = 0; j < NumberOfDelayLines; j++) in ReverbBlock() 260 pDelayLine = pPrivate->pScratchDelayLine[j]; in ReverbBlock() 266 MixSoft_2St_D32C31_SAT(&pPrivate->Mixer_APTaps[j], in ReverbBlock() 267 pPrivate->pOffsetA[j], in ReverbBlock() 268 pPrivate->pOffsetB[j], in ReverbBlock() 272 Copy_16((LVM_INT16 *)&pPrivate->pDelay_T[j][NumSamples], in ReverbBlock() 273 (LVM_INT16 *)pPrivate->pDelay_T[j], in ReverbBlock() 274 (LVM_INT16)((pPrivate->T[j]-NumSamples) << 1)); /* 32-bit data */ in ReverbBlock() 276 MixSoft_1St_D32C31_WRA(&pPrivate->Mixer_SGFeedback[j], in ReverbBlock() [all …]
|
/frameworks/av/media/libstagefright/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/av/media/libstagefright/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/opt/net/wifi/service/java/com/android/server/wifi/scanner/ |
D | ChannelHelper.java | 129 for (int j = 0; j < scanSettings.channels.length; ++j) { in addChannels() 130 addChannel(scanSettings.channels[j].frequency); in addChannels() 142 for (int j = 0; j < bucketSettings.channels.length; ++j) { in addChannels() 143 addChannel(bucketSettings.channels[j].frequency); in addChannels() 155 for (int j = 0; j < scanSettings.channels.length; ++j) { in containsSettings() 156 if (!containsChannel(scanSettings.channels[j].frequency)) { in containsSettings() 171 for (int j = 0; j < scanSettings.channels.length; ++j) { in partiallyContainsSettings() 172 if (containsChannel(scanSettings.channels[j].frequency)) { in partiallyContainsSettings() 188 for (int j = 0; j < scanSettings.channels.length; ++j) { in getMissingChannelsFromSettings() 189 if (!containsChannel(scanSettings.channels[j].frequency)) { in getMissingChannelsFromSettings() [all …]
|
/frameworks/av/media/libstagefright/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/tests/coretests/src/com/android/internal/os/ |
D | KernelUidCpuFreqTimeReaderTest.java | 71 for (int j = 0; j < freqs.length; ++j) { in testReadDelta() 72 times[i][j] = uids[i] * freqs[j] * 10; in testReadDelta() 88 for (int j = 0; j < freqs.length; ++j) { in testReadDelta() 89 newTimes1[i][j] = (times[i][j] + uids[i] + freqs[j]) * 10; in testReadDelta() 105 for (int j = 0; j < freqs.length; ++j) { in testReadDelta() 106 newTimes2[i][j] = (newTimes1[i][j] + uids[i] * freqs[j]) * 10; in testReadDelta() 119 for (int j = 0; j < freqs.length; ++j) { in testReadDelta() 120 newTimes3[i][j] = (newTimes2[i][j] * (uids[i] + freqs[j])) * 10; in testReadDelta() 156 for (int j = 0; j < times[i].length; ++j) { in getUidTimesLines() 157 sb.append(" " + times[i][j] / 10); in getUidTimesLines()
|
/frameworks/minikin/libs/minikin/ |
D | SparseBitSet.cpp | 80 for (uint32_t j = nonzeroPageEnd; j < startPage; j++) { in initFromRanges() local 81 mIndices[j] = mZeroPageIndex; in initFromRanges() 95 for (size_t j = 1; j < nElements - 1; j++) { in initFromRanges() local 96 mBitmaps[index + j] = kElAllOnes; in initFromRanges() 100 for (size_t j = startPage + 1; j < endPage + 1; j++) { in initFromRanges() local 101 mIndices[j] = (currentPage++) << (kLogValuesPerPage - kLogBitsPerEl); in initFromRanges() 123 for (uint32_t j = offset + 1; j < (1 << (kLogValuesPerPage - kLogBitsPerEl)); j++) { in nextSetBit() local 124 e = bitmap[j]; in nextSetBit() 126 return (fromIndex & ~kPageMask) + (j << kLogBitsPerEl) + CountLeadingZeros(e); in nextSetBit() 136 for (uint32_t j = 0; j < (1 << (kLogValuesPerPage - kLogBitsPerEl)); j++) { in nextSetBit() local [all …]
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
D | BucketTest.java | 97 for (int j : mArr) { in remove() 98 mBucket.set(j); in remove() 101 for (int j : mArr) { in remove() 102 if (i == j) { in remove() 105 if (j < i) { in remove() 106 assertTrue(mBucket.get(j)); in remove() 108 assertEquals(mSet.contains(j + 1), mBucket.get(j)); in remove() 119 for (int j : mArr) { in insert() 120 mBucket.set(j); in insert() 124 for (int j : mArr) { in insert() [all …]
|
/frameworks/av/drm/libmediadrm/ |
D | DrmSessionManager.cpp | 94 for (size_t j = 0; j < infos.size(); ++j) { in useSession() local 95 SessionInfo& info = infos.editItemAt(j); in useSession() 110 for (size_t j = 0; j < infos.size(); ++j) { in removeSession() local 111 if (isEqualSessionId(sessionId, infos[j].sessionId)) { in removeSession() 112 infos.removeAt(j); in removeSession() 126 for (size_t j = 0; j < infos.size();) { in removeDrm() local 127 if (infos[j].drm == drm) { in removeDrm() 128 ALOGV("removed session (%s)", GetSessionIdString(infos[j].sessionId).string()); in removeDrm() 129 j = infos.removeAt(j); in removeDrm() 132 ++j; in removeDrm() [all …]
|