/frameworks/native/opengl/libs/EGL/ |
D | eglApi.cpp | 299 egl_display_ptr dp = get_display(dpy); in eglInitialize() local 300 if (!dp) return setError(EGL_BAD_DISPLAY, EGL_FALSE); in eglInitialize() 302 EGLBoolean res = dp->initialize(major, minor); in eglInitialize() 315 egl_display_ptr dp = get_display(dpy); in eglTerminate() local 316 if (!dp) return setError(EGL_BAD_DISPLAY, EGL_FALSE); in eglTerminate() 318 EGLBoolean res = dp->terminate(); in eglTerminate() 333 const egl_display_ptr dp = validate_display(dpy); in eglGetConfigs() local 334 if (!dp) return EGL_FALSE; in eglGetConfigs() 346 dp->disp.dpy, configs, config_size, num_config); in eglGetConfigs() 358 const egl_display_ptr dp = validate_display(dpy); in eglChooseConfig() local [all …]
|
D | egl.cpp | 97 egl_display_ptr dp = get_display(dpy); in validate_display() local 98 if (!dp) in validate_display() 100 if (!dp->isReady()) in validate_display() 103 return dp; in validate_display() 109 egl_display_ptr dp = validate_display(dpy); in validate_display_connection() local 110 if (!dp) in validate_display_connection() 111 return dp; in validate_display_connection() 116 return dp; in validate_display_connection()
|
/frameworks/base/libs/hwui/tests/common/scenes/ |
D | ListViewAnimation.cpp | 41 cardHeight = dp(60); in createContent() 42 cardSpacing = dp(16); in createContent() 43 cardWidth = std::min((height - cardSpacing * 2), (int)dp(300)); in createContent() 61 int scrollPx = dp(frameNr) * 3; in doFrame() 83 int size = cardHeight - (dp(10) * 2); in createRandomCharIcon() 105 int size = dp(20); in createBoxBitmap() 106 int stroke = dp(2); in createBoxBitmap() 130 canvas.drawRoundRect(0, 0, cardWidth, cardHeight, dp(6), dp(6), roundRectPaint); in createCard() 135 textPaint.setTextSize(dp(20)); in createCard() 139 TestUtils::drawUtf8ToCanvas(&canvas, buf, textPaint, cardHeight, dp(25)); in createCard() [all …]
|
D | ShadowGridAnimation.cpp | 35 for (int x = dp(16); x < (width - dp(116)); x += dp(116)) { in createContent() 36 for (int y = dp(16); y < (height - dp(116)); y += dp(116)) { in createContent() 37 sp<RenderNode> card = createCard(x, y, dp(100), dp(100)); in createContent() 57 props.setElevation(dp(16)); in createCard() 58 props.mutableOutline().setRoundRect(0, 0, width, height, dp(6), 1); in createCard()
|
D | ShadowGrid2Animation.cpp | 35 for (int x = dp(8); x < (width - dp(58)); x += dp(58)) { in createContent() 36 for (int y = dp(8); y < (height - dp(58)); y += dp(58)) { in createContent() 37 sp<RenderNode> card = createCard(x, y, dp(50), dp(50)); in createContent() 57 props.setElevation(dp(16)); in createCard() 58 props.mutableOutline().setRoundRect(0, 0, width, height, dp(6), 1); in createCard()
|
D | PartialDamageAnimation.cpp | 42 for (int x = dp(16); x < (width - dp(116)); x += dp(116)) { in createContent() 43 for (int y = dp(16); y < (height - dp(116)); y += dp(116)) { in createContent() 44 SkColor color = COLORS[static_cast<int>((y / dp(116))) % 4]; in createContent() 46 x + dp(100), y + dp(100), in createContent()
|
D | OpPropAnimation.cpp | 67 mRoundRectRx->value = dp(10) + value * dp(40); in doFrame() 68 mRoundRectRy->value = dp(10) + value * dp(80); in doFrame() 69 mCircleRadius->value = value * dp(200); in doFrame()
|
D | RecentsAnimation.cpp | 40 int cardsize = std::min(width, height) - dp(64); in createContent() 45 int x = dp(32); in createContent() 51 card->mutateStagingProperties().setElevation(i * dp(8)); in createContent() 75 props.setElevation(dp(16)); in createCard() 76 props.mutableOutline().setRoundRect(0, 0, width, height, dp(10), 1); in createCard()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/ |
D | DataProfileTest.java | 84 DataProfile dp = new DataProfile(mApn1, false); in testCreateFromApnSetting() local 85 assertEquals(mApn1.profileId, dp.profileId); in testCreateFromApnSetting() 86 assertEquals(mApn1.apn, dp.apn); in testCreateFromApnSetting() 87 assertEquals(mApn1.protocol, dp.protocol); in testCreateFromApnSetting() 88 assertEquals(mApn1.authType, dp.authType); in testCreateFromApnSetting() 89 assertEquals(mApn1.user, dp.user); in testCreateFromApnSetting() 90 assertEquals(mApn1.password, dp.password); in testCreateFromApnSetting() 91 assertEquals(0, dp.type); in testCreateFromApnSetting() 92 assertEquals(mApn1.maxConnsTime, dp.maxConnsTime); in testCreateFromApnSetting() 93 assertEquals(mApn1.maxConns, dp.maxConns); in testCreateFromApnSetting() [all …]
|
/frameworks/base/packages/CaptivePortalLogin/src/com/android/captiveportallogin/ |
D | CaptivePortalLoginActivity.java | 344 private String dp(int dp) { in dp() method in CaptivePortalLoginActivity.MyWebViewClient 346 return Integer.toString(dp) + "px"; in dp() 352 float dp = sp * mDpPerSp; in sp() local 354 dp *= 1.3; in sp() 356 return dp((int)dp); in sp() 361 "body { margin-left:" + dp(48) + "; margin-right:" + dp(48) + "; " + 362 "margin-top:" + dp(96) + "; background-color:#fafafa; }" + 363 "img { width:" + dp(48) + "; height:" + dp(48) + "; }" + 364 "div.warn { font-size:" + sp(16) + "; margin-top:" + dp(16) + "; " + 366 "div.example { font-size:" + sp(14) + "; margin-top:" + dp(16) + "; " + [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 | 508 DisconnectParams dp = (DisconnectParams)o; in tearDownData() local 509 apnContext = dp.mApnContext; in tearDownData() 510 if (TextUtils.equals(dp.mReason, Phone.REASON_RADIO_TURNED_OFF)) { in tearDownData() 512 } else if (TextUtils.equals(dp.mReason, Phone.REASON_PDP_RESET)) { in tearDownData() 610 private void notifyDisconnectCompleted(DisconnectParams dp, boolean sendAll) { in notifyDisconnectCompleted() argument 616 if (dp != null && dp.mOnCompletedMsg != null) { in notifyDisconnectCompleted() 618 Message msg = dp.mOnCompletedMsg; in notifyDisconnectCompleted() 619 dp.mOnCompletedMsg = null; in notifyDisconnectCompleted() 623 reason = dp.mReason; in notifyDisconnectCompleted() 637 if (DBG) log("NotifyDisconnectCompleted DisconnectParams=" + dp); in notifyDisconnectCompleted() [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/base/core/java/com/android/internal/app/ |
D | PlatLogoActivity.java | 75 final float dp = dm.density; in onAttachedToWindow() local 77 (Math.min(Math.min(dm.widthPixels, dm.heightPixels), 600*dp) - 100*dp); in onAttachedToWindow() 80 final int pad = (int)(40*dp); in onAttachedToWindow()
|
/frameworks/base/libs/hwui/tests/macrobench/ |
D | TestSceneRunner.cpp | 90 proxy->setup(width, height, dp(800.0f), 255 * 0.075, 255 * 0.15); in run() 91 proxy->setLightCenter((Vector3){lightX, dp(-200.0f), dp(800.0f)}); in run()
|
/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"
|
/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/utils/ |
D | Utils.java | 29 public static int convertDpToPixel(Context ctx, int dp) { in convertDpToPixel() argument 31 return Math.round((float) dp * density); in convertDpToPixel()
|
/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/docs/html-intl/intl/zh-tw/training/material/ |
D | get-started.jd | 108 android:elevation="5dp" /> 131 android:layout_width="200dp" 132 android:layout_height="200dp" 133 card_view:cardCornerRadius="3dp">
|
/frameworks/base/docs/html-intl/intl/ko/training/material/ |
D | get-started.jd | 108 android:elevation="5dp" /> 131 android:layout_width="200dp" 132 android:layout_height="200dp" 133 card_view:cardCornerRadius="3dp">
|
/frameworks/native/include/ui/ |
D | Rect.h | 160 Rect& offsetBy(const Point& dp) { in offsetBy() argument 161 return offsetBy(dp.x, dp.y); in offsetBy()
|