Home
last modified time | relevance | path

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

123456

/packages/apps/Email/emailcommon/src/org/apache/commons/io/
DHexDump.java75 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/
Ddbreg.h450 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 …]
Ddbreg.cpp542 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/Camera/jni/feature_stab/db_vlvm/
Ddb_utilities.cpp109 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 …]
Ddb_utilities_indexing.h43 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 …]
Ddb_rob_image_homography.cpp196 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 …]
Ddb_utilities_random.h77 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/Contacts/src/com/android/contacts/format/
DFormatUtils.java79 int j; in overlapPoint() local
80 for (j = 0; j < size; j++) { in overlapPoint()
81 if (array1[i+j] != array2[j]) { in overlapPoint()
85 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[j]) { in indexOfWordPrefix()
171 if (j == prefixLength) { in indexOfWordPrefix()
/packages/apps/Camera/jni/feature_mos/src/mosaic/
DPyramid.cpp49 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 …]
DBlend.cpp562 int i, j, k; in CropFinalMosaic() local
573 for (j = cropping_rect.top; j <= cropping_rect.bottom; j++) in CropFinalMosaic()
577 yimg[k] = yimg[j*imgMos.Y.width+i]; in CropFinalMosaic()
581 for (j = cropping_rect.top; j <= cropping_rect.bottom; j++) in CropFinalMosaic()
585 yimg[k] = vimg[j*imgMos.Y.width+i]; in CropFinalMosaic()
589 for (j = cropping_rect.top; j <= cropping_rect.bottom; j++) in CropFinalMosaic()
593 yimg[k] = uimg[j*imgMos.Y.width+i]; in CropFinalMosaic()
622 for(int j=0; j<imgMos.Y.height; j++) in PerformFinalBlending() local
624 b[j] = new bool[imgMos.Y.width]; in PerformFinalBlending()
628 int i, j; in PerformFinalBlending() local
[all …]
DDelaunay.cpp247 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/providers/ContactsProvider/src/com/android/providers/contacts/
DNameDistance.java124 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()
DHex.java61 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()
/packages/wallpapers/NoiseField/src/com/android/noisefield/
Dnoisefield.rs85 int i, j, k;
92 for (j = 0; j < 2; j++)
93 g2[i][j] = (float)(rsRand(B * 2) - B) / B;
96 for (j = 0; j < 3; j++)
97 g3[i][j] = (float)(rsRand(B * 2) - B) / B;
103 p[i] = p[j = rsRand(B)];
104 p[j] = k;
110 for (j = 0; j < 2; j++)
111 g2[B + i][j] = g2[i][j];
112 for (j = 0; j < 3; j++)
[all …]
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/
Dndfdic.c81 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/apps/Camera/jni/
Dfeature_mos_jni.cpp129 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/Mms/src/com/android/mms/dom/smil/
DElementParallelTimeContainerImpl.java92 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/apps/Music/src/com/android/music/
DSortCursor.java74 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/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DBinaryDictionary.java152 for (int j = 0; j < count; ++j) { in getBigrams()
153 if (mBigramScores[j] < 1) break; in getBigrams()
154 final int start = j * MAX_WORD_LENGTH; in getBigrams()
160 callback.addWord(mOutputChars_bigrams, start, len, mBigramScores[j], in getBigrams()
172 for (int j = 0; j < count; ++j) { in getWords()
173 if (mScores[j] < 1) break; in getWords()
174 final int start = j * MAX_WORD_LENGTH; in getWords()
180 callback.addWord(mOutputChars, start, len, mScores[j], mDicTypeId, in getWords()
DUtils.java332 for (int j = 0; j <= tl; j++) { in editDistance()
333 dp[0][j] = j; in editDistance()
336 for (int j = 0; j < tl; ++j) { in editDistance()
338 final char tc = Character.toLowerCase(t.charAt(j)); in editDistance()
340 dp[i + 1][j + 1] = Math.min( in editDistance()
341 dp[i][j + 1] + 1, Math.min(dp[i + 1][j] + 1, dp[i][j] + cost)); in editDistance()
343 if (i > 0 && j > 0 in editDistance()
344 && sc == Character.toLowerCase(t.charAt(j - 1)) in editDistance()
346 dp[i + 1][j + 1] = Math.min(dp[i + 1][j + 1], dp[i - 1][j - 1] + cost); in editDistance()
354 for (int j = 0; j < dp[i].length; ++j) { in editDistance()
[all …]
/packages/inputmethods/LatinIME/native/src/
Dproximity_info.cpp133 for (int j = 0; j < MAX_PROXIMITY_CHARS_SIZE && proximityChars[j] > 0; ++j) { in setInputParams() local
134 const int currentChar = proximityChars[j]; in setInputParams()
138 mNormalizedSquaredDistances[i * MAX_PROXIMITY_CHARS_SIZE + j] = in setInputParams()
141 mNormalizedSquaredDistances[i * MAX_PROXIMITY_CHARS_SIZE + j] = (j == 0) in setInputParams()
252 int j = 1; in getMatchedProximityId() local
253 while (j < MAX_PROXIMITY_CHARS_SIZE && currentChars[j] > 0) { in getMatchedProximityId()
254 const bool matched = (currentChars[j] == baseLowerC || currentChars[j] == c); in getMatchedProximityId()
257 *proximityIndex = j; in getMatchedProximityId()
261 ++j; in getMatchedProximityId()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DPath.java130 int j; in split() local
131 for (j = i; j < n; j++) { in split()
132 char c = s.charAt(j); in split()
140 segments.add(s.substring(i, j)); in split()
141 i = j + 1; in split()
159 int j; in splitSequence() local
160 for (j = i; j < n - 1; j++) { in splitSequence()
161 char c = s.charAt(j); in splitSequence()
169 segments.add(s.substring(i, j)); in splitSequence()
170 i = j + 1; in splitSequence()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DFilterUtils.java127 for (int j = 0; j < sets.length; j++) { in getAppliedFilters()
128 Path sub = Path.fromString(sets[j]); in getAppliedFilters()
248 for (int j = 0; j < sets.length; j++) { in removeOneClusterFromPath()
249 if (j > 0) { in removeOneClusterFromPath()
252 sb.append(removeOneClusterFromPath(sets[j], done)); in removeOneClusterFromPath()
283 for (int j = 0; j < sets.length; j++) { in removeOneFilterFromPath()
284 if (j > 0) { in removeOneFilterFromPath()
287 sb.append(removeOneFilterFromPath(sets[j], done)); in removeOneFilterFromPath()
/packages/apps/Contacts/src/com/android/contacts/
DCollapser.java58 for (int j = i + 1; j < listSize; j++) { in collapseList()
59 T jItem = list.get(j); in collapseList()
63 list.set(j, null); in collapseList()
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/
DCollapser.java58 for (int j = i + 1; j < listSize; j++) { in collapseList()
59 T jItem = list.get(j); in collapseList()
63 list.set(j, null); in collapseList()

123456