/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/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()
|
D | wb_syn_filt.cpp | 137 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/opt/net/wifi/service/java/com/android/server/wifi/util/ |
D | Matrix.java | 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() 208 for (int j = 0; j < that.m; j++) { in dot() 211 s += this.get(i, k) * that.get(k, j); in dot() 213 result.put(i, j, s); in dot() 240 for (int j = 0; j < m; j++) { in transpose() [all …]
|
/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/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/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/apct-tests/perftests/core/src/android/util/ |
D | ArraySetPerfTest.java | 99 for (int j = 0; j < SET_SIZE_SMALL; ++j) { in testRemoveIf_Small_Base() 100 set.add(j); in testRemoveIf_Small_Base() 113 for (int j = 0; j < SET_SIZE_SMALL; ++j) { in testRemoveIf_Small_RemoveNothing() 114 set.add(j); in testRemoveIf_Small_RemoveNothing() 128 for (int j = 0; j < SET_SIZE_SMALL; j++) { in testRemoveIf_Small_RemoveAll() 129 set.add(j); in testRemoveIf_Small_RemoveAll() 143 for (int j = 0; j < SET_SIZE_SMALL; ++j) { in testRemoveIf_Small_RemoveHalf() 144 set.add(j); in testRemoveIf_Small_RemoveHalf() 162 for (int j = 0; j < SET_SIZE_LARGE; ++j) { in testRemoveIf_Large_Base() 163 set.add(j); in testRemoveIf_Large_Base() [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/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/libeffects/lvm/lib/Reverb/src/ |
D | LVREV_Process.cpp | 176 LVM_INT16 j, size; in ReverbBlock() local 252 for(j = 0; j < NumberOfDelayLines; j++) in ReverbBlock() 254 pDelayLine = pPrivate->pScratchDelayLine[j]; in ReverbBlock() 260 MixSoft_2St_D32C31_SAT(&pPrivate->Mixer_APTaps[j], in ReverbBlock() 261 pPrivate->pOffsetA[j], in ReverbBlock() 262 pPrivate->pOffsetB[j], in ReverbBlock() 267 Copy_Float(&pPrivate->pDelay_T[j][NumSamples], in ReverbBlock() 268 pPrivate->pDelay_T[j], in ReverbBlock() 269 (LVM_INT16)(pPrivate->T[j] - NumSamples)); /* 32-bit data */ in ReverbBlock() 271 MixSoft_1St_D32C31_WRA(&pPrivate->Mixer_SGFeedback[j], in ReverbBlock() [all …]
|
/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()
|
D | rsMatrix4x4.cpp | 40 int i, j; in inverse() local 42 for (j = 0; j < 4; ++j) { in inverse() 47 int r0 = (j+1) % 4; in inverse() 48 int r1 = (j+2) % 4; in inverse() 49 int r2 = (j+3) % 4; in inverse() 56 float cofactor = (i+j) & 1 ? -minor : minor; in inverse() 58 result.m[4*i + j] = cofactor; in inverse() 82 int i, j; in inverseTranspose() local 84 for (j = 0; j < 4; ++j) { in inverseTranspose() 89 int r0 = (j+1) % 4; in inverseTranspose() [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/minikin/libs/minikin/ |
D | SparseBitSet.cpp | 75 for (uint32_t j = nonzeroPageEnd; j < startPage; j++) { in initFromRanges() local 76 mIndices[j] = mZeroPageIndex; in initFromRanges() 90 for (size_t j = 1; j < nElements - 1; j++) { in initFromRanges() local 91 mBitmaps[index + j] = kElAllOnes; in initFromRanges() 95 for (size_t j = startPage + 1; j < endPage + 1; j++) { in initFromRanges() local 96 mIndices[j] = (currentPage++) << (kLogValuesPerPage - kLogBitsPerEl); in initFromRanges() 118 for (uint32_t j = offset + 1; j < (1 << (kLogValuesPerPage - kLogBitsPerEl)); j++) { in nextSetBit() local 119 e = bitmap[j]; in nextSetBit() 121 return (fromIndex & ~kPageMask) + (j << kLogBitsPerEl) + CountLeadingZeros(e); in nextSetBit() 131 for (uint32_t j = 0; j < (1 << (kLogValuesPerPage - kLogBitsPerEl)); j++) { in nextSetBit() local [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("dstHw=" + dstHwAddr); 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 …]
|