/packages/apps/UnifiedEmail/src/org/apache/commons/io/ |
D | HexDump.java | 82 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()
|
D | FileSystemUtils.java | 288 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/ |
D | kmeans.h | 88 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 …]
|
D | kmeans.cc | 53 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()
|
D | edge.c | 37 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/ |
D | biginteger.h | 92 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/ |
D | dbreg.cpp | 274 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 …]
|
D | vp_motionmodel.c | 98 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/ |
D | db_utilities_indexing.h | 62 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()
|
D | db_utilities_linalg.cpp | 82 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()
|
D | db_rob_image_homography.cpp | 343 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/ |
D | LocalMergeAlbum.java | 138 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()
|
D | SizeClustering.java | 90 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()
|
D | LocationClustering.java | 232 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()
|
D | LocalAlbumSet.java | 206 for (int k = j; k > i; k--) { in circularShiftRight() 207 array[k] = array[k - 1]; in circularShiftRight()
|
/packages/apps/Gallery2/jni_jpegstream/src/ |
D | jpeg_reader.cpp | 186 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/ |
D | com_android_bluetooth_avrcp_controller.cpp | 165 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/ |
D | grad.rs | 52 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;
|
D | FilterRepresentation.java | 230 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/ |
D | ColorGridDialog.java | 42 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/ |
D | TerminalView.java | 322 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/ |
D | MatrixFit.java | 78 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/ |
D | MatrixUtils.java | 140 for (int k = 0; k < m0w; k++) { in multiply() 141 retval[i][j] += m0[i][k] * m1[k][j]; in multiply()
|
D | SmoothingUtils.java | 64 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/ |
D | FilmstripView.java | 918 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 …]
|