/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/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/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 …]
|
D | db_feature_detection.cpp | 71 inline void db_IxIyRow_f(float *Ix,float *Iy,const float * const *img,int i,int j,int chunk_width) in db_IxIyRow_f() argument 77 Ix[c]=img[i][j+c-1]-img[i][j+c+1]; in db_IxIyRow_f() 78 Iy[c]=img[i-1][j+c]-img[i+1][j+c]; in db_IxIyRow_f() 84 inline void db_IxIyRow_u(int *dxx,const unsigned char * const *img,int i,int j,int nc) in db_IxIyRow_u() argument 89 r1=img[i-1]+j; r2=img[i]+j; r3=img[i+1]+j; in db_IxIyRow_u() 206 Ix=(img[i][j+c-1]-img[i][j+c+1])>>1; in db_IxIyRow_u() 207 Iy=(img[i-1][j+c]-img[i+1][j+c])>>1; in db_IxIyRow_u() 365 inline void db_HarrisStrength_row_f(float **s,float *gxx,float *gxy,float *gyy,int i,int j,int chun… in db_HarrisStrength_row_f() argument 378 s[i][j+c]=det-0.06f*trc*trc; in db_HarrisStrength_row_f() 1381 int i,j,right; in db_MaxSuppressFilterChunk_5x5_Aligned16_f() [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 …]
|
D | dbreg.cpp | 542 int j = 3*inlier_indices[i]; in Polish() local 543 m_polish_C[0]+=m_corners_ref[j]*m_corners_ref[j]; in Polish() 544 m_polish_C[1]+=m_corners_ref[j]*m_corners_ref[j+1]; in Polish() 545 m_polish_C[2]+=m_corners_ref[j]; in Polish() 546 m_polish_C[7]+=m_corners_ref[j+1]*m_corners_ref[j+1]; in Polish() 547 m_polish_C[8]+=m_corners_ref[j+1]; in Polish() 549 m_polish_D[0]+=m_corners_ref[j]*m_corners_ins[j]; in Polish() 550 m_polish_D[1]+=m_corners_ref[j+1]*m_corners_ins[j]; in Polish() 551 m_polish_D[2]+=m_corners_ins[j]; in Polish() 552 m_polish_D[3]+=m_corners_ref[j]*m_corners_ins[j+1]; in Polish() [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/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/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/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/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/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
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 …]
|
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 | Delaunay.cpp | 247 int i,j; in consolidateEdges() local 258 for (i=0,j=3; i<4; i++,j=rot(j)) { in consolidateEdges() 260 onext(rot(onext(e+i))) = (EdgePointer) (e+j); in consolidateEdges() 270 int CDelaunay::xcmpsp(int i, int j) in xcmpsp() argument 272 double d = sa[(i>=0)?sp[i]:sp1].X() - sa[(j>=0)?sp[j]:sp1].X(); in xcmpsp() 279 d = sa[(i>=0)?sp[i]:sp1].Y() - sa[(j>=0)?sp[j]:sp1].Y(); in xcmpsp() 289 int CDelaunay::ycmpsp(int i, int j) in ycmpsp() argument 291 double d = sa[(i>=0)?sp[i]:sp1].Y() - sa[(j>=0)?sp[j]:sp1].Y(); in ycmpsp() 298 d = sa[(i>=0)?sp[i]:sp1].X() - sa[(j>=0)?sp[j]:sp1].X(); in ycmpsp() 308 int CDelaunay::cmpev(int i, int j) in cmpev() argument [all …]
|
/packages/modules/ExtServices/src/android/ext/services/autofill/ |
D | EditDistanceScorer.java | 103 for (int j = 0; j <= n; j++) { in editDistance() 104 d[0][j] = j; in editDistance() 106 for (int j = 1; j <= n; j++) { in editDistance() 108 if (s.charAt(i - 1) == t.charAt(j - 1)) { in editDistance() 109 d[i][j] = d[i - 1][j - 1]; in editDistance() 111 int deletion = d[i - 1][j] + 1; in editDistance() 112 int insertion = d[i][j - 1] + 1; in editDistance() 113 int substitution = d[i - 1][j - 1] + 1; in editDistance() 114 d[i][j] = Math.min(deletion, Math.min(insertion, substitution)); in editDistance()
|
/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/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
D | CapsModeUtils.java | 150 int j = i; in getCapsMode() local 152 if (hasSpaceBefore) --j; in getCapsMode() 153 while (j > 0) { in getCapsMode() 154 prevChar = cs.charAt(j - 1); in getCapsMode() 156 j--; in getCapsMode() 158 if (j <= 0 || Character.isWhitespace(prevChar)) { in getCapsMode() 163 while (--j >= 0 && Character.isWhitespace(prevChar)) { in getCapsMode() 167 prevChar = cs.charAt(j); in getCapsMode() 179 if (i == j) { in getCapsMode() 202 for (; j > 0; j--) { in getCapsMode() [all …]
|
/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()
|
/packages/services/BuiltInPrintService/jni/lib/ |
D | plugin_db.c | 47 int i, j, index; in plugin_add() local 69 i = j = 0; in plugin_add() 73 strncpy(_plugin[index].mime_types[j++], mt[i], MAX_MIME_LENGTH); in plugin_add() 77 if (j < _MAX_MIME_TYPES) { in plugin_add() 78 _plugin[index].mime_types[j][0] = 0; in plugin_add() 83 i = j = 0; in plugin_add() 87 strncpy(_plugin[index].print_formats[j++], pf[i], MAX_MIME_LENGTH); in plugin_add() 91 if (j < _MAX_PRINT_FORMATS) { in plugin_add() 92 _plugin[index].print_formats[j][0] = 0; in plugin_add() 101 int i, j, k; in plugin_search() local [all …]
|
/packages/apps/DocumentsUI/tests/res/raw/ |
D | images_tar | 10 …?���(D��Ox��Z��O���U��5�T ��L|��{�I��Y�S;�T�A��ZY}����<c�uϠ���j�ڭx�Βή!n�%c�PA/�… 14 …ar�� f����Go�'�5���vb�E�%X_�k.�d�G�����n�����n@d}5NWH���L�y];�n�v�b��?��-�+'EB�8�u��j�MY 18 �D�W�*r���>j�{�a����ԁ=m���S��S� Ga��7�m�&?�~�4�eA�a�,�=҈�z+S�%EC}PZۯ��� 19 …j~��)�8�P����W]�wI|��iR6��x�O%���yo_$>��ȼ��ɪ��T��U���3�E��f����1qc�f����2�z�t�37��A�K�R�|… 26 �R�u�fo�?��J⁴���-{��87o(��d]aRK��]��� K纫�|T�s�->^v���������D�6�B�j���;���YN��7��J�ͥ�y… 27 …���oE���cK�67�Z?��F�D�=�t��>N��?�"�D6���P6f�u7/ac�(��������S::�n��'j's��;X�r��>����y�ڱ�6… 30 …j�G.z��l��3DN�1�����o��xY/4R��_H�i����6&��Q�xQ��+V٢����DF�U_���W��6W`~3&U��}���D�. �0�C��… 34 [�o�R(_V�'.��ߋ��Y�M�Gߪ��(j����B���� f�%�|��?�4��o f֘4����#C�,��NP1ip��4�2:��>vǝ�Ù@����Q�…
|
/packages/apps/Contacts/src/com/android/contacts/format/ |
D | FormatUtils.java | 78 int j; in overlapPoint() local 79 for (j = 0; j < size; j++) { in overlapPoint() 80 if (array1[i+j] != array2[j]) { in overlapPoint() 84 if (j == size) { in overlapPoint() 165 int j; in indexOfWordPrefix() local 166 for (j = 0; j < prefixLength; j++) { in indexOfWordPrefix() 167 if (Character.toUpperCase(text.charAt(i + j)) != prefix.charAt(j)) { in indexOfWordPrefix() 171 if (j == prefixLength) { in indexOfWordPrefix()
|