Searched defs:dm (Results 1 - 5 of 5) sorted by relevance

/frameworks/base/services/core/java/com/android/server/wm/
H A DWatermark.java54 Watermark(Display display, DisplayMetrics dm, SurfaceSession session, String[] tokens) { argument
85 TypedValue.COMPLEX_UNIT_DIP, 20, dm);
96 TypedValue.COMPLEX_UNIT_PX, mTextWidth*2, dm);
98 TypedValue.COMPLEX_UNIT_PX, mTextHeight*3, dm);
100 TypedValue.COMPLEX_UNIT_PX, 0xb0000000, dm);
102 TypedValue.COMPLEX_UNIT_PX, 0x60ffffff, dm);
104 TypedValue.COMPLEX_UNIT_PX, 7, dm);
106 TypedValue.COMPLEX_UNIT_PX, 0, dm);
108 TypedValue.COMPLEX_UNIT_PX, 0, dm);
H A DWindowManagerService.java7151 private int reduceCompatConfigWidthSize(int curSize, int rotation, DisplayMetrics dm, argument
7154 dm.noncompatWidthPixels = mPolicy.getNonDecorDisplayWidth(dw, dh, rotation);
7155 dm.noncompatHeightPixels = mPolicy.getNonDecorDisplayHeight(dw, dh, rotation);
7156 float scale = CompatibilityInfo.computeCompatibleScaling(dm, null);
7157 int size = (int)(((dm.noncompatWidthPixels / scale) / dm.density) + .5f);
7164 private int computeCompatSmallestWidth(boolean rotated, DisplayMetrics dm, int dw, int dh) { argument
7166 mTmpDisplayMetrics.setTo(dm);
7243 final DisplayMetrics dm = mDisplayMetrics;
7244 mCompatibleScreenScale = CompatibilityInfo.computeCompatibleScaling(dm,
10720 getPropertyInt(String[] tokens, int index, int defUnits, int defDps, DisplayMetrics dm) argument
[all...]
/frameworks/base/core/java/android/app/
H A DResourcesManager.java79 DisplayMetrics dm = isDefaultDisplay ? mDefaultDisplayMetrics.get(daj) : null;
80 if (dm != null) {
81 return dm;
83 dm = new DisplayMetrics();
88 dm.setToDefaults();
89 return dm;
93 mDefaultDisplayMetrics.put(daj, dm);
98 d.getMetrics(dm);
104 dm.setToDefaults();
109 return dm;
112 applyNonDefaultDisplayMetricsToConfigurationLocked( DisplayMetrics dm, Configuration config) argument
[all...]
/frameworks/base/core/java/android/content/res/
H A DCompatibilityInfo.java473 * @param dm the display metrics used to compute the frame size.
477 public static float computeCompatibleScaling(DisplayMetrics dm, DisplayMetrics outDm) { argument
478 final int width = dm.noncompatWidthPixels;
479 final int height = dm.noncompatHeightPixels;
488 int newShortSize = (int)(DEFAULT_NORMAL_SHORT_DIMENSION * dm.density + 0.5f);
/frameworks/base/core/java/android/hardware/display/
H A DDisplayManagerGlobal.java79 private DisplayManagerGlobal(IDisplayManager dm) { argument
80 mDm = dm;

Completed in 2638 milliseconds