Searched refs:dipToPx (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | RotationActivity.java | 38 static int dipToPx(Context c, int dip) { in dipToPx() method in RotationActivity 54 canvas.translate(dipToPx(getContext(), 400), dipToPx(getContext(), 200)); in onDraw()
|
D | AlphaLayersActivity.java | 43 dipToPx(this, 100), dipToPx(this, 100), Gravity.CENTER)); in onCreate() 55 static int dipToPx(Context c, int dip) { in dipToPx() method in AlphaLayersActivity
|
D | DisplayListLayersActivity.java | 74 params.setMargins(0, dipToPx(VERTICAL_MARGIN), 0, 0); in addChild() 78 private int dipToPx(int size) { in dipToPx() method in DisplayListLayersActivity
|
/frameworks/ex/common/java/com/android/ex/editstyledtext/ |
D | EditStyledText.java | 903 private int dipToPx(int dip) { in dipToPx() method in EditStyledText 915 return dipToPx(MAXIMAGEWIDTHDIP); in getMaxImageWidthPx() 2158 final int BUTTON_SIZE = mEST.dipToPx(50); in buildAndShowColorDialogue() 2159 final int BUTTON_MERGIN = mEST.dipToPx(2); in buildAndShowColorDialogue() 2160 final int BUTTON_PADDING = mEST.dipToPx(15); in buildAndShowColorDialogue() 2286 mEST.dipToPx(Integer.parseInt((String) mSizeDisplayInts[which])); in onShowSizeAlertDialog()
|
/frameworks/base/core/java/com/android/internal/policy/ |
D | DecorView.java | 2127 elevation = dipToPx(elevation); 2154 private float dipToPx(float dip) {
|
/frameworks/base/core/java/android/view/ |
D | ViewRootImpl.java | 1431 private int dipToPx(int dip) { in dipToPx() method in ViewRootImpl 1499 desiredWindowWidth = dipToPx(config.screenWidthDp); in performTraversals() 1500 desiredWindowHeight = dipToPx(config.screenHeightDp); in performTraversals() 1600 desiredWindowWidth = dipToPx(config.screenWidthDp); in performTraversals() 1601 desiredWindowHeight = dipToPx(config.screenHeightDp); in performTraversals()
|