/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/converter/ |
D | GenericDocumentToProtoConverter.java | 70 for (int j = 0; j < stringValues.length; j++) { in toDocumentProto() 71 propertyProto.addStringValues(stringValues[j]); in toDocumentProto() 75 for (int j = 0; j < longValues.length; j++) { in toDocumentProto() 76 propertyProto.addInt64Values(longValues[j]); in toDocumentProto() 80 for (int j = 0; j < doubleValues.length; j++) { in toDocumentProto() 81 propertyProto.addDoubleValues(doubleValues[j]); in toDocumentProto() 85 for (int j = 0; j < booleanValues.length; j++) { in toDocumentProto() 86 propertyProto.addBooleanValues(booleanValues[j]); in toDocumentProto() 90 for (int j = 0; j < bytesValues.length; j++) { in toDocumentProto() 91 propertyProto.addBytesValues(ByteString.copyFrom(bytesValues[j])); in toDocumentProto() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/ |
D | MatrixFit.java | 63 for (int j = 0; j < mDimension; j++) { in fit() 64 q[i][j] = from[i][j]; in fit() 70 for (int j = 0; j < mDimension; j++) { in fit() 71 p[i][j] = to[i][j]; in fit() 77 for (int j = 0; j < mDimension; j++) { in fit() 84 c[k][j] += qt * p[i][j]; in fit() 98 for (int j = 0; j < mDimension + 1; j++) { in fit() 99 Q[i][j] += qt[i] * qt[j]; in fit() 106 for (int j = 0; j < mDimension + 1; j++) { in fit() 107 mMatrix[i][j] = Q[i][j]; in fit() [all …]
|
/packages/modules/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 …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | MatrixUtils.java | 57 for (int j = 0; j < size; ++j) { in findPivotAndSwapRow() 58 final float temp0 = squareMatrix0[ip][j]; in findPivotAndSwapRow() 59 squareMatrix0[ip][j] = squareMatrix0[row][j]; in findPivotAndSwapRow() 60 squareMatrix0[row][j] = temp0; in findPivotAndSwapRow() 61 final float temp1 = squareMatrix1[ip][j]; in findPivotAndSwapRow() 62 squareMatrix1[ip][j] = squareMatrix1[row][j]; in findPivotAndSwapRow() 63 squareMatrix1[row][j] = temp1; in findPivotAndSwapRow() 78 for (int j = 0; j < size; ++j) { in sweep() 79 squareMatrix0[row][j] /= pivot; in sweep() 80 squareMatrix1[row][j] /= pivot; in sweep() [all …]
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/utils/ |
D | edit_distance.h | 42 for (int j = 0; j < afterLength; ++j) { in getEditDistance() local 43 dp[(afterLength + 1) * (i + 1) + (j + 1)] = std::min( in getEditDistance() 44 dp[(afterLength + 1) * i + (j + 1)] + policy->getInsertionCost(i, j), in getEditDistance() 46 dp[(afterLength + 1) * (i + 1) + j] + policy->getDeletionCost(i, j), in getEditDistance() 47 dp[(afterLength + 1) * i + j] + policy->getSubstitutionCost(i, j))); in getEditDistance() 48 if (policy->allowTransposition(i, j)) { in getEditDistance() 49 dp[(afterLength + 1) * (i + 1) + (j + 1)] = std::min( in getEditDistance() 50 dp[(afterLength + 1) * (i + 1) + (j + 1)], in getEditDistance() 51 dp[(afterLength + 1) * (i - 1) + (j - 1)] in getEditDistance() 52 + policy->getTranspositionCost(i, j)); in getEditDistance() [all …]
|
/packages/modules/Bluetooth/system/bta/dm/ |
D | bta_dm_pm.cc | 88 for (int j = 0; j < BTA_DM_PM_MODE_TIMER_MAX; j++) in bta_dm_init_pm() local 89 bta_dm_cb.pm_timer[i].srvc_id[j] = BTA_ID_MAX; in bta_dm_init_pm() 114 for (int j = 0; j < BTA_DM_PM_MODE_TIMER_MAX; j++) { in bta_dm_disable_pm() local 115 bta_dm_pm_stop_timer_by_index(&bta_dm_cb.pm_timer[i], j); in bta_dm_disable_pm() 116 bta_dm_cb.pm_timer[i].pm_action[j] = BTA_DM_PM_NO_ACTION; in bta_dm_disable_pm() 155 for (int j = 0; j < BTA_DM_PM_MODE_TIMER_MAX; j++) { in bta_dm_pm_stop_timer() local 156 bta_dm_pm_stop_timer_by_index(&bta_dm_cb.pm_timer[i], j); in bta_dm_pm_stop_timer() 244 for (int j = 0; j < BTA_DM_PM_MODE_TIMER_MAX; j++) { in bta_dm_pm_stop_timer_by_srvc_id() local 245 if (bta_dm_cb.pm_timer[i].srvc_id[j] == srvc_id) { in bta_dm_pm_stop_timer_by_srvc_id() 246 bta_dm_pm_stop_timer_by_index(&bta_dm_cb.pm_timer[i], j); in bta_dm_pm_stop_timer_by_srvc_id() [all …]
|
/packages/apps/LegacyCamera/jni/feature_stab/src/dbreg/ |
D | dbreg.h | 450 for ( int j = 0; j < h; ++j ) in db_GenerateHomographyLut() local 453 x[1] = double(j); in db_GenerateHomographyLut() 458 lut_x[j][i] = float(xb[0]); in db_GenerateHomographyLut() 459 lut_y[j][i] = float(xb[1]); in db_GenerateHomographyLut() 487 for ( int j = 0; j < h; ++j ) in db_WarpImageLutFast_rgb() local 489 xd = static_cast<unsigned int>(lut_x[j][i]); in db_WarpImageLutFast_rgb() 490 yd = static_cast<unsigned int>(lut_y[j][i]); in db_WarpImageLutFast_rgb() 494 dst[j][3*i ] = 0; in db_WarpImageLutFast_rgb() 495 dst[j][3*i+1] = 0; in db_WarpImageLutFast_rgb() 496 dst[j][3*i+2] = 0; in db_WarpImageLutFast_rgb() [all …]
|
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/ |
D | db_rob_image_homography.cpp | 196 int i,j; in db_RobCamRotation_Jacobians() local 204 j=(i<<1); in db_RobCamRotation_Jacobians() 205 db_DerivativeCauchyInhomRotationReprojection(Jf_dx,f,xp_i+j,H,x_i+j,one_over_scale2); in db_RobCamRotation_Jacobians() 283 int i,j,t; in db_RobImageHomographyFetchJacobian() local 292 for(j=i;j<n;j++) in db_RobImageHomographyFetchJacobian() 294 t1[j]=t2[fetch_vector[j]]; in db_RobImageHomographyFetchJacobian() 311 inline void db_RobImageHomographyJH_Js(double **JE_dx_ref,int j,double H[9]) in db_RobImageHomographyJH_Js() argument 316 JE_dx_ref[0][j]=H[0]; in db_RobImageHomographyJH_Js() 317 JE_dx_ref[1][j]=H[1]; in db_RobImageHomographyJH_Js() 318 JE_dx_ref[2][j]=0; in db_RobImageHomographyJH_Js() [all …]
|
D | db_utilities_indexing.h | 43 int i,j; in db_SymmetricExtendUpperToLower() local 44 for(i=1;i<rows;i++) for(j=0;j<i;j++) A[i][j]=A[j][i]; in db_SymmetricExtendUpperToLower() 49 int i,j; in db_MultiplyMatrixVectorAtb() local 55 for(j=0;j<acols;j++) acc+=At[j][i]*b[j]; in db_MultiplyMatrixVectorAtb() 62 int i,j,k; in db_MultiplyMatricesAB() local 65 for(i=0;i<arows;i++) for(j=0;j<bcols;j++) in db_MultiplyMatricesAB() 68 for(k=0;k<acols;k++) acc+=A[i][k]*B[k][j]; in db_MultiplyMatricesAB() 69 C[i][j]=acc; in db_MultiplyMatricesAB() 75 int i,j,k; in db_UpperMultiplyMatricesAtB() local 78 for(i=0;i<arows;i++) for(j=i;j<bcols;j++) in db_UpperMultiplyMatricesAtB() [all …]
|
D | db_utilities.cpp | 109 for ( int j = 0; j < h; ++j ) in db_WarpImageLutFast_u() local 113 xd = (unsigned int)(lut_x[j][i]); in db_WarpImageLutFast_u() 114 yd = (unsigned int)(lut_y[j][i]); in db_WarpImageLutFast_u() 117 dst[j][i] = 0; in db_WarpImageLutFast_u() 119 dst[j][i] = src[yd][xd]; in db_WarpImageLutFast_u() 130 for ( int j = 0; j < h; ++j ) in db_WarpImageLutBilinear_u() local 132 xd = static_cast<double>(lut_x[j][i]); in db_WarpImageLutBilinear_u() 133 yd = static_cast<double>(lut_y[j][i]); in db_WarpImageLutBilinear_u() 136 dst[j][i] = 0; in db_WarpImageLutBilinear_u() 138 dst[j][i] = db_BilinearInterpolation(yd, xd, src); in db_WarpImageLutBilinear_u() [all …]
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/ |
D | MpegTsSampleExtractor.java | 297 int j = 0; in mayParseClosedCaption() local 298 while (j < size - PATTERN_LENGTH) { in mayParseClosedCaption() 300 if (mBuffer[j] == 0 in mayParseClosedCaption() 301 && mBuffer[j + 1] == 0 in mayParseClosedCaption() 302 && mBuffer[j + 2] == 1 in mayParseClosedCaption() 303 && (mBuffer[j + 3] & 0xff) == 0xb2) { in mayParseClosedCaption() 306 if (mBuffer[j + 4] == 'G' in mayParseClosedCaption() 307 && mBuffer[j + 5] == 'A' in mayParseClosedCaption() 308 && mBuffer[j + 6] == '9' in mayParseClosedCaption() 309 && mBuffer[j + 7] == '4' in mayParseClosedCaption() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/scanner/ |
D | ChannelHelper.java | 151 for (int j = 0; j < scanSettings.channels.length; ++j) { in addChannels() 152 addChannel(scanSettings.channels[j].frequency); in addChannels() 173 for (int j = 0; j < bucketSettings.channels.length; ++j) { in addChannels() 174 addChannel(bucketSettings.channels[j].frequency); in addChannels() 186 for (int j = 0; j < scanSettings.channels.length; ++j) { in containsSettings() 187 if (!containsChannel(scanSettings.channels[j].frequency)) { in containsSettings() 202 for (int j = 0; j < scanSettings.channels.length; ++j) { in partiallyContainsSettings() 203 if (containsChannel(scanSettings.channels[j].frequency)) { in partiallyContainsSettings() 219 for (int j = 0; j < scanSettings.channels.length; ++j) { in getMissingChannelsFromSettings() 220 if (!containsChannel(scanSettings.channels[j].frequency)) { in getMissingChannelsFromSettings() [all …]
|
/packages/modules/Bluetooth/system/embdrv/lc3/src/ |
D | mdct.c | 105 for (int j = 0; j < n3; j++, x0++, x1++, x2++) { in fft_bf3() local 107 y0[j].re = x0->re + x1->re * w0[j][0].re - x1->im * w0[j][0].im in fft_bf3() 108 + x2->re * w0[j][1].re - x2->im * w0[j][1].im; in fft_bf3() 110 y0[j].im = x0->im + x1->im * w0[j][0].re + x1->re * w0[j][0].im in fft_bf3() 111 + x2->im * w0[j][1].re + x2->re * w0[j][1].im; in fft_bf3() 113 y1[j].re = x0->re + x1->re * w1[j][0].re - x1->im * w1[j][0].im in fft_bf3() 114 + x2->re * w1[j][1].re - x2->im * w1[j][1].im; in fft_bf3() 116 y1[j].im = x0->im + x1->im * w1[j][0].re + x1->re * w1[j][0].im in fft_bf3() 117 + x2->im * w1[j][1].re + x2->re * w1[j][1].im; in fft_bf3() 119 y2[j].re = x0->re + x1->re * w2[j][0].re - x1->im * w2[j][0].im in fft_bf3() [all …]
|
D | mdct_neon.h | 124 for (int j, i = 0; i < n; i++, in neon_fft_bf3() local 129 for (j = 0; j < (n3 >> 1); j++, in neon_fft_bf3() 142 wn = vld2q_f32( (float *)(w0_ptr + 2*j) ); in neon_fft_bf3() 148 vst1q_f32( (float *)(y0_ptr + 2*j), yn ); in neon_fft_bf3() 150 wn = vld2q_f32( (float *)(w1_ptr + 2*j) ); in neon_fft_bf3() 156 vst1q_f32( (float *)(y1_ptr + 2*j), yn ); in neon_fft_bf3() 158 wn = vld2q_f32( (float *)(w2_ptr + 2*j) ); in neon_fft_bf3() 164 vst1q_f32( (float *)(y2_ptr + 2*j), yn ); in neon_fft_bf3() 182 wn = vld2_f32( (float *)(w0_ptr + 2*j) ); in neon_fft_bf3() 188 vst1_f32( (float *)(y0_ptr + 2*j), yn ); in neon_fft_bf3() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | FilterDeleteSet.java | 126 int j = i; in getMediaItem() local 127 for (; j < n; j++) { in getMediaItem() 128 Deletion d = mCurrent.get(j); in getMediaItem() 129 if (d.index - j > end) break; in getMediaItem() 133 ArrayList<MediaItem> base = mBaseSet.getMediaItem(start + i, count + (j - i)); in getMediaItem() 136 for (int m = j - 1; m >= i; m--) { in getMediaItem() 158 int j; in reload() local 159 for (j = 0; j < n; j++) { in reload() 160 if (mCurrent.get(j).path == r.path) break; in reload() 162 if (j == n) { in reload() [all …]
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/ |
D | MpegTsSampleExtractor.java | 309 int j = 0; in mayParseClosedCaption() local 310 while (j < size - PATTERN_LENGTH) { in mayParseClosedCaption() 312 if (mBuffer[j] == 0 in mayParseClosedCaption() 313 && mBuffer[j + 1] == 0 in mayParseClosedCaption() 314 && mBuffer[j + 2] == 1 in mayParseClosedCaption() 315 && (mBuffer[j + 3] & 0xff) == 0xb2) { in mayParseClosedCaption() 318 if (mBuffer[j + 4] == 'G' in mayParseClosedCaption() 319 && mBuffer[j + 5] == 'A' in mayParseClosedCaption() 320 && mBuffer[j + 6] == '9' in mayParseClosedCaption() 321 && mBuffer[j + 7] == '4' in mayParseClosedCaption() [all …]
|
/packages/modules/AppSearch/framework/java/external/android/app/appsearch/util/ |
D | BundleUtil.java | 192 for (int j = 0; j < array.length; j++) { in deepHashCode() 193 if (array[j] instanceof Bundle) { in deepHashCode() 194 innerHashCodes[j] = deepHashCode((Bundle) array[j]); in deepHashCode() 195 } else if (array[j] != null) { in deepHashCode() 196 innerHashCodes[j] = array[j].hashCode(); in deepHashCode() 203 for (int j = 0; j < innerHashCodes.length; j++) { in deepHashCode() 204 Object item = list.get(j); in deepHashCode() 206 innerHashCodes[j] = deepHashCode((Bundle) item); in deepHashCode() 208 innerHashCodes[j] = item.hashCode(); in deepHashCode() 215 for (int j = 0; j < array.size(); j++) { in deepHashCode() [all …]
|
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
D | Pyramid.cpp | 49 for (int j = height + border2; j--; y++, position += curr->pitch) { in allocatePyramidPacked() local 80 for (int j = height + border2; j--; y++, position += img->pitch) { in allocateImage() local 151 int i,j; in BorderExpandOdd() local 155 for (j = -off; j < in->height + off; j++) { in BorderExpandOdd() 156 int j2 = j * 2; in BorderExpandOdd() 159 ((6 * in->ptr[j][i] + (in->ptr[j-1][i] + in->ptr[j+1][i]) + 4) >> 3); in BorderExpandOdd() 160 scr->ptr[j2+1][i] = (short)((in->ptr[j][i] + in->ptr[j+1][i] + 1) >> 1); in BorderExpandOdd() 169 for (j = -out->border; j < out->height + out->border; j++) { in BorderExpandOdd() 170 out->ptr[j][i2] = (short) (out->ptr[j][i2] + in BorderExpandOdd() 171 (mode * ((6 * scr->ptr[j][i] + in BorderExpandOdd() [all …]
|
D | Blend.cpp | 593 int i, j, k; in CropFinalMosaic() local 604 for (j = cropping_rect.top; j <= cropping_rect.bottom; j++) in CropFinalMosaic() 608 yimg[k] = yimg[j*imgMos.Y.width+i]; in CropFinalMosaic() 612 for (j = cropping_rect.top; j <= cropping_rect.bottom; j++) in CropFinalMosaic() 616 yimg[k] = vimg[j*imgMos.Y.width+i]; in CropFinalMosaic() 620 for (j = cropping_rect.top; j <= cropping_rect.bottom; j++) in CropFinalMosaic() 624 yimg[k] = uimg[j*imgMos.Y.width+i]; in CropFinalMosaic() 653 for(int j=0; j<imgMos.Y.height; j++) in PerformFinalBlending() local 655 b[j] = new bool[imgMos.Y.width]; in PerformFinalBlending() 659 int i, j; in PerformFinalBlending() local [all …]
|
/packages/modules/ExtServices/java/src/android/ext/services/autofill/ |
D | EditDistanceScorer.java | 104 for (int j = 0; j <= n; j++) { in editDistance() 105 d[0][j] = j; in editDistance() 107 for (int j = 1; j <= n; j++) { in editDistance() 109 if (s.charAt(i - 1) == t.charAt(j - 1)) { in editDistance() 110 d[i][j] = d[i - 1][j - 1]; in editDistance() 112 int deletion = d[i - 1][j] + 1; in editDistance() 113 int insertion = d[i][j - 1] + 1; in editDistance() 114 int substitution = d[i - 1][j - 1] + 1; in editDistance() 115 d[i][j] = Math.min(deletion, Math.min(insertion, substitution)); in editDistance()
|
/packages/apps/LegacyCamera/jni/ |
D | feature_mos_jni.cpp | 129 for (int j = 0; j < input_h; j += H2L_FACTOR) in GenerateQuarterResImagePlanar() local 131 imp = im + j * input_w; in GenerateQuarterResImagePlanar() 132 outp = out + (j / H2L_FACTOR) * (input_w / H2L_FACTOR); in GenerateQuarterResImagePlanar() 141 for (int j = input_h; j < 2 * input_h; j += H2L_FACTOR) in GenerateQuarterResImagePlanar() local 143 imp = im + j * input_w; in GenerateQuarterResImagePlanar() 144 outp = out + (j / H2L_FACTOR) * (input_w / H2L_FACTOR); in GenerateQuarterResImagePlanar() 153 for (int j = 2 * input_h; j < 3 * input_h; j += H2L_FACTOR) in GenerateQuarterResImagePlanar() local 155 imp = im + j * input_w; in GenerateQuarterResImagePlanar() 156 outp = out + (j / H2L_FACTOR) * (input_w / H2L_FACTOR); in GenerateQuarterResImagePlanar() 217 for (int j = 0, yp = 0; j < height; j++) in YUV420toYVU24() local [all …]
|
/packages/apps/Test/connectivity/sl4n/rapidjson/test/perftest/ |
D | misctest.cpp | 225 uint64_t i = 1, j; in TEST_F() local 229 j = i; in TEST_F() 231 } while (j < i); in TEST_F() 765 for (size_t j = 0; j < randvalCount; j++) { in itoa_Writer_StringBufferVerify() local 767 sprintf(buffer, "%d", randval[j]); in itoa_Writer_StringBufferVerify() 768 writer.WriteInt(randval[j]); in itoa_Writer_StringBufferVerify() 777 for (size_t j = 0; j < randvalCount; j++) { in itoa_Writer_InsituStringStreamVerify() local 779 sprintf(buffer, "%d", randval[j]); in itoa_Writer_InsituStringStreamVerify() 784 writer.WriteInt(randval[j]); in itoa_Writer_InsituStringStreamVerify() 799 for (size_t j = 0; j < randvalCount; j++) { in itoa_Writer_StringBuffer() local [all …]
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/ |
D | proximity_info_state_utils.cpp | 241 for (int j = index; j < forwardNumPoints; ++j) { in refreshSpeedRates() local 242 if (i < sampledInputSize - 1 && j >= (*sampledInputIndice)[i + 1]) { in refreshSpeedRates() 245 length += GeometryUtils::getDistanceInt(xCoordinates[j], yCoordinates[j], in refreshSpeedRates() 246 xCoordinates[j + 1], yCoordinates[j + 1]); in refreshSpeedRates() 247 duration += times[j + 1] - times[j]; in refreshSpeedRates() 251 for (int j = index - 1; j >= backwardNumPoints; --j) { in refreshSpeedRates() local 252 if (i > 0 && j < (*sampledInputIndice)[i - 1]) { in refreshSpeedRates() 256 length += GeometryUtils::getDistanceInt(xCoordinates[j], yCoordinates[j], in refreshSpeedRates() 257 xCoordinates[j + 1], yCoordinates[j + 1]); in refreshSpeedRates() 258 duration += times[j + 1] - times[j]; in refreshSpeedRates() [all …]
|
/packages/apps/Gallery2/jni/filters/ |
D | edge.c | 37 int j, k; in JNIFUNCF() local 48 for (j = 3; j < buf_len; j+=4) { in JNIFUNCF() 49 *(buf + j) = 255; // set initial alphas in JNIFUNCF() 53 for (j = 1; j < height - 1; j++) { in JNIFUNCF() 56 int loc = j * row_stride + k * 4; in JNIFUNCF() 109 if (j - 1 >= 0) { in JNIFUNCF() 110 memcpy((dst + row_stride * (j - 1)), (buf + buf_row_ring), row_stride * sizeof(char)); in JNIFUNCF() 122 for (j = 3; j < row_stride; j+=4) { in JNIFUNCF() 123 *(dst + last_row + j) = 255; // set alphas in JNIFUNCF()
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/jpegstream/ |
D | StreamUtils.java | 37 for (int i = 0, j = 0; i < output.length; i++, j += 4) { in byteToIntArray() 38 output[i] = ((input[j] & 0xFF) << 24) | ((input[j + 1] & 0xFF) << 16) in byteToIntArray() 39 | ((input[j + 2] & 0xFF) << 8) | ((input[j + 3] & 0xFF)); in byteToIntArray() 42 for (int i = 0, j = 0; i < output.length; i++, j += 4) { in byteToIntArray() 43 output[i] = ((input[j + 3] & 0xFF) << 24) | ((input[j + 2] & 0xFF) << 16) in byteToIntArray() 44 | ((input[j + 1] & 0xFF) << 8) | ((input[j] & 0xFF)); in byteToIntArray()
|