Searched refs:dp (Results 1 - 9 of 9) sorted by relevance

/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/utils/
H A Dedit_distance.h33 float dp[(beforeLength + 1) * (afterLength + 1)]; local
35 dp[(afterLength + 1) * i] = i * policy->getInsertionCost(i - 1, -1);
38 dp[i] = i * policy->getDeletionCost(-1, i - 1);
43 dp[(afterLength + 1) * (i + 1) + (j + 1)] = std::min(
44 dp[(afterLength + 1) * i + (j + 1)] + policy->getInsertionCost(i, j),
46 dp[(afterLength + 1) * (i + 1) + j] + policy->getDeletionCost(i, j),
47 dp[(afterLength + 1) * i + j] + policy->getSubstitutionCost(i, j)));
49 dp[(afterLength + 1) * (i + 1) + (j + 1)] = std::min(
50 dp[(afterLength + 1) * (i + 1) + (j + 1)],
51 dp[(afterLengt
[all...]
/packages/apps/Launcher3/src/com/android/launcher3/
H A DWeightWatcher.java148 final float dp = getResources().getDisplayMetrics().density;
152 mText.setTextSize(TypedValue.COMPLEX_UNIT_PX, 10 * dp);
155 final int p = (int)(2*dp);
162 (int)(14 * dp),
167 params.leftMargin = (int)(4*dp);
169 params.width = (int)(200 * dp);
/packages/apps/Camera/jni/feature_stab/db_vlvm/
H A Ddb_utilities_poly.cpp30 double bp,bp2,cp,dp,q,r,srq; local
46 dp=d/a;
49 r=(2.0*bp2*bp-9.0*bp*cp+27.0*dp)/54.0;
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
H A Ddb_utilities_poly.cpp30 double bp,bp2,cp,dp,q,r,srq; local
46 dp=d/a;
49 r=(2.0*bp2*bp-9.0*bp*cp+27.0*dp)/54.0;
/packages/apps/Gallery2/src/com/android/gallery3d/util/
H A DGalleryUtils.java108 public static float dpToPixel(float dp) { argument
109 return sPixelDensity * dp;
112 public static int dpToPixel(int dp) { argument
113 return Math.round(dpToPixel((float) dp));
117 // 1 meter = 39.37 inches, 1 inch = 160 dp.
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
H A DImageShow.java389 RectF dp = new RectF(0, 0, previousImage.getWidth(), previousImage.getHeight());
390 mp.mapRect(dp);
392 dp.roundOut(previousBounds);
393 float centerX = dp.centerX();
394 float centerY = dp.centerY();
/packages/apps/LegacyCamera/src/com/android/camera/
H A DUtil.java108 public static int dpToPixel(int dp) { argument
109 return Math.round(sPixelDensity * dp);
/packages/apps/Camera/src/com/android/camera/
H A DUtil.java148 public static int dpToPixel(int dp) { argument
149 return Math.round(sPixelDensity * dp);
/packages/apps/Gallery/src/com/android/camera/
H A DGridViewSpecial.java104 // Converts dp to pixel.
105 private static int dpToPx(int dp, DisplayMetrics metrics) { argument
106 return (int) (metrics.density * dp);

Completed in 238 milliseconds