Home
last modified time | relevance | path

Searched refs:dp (Results 1 – 25 of 67) sorted by relevance

123

/frameworks/native/opengl/libs/EGL/
DeglApi.cpp228 egl_display_ptr dp = get_display(dpy); in eglInitialize() local
229 if (!dp) return setError(EGL_BAD_DISPLAY, EGL_FALSE); in eglInitialize()
231 EGLBoolean res = dp->initialize(major, minor); in eglInitialize()
244 egl_display_ptr dp = get_display(dpy); in eglTerminate() local
245 if (!dp) return setError(EGL_BAD_DISPLAY, EGL_FALSE); in eglTerminate()
247 EGLBoolean res = dp->terminate(); in eglTerminate()
262 const egl_display_ptr dp = validate_display(dpy); in eglGetConfigs() local
263 if (!dp) return EGL_FALSE; in eglGetConfigs()
275 dp->disp.dpy, configs, config_size, num_config); in eglGetConfigs()
287 const egl_display_ptr dp = validate_display(dpy); in eglChooseConfig() local
[all …]
Degl.cpp252 egl_display_ptr dp = get_display(dpy); in validate_display() local
253 if (!dp) in validate_display()
255 if (!dp->isReady()) in validate_display()
258 return dp; in validate_display()
264 egl_display_ptr dp = validate_display(dpy); in validate_display_connection() local
265 if (!dp) in validate_display_connection()
266 return dp; in validate_display_connection()
271 return dp; in validate_display_connection()
/frameworks/base/docs/html/design/style/
Dmetrics-grids.jd10 600<acronym title="Density-independent pixels: One dp is one pixel on a 160 dpi (mdpi)
11 screen.">dp</acronym>) and <em>tablet</em> (larger than or equal 600dp).</li>
26 refer to layout dimensions with <acronym title="Density-independent pixels: One dp is one pixel
27 on a 160 dpi (mdpi) screen.">dp</acronym> measurements instead of pixels.</p>
39 <p>Devices vary in the amount of density-independent pixels (dp) they can display.</p>
48 <h2 id="48dp-rhythm">48dp Rhythm</h2>
50 <p>Touchable UI components are generally laid out along 48dp units.</p>
56 <h4>Why 48dp?</h4>
57 <p>On average, 48dp translate to a physical size of about 9mm (with some variability). This is
60 <p>If you design your elements to be at least 48dp high and wide you can guarantee that:</p>
[all …]
Diconography.jd21 refer to the icon dimensions in <acronym title="density-independent pixels">dp</acronym>
29 48x48 dp. This means the baseline (MDPI) asset is 48x48 px, and the
71 …g>48x48 <acronym title="Density-independent pixels. One dp is one pixel on a 160 dpi screen.">dp</…
83 <p>Full asset, <strong>48x48 dp</strong></p>
170 …g>32x32 <acronym title="Density-independent pixels. One dp is one pixel on a 160 dpi screen.">dp</…
180 <p>Full asset, <strong>32x32 dp</strong></p>
181 <p>Optical square, <strong>24x24 dp</strong></p>
191 spaces should be a minimum of 2 dp.</p>
251 …g>16x16 <acronym title="Density-independent pixels. One dp is one pixel on a 160 dpi screen.">dp</…
261 <p>Full asset, <strong>16x16 dp</strong></p>
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDataConnection.java471 DisconnectParams dp = (DisconnectParams)o; in tearDownData() local
473 if (TextUtils.equals(dp.mReason, Phone.REASON_RADIO_TURNED_OFF)) { in tearDownData()
475 } else if (TextUtils.equals(dp.mReason, Phone.REASON_PDP_RESET)) { in tearDownData()
563 private void notifyDisconnectCompleted(DisconnectParams dp, boolean sendAll) { in notifyDisconnectCompleted() argument
569 if (dp != null && dp.mOnCompletedMsg != null) { in notifyDisconnectCompleted()
571 Message msg = dp.mOnCompletedMsg; in notifyDisconnectCompleted()
572 dp.mOnCompletedMsg = null; in notifyDisconnectCompleted()
576 reason = dp.mReason; in notifyDisconnectCompleted()
590 if (DBG) log("NotifyDisconnectCompleted DisconnectParams=" + dp); in notifyDisconnectCompleted()
957 public void setEnterNotificationParams(DisconnectParams dp) { in setEnterNotificationParams() argument
[all …]
/frameworks/base/docs/html/guide/practices/ui_guidelines/
Dwidget_design.jd130 <th>Available Size (dp)<br><small style="font-weight:normal">(<code>minWidth</code> or
137 <td>40dp</td>
141 <td>110dp</td>
145 <td>180dp</td>
149 <td>250dp</td>
185 <code>minWidth</code>/<code>minHeight</code> calculations. We chose 144dp as an example good minimum
192 <li><code>minWidth</code> = 144dp + (2 &times; 8dp) + (2 &times; 56dp) =
193 <strong>272dp</strong></li>
194 <li><code>minHeight</code> = 48dp + (2 &times; 4dp) = <strong>56dp</strong></li>
279 android:layout_width="0dp"
[all …]
/frameworks/base/docs/html-intl/zh-cn/training/multiscreen/
Dscreendensities.jd46 …量的像素在不同设备上的实际大小也有所差异,这样使用像素定义布局尺寸就会产生问题。因此,请务必使用 <code>dp</code> 或 <code>sp</code> 单位指定尺寸。<code>dp
48 <p>例如,请使用 <code>dp</code>(而非 <code>px</code>)指定两个视图间的间距:</p>
54 android:layout_marginTop="20dp" /&gt;
Dscreensizes.jd95 android:layout_marginLeft="10dp"
143dp 为单位)来定位屏幕。例如,标准 7 英寸平板电脑的最小宽度为 600 dp,因此如果您要在此类屏幕上的用户界面中使用双面板(但在较小的屏幕上只显示列表),您可以使用上文中所述的单面板和双面板…
156 <p>也就是说,对于最小宽度大于等于 600 dp 的设备,系统会选择 <code>layout-sw600dp/main.xml</code>(双面板)布局,否则系统就会选择 <code>layo…
/frameworks/base/docs/html-intl/ja/training/multiscreen/
Dscreendensities.jd46 …イスが異なる場合に物理サイズが異なる可能性があります。そのため、サイズを指定する場合は、常に <code>dp</code> 単位や <code>sp</code> 単位を使用します。<code>
48 <p>たとえば、2 つのビューの間にスペースを挿入する場合は、<code>px</code> ではなくて <code>dp</code> を使用します:</p>
54 android:layout_marginTop="20dp" /&gt;
Dscreensizes.jd95 android:layout_marginLeft="10dp"
143dp で指定した特定の最小幅の画面を対象とすることができます。たとえば、一般的な 7 インチ タブレットは最小幅が 600 dp なので、これらの画面の UI で 2 つのペイン(ただし、それより…
156 <p>つまり、最小幅が 600dp 以上のデバイスでは <code>layout-sw600dp/main.xml</code>(2 ペイン)レイアウトが選択され、それよりも小さい画面では <cod…
/frameworks/base/docs/html-intl/ko/training/multiscreen/
Dscreendensities.jd46 …리적 크기와 대응할 수 있어 문제가 됩니다. 따라서 크기를 지정할 때에는 항상 <code>dp</code> 또는 <code>sp</code> 단위를 사용하시기 바랍니다. <co…
48 <p>예를 들어 두 개의 보기 사이에 여백을 지정할 때 <code>px</code>가 아닌 <code>dp</code>를 사용합니다.</p>
54 android:layout_marginTop="20dp" /&gt;
Dscreensizes.jd95 android:layout_marginLeft="10dp"
143dp 단위의 특정 최소 너비를 가진 화면을 타겟팅할 수 있습니다. 예를 들어 일반적인 7인치 태블릿에는 600dp라는 최소 너비가 있으므로 이러한 화면에서 두 개의 창에 UI를…
156 <p>이는 최소 너비가 600dp 이상인 기기는 <code>layout-sw600dp/main.xml</code>(이중 창) 레이아웃을 선택하는 반면 소형 화면은 <code>la…
/frameworks/base/docs/html-intl/ru/training/multiscreen/
Dscreendensities.jd46 …ет неодинаков. Всегда задавайте размеры в единицах <code>dp</code> или <code>sp</code>. <code>dp</…
48 …е расстояние между двумя представлениями, рекомендуется использовать <code>dp</code>, а не <code>p…
54 android:layout_marginTop="20dp" /&gt;
Dscreensizes.jd95 android:layout_marginLeft="10dp"
143dp. Например, типичный планшетный ПК с экраном 7&nbsp;дюймов имеет минимальную ширину 600&nbsp;dp,…
156 <p>Это означает, что на устройствах, минимальная ширина экрана которых не меньше 600&nbsp;dp, будет…
/frameworks/rs/driver/
DrsdPath.cpp66 DrvPath *dp = (DrvPath *)m->mHal.drv; in cleanup() local
67 if (dp) { in cleanup()
68 delete dp; in cleanup()
/frameworks/base/docs/html/guide/topics/ui/layout/
Dlinear.jd44 >{@code android:layout_height}</a> of each view to {@code "0dp"} (for a
47 >{@code android:layout_width}</a> of each view to {@code "0dp"} (for a
87 android:paddingLeft="16dp"
88 android:paddingRight="16dp"
100 android:layout_height="0dp"
105 android:layout_width="100dp"
Drelative.jd87 android:paddingLeft="16dp"
88 android:paddingRight="16dp" >
96 android:layout_width="0dp"
103 android:layout_width="96dp"
108 android:layout_width="96dp"
/frameworks/native/include/ui/
DRect.h146 Rect& offsetBy(const Point& dp) { in offsetBy() argument
147 return offsetBy(dp.x, dp.y); in offsetBy()
/frameworks/base/docs/html/guide/practices/
Dscreens_support.jd39 <li><a href="#dips-pels">Converting dp units to pixel units</a></li>
134 <dt><em>Density-independent pixel (dp)</em></dt>
139 transparently handles any scaling of the dp units, as necessary, based on the actual density of the
140 screen in use. The conversion of dp units to screen pixels is simple:
141 <nobr><code>px = dp * (dpi / 160)</code></nobr>.
142 For example, on a 240 dpi screen, 1 dp equals 1.5 physical pixels. You should always use dp units
197 resolution that's defined by the system. These minimum sizes are in "dp" units&mdash;the same units
202 <li><em>xlarge</em> screens are at least 960dp x 720dp</li>
203 <li><em>large</em> screens are at least 640dp x 480dp</li>
204 <li><em>normal</em> screens are at least 470dp x 320dp</li>
[all …]
Dscreen-compat-mode.jd62 normal size handset (emulating a 320dp x 480dp screen), with a black border that fills
66 original screen size of 320dp x 480dp. Because there are so few active devices remaining that run
81 it would on a normal size handset (approximately emulating a 320dp x 480dp screen), then scales it
196 handset screens with a 320dp width, so screen compatibility mode is not applied to any device if
237 is 320dp. This way, any devices with their smallest side being larger than this value will offer
240 handset screens with a 320dp width, so screen compatibility mode is not applied to any device if
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/geometry/
DQuad.java95 PointF dp = new PointF(topRight.x - topLeft.x, topRight.y - topLeft.y); in fromLineAndHeight() local
96 float len = dp.length(); in fromLineAndHeight()
97 PointF np = new PointF(height * (dp.y / len), height * (dp.x / len)); in fromLineAndHeight()
/frameworks/base/docs/html/training/multiscreen/
Dscreendensities.jd55 <code>dp</code> or <code>sp</code> units. A <code>dp</code> is a density-independent pixel
61 <p>For example, when you specify spacing between two views, use <code>dp</code>
68 android:layout_marginTop="20dp" /&gt;
/frameworks/support/v7/gridlayout/
DREADME.txt61 …android:layout_width="21dp" <=== use the android namespace for width, height e…
62 android:layout_height="1dp"
/frameworks/base/docs/html-intl/es/training/multiscreen/
Dscreendensities.jd46 …ificar dimensiones, debes utilizar siempre unidades <code>dp</code> o <code>sp</code>. <code>dp</c…
48 <p>Por ejemplo, al especificar un espacio entre dos vistas, debes utilizar <code>dp</code> en lugar…
54 android:layout_marginTop="20dp" /&gt;
/frameworks/base/docs/html/guide/topics/manifest/
Dsupports-screens-element.jd133 the screen space (in {@code dp} units) that must be available to your application UI&mdash;that is,
139 <p>For example, a typical handset screen has a smallestWidth of 320dp, a 7" tablet has a
140 smallestWidth of 600dp, and a 10" tablet has a smallestWidth of 720dp. These values are generally
151 <em>small</em> size or a minimum width of 320dp), you do
155 smallest screen width qualifier</a> ({@code sw&lt;N&gt;dp}).</p>
190 screens with a 320dp width, so screen compatibility mode is not applied if your value for {@code
208 screens with a 320dp width, so screen compatibility mode is not applied if your value for {@code

123