Home
last modified time | relevance | path

Searched refs:j (Results 1 – 25 of 727) sorted by relevance

12345678910>>...30

/frameworks/base/core/tests/coretests/src/android/text/
DPackedIntVectorTest.java45 for (int j = 0; j < width; j++) { in testBasic()
46 ins[j] = i + j; in testBasic()
57 for (int j = 0; j < width; j++) { in testBasic()
59 assertEquals(0, p.getValue(at, j)); in testBasic()
61 assertEquals(p.getValue(at, j), i + j); in testBasic() local
69 for (int j = 0; j < width; j++) { in testBasic()
70 p.setValue(i, j, i * j); in testBasic()
72 assertEquals(p.getValue(i, j), i * j); in testBasic() local
78 for (int j = 0; j < width; j++) { in testBasic()
79 p.adjustValuesBelow(j * 2, j, j + 27); in testBasic()
[all …]
/frameworks/av/media/libstagefright/codecs/amrwb/src/
Dlow_pass_filt_7k.cpp149 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 …]
Dband_pass_6k_7k.cpp156 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 …]
Dphase_dispersion.cpp160 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()
Dwb_syn_filt.cpp137 int16 i, j; in wb_syn_filt() local
166 for (j = 4; j < m; j += 2) in wb_syn_filt()
168 L_tmp1 = fxp_mac_16by16(yy[(i<<2)-1 - j], a[j+1], L_tmp1); in wb_syn_filt()
169 L_tmp2 = fxp_mac_16by16(yy[(i<<2) - j], a[j+1], L_tmp2); in wb_syn_filt()
170 L_tmp1 = fxp_mac_16by16(yy[(i<<2) - j], a[j ], L_tmp1); in wb_syn_filt()
171 L_tmp2 = fxp_mac_16by16(yy[(i<<2)+1 - j], a[j ], L_tmp2); in wb_syn_filt()
172 L_tmp3 = fxp_mac_16by16(yy[(i<<2)+1 - j], a[j+1], L_tmp3); in wb_syn_filt()
173 L_tmp4 = fxp_mac_16by16(yy[(i<<2)+2 - j], a[j+1], L_tmp4); in wb_syn_filt()
174 L_tmp3 = fxp_mac_16by16(yy[(i<<2)+2 - j], a[j ], L_tmp3); in wb_syn_filt()
175 L_tmp4 = fxp_mac_16by16(yy[(i<<2)+3 - j], a[j ], L_tmp4); in wb_syn_filt()
[all …]
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
Dlevinson.c115 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 …]
Dcor_h_x.c41 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/java/tests/VrDemo/src/com/example/android/rs/vr/engine/
DMatrix.java66 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/av/media/libstagefright/codecs/amrnb/dec/src/
Dif2_to_ets.cpp147 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/on2/h264dec/omxdl/reference/vc/m4p10/src/
DomxVCM4P10_SubAndTransformQDQResidual.c104 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 …]
DomxVCM4P10_TransformQuant_LumaDC.c71 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()
DomxVCM4P10_InvTransformDequant_LumaDC.c72 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/av/media/libstagefright/codecs/avc/common/src/
Dreflist.cpp409 int i, j; in SortPicByPicNum() local
414 for (j = i + 1; j < num; j++) in SortPicByPicNum()
416 if (data[j]->PicNum > data[i]->PicNum) in SortPicByPicNum()
418 temp = data[j]; in SortPicByPicNum()
419 data[j] = data[i]; in SortPicByPicNum()
431 int i, j; in SortPicByPicNumLongTerm() local
436 for (j = i + 1; j < num; j++) in SortPicByPicNumLongTerm()
438 if (data[j]->LongTermPicNum < data[i]->LongTermPicNum) in SortPicByPicNumLongTerm()
440 temp = data[j]; in SortPicByPicNumLongTerm()
441 data[j] = data[i]; in SortPicByPicNumLongTerm()
[all …]
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
Dsad_halfpel.cpp66 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 …]
Dvlc_encode_inline.h25 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/libeffects/lvm/lib/Reverb/src/
DLVREV_Process.c181 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/mp3dec/src/
Dpvmp3_mpeg2_stereo_proc.cpp236 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/rs/
DrsMatrix3x3.cpp56 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/opt/net/wifi/service/java/com/android/server/wifi/scanner/
DChannelHelper.java125 for (int j = 0; j < scanSettings.channels.length; ++j) { in addChannels()
126 addChannel(scanSettings.channels[j].frequency); in addChannels()
138 for (int j = 0; j < bucketSettings.channels.length; ++j) { in addChannels()
139 addChannel(bucketSettings.channels[j].frequency); in addChannels()
151 for (int j = 0; j < scanSettings.channels.length; ++j) { in containsSettings()
152 if (!containsChannel(scanSettings.channels[j].frequency)) { in containsSettings()
167 for (int j = 0; j < scanSettings.channels.length; ++j) { in partiallyContainsSettings()
168 if (containsChannel(scanSettings.channels[j].frequency)) { in partiallyContainsSettings()
184 for (int j = 0; j < scanSettings.channels.length; ++j) { in getMissingChannelsFromSettings()
185 if (!containsChannel(scanSettings.channels[j].frequency)) { in getMissingChannelsFromSettings()
[all …]
/frameworks/minikin/libs/minikin/
DSparseBitSet.cpp83 for (uint32_t j = nonzeroPageEnd; j < startPage; j++) { in initFromRanges() local
84 mIndices[j] = mZeroPageIndex; in initFromRanges()
98 for (size_t j = 1; j < nElements - 1; j++) { in initFromRanges() local
99 mBitmaps[index + j] = kElAllOnes; in initFromRanges()
103 for (size_t j = startPage + 1; j < endPage + 1; j++) { in initFromRanges() local
104 mIndices[j] = (currentPage++) << (kLogValuesPerPage - kLogBitsPerEl); in initFromRanges()
126 for (uint32_t j = offset + 1; j < (1 << (kLogValuesPerPage - kLogBitsPerEl)); j++) { in nextSetBit() local
127 e = bitmap[j]; in nextSetBit()
129 return (fromIndex & ~kPageMask) + (j << kLogBitsPerEl) + CountLeadingZeros(e); in nextSetBit()
139 for (uint32_t j = 0; j < (1 << (kLogValuesPerPage - kLogBitsPerEl)); j++) { in nextSetBit() local
[all …]
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
Dets_to_if2.cpp146 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 …]
Dets_to_wmf.cpp171 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 …]
Ds10_8pf.cpp569 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/av/drm/libmediadrm/
DDrmSessionManager.cpp94 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 …]
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DBucketTest.java96 for (int j : mArr) { in remove()
97 mBucket.set(j); in remove()
100 for (int j : mArr) { in remove()
101 if (i == j) { in remove()
104 if (j < i) { in remove()
105 assertTrue(mBucket.get(j)); in remove()
107 assertEquals(mSet.contains(j + 1), mBucket.get(j)); in remove()
118 for (int j : mArr) { in insert()
119 mBucket.set(j); in insert()
123 for (int j : mArr) { in insert()
[all …]

12345678910>>...30