Searched defs:dp (Results 1 - 8 of 8) sorted by relevance
/packages/apps/Dialer/java/com/android/dialer/common/ |
H A D | DpUtil.java | 21 /** Utility for dp to px conversion */ 28 public static float dpToPx(Context context, float dp) { argument 29 return dp * context.getResources().getDisplayMetrics().density;
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/utils/ |
H A D | edit_distance.h | 33 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/ManagedProvisioning/src/com/android/managedprovisioning/common/ |
H A D | TouchTargetEnforcer.java | 123 private float dpToPx(int dp) { argument 124 return dp * mDensity;
|
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/ |
H A D | db_utilities_poly.cpp | 30 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/Launcher3/src/com/android/launcher3/util/ |
H A D | FocusLogic.java | 195 CellLayout iconLayout, CellLayout hotseatLayout, DeviceProfile dp) { 200 boolean isHotseatHorizontal = !dp.isVerticalBarLayout(); 216 int allappsiconRank = dp.inv.getAllAppsButtonRank(); 236 int allappsiconRank = dp.inv.getAllAppsButtonRank(); 194 createSparseMatrixWithHotseat( CellLayout iconLayout, CellLayout hotseatLayout, DeviceProfile dp) argument
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
H A D | GalleryUtils.java | 108 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/LegacyCamera/src/com/android/camera/ |
H A D | Util.java | 108 public static int dpToPixel(int dp) { argument 109 return Math.round(sPixelDensity * dp);
|
/packages/apps/Gallery/src/com/android/camera/ |
H A D | GridViewSpecial.java | 104 // Converts dp to pixel. 105 private static int dpToPx(int dp, DisplayMetrics metrics) { argument 106 return (int) (metrics.density * dp);
|
Completed in 323 milliseconds