Home
last modified time | relevance | path

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

123

/frameworks/native/opengl/libs/EGL/
DeglApi.cpp136 egl_display_ptr dp = get_display(dpy); in eglInitialize() local
137 if (!dp) return setError(EGL_BAD_DISPLAY, EGL_FALSE); in eglInitialize()
139 EGLBoolean res = dp->initialize(major, minor); in eglInitialize()
152 egl_display_ptr dp = get_display(dpy); in eglTerminate() local
153 if (!dp) return setError(EGL_BAD_DISPLAY, EGL_FALSE); in eglTerminate()
155 EGLBoolean res = dp->terminate(); in eglTerminate()
170 const egl_display_ptr dp = validate_display(dpy); in eglGetConfigs() local
171 if (!dp) return EGL_FALSE; in eglGetConfigs()
183 dp->disp.dpy, configs, config_size, num_config); in eglGetConfigs()
195 const egl_display_ptr dp = validate_display(dpy); in eglChooseConfig() local
[all …]
Degl.cpp207 egl_display_ptr dp = get_display(dpy); in validate_display() local
208 if (!dp) in validate_display()
210 if (!dp->isReady()) in validate_display()
213 return dp; in validate_display()
219 egl_display_ptr dp = validate_display(dpy); in validate_display_connection() local
220 if (!dp) in validate_display_connection()
221 return dp; in validate_display_connection()
226 return dp; in validate_display_connection()
/frameworks/base/docs/html/design/style/
Dmetrics-grids.jd7 600<acronym title="Density-independent pixels. One dp is one pixel on a 160 dpi
8 screen.">dp</acronym>) and <em>tablet</em> (larger than or equal 600dp). The density buckets are <a…
24 <p>Devices vary in the amount of density-independent pixels (dp) they can display.</p>
32 <h2 id="48dp-rhythm">48dp Rhythm</h2>
34 <p>Touchable UI components are generally laid out along 48dp units.</p>
40 <h4>Why 48dp?</h4>
41 <p>On average, 48dp translate to a physical size of about 9mm (with some variability). This is
44 <p>If you design your elements to be at least 48dp high and wide you can guarantee that:</p>
57 <p>Spacing between each UI element is 8dp.</p>
Diconography.jd42 …g>48x48 <acronym title="Density-independent pixels. One dp is one pixel on a 160 dpi screen.">dp</…
54 <p>Full asset, <strong>48x48 dp</strong></p>
142 …g>32x32 <acronym title="Density-independent pixels. One dp is one pixel on a 160 dpi screen.">dp</…
152 <p>Full asset, <strong>32x32 dp</strong></p>
153 <p>Optical square, <strong>24x24 dp</strong></p>
163 spaces should be a minimum of 2 dp.</p>
223 …g>16x16 <acronym title="Density-independent pixels. One dp is one pixel on a 160 dpi screen.">dp</…
233 <p>Full asset, <strong>16x16 dp</strong></p>
234 <p>Optical square, <strong>12x12 dp</strong></p>
302 …g>24x24 <acronym title="Density-independent pixels. One dp is one pixel on a 160 dpi screen.">dp</…
[all …]
/frameworks/base/telephony/java/com/android/internal/telephony/
DDataConnection.java298 DisconnectParams dp = (DisconnectParams)o; in tearDownData() local
299 Message m = dp.onCompletedMsg; in tearDownData()
300 if (TextUtils.equals(dp.reason, Phone.REASON_RADIO_TURNED_OFF)) { in tearDownData()
302 } else if (TextUtils.equals(dp.reason, Phone.REASON_PDP_RESET)) { in tearDownData()
350 private void notifyDisconnectCompleted(DisconnectParams dp, boolean sendAll) { in notifyDisconnectCompleted() argument
356 if (dp.onCompletedMsg != null) { in notifyDisconnectCompleted()
358 Message msg = dp.onCompletedMsg; in notifyDisconnectCompleted()
362 reason = dp.reason; in notifyDisconnectCompleted()
381 if (DBG) log("NotifyDisconnectCompleted DisconnectParams=" + dp); in notifyDisconnectCompleted()
808 public void setEnterNotificationParams(DisconnectParams dp) { in setEnterNotificationParams() argument
[all …]
/frameworks/base/docs/html/guide/practices/ui_guidelines/
Dwidget_design.jd129 <th>Available Size (dp)<br><small style="font-weight:normal">(<code>minWidth</code> or
136 <td>40dp</td>
140 <td>110dp</td>
144 <td>180dp</td>
148 <td>250dp</td>
184 <code>minWidth</code>/<code>minHeight</code> calculations. We chose 144dp as an example good minimum
191 <li><code>minWidth</code> = 144dp + (2 &times; 8dp) + (2 &times; 56dp) =
192 <strong>272dp</strong></li>
193 <li><code>minHeight</code> = 48dp + (2 &times; 4dp) = <strong>56dp</strong></li>
278 android:layout_width="0dp"
[all …]
/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/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/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/base/docs/html/guide/topics/ui/layout/
Dlinear.jd45 >{@code android:layout_height}</a> of each view to {@code "0dp"} (for a
48 >{@code android:layout_width}</a> of each view to {@code "0dp"} (for a
88 android:paddingLeft="16dp"
89 android:paddingRight="16dp"
101 android:layout_height="0dp"
106 android:layout_width="100dp"
Drelative.jd88 android:paddingLeft="16dp"
89 android:paddingRight="16dp" >
97 android:layout_width="0dp"
104 android:layout_width="96dp"
109 android:layout_width="96dp"
/frameworks/native/include/ui/
DRect.h131 Rect& offsetBy(const Point& dp) { in offsetBy() argument
132 return offsetBy(dp.x, dp.y); in offsetBy()
/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/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.jd61 normal size handset (emulating a 320dp x 480dp screen), with a black border that fills
65 original screen size of 320dp x 480dp. Because there are so few active devices remaining that run
80 it would on a normal size handset (approximately emulating a 320dp x 480dp screen), then scales it
195 handset screens with a 320dp width, so screen compatibility mode is not applied to any device if
236 is 320dp. This way, any devices with their smallest side being larger than this value will offer
239 handset screens with a 320dp width, so screen compatibility mode is not applied to any device if
/frameworks/compile/libbcc/runtime/BlocksRuntime/
Druntime.c674 struct Block_descriptor *dp = closure->descriptor; in _Block_dump() local
675 cp += sprintf(cp, "descriptor: %p\n", (void *)dp); in _Block_dump()
676 cp += sprintf(cp, "descriptor->reserved: %lu\n", dp->reserved); in _Block_dump()
677 cp += sprintf(cp, "descriptor->size: %lu\n", dp->size); in _Block_dump()
680 cp += sprintf(cp, "descriptor->copy helper: %p\n", (void *)(uintptr_t)dp->copy); in _Block_dump()
681 cp += sprintf(cp, "descriptor->dispose helper: %p\n", (void *)(uintptr_t)dp->dispose); in _Block_dump()
/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/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/support/v7/gridlayout/
DREADME.txt60 …android:layout_width="21dp" <=== use the android namespace for width, height e…
61 android:layout_height="1dp"
/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