/frameworks/base/libs/hwui/tests/common/ |
H A D | TestContext.h | 37 #define dp(x) ((x)*android::uirenderer::test::gDisplay.density) macro
|
/frameworks/opt/setupwizard/library/gingerbread/test/robotest/src/com/android/setupwizardlib/util/ |
H A D | DimensionConsistencyTest.java | 64 private int dp2Px(float dp) { argument 66 return (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp, displayMetrics);
|
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/util/ |
H A D | GlifDimensionTest.java | 99 + "4dp (internal padding of button) = suw_glif_button_margin_end", 110 private int dp2Px(float dp) { argument 112 return (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp, displayMetrics);
|
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/template/ |
H A D | ButtonFooterMixinTest.java | 167 private int dp2Px(float dp) { argument 169 return (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp, displayMetrics);
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/ |
H A D | NavigationBarCompat.java | 80 private static int convertDpToPixel(float dp){ argument 81 return (int) (dp * Resources.getSystem().getDisplayMetrics().density);
|
/frameworks/base/core/java/com/android/internal/app/ |
H A D | PlatLogoActivity.java | 40 private float maxRadius, radius, x, y, dp; field in class:PlatLogoActivity.PBackground 53 this.radius = Math.max(48*dp, r); 103 if (dp == 0) dp = getResources().getDisplayMetrics().density;
|
/frameworks/opt/setupwizard/library/gingerbread/test/instrumentation/src/com/android/setupwizardlib/util/ |
H A D | LinkAccessibilityHelperTest.java | 127 assertEquals("LinkSpan bounds should be (10.5dp, 0dp, 18.5dp, 20.5dp)", 163 assertEquals("LinkSpan bounds should be (481.5dp, 0dp, 489.5dp, 20.5dp)", 324 private int dp2Px(float dp) { argument 329 return (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp, mDisplayMetric [all...] |
/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/CarrierDefaultApp/src/com/android/carrierdefaultapp/ |
H A D | CaptivePortalLoginActivity.java | 348 // dp/sp = (px/sp) / (px/dp) = (1/sp) / (1/dp) 401 // Convert Android device-independent-pixels (dp) to HTML size. 402 private String dp(int dp) { argument 403 // HTML px's are scaled just like dp's, so just add "px" suffix. 404 return Integer.toString(dp) + "px"; 409 // Convert sp to dp's. 410 float dp [all...] |
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/utilities/ |
H A D | Utilities.java | 258 public static float dpToPx(Resources res, float dp) { argument 259 return TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp, res.getDisplayMetrics());
|
/frameworks/native/include/ui/ |
H A D | Rect.h | 171 Rect& offsetBy(const Point& dp) { argument 172 return offsetBy(dp.x, dp.y);
|
/frameworks/native/libs/ui/include/ui/ |
H A D | Rect.h | 171 Rect& offsetBy(const Point& dp) { argument 172 return offsetBy(dp.x, dp.y);
|
/frameworks/native/libs/ui/include_vndk/ui/ |
H A D | Rect.h | 171 Rect& offsetBy(const Point& dp) { argument 172 return offsetBy(dp.x, dp.y);
|
/frameworks/native/opengl/libs/EGL/ |
H A D | egl.cpp | 90 egl_display_ptr dp = get_display(dpy); local 91 if (!dp) 93 if (!dp->isReady()) 96 return dp; 102 egl_display_ptr dp = validate_display(dpy); local 103 if (!dp) 104 return dp; 109 return dp;
|
H A D | eglApi.cpp | 307 egl_display_ptr dp = get_display(dpy); local 308 if (!dp) return setError(EGL_BAD_DISPLAY, (EGLBoolean)EGL_FALSE); 310 EGLBoolean res = dp->initialize(major, minor); 323 egl_display_ptr dp = get_display(dpy); local 324 if (!dp) return setError(EGL_BAD_DISPLAY, (EGLBoolean)EGL_FALSE); 326 EGLBoolean res = dp->terminate(); 341 const egl_display_ptr dp = validate_display(dpy); local 342 if (!dp) return EGL_FALSE; 354 dp->disp.dpy, configs, config_size, num_config); 366 const egl_display_ptr dp local 445 const egl_display_ptr dp = validate_display_connection(dpy, cnx); local 485 getDriverColorSpaces(egl_display_ptr dp, android_pixel_format format) argument 545 processAttributes(egl_display_ptr dp, NativeWindowType window, android_pixel_format format, const EGLint* attrib_list, EGLint* colorSpace, std::vector<EGLint>* strippedAttribList) argument 703 egl_display_ptr dp = validate_display_connection(dpy, cnx); local 786 egl_display_ptr dp = validate_display_connection(dpy, cnx); local 820 egl_display_ptr dp = validate_display_connection(dpy, cnx); local 852 const egl_display_ptr dp = validate_display(dpy); local 872 const egl_display_ptr dp = validate_display(dpy); local 894 const egl_display_ptr dp = validate_display(dpy); local 915 const egl_display_ptr dp = validate_display_connection(dpy, cnx); local 954 const egl_display_ptr dp = validate_display(dpy); local 975 egl_display_ptr dp = validate_display(dpy); local 1102 const egl_display_ptr dp = validate_display(dpy); local 1372 const egl_display_ptr dp = validate_display(dpy); local 1441 const egl_display_ptr dp = validate_display(dpy); local 1466 const egl_display_ptr dp = validate_display(dpy); local 1488 const egl_display_ptr dp = validate_display(dpy); local 1515 const egl_display_ptr dp = validate_display(dpy); local 1556 const egl_display_ptr dp = validate_display(dpy); local 1576 const egl_display_ptr dp = validate_display(dpy); local 1595 const egl_display_ptr dp = validate_display(dpy); local 1686 const egl_display_ptr dp = validate_display_connection(dpy, cnx); local 1704 const egl_display_ptr dp = validate_display(dpy); local 1723 const egl_display_ptr dp = validate_display(dpy); local 1742 const egl_display_ptr dp = validate_display(dpy); local 1781 const egl_display_ptr dp = validate_display(dpy); local 1801 const egl_display_ptr dp = validate_display(dpy); local 1816 const egl_display_ptr dp = validate_display(dpy); local 1830 const egl_display_ptr dp = validate_display(dpy); local 1847 const egl_display_ptr dp = validate_display(dpy); local 1864 const egl_display_ptr dp = validate_display(dpy); local 1880 const egl_display_ptr dp = validate_display(dpy); local 1896 const egl_display_ptr dp = validate_display(dpy); local 1913 const egl_display_ptr dp = validate_display(dpy); local 1930 const egl_display_ptr dp = validate_display(dpy); local 1947 const egl_display_ptr dp = validate_display(dpy); local 1964 const egl_display_ptr dp = validate_display(dpy); local 1981 egl_display_ptr dp = validate_display(dpy); local 2002 const egl_display_ptr dp = validate_display(dpy); local 2019 const egl_display_ptr dp = validate_display(dpy); local 2036 const egl_display_ptr dp = validate_display(dpy); local 2053 const egl_display_ptr dp = validate_display(dpy); local 2070 const egl_display_ptr dp = validate_display(dpy); local 2088 const egl_display_ptr dp = validate_display(dpy); local 2106 const egl_display_ptr dp = validate_display(dpy); local 2122 const egl_display_ptr dp = validate_display(dpy); local 2199 const egl_display_ptr dp = validate_display(dpy); local 2224 const egl_display_ptr dp = validate_display(dpy); local 2259 const egl_display_ptr dp = validate_display(dpy); local 2316 const egl_display_ptr dp = validate_display(dpy); local 2349 const egl_display_ptr dp = validate_display(dpy); local 2436 const egl_display_ptr dp = validate_display(dpy); local [all...] |
/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
H A D | RenderingJitter.java | 125 mPaint.setTextSize(dp(10)); 128 mLabelWidth = textBounds.width() + dp(2); 144 private float dp(float dp) { argument 145 return mDensity * dp; 154 mPaint.setStrokeWidth(dp(1)); 164 mPaint.setStrokeWidth(dp(2)); 174 int graphWidth = (int) ((w - mLabelWidth - dp(1)) / mDensity);
|
/frameworks/rs/driver/runtime/ |
H A D | rs_allocation.c | 71 uint8_t *dp = &p[(sizeOf * x) + (y * stride) + local 73 return dp; 83 uint8_t *dp = &p[(sizeOf * x) + (y * stride) + local 85 return dp;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/ |
H A D | GarbageMonitor.java | 225 final float dp; field in class:GarbageMonitor.MemoryIconDrawable 229 dp = context.getResources().getDisplayMetrics().density; 255 canvas.translate(bounds.left + 8 * dp, bounds.top + 5 * dp); 257 canvas.drawRect(0, 14 * dp * (1 - frac), 8 * dp + 1, 14 * dp + 1, paint);
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/ |
H A D | DcTrackerTest.java | 511 private void verifyDataProfile(DataProfile dp, String apn, int profileId, argument 513 assertEquals(profileId, dp.getProfileId()); 514 assertEquals(apn, dp.getApn()); 515 assertEquals("IP", dp.getProtocol()); 516 assertEquals(0, dp.getAuthType()); 517 assertEquals("", dp.getUserName()); 518 assertEquals("", dp.getPassword()); 519 assertEquals(type, dp.getType()); 520 assertEquals(0, dp.getMaxConnsTime()); 521 assertEquals(0, dp [all...] |
/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/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
H A D | DataConnection.java | 536 DataProfile dp = DcTracker.createDataProfile(mApnSetting, cp.mProfileId); 550 ServiceState.rilRadioTechnologyToAccessNetworkType(cp.mRilRat), dp, isModemRoaming, 553 dp.getProfileId(), dp.getApn(), dp.getProtocol()); 572 DisconnectParams dp = (DisconnectParams) o; 573 apnContext = dp.mApnContext; 574 if (TextUtils.equals(dp.mReason, Phone.REASON_RADIO_TURNED_OFF) 575 || TextUtils.equals(dp.mReason, Phone.REASON_PDP_RESET)) { 662 * @param dp i 664 notifyDisconnectCompleted(DisconnectParams dp, boolean sendAll) argument 1455 setEnterNotificationParams(DisconnectParams dp) argument [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | RIL.java | 1125 * @param dp Data profile 1128 private static DataProfileInfo convertToHalDataProfile(DataProfile dp) { argument 1131 dpi.profileId = dp.getProfileId(); 1132 dpi.apn = dp.getApn(); 1133 dpi.protocol = dp.getProtocol(); 1134 dpi.roamingProtocol = dp.getRoamingProtocol(); 1135 dpi.authType = dp.getAuthType(); 1136 dpi.user = dp.getUserName(); 1137 dpi.password = dp.getPassword(); 1138 dpi.type = dp [all...] |