/frameworks/native/opengl/libs/EGL/ |
D | eglApi.cpp | 228 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 …]
|
D | egl.cpp | 253 egl_display_ptr dp = get_display(dpy); in validate_display() local 254 if (!dp) in validate_display() 256 if (!dp->isReady()) in validate_display() 259 return dp; in validate_display() 265 egl_display_ptr dp = validate_display(dpy); in validate_display_connection() local 266 if (!dp) in validate_display_connection() 267 return dp; in validate_display_connection() 272 return dp; in validate_display_connection()
|
/frameworks/base/libs/hwui/tests/ |
D | main.cpp | 57 node->mutateStagingProperties().setElevation(dp(16)); in createCard() 58 node->mutateStagingProperties().mutableOutline().setRoundRect(0, 0, width, height, dp(10), 1); in createCard() 90 proxy->setup(width, height, (Vector3){lightX, dp(-200.0f), dp(800.0f)}, in main() 91 dp(800.0f), 255 * 0.075, 255 * 0.15); in main() 101 for (int x = dp(16); x < (width - dp(116)); x += dp(116)) { in main() 102 for (int y = dp(16); y < (height - dp(116)); y += dp(116)) { in main() 103 sp<RenderNode> card = createCard(x, y, dp(100), dp(100)); in main()
|
D | TestContext.h | 24 #define dp(x) ((x) * gDisplay.density) macro
|
/frameworks/base/docs/html/design/style/ |
D | metrics-grids.jd | 13 600<acronym title="Density-independent pixels: One dp is one pixel on a 160 dpi (mdpi) 14 screen.">dp</acronym>) and <em>tablet</em> (larger than or equal 600dp).</li> 29 refer to layout dimensions with <acronym title="Density-independent pixels: One dp is one pixel 30 on a 160 dpi (mdpi) screen.">dp</acronym> measurements instead of pixels.</p> 42 <p>Devices vary in the amount of density-independent pixels (dp) they can display.</p> 51 <h2 id="48dp-rhythm">48dp Rhythm</h2> 53 <p>Touchable UI components are generally laid out along 48dp units.</p> 59 <h4>Why 48dp?</h4> 60 <p>On average, 48dp translate to a physical size of about 9mm (with some variability). This is 63 <p>If you design your elements to be at least 48dp high and wide you can guarantee that:</p> [all …]
|
D | iconography.jd | 23 refer to the icon dimensions in <acronym title="density-independent pixels">dp</acronym> 31 48x48 dp. This means the baseline (MDPI) asset is 48x48 px, and the 73 …g>48x48 <acronym title="Density-independent pixels. One dp is one pixel on a 160 dpi screen.">dp</… 85 <p>Full asset, <strong>48x48 dp</strong></p> 172 …g>32x32 <acronym title="Density-independent pixels. One dp is one pixel on a 160 dpi screen.">dp</… 182 <p>Full asset, <strong>32x32 dp</strong></p> 183 <p>Optical square, <strong>24x24 dp</strong></p> 193 spaces should be a minimum of 2 dp.</p> 253 …g>16x16 <acronym title="Density-independent pixels. One dp is one pixel on a 160 dpi screen.">dp</… 263 <p>Full asset, <strong>16x16 dp</strong></p> [all …]
|
/frameworks/base/docs/html/guide/practices/ui_guidelines/ |
D | widget_design.jd | 130 <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 × 8dp) + (2 × 56dp) = 193 <strong>272dp</strong></li> 194 <li><code>minHeight</code> = 48dp + (2 × 4dp) = <strong>56dp</strong></li> 279 android:layout_width="0dp" [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | DataConnection.java | 576 DisconnectParams dp = (DisconnectParams)o; in tearDownData() local 578 if (TextUtils.equals(dp.mReason, Phone.REASON_RADIO_TURNED_OFF)) { in tearDownData() 580 } else if (TextUtils.equals(dp.mReason, Phone.REASON_PDP_RESET)) { in tearDownData() 670 private void notifyDisconnectCompleted(DisconnectParams dp, boolean sendAll) { in notifyDisconnectCompleted() argument 676 if (dp != null && dp.mOnCompletedMsg != null) { in notifyDisconnectCompleted() 678 Message msg = dp.mOnCompletedMsg; in notifyDisconnectCompleted() 679 dp.mOnCompletedMsg = null; in notifyDisconnectCompleted() 683 reason = dp.mReason; in notifyDisconnectCompleted() 697 if (DBG) log("NotifyDisconnectCompleted DisconnectParams=" + dp); in notifyDisconnectCompleted() 1264 public void setEnterNotificationParams(DisconnectParams dp) { in setEnterNotificationParams() argument [all …]
|
/frameworks/base/docs/html-intl/intl/zh-cn/training/multiscreen/ |
D | screendensities.jd | 46 …量的像素在不同设备上的实际大小也有所差异,这样使用像素定义布局尺寸就会产生问题。因此,请务必使用 <code>dp</code> 或 <code>sp</code> 单位指定尺寸。<code>dp… 48 <p>例如,请使用 <code>dp</code>(而非 <code>px</code>)指定两个视图间的间距:</p> 54 android:layout_marginTop="20dp" />
|
/frameworks/base/docs/html-intl/intl/ja/training/multiscreen/ |
D | screendensities.jd | 46 …イスが異なる場合に物理サイズが異なる可能性があります。そのため、サイズを指定する場合は、常に <code>dp</code> 単位や <code>sp</code> 単位を使用します。<code>… 48 <p>たとえば、2 つのビューの間にスペースを挿入する場合は、<code>px</code> ではなくて <code>dp</code> を使用します:</p> 54 android:layout_marginTop="20dp" />
|
/frameworks/base/docs/html-intl/intl/ko/training/multiscreen/ |
D | screendensities.jd | 46 …리적 크기와 대응할 수 있어 문제가 됩니다. 따라서 크기를 지정할 때에는 항상 <code>dp</code> 또는 <code>sp</code> 단위를 사용하시기 바랍니다. <co… 48 <p>예를 들어 두 개의 보기 사이에 여백을 지정할 때 <code>px</code>가 아닌 <code>dp</code>를 사용합니다.</p> 54 android:layout_marginTop="20dp" />
|
/frameworks/base/docs/html-intl/intl/ru/training/multiscreen/ |
D | screendensities.jd | 46 …ет неодинаков. Всегда задавайте размеры в единицах <code>dp</code> или <code>sp</code>. <code>dp</… 48 …е расстояние между двумя представлениями, рекомендуется использовать <code>dp</code>, а не <code>p… 54 android:layout_marginTop="20dp" />
|
/frameworks/base/docs/html-intl/intl/ja/training/tv/start/ |
D | layouts.jd | 95 …クリーン エレメントがオーバースキャンによりクリッピングされないようにします。具体的には、アクティビティのベース レイアウトの左右には 27dp、上下には 48dp のマージンを設定します。次のレ… 105 android:layout_marginTop="27dp" 106 android:layout_marginLeft="48dp" 107 android:layout_marginRight="48dp" 108 android:layout_marginBottom="27dp" >
|
/frameworks/rs/driver/ |
D | rsdPath.cpp | 66 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/ |
D | linear.jd | 44 >{@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"
|
D | relative.jd | 87 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/ |
D | Rect.h | 147 Rect& offsetBy(const Point& dp) { in offsetBy() argument 148 return offsetBy(dp.x, dp.y); in offsetBy()
|
/frameworks/base/docs/html/guide/practices/ |
D | screens_support.jd | 41 <li><a href="#dips-pels">Converting dp units to pixel units</a></li> 136 <dt><em>Density-independent pixel (dp)</em></dt> 141 transparently handles any scaling of the dp units, as necessary, based on the actual density of the 142 screen in use. The conversion of dp units to screen pixels is simple: 143 <nobr><code>px = dp * (dpi / 160)</code></nobr>. 144 For example, on a 240 dpi screen, 1 dp equals 1.5 physical pixels. You should always use dp units 205 resolution that's defined by the system. These minimum sizes are in "dp" units—the same units 210 <li><em>xlarge</em> screens are at least 960dp x 720dp</li> 211 <li><em>large</em> screens are at least 640dp x 480dp</li> 212 <li><em>normal</em> screens are at least 470dp x 320dp</li> [all …]
|
/frameworks/base/core/java/com/android/internal/app/ |
D | PlatLogoActivity.java | 86 final float dp = dm.density; in onAttachedToWindow() local 88 (Math.min(Math.min(dm.widthPixels, dm.heightPixels), 600*dp) - 100*dp); in onAttachedToWindow() 126 mLayout.addView(stick, new FrameLayout.LayoutParams((int) (32 * dp), in onAttachedToWindow()
|
/frameworks/base/docs/html/training/wearables/ui/ |
D | layouts.jd | 209 <strong>android:padding="15dp"</strong>> 214 <strong>android:padding="5dp"</strong> 227 android:layout_height="50dp" 228 android:layout_width="50dp" 234 android:layout_height="50dp" 235 android:layout_width="50dp" 245 <p><code>android:padding="15dp"</code></p> 247 insets on round devices are larger than 15dp, this padding only applies to square screens.</p> 250 <p><code>android:padding="5dp"</code></p> 253 is 20 dp on square screens (15+5) and 5 dp on round screens.</p>
|
D | confirm.jd | 65 android:layout_width="40dp" 66 android:layout_height="40dp" 69 app:circle_border_width="4dp" 70 app:circle_radius="16dp">
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/geometry/ |
D | Quad.java | 95 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/design/tv/ |
D | patterns.jd | 103 <li>Height: 176dp or more</li> 104 <li>Minimum width: 2/3 of the height (117dp for an image 176dp in height)</li> 105 <li>Max width: 4/3 of the height (234dp for an image 176dp in height)</li>
|
/frameworks/base/docs/html/training/multiscreen/ |
D | screendensities.jd | 57 <code>dp</code> or <code>sp</code> units. A <code>dp</code> is a density-independent pixel 73 <p>For example, when you specify spacing between two views, use <code>dp</code> 80 android:layout_marginTop="20dp" />
|
/frameworks/base/docs/html-intl/intl/es/training/multiscreen/ |
D | screendensities.jd | 46 …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" />
|