Home
last modified time | relevance | path

Searched refs:dip (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/docs/html/guide/topics/ui/layout/
Dgrid.jd65 android:padding="3dip" />
69 android:padding="3dip" />
75 android:padding="3dip" />
79 android:padding="3dip" />
108 android:padding="3dip" />
112 android:padding="3dip" />
119 android:padding="3dip" />
123 android:padding="3dip" />
130 android:padding="3dip" />
134 android:padding="3dip" />
[all …]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DRotationActivity.java38 static int dipToPx(Context c, int dip) { in dipToPx() argument
39 return (int) (c.getResources().getDisplayMetrics().density * dip + 0.5f); in dipToPx()
DAlphaLayersActivity.java55 static int dipToPx(Context c, int dip) { in dipToPx() argument
56 return (int) (c.getResources().getDisplayMetrics().density * dip + 0.5f); in dipToPx()
/frameworks/base/core/java/android/text/style/
DAbsoluteSizeSpan.java41 public AbsoluteSizeSpan(int size, boolean dip) { in AbsoluteSizeSpan() argument
43 mDip = dip; in AbsoluteSizeSpan()
/frameworks/base/docs/html-intl/intl/ja/training/tv/start/
Dlayouts.jd136 …うに十分な大きさを確保します。これには、絶対的なサイズではなく相対レイアウトによるサイジングを、絶対的なピクセル単位ではなく密度に依存しないピクセル(dip)単位を使用します。たとえば、ウィジェッ…
/frameworks/base/docs/html/training/tv/start/
Dlayouts.jd191 density-independent pixel (dip) units instead of absolute pixel units. For example, to set the
193 margin for a widget, use dip values instead of px values.</li>
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DBaseShortcutManagerTest.java250 int injectDipToPixel(int dip) { in injectDipToPixel() argument
251 return dip; in injectDipToPixel()
/frameworks/base/core/java/com/android/internal/policy/
DDecorView.java2197 private float dipToPx(float dip) {
2198 return TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dip,
/frameworks/ex/common/java/com/android/ex/editstyledtext/
DEditStyledText.java903 private int dipToPx(int dip) { in dipToPx() argument
907 return (int) ((float) dip * getPaddingScale() + 0.5); in dipToPx()
/frameworks/base/docs/html/guide/practices/ui_guidelines/
Dicon_design_status_bar.jd218 reduces icons to 18 x 18 dip and 40% opacity in the status bar, while drawing them full-size and at
/frameworks/base/services/core/java/com/android/server/pm/
DShortcutService.java699 int injectDipToPixel(int dip) { in injectDipToPixel() argument
700 return (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dip, in injectDipToPixel()
/frameworks/base/docs/html/guide/topics/ui/
Dcustom-components.jd521 android:padding=&quot;10dip&quot;
/frameworks/base/core/java/android/view/
DViewRootImpl.java1439 private int dipToPx(int dip) { in dipToPx() argument
1441 return (int) (displayMetrics.density * dip + 0.5f); in dipToPx()
/frameworks/base/services/core/java/com/android/server/wm/
DWindowManagerService.java11332 static int dipToPixel(int dip, DisplayMetrics displayMetrics) { in dipToPixel() argument
11333 return (int)TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dip, displayMetrics); in dipToPixel()
/frameworks/base/docs/html/training/articles/
Dsmp.jd668 this it’s necessary to dip into ARM code for a moment: <span