/frameworks/base/libs/hwui/tests/common/scenes/ |
H A D | ShadowGrid2Animation.cpp | 35 for (int x = dp(8); x < (width - dp(58)); x += dp(58)) { 36 for (int y = dp(8); y < (height - dp(58)); y += dp(58)) { 37 sp<RenderNode> card = createCard(x, y, dp(50), dp(50)); 57 props.setElevation(dp(16)); 58 props.mutableOutline().setRoundRect(0, 0, width, height, dp( [all...] |
H A D | ShadowGridAnimation.cpp | 35 for (int x = dp(16); x < (width - dp(116)); x += dp(116)) { 36 for (int y = dp(16); y < (height - dp(116)); y += dp(116)) { 37 sp<RenderNode> card = createCard(x, y, dp(100), dp(100)); 57 props.setElevation(dp(16)); 58 props.mutableOutline().setRoundRect(0, 0, width, height, dp( [all...] |
H A D | PartialDamageAnimation.cpp | 42 for (int x = dp(16); x < (width - dp(116)); x += dp(116)) { 43 for (int y = dp(16); y < (height - dp(116)); y += dp(116)) { 44 SkColor color = COLORS[static_cast<int>((y / dp(116))) % 4]; 46 x + dp(100), y + dp(100),
|
H A D | ListViewAnimation.cpp | 41 cardHeight = dp(60); 42 cardSpacing = dp(16); 43 cardWidth = std::min((height - cardSpacing * 2), (int)dp(300)); 61 int scrollPx = dp(frameNr) * 3; 83 int size = cardHeight - (dp(10) * 2); 105 int size = dp(20); 106 int stroke = dp(2); 130 canvas.drawRoundRect(0, 0, cardWidth, cardHeight, dp(6), dp(6), roundRectPaint); 135 textPaint.setTextSize(dp(2 [all...] |
H A D | OpPropAnimation.cpp | 67 mRoundRectRx->value = dp(10) + value * dp(40); 68 mRoundRectRy->value = dp(10) + value * dp(80); 69 mCircleRadius->value = value * dp(200);
|
H A D | RecentsAnimation.cpp | 40 int cardsize = std::min(width, height) - dp(64); 45 int x = dp(32); 51 card->mutateStagingProperties().setElevation(i * dp(8)); 75 props.setElevation(dp(16)); 76 props.mutableOutline().setRoundRect(0, 0, width, height, dp(10), 1);
|
H A D | ShapeAnimation.cpp | 68 float cellSpace = dp(4);
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/ |
H A D | DataProfileTest.java | 84 DataProfile dp = new DataProfile(mApn1, false); 85 assertEquals(mApn1.profileId, dp.profileId); 86 assertEquals(mApn1.apn, dp.apn); 87 assertEquals(mApn1.protocol, dp.protocol); 88 assertEquals(mApn1.authType, dp.authType); 89 assertEquals(mApn1.user, dp.user); 90 assertEquals(mApn1.password, dp.password); 91 assertEquals(0, dp.type); 92 assertEquals(mApn1.maxConnsTime, dp.maxConnsTime); 93 assertEquals(mApn1.maxConns, dp [all...] |
/frameworks/native/opengl/libs/EGL/ |
H A D | eglApi.cpp | 281 egl_display_ptr dp = get_display(dpy); local 282 if (!dp) return setError(EGL_BAD_DISPLAY, EGL_FALSE); 284 EGLBoolean res = dp->initialize(major, minor); 297 egl_display_ptr dp = get_display(dpy); local 298 if (!dp) return setError(EGL_BAD_DISPLAY, EGL_FALSE); 300 EGLBoolean res = dp->terminate(); 315 const egl_display_ptr dp = validate_display(dpy); local 316 if (!dp) return EGL_FALSE; 328 dp->disp.dpy, configs, config_size, num_config); 340 const egl_display_ptr dp local 417 const egl_display_ptr dp = validate_display_connection(dpy, cnx); local 455 egl_display_ptr dp = validate_display_connection(dpy, cnx); local 562 egl_display_ptr dp = validate_display_connection(dpy, cnx); local 581 egl_display_ptr dp = validate_display_connection(dpy, cnx); local 598 const egl_display_ptr dp = validate_display(dpy); local 618 const egl_display_ptr dp = validate_display(dpy); local 634 const egl_display_ptr dp = validate_display(dpy); local 656 const egl_display_ptr dp = validate_display_connection(dpy, cnx); local 695 const egl_display_ptr dp = validate_display(dpy); local 716 egl_display_ptr dp = validate_display(dpy); local 811 const egl_display_ptr dp = validate_display(dpy); local 1067 const egl_display_ptr dp = validate_display(dpy); local 1132 const egl_display_ptr dp = validate_display(dpy); local 1147 const egl_display_ptr dp = validate_display(dpy); local 1167 const egl_display_ptr dp = validate_display(dpy); local 1192 const egl_display_ptr dp = validate_display(dpy); local 1220 const egl_display_ptr dp = validate_display(dpy); local 1240 const egl_display_ptr dp = validate_display(dpy); local 1259 const egl_display_ptr dp = validate_display(dpy); local 1349 const egl_display_ptr dp = validate_display_connection(dpy, cnx); local 1367 const egl_display_ptr dp = validate_display(dpy); local 1386 const egl_display_ptr dp = validate_display(dpy); local 1405 const egl_display_ptr dp = validate_display(dpy); local 1426 const egl_display_ptr dp = validate_display(dpy); local 1446 const egl_display_ptr dp = validate_display(dpy); local 1461 const egl_display_ptr dp = validate_display(dpy); local 1475 const egl_display_ptr dp = validate_display(dpy); local 1492 const egl_display_ptr dp = validate_display(dpy); local 1509 const egl_display_ptr dp = validate_display(dpy); local 1525 const egl_display_ptr dp = validate_display(dpy); local 1541 const egl_display_ptr dp = validate_display(dpy); local 1558 const egl_display_ptr dp = validate_display(dpy); local 1575 const egl_display_ptr dp = validate_display(dpy); local 1592 const egl_display_ptr dp = validate_display(dpy); local 1609 const egl_display_ptr dp = validate_display(dpy); local 1626 egl_display_ptr dp = validate_display(dpy); local 1647 const egl_display_ptr dp = validate_display(dpy); local 1664 const egl_display_ptr dp = validate_display(dpy); local 1681 const egl_display_ptr dp = validate_display(dpy); local 1698 const egl_display_ptr dp = validate_display(dpy); local 1715 const egl_display_ptr dp = validate_display(dpy); local 1733 const egl_display_ptr dp = validate_display(dpy); local 1751 const egl_display_ptr dp = validate_display(dpy); local 1767 const egl_display_ptr dp = validate_display(dpy); local 1918 const egl_display_ptr dp = validate_display(dpy); local [all...] |
H A D | egl.cpp | 97 egl_display_ptr dp = get_display(dpy); local 98 if (!dp) 100 if (!dp->isReady()) 103 return dp; 109 egl_display_ptr dp = validate_display(dpy); local 110 if (!dp) 111 return dp; 116 return dp;
|
/frameworks/base/packages/CaptivePortalLogin/src/com/android/captiveportallogin/ |
H A D | CaptivePortalLoginActivity.java | 254 // dp/sp = (px/sp) / (px/dp) = (1/sp) / (1/dp) 303 // Convert Android device-independent-pixels (dp) to HTML size. 304 private String dp(int dp) { argument 305 // HTML px's are scaled just like dp's, so just add "px" suffix. 306 return Integer.toString(dp) + "px"; 311 // Convert sp to dp's. 312 float dp [all...] |
/frameworks/base/libs/hwui/tests/macrobench/ |
H A D | TestSceneRunner.cpp | 90 proxy->setup(width, height, dp(800.0f), 255 * 0.075, 255 * 0.15); 91 proxy->setLightCenter((Vector3){lightX, dp(-200.0f), dp(800.0f)});
|
/frameworks/base/libs/hwui/tests/common/ |
H A D | TestContext.h | 33 #define dp(x) ((x) * android::uirenderer::test::gDisplay.density) macro
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
H A D | DataConnection.java | 504 DisconnectParams dp = (DisconnectParams)o; 505 apnContext = dp.mApnContext; 506 if (TextUtils.equals(dp.mReason, Phone.REASON_RADIO_TURNED_OFF)) { 508 } else if (TextUtils.equals(dp.mReason, Phone.REASON_PDP_RESET)) { 604 * @param dp is the DisconnectParams. 606 private void notifyDisconnectCompleted(DisconnectParams dp, boolean sendAll) { argument 612 if (dp != null && dp.mOnCompletedMsg != null) { 614 Message msg = dp.mOnCompletedMsg; 615 dp 1231 setEnterNotificationParams(DisconnectParams dp) argument [all...] |
H A D | DcTracker.java | 3317 DataProfile dp = new DataProfile(apn, 3321 if (dp.equals(dpIn)) { 3327 dps.add(dp);
|
/frameworks/native/include/ui/ |
H A D | Rect.h | 160 Rect& offsetBy(const Point& dp) { argument 161 return offsetBy(dp.x, dp.y);
|
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/ |
H A D | NekoDialog.java | 42 final float dp = context.getResources().getDisplayMetrics().density; 43 final int pad = (int)(16*dp);
|
/frameworks/base/core/java/com/android/internal/app/ |
H A D | PlatLogoActivity.java | 75 final float dp = dm.density; 77 (Math.min(Math.min(dm.widthPixels, dm.heightPixels), 600*dp) - 100*dp); 80 final int pad = (int)(40*dp);
|
/frameworks/opt/setupwizard/library/eclair-mr1/test/src/com/android/setupwizardlib/test/ |
H A D | LinkAccessibilityHelperTest.java | 118 assertEquals("LinkSpan bounds should be (10.5dp, 0dp, 18.5dp, 20.5dp)", 124 private int dp2Px(float dp) { argument 128 return (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp, mDisplayMetrics);
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/geometry/ |
H A D | Quad.java | 95 PointF dp = new PointF(topRight.x - topLeft.x, topRight.y - topLeft.y); 96 float len = dp.length(); 97 PointF np = new PointF(height * (dp.y / len), height * (dp.x / len));
|
/frameworks/base/libs/hwui/ |
H A D | FrameInfoVisualizer.cpp | 64 static int dpToPx(int dp, float density) { argument 65 return (int) (dp * density + 0.5f);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/misc/ |
H A D | Utilities.java | 276 public static float dpToPx(Resources res, float dp) { argument 277 return TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp, res.getDisplayMetrics());
|
/frameworks/rs/driver/runtime/ |
H A D | rs_allocation.c | 117 uint8_t *dp = &p[(sizeOf * x) + (y * stride) + local 119 return dp; 133 uint8_t *dp = &p[(sizeOf * x) + (y * stride) + local 135 return dp;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/egg/ |
H A D | MLand.java | 176 private static float dp = 1f; field in class:MLand 207 mPlayerTracePaint.setStrokeWidth(2 * dp); 220 dp = getResources().getDisplayMetrics().density; 287 dp = getResources().getDisplayMetrics().density;
|
/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | Settings.java | 543 final PackageSetting dp = mDisabledSysPackages.get(name); 545 if (dp == null && p.pkg != null && p.pkg.isSystemApp() && !p.pkg.isUpdatedSystemApp()) {
|