/frameworks/native/opengl/libs/EGL/ |
D | eglApi.cpp | 273 egl_display_ptr dp = get_display(dpy); in eglInitialize() local 274 if (!dp) return setError(EGL_BAD_DISPLAY, EGL_FALSE); in eglInitialize() 276 EGLBoolean res = dp->initialize(major, minor); in eglInitialize() 289 egl_display_ptr dp = get_display(dpy); in eglTerminate() local 290 if (!dp) return setError(EGL_BAD_DISPLAY, EGL_FALSE); in eglTerminate() 292 EGLBoolean res = dp->terminate(); in eglTerminate() 307 const egl_display_ptr dp = validate_display(dpy); in eglGetConfigs() local 308 if (!dp) return EGL_FALSE; in eglGetConfigs() 320 dp->disp.dpy, configs, config_size, num_config); in eglGetConfigs() 332 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 | 95 proxy->setup(width, height, dp(800.0f), 255 * 0.075, 255 * 0.15); in run() 96 proxy->setLightCenter((Vector3){lightX, dp(-200.0f), dp(800.0f)}); in run() 134 for (int x = dp(16); x < (width - dp(116)); x += dp(116)) { in createContent() 135 for (int y = dp(16); y < (height - dp(116)); y += dp(116)) { in createContent() 136 sp<RenderNode> card = createCard(x, y, dp(100), dp(100)); in createContent() 156 node->mutateStagingProperties().setElevation(dp(16)); in createCard() 157 … node->mutateStagingProperties().mutableOutline().setRoundRect(0, 0, width, height, dp(10), 1); in createCard() 175 for (int x = dp(8); x < (width - dp(58)); x += dp(58)) { in createContent() 176 for (int y = dp(8); y < (height - dp(58)); y += dp(58)) { in createContent() 177 sp<RenderNode> card = createCard(x, y, dp(50), dp(50)); in createContent() [all …]
|
D | TestContext.h | 33 #define dp(x) ((x) * android::uirenderer::test::gDisplay.density) macro
|
/frameworks/base/packages/CaptivePortalLogin/src/com/android/captiveportallogin/ |
D | CaptivePortalLoginActivity.java | 306 private String dp(int dp) { in dp() argument 308 return Integer.toString(dp) + "px"; in dp() 314 float dp = sp * mDpPerSp; in sp() local 316 dp *= 1.3; in sp() 318 return dp((int)dp); in sp() 323 "body { margin-left:" + dp(48) + "; margin-right:" + dp(48) + "; " + 324 "margin-top:" + dp(96) + "; background-color:#fafafa; }" + 325 "img { width:" + dp(48) + "; height:" + dp(48) + "; }" + 326 "div.warn { font-size:" + sp(16) + "; margin-top:" + dp(16) + "; " + 328 "div.example { font-size:" + sp(14) + "; margin-top:" + dp(16) + "; " + [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | DataConnection.java | 589 DisconnectParams dp = (DisconnectParams)o; in tearDownData() local 590 apnContext = dp.mApnContext; in tearDownData() 591 if (TextUtils.equals(dp.mReason, Phone.REASON_RADIO_TURNED_OFF)) { in tearDownData() 593 } else if (TextUtils.equals(dp.mReason, Phone.REASON_PDP_RESET)) { in tearDownData() 689 private void notifyDisconnectCompleted(DisconnectParams dp, boolean sendAll) { in notifyDisconnectCompleted() argument 695 if (dp != null && dp.mOnCompletedMsg != null) { in notifyDisconnectCompleted() 697 Message msg = dp.mOnCompletedMsg; in notifyDisconnectCompleted() 698 dp.mOnCompletedMsg = null; in notifyDisconnectCompleted() 702 reason = dp.mReason; in notifyDisconnectCompleted() 716 if (DBG) log("NotifyDisconnectCompleted DisconnectParams=" + dp); in notifyDisconnectCompleted() [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/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" />
|
D | screensizes.jd | 95 android:layout_marginLeft="10dp" 143 …dp 为单位)来定位屏幕。例如,标准 7 英寸平板电脑的最小宽度为 600 dp,因此如果您要在此类屏幕上的用户界面中使用双面板(但在较小的屏幕上只显示列表),您可以使用上文中所述的单面板和双面板… 156 <p>也就是说,对于最小宽度大于等于 600 dp 的设备,系统会选择 <code>layout-sw600dp/main.xml</code>(双面板)布局,否则系统就会选择 <code>layo…
|
/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" />
|
D | screensizes.jd | 95 android:layout_marginLeft="10dp" 143 …dp で指定した特定の最小幅の画面を対象とすることができます。たとえば、一般的な 7 インチ タブレットは最小幅が 600 dp なので、これらの画面の UI で 2 つのペイン(ただし、それより… 156 <p>つまり、最小幅が 600dp 以上のデバイスでは <code>layout-sw600dp/main.xml</code>(2 ペイン)レイアウトが選択され、それよりも小さい画面では <cod…
|
/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/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" />
|
D | screensizes.jd | 95 android:layout_marginLeft="10dp" 143 …dp 단위의 특정 최소 너비를 가진 화면을 타겟팅할 수 있습니다. 예를 들어 일반적인 7인치 태블릿에는 600dp라는 최소 너비가 있으므로 이러한 화면에서 두 개의 창에 UI를… 156 <p>이는 최소 너비가 600dp 이상인 기기는 <code>layout-sw600dp/main.xml</code>(이중 창) 레이아웃을 선택하는 반면 소형 화면은 <code>la…
|
/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/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/base/core/java/com/android/internal/app/ |
D | PlatLogoActivity.java | 71 final float dp = dm.density; in onAttachedToWindow() local 73 (Math.min(Math.min(dm.widthPixels, dm.heightPixels), 600*dp) - 100*dp); in onAttachedToWindow() 83 final int pad = (int) (8 * dp); in onAttachedToWindow()
|
/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/native/include/ui/ |
D | Rect.h | 166 Rect& offsetBy(const Point& dp) { in offsetBy() argument 167 return offsetBy(dp.x, dp.y); in offsetBy()
|
/frameworks/base/docs/html/training/wearables/ui/ |
D | layouts.jd | 219 <strong>android:padding="15dp"</strong>> 224 <strong>android:padding="5dp"</strong> 237 android:layout_height="50dp" 238 android:layout_width="50dp" 244 android:layout_height="50dp" 245 android:layout_width="50dp" 255 <p><code>android:padding="15dp"</code></p> 258 element. Because the window insets on round devices are larger than 15dp, this padding only 262 <p><code>android:padding="5dp"</code></p> 265 insets is 20 dp on square screens (15+5) and 5 dp on round screens.</p>
|
/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-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" />
|
/frameworks/support/v7/gridlayout/ |
D | README.txt | 61 …android:layout_width="21dp" <=== use the android namespace for width, height e… 62 android:layout_height="1dp"
|