/packages/apps/Email/src/org/apache/commons/io/ |
D | HexDump.java | 75 for (int j = index; j < data.length; j += 16) { in dump() 76 int chars_read = data.length - j; in dump() 84 dump(buffer, data[k + j]); in dump() 91 if ((data[k + j] >= ' ') && (data[k + j] < 127)) { in dump() 92 buffer.append((char) data[k + j]); in dump() 128 for (int j = 0; j < 8; j++) { in dump() 130 .append(_hexcodes[((int) (value >> _shifts[j])) & 15]); in dump() 143 for (int j = 0; j < 2; j++) { in dump() 144 _cbuffer.append(_hexcodes[(value >> _shifts[j + 6]) & 15]); in dump()
|
/packages/apps/Camera/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/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/Gallery2/src/com/android/gallery3d/data/ |
D | FilterDeleteSet.java | 121 int j = i; in getMediaItem() local 122 for (; j < n; j++) { in getMediaItem() 123 Deletion d = mCurrent.get(j); in getMediaItem() 124 if (d.index - j > end) break; in getMediaItem() 128 ArrayList<MediaItem> base = mBaseSet.getMediaItem(start + i, count + (j - i)); in getMediaItem() 131 for (int m = j - 1; m >= i; m--) { in getMediaItem() 153 int j; in reload() local 154 for (j = 0; j < n; j++) { in reload() 155 if (mCurrent.get(j).path == r.path) break; in reload() 157 if (j == n) { in reload() [all …]
|
/packages/apps/Camera/jni/feature_stab/db_vlvm/ |
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_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_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_random.h | 77 int temp,temp2,i,j; in db_RandomSample() local 83 for(j=0;j<i;j++) in db_RandomSample() 85 if(s[j]<=temp) temp++; in db_RandomSample() 90 temp=s[j]; in db_RandomSample() 91 s[j]=temp2; in db_RandomSample()
|
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/ |
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_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_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_random.h | 77 int temp,temp2,i,j; in db_RandomSample() local 83 for(j=0;j<i;j++) in db_RandomSample() 85 if(s[j]<=temp) temp++; in db_RandomSample() 90 temp=s[j]; in db_RandomSample() 91 s[j]=temp2; in db_RandomSample()
|
/packages/inputmethods/LatinIME/native/jni/src/ |
D | proximity_info.cpp | 192 for (int j = 0; j < additionalProximitySize; ++j) { in calculateNearbyKeyCodes() local 193 const int32_t ac = additionalProximityChars[j]; in calculateNearbyKeyCodes() 235 for (int j = 0; j < MAX_PROXIMITY_CHARS_SIZE; ++j) { in setInputParams() local 236 int icc = mInputCodes[i * MAX_PROXIMITY_CHARS_SIZE + j]; in setInputParams() 237 int icfjc = inputCodes[i * MAX_PROXIMITY_CHARS_SIZE + j]; in setInputParams() 286 for (int j = 0; j < MAX_PROXIMITY_CHARS_SIZE && proximityChars[j] > 0; ++j) { in setInputParams() local 287 const int currentChar = proximityChars[j]; in setInputParams() 292 mNormalizedSquaredDistances[i * MAX_PROXIMITY_CHARS_SIZE + j] = in setInputParams() 295 mNormalizedSquaredDistances[i * MAX_PROXIMITY_CHARS_SIZE + j] = (j == 0) in setInputParams() 300 AKLOGI("--- Proximity (%d) = %c", j, currentChar); in setInputParams() [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 …]
|
/packages/apps/Contacts/src/com/android/contacts/format/ |
D | FormatUtils.java | 80 int j; in overlapPoint() local 81 for (j = 0; j < size; j++) { in overlapPoint() 82 if (array1[i+j] != array2[j]) { in overlapPoint() 86 if (j == size) { in overlapPoint() 167 int j; in indexOfWordPrefix() local 168 for (j = 0; j < prefixLength; j++) { in indexOfWordPrefix() 169 if (Character.toUpperCase(text.charAt(i + j)) != prefix[j]) { in indexOfWordPrefix() 173 if (j == prefixLength) { in indexOfWordPrefix()
|
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/ |
D | ndfdic.c | 81 NJ_UINT16 i, j; in search_data() local 107 for (j = 0; j < i; j++) { in search_data() 156 NJ_UINT16 j, char_len; in convert_to_yomi() local 182 for (j = 0; j < char_len; j++) { in convert_to_yomi() 183 NJ_CHAR_COPY(wky, wkc + idx + j); in convert_to_yomi() 206 NJ_UINT16 ylen, dic_ylen, j, size; in yomi_strcmp_forward() local 224 for (j = 0; j < dic_ylen; j++) { in yomi_strcmp_forward() 361 NJ_UINT32 j; in njd_f_get_stroke() local 384 for (j = 0; j < len; j++) { in njd_f_get_stroke() 407 NJ_UINT16 len, j; in njd_f_get_candidate() local [all …]
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/util/ |
D | NameDistance.java | 124 for (int j = from; j < to; j++) { in getDistance() 125 if (!mMatchFlags2[j] && c1 == array2[j]) { in getDistance() 126 mMatchFlags1[i] = mMatchFlags2[j] = true; in getDistance() 138 int j = 0; in getDistance() local 141 while (!mMatchFlags2[j]) { in getDistance() 142 j++; in getDistance() 144 if (array1[i] != array2[j]) { in getDistance() 147 j++; in getDistance()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
D | ForgettingCurveTests.java | 34 for (int j = 0; j < (UserHistoryForgettingCurveUtils.COUNT_MAX + 1); ++j) { in testFcToFreq() 42 for (int j = 0; j < (UserHistoryForgettingCurveUtils.COUNT_MAX + 1); ++j) { in testFcToFreq() 49 for (int j = 0; j < (UserHistoryForgettingCurveUtils.ELAPSED_TIME_MAX + 1); ++j) { in testFcToFreq()
|
/packages/wallpapers/NoiseField/src/com/android/noisefield/ |
D | noisefield.rs | 87 int i, j, k; 93 for (j = 0; j < 2; j++) 94 g2[i][j] = (float)(rsRand(B * 2) - B) / B; 97 for (j = 0; j < 3; j++) 98 g3[i][j] = (float)(rsRand(B * 2) - B) / B; 104 p[i] = p[j = rsRand(B)]; 105 p[j] = k; 111 for (j = 0; j < 2; j++) 112 g2[B + i][j] = g2[i][j]; 113 for (j = 0; j < 3; j++) [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/Camera/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/Camera/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 int t1 = in->ptr[j][i]; in BorderExpandOdd() 160 int t2 = in->ptr[j+1][i]; in BorderExpandOdd() 162 ((6 * t1 + (in->ptr[j-1][i] + t2) + 4) >> 3); in BorderExpandOdd() 171 for (j = -out->border; j < limit; j++) { in BorderExpandOdd() 174 int t1 = scr->ptr[j][i]; in BorderExpandOdd() [all …]
|
/packages/apps/Music/src/com/android/music/ |
D | SortCursor.java | 74 for (int j = 0 ; j < length; j++) { in SortCursor() 75 if (mCursors[j] == null || mCursors[j].isAfterLast()) in SortCursor() 77 String current = mCursors[j].getString(mSortColumns[j]); in SortCursor() 80 mCursor = mCursors[j]; in SortCursor() 157 for (int j = 0 ; j < length; j++) { in onMove() 158 if (mCursors[j] == null || mCursors[j].isAfterLast()) { in onMove() 161 String current = mCursors[j].getString(mSortColumns[j]); in onMove() 164 smallestIdx = j; in onMove()
|
/packages/apps/Mms/src/com/android/mms/dom/smil/ |
D | ElementParallelTimeContainerImpl.java | 92 for (int j = 0; j < endTimeList.getLength(); ++j) { in getImplicitDuration() 93 Time endTime = endTimeList.item(j); in getImplicitDuration() 125 for (int j = 0; j < len; ++j) { in getActiveChildrenAt() 126 Time begin = beginList.item(j); in getActiveChildrenAt() 138 for (int j = 0; j < len; ++j) { in getActiveChildrenAt() 139 Time end = endList.item(j); in getActiveChildrenAt()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/ |
D | Hex.java | 61 int j = 0; in encodeHex() local 68 cArray[j++] = FIRST_CHAR[index]; in encodeHex() 69 cArray[j++] = SECOND_CHAR[index]; in encodeHex() 72 return new String(cArray, 0, j); in encodeHex() 87 for (int i = 0, j = 0; j < length; i++) { in decodeHex() 88 int c1 = hexString.charAt(j++); in decodeHex() 100 int c2 = hexString.charAt(j++); in decodeHex()
|