Home
last modified time | relevance | path

Searched refs:k (Results 1 – 25 of 83) sorted by relevance

1234

/packages/apps/UnifiedEmail/src/org/apache/commons/io/
DHexDump.java82 for (int k = 0; k < 16; k++) { in dump()
83 if (k < chars_read) { in dump()
84 dump(buffer, data[k + j]); in dump()
90 for (int k = 0; k < chars_read; k++) { in dump()
91 if ((data[k + j] >= ' ') && (data[k + j] < 127)) { in dump()
92 buffer.append((char) data[k + j]); in dump()
DFileSystemUtils.java288 for (int k = 0; k < buf.length(); k++) { in parseDir()
289 if (buf.charAt(k) == ',' || buf.charAt(k) == '.') { in parseDir()
290 buf.deleteCharAt(k--); in parseDir()
/packages/apps/Gallery2/jni/filters/
Dkmeans.h88 void initialPickHeuristicRandom(int k, T values[], int len, int dimension, int stride, T dst[], in initialPickHeuristicRandom() argument
94 unsigned int r_vals[k]; in initialPickHeuristicRandom()
97 for (x = 0; x < k; x++) { in initialPickHeuristicRandom()
141 int calculateNewCentroids(int k, T values[], int len, int dimension, int stride, T oldCenters[], in calculateNewCentroids() argument
144 pop_size = k * stride; in calculateNewCentroids()
145 int popularities[k]; in calculateNewCentroids()
149 memset(popularities, 0, sizeof(int) * k); in calculateNewCentroids()
179 void runKMeansWithPicks(int k, T finalCentroids[], T values[], int len, int dimension, int stride, in runKMeansWithPicks() argument
181 int k_len = k * stride; in runKMeansWithPicks()
194 ret = calculateNewCentroids<T, N>(k, values, len, dimension, stride, c1, c2); in runKMeansWithPicks()
[all …]
Dkmeans.cc53 int k = p; in JNIFUNCF() local
55 unsigned char finalCentroids[k * stride]; in JNIFUNCF()
58 runKMeans<unsigned char, int>(k, finalCentroids, small_ds, len, dimension, in JNIFUNCF()
64 unsigned char nextCentroids[k * stride]; in JNIFUNCF()
67 runKMeansWithPicks<unsigned char, int>(k, nextCentroids, large_ds, len, in JNIFUNCF()
73 applyCentroids<unsigned char, int>(k, nextCentroids, dst, len, dimension, stride); in JNIFUNCF()
Dedge.c37 int j, k; in JNIFUNCF() local
55 for (k = 1; k < width - 1; k++){ in JNIFUNCF()
56 int loc = j * row_stride + k * 4; in JNIFUNCF()
99 int off = k * 4; in JNIFUNCF()
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/internal/
Dbiginteger.h92 uint64_t k = 0; variable
95 digits_[i] = MulAdd64(digits_[i], u, k, &hi);
96 k = hi;
99 if (k > 0)
100 PushBack(k);
110 uint64_t k = 0; variable
116 const uint64_t p0 = ud + k;
119 k = p1 >> 32;
122 if (k > 0)
123 PushBack(k);
[all …]
/packages/apps/LegacyCamera/jni/feature_stab/src/dbreg/
Ddbreg.cpp274 for(int k=0; k<m_nr_corners_ref; k++) in UpdateReference() local
276 if(m_x_corners_ref[k]>m_im_width/3) in UpdateReference()
278 m_x_corners_ref[nr] = m_x_corners_ref[k]; in UpdateReference()
279 m_y_corners_ref[nr] = m_y_corners_ref[k]; in UpdateReference()
293 for(int k=0; k<m_nr_corners_ins; k++) in UpdateReference() local
295 m_x_corners_ref[k] = m_x_corners_ins[k]; in UpdateReference()
296 m_y_corners_ref[k] = m_y_corners_ins[k]; in UpdateReference()
603 for( int c=0, k=0 ;c < m_nr_matches; c++, k=k+3) in ComputeCostArray() local
605 … m_sq_cost[c] = SquaredInhomogenousHomographyError(m_corners_ins+k,m_H_ref_to_ins,m_corners_ref+k); in ComputeCostArray()
617 for(int c=0, k=0 ;c<m_nr_matches;c++,k=k+3) in SelectOutliers() local
[all …]
Dvp_motionmodel.c98 int i, j, k, l, m, n,ntemp; in inv4Mat() local
106 for(k=0,i=0;i<4;i++) in inv4Mat()
107 for(j=0;j<4;j++,k++) in inv4Mat()
108 inmat[i][j]=(double)in->par[k]; in inv4Mat()
116 for (k=0;k<4;k++) { in inv4Mat()
117 if (i != k) { in inv4Mat()
121 mat[m][n] = inmat[k][l]; in inv4Mat()
136 for(k=0,i=0;i<4;i++) in inv4Mat()
137 for(j=0;j<4;j++,k++) in inv4Mat()
138 out->par[k]=(VP_PAR)outmat[i][j]; /*lint !e771*/ in inv4Mat()
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
Ddb_utilities_indexing.h62 int i,j,k; in db_MultiplyMatricesAB() local
68 for(k=0;k<acols;k++) acc+=A[i][k]*B[k][j]; in db_MultiplyMatricesAB()
75 int i,j,k; in db_UpperMultiplyMatricesAtB() local
81 for(k=0;k<acols;k++) acc+=At[k][i]*B[k][j]; in db_UpperMultiplyMatricesAtB()
Ddb_utilities_linalg.cpp82 int i,j,k; in db_CholeskyDecompSeparateDiagonal() local
90 for(k=i-1;k>=0;k--) s-=A[i][k]*A[j][k]; in db_CholeskyDecompSeparateDiagonal()
104 int i,k; in db_CholeskyBacksub() local
109 for(s=b[i],k=i-1;k>=0;k--) s-=A[i][k]*x[k]; in db_CholeskyBacksub()
114 for(s=x[i],k=i+1;k<n;k++) s-=A[k][i]*x[k]; in db_CholeskyBacksub()
Ddb_rob_image_homography.cpp343 inline void db_RobImageHomographyJH_Jt(double **JE_dx_ref,int j,int k,double H[9]) in db_RobImageHomographyJH_Jt() argument
355 JE_dx_ref[0][k]=0; in db_RobImageHomographyJH_Jt()
356 JE_dx_ref[1][k]=0; in db_RobImageHomographyJH_Jt()
357 JE_dx_ref[2][k]=0; in db_RobImageHomographyJH_Jt()
358 JE_dx_ref[3][k]=0; in db_RobImageHomographyJH_Jt()
359 JE_dx_ref[4][k]=0; in db_RobImageHomographyJH_Jt()
360 JE_dx_ref[5][k]=1.0; in db_RobImageHomographyJH_Jt()
361 JE_dx_ref[6][k]=0; in db_RobImageHomographyJH_Jt()
362 JE_dx_ref[7][k]=0; in db_RobImageHomographyJH_Jt()
363 JE_dx_ref[8][k]=0; in db_RobImageHomographyJH_Jt()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DLocalMergeAlbum.java138 int k = -1; // k points to the best slot up to now. in getMediaItem() local
141 if (k == -1 || mComparator.compare(slot[j], slot[k]) < 0) { in getMediaItem()
142 k = j; in getMediaItem()
148 if (k == -1) break; in getMediaItem()
151 subPos[k]++; in getMediaItem()
153 result.add(slot[k]); in getMediaItem()
155 slot[k] = mFetcher[k].getItem(subPos[k]); in getMediaItem()
DSizeClustering.java90 int k = 0; in run() local
96 mClusters[k] = group[i]; in run()
98 mNames[k] = String.format( in run()
101 mNames[k] = String.format( in run()
106 mNames[k] = String.format( in run()
109 mMinSizes[k] = SIZE_LEVELS[i]; in run()
110 k++; in run()
DLocationClustering.java232 for (int k = minK; k <= maxK; k++) { in kMeans()
234 int delta = n / k; in kMeans()
235 for (int i = 0; i < k; i++) { in kMeans()
243 for (int i = 0; i < k; i++) { in kMeans()
254 for (int j = 0; j < k; j++) { in kMeans()
276 for (int i = 0; i < k; i++) { in kMeans()
291 int reassign[] = new int[k]; in kMeans()
293 for (int i = 0; i < k; i++) { in kMeans()
DLocalAlbumSet.java206 for (int k = j; k > i; k--) { in circularShiftRight()
207 array[k] = array[k - 1]; in circularShiftRight()
/packages/apps/Gallery2/jni_jpegstream/src/
Djpeg_reader.cpp186 int r, g, b, c, m, y, k; in formatPixels() local
191 k = buf[i + 3]; in formatPixels()
194 r = (k * c) / 255; in formatPixels()
195 g = (k * m) / 255; in formatPixels()
196 b = (k * y) / 255; in formatPixels()
198 r = (255 - k) * (255 - c) / 255; in formatPixels()
199 g = (255 - k) * (255 - m) / 255; in formatPixels()
200 b = (255 - k) * (255 - y) / 255; in formatPixels()
/packages/apps/Bluetooth/jni/
Dcom_android_bluetooth_avrcp_controller.cpp165 int i,k; in btavrcp_playerapplicationsetting_callback() local
197 k= 0; in btavrcp_playerapplicationsetting_callback()
198 for (i = 0; (i < num_attr)&&(k < arraylen); i++) in btavrcp_playerapplicationsetting_callback()
200 sCallbackEnv->SetByteArrayRegion(playerattribs, k, 1, (jbyte*)&(app_attrs[i].attr_id)); in btavrcp_playerapplicationsetting_callback()
201 k++; in btavrcp_playerapplicationsetting_callback()
202 sCallbackEnv->SetByteArrayRegion(playerattribs, k, 1, (jbyte*)&(app_attrs[i].num_val)); in btavrcp_playerapplicationsetting_callback()
203 k++; in btavrcp_playerapplicationsetting_callback()
204 sCallbackEnv->SetByteArrayRegion(playerattribs, k, app_attrs[i].num_val, in btavrcp_playerapplicationsetting_callback()
206 k = k + app_attrs[i].num_val; in btavrcp_playerapplicationsetting_callback()
220 int i, k, arraylen; in btavrcp_playerapplicationsetting_changed_callback() local
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
Dgrad.rs52 int k = 0;
66 grads[k].dy = (y1 - y2) / denom;
67 grads[k].dx = (x1 - x2) / denom;
68 grads[k].off = (y2 * y2 + x2 * x2 - x1 * x2 - y1 * y2) / denom;
79 grads[k].rgbOff = .5f - c/2.f;
90 k++;
92 mNumberOfLines = k;
DFilterRepresentation.java230 for (int k = 0; k < rep.length; k++) { in serializeRepresentation()
231 writer.name(rep[k][0]); in serializeRepresentation()
232 writer.value(rep[k][1]); in serializeRepresentation()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/colorpicker/
DColorGridDialog.java42 int k = 0; in ColorGridDialog() local
47 hsv[0] = (k % 5) * 360 / 5; in ColorGridDialog()
48 hsv[1] = (k / 5) / 3.0f; in ColorGridDialog()
49 hsv[2] = (k < 5) ? (k / 4f) : 1; in ColorGridDialog()
60 k++; in ColorGridDialog()
/packages/apps/Terminal/src/com/android/terminal/
DTerminalView.java322 KeyEvent k; in onCreateInputConnection()
324 k = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DEL); in onCreateInputConnection()
325 return this.sendKeyEvent(k); in onCreateInputConnection()
328 k = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DEL); in onCreateInputConnection()
329 this.sendKeyEvent(k); in onCreateInputConnection()
332 k = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_FORWARD_DEL); in onCreateInputConnection()
333 this.sendKeyEvent(k); in onCreateInputConnection()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/
DMatrixFit.java78 for (int k = 0; k < mDimension + 1; k++) { in fit()
81 if (k < mDimension) { in fit()
82 qt = q[i][k]; in fit()
84 c[k][j] += qt * p[i][j]; in fit()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DMatrixUtils.java140 for (int k = 0; k < m0w; k++) { in multiply()
141 retval[i][j] += m0[i][k] * m1[k][j]; in multiply()
DSmoothingUtils.java64 for (int k = 0; k < N; ++k) { in get3DParameters()
65 m0[i][j] += (float) Math.pow(xs[k], pow); in get3DParameters()
/packages/apps/Camera2/src/com/android/camera/widget/
DFilmstripView.java918 for (int k = 0; k < adjust; k++) { in stepIfNeeded()
919 removeItem(k); in stepIfNeeded()
922 for (int k = 0; k + adjust < BUFFER_SIZE; k++) { in stepIfNeeded()
923 mViewItems[k] = mViewItems[k + adjust]; in stepIfNeeded()
926 for (int k = BUFFER_SIZE - adjust; k < BUFFER_SIZE; k++) { in stepIfNeeded()
927 mViewItems[k] = null; in stepIfNeeded()
928 if (mViewItems[k - 1] != null) { in stepIfNeeded()
929 mViewItems[k] = buildViewItemAt(mViewItems[k - 1].getAdapterIndex() + 1); in stepIfNeeded()
935 for (int k = BUFFER_SIZE - 1; k >= BUFFER_SIZE + adjust; k--) { in stepIfNeeded()
936 removeItem(k); in stepIfNeeded()
[all …]

1234