Searched refs:dpToPx (Results 1 – 5 of 5) sorted by relevance
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | SysUiOverlay.java | 59 private static float dpToPx(DisplayMetrics metrics, float value) { in dpToPx() method in SysUiOverlay 69 float cornerSizePx = dpToPx(metrics, cornerSizeDp); in SysUiOverlay() 70 float radiusPx = dpToPx(metrics, radiusDp); in SysUiOverlay() 72 float topNotchWidthPx = dpToPx(metrics, topNotchWidthDp); in SysUiOverlay() 73 float bottomNotchWidthPx = dpToPx(metrics, bottomNotchWidthDp); in SysUiOverlay() 74 float notchHeightPx = dpToPx(metrics, notchHeightDp); in SysUiOverlay()
|
/frameworks/base/libs/hwui/ |
D | FrameInfoVisualizer.cpp | 66 static int dpToPx(int dp, float density) { in dpToPx() function 85 mVerticalUnit = static_cast<int>(dpToPx(PROFILE_DRAW_DP_PER_MS, density) * (float)16_ms / in setDensity() 87 mThresholdStroke = dpToPx(PROFILE_DRAW_THRESHOLD_STROKE_WIDTH, density); in setDensity()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/ |
D | PipBoundsAlgorithm.java | 92 : new Point(dpToPx(screenEdgeInsetsDp.getWidth(), res.getDisplayMetrics()), in reloadResources() 93 dpToPx(screenEdgeInsetsDp.getHeight(), res.getDisplayMetrics())); in reloadResources() 397 private int dpToPx(float dpValue, DisplayMetrics dm) { in dpToPx() method in PipBoundsAlgorithm
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/ |
D | ScreenshotView.java | 273 tmpRect.inset((int) dpToPx(-SWIPE_PADDING_DP), (int) dpToPx(-SWIPE_PADDING_DP)); in getTouchRegion() 276 tmpRect.inset((int) dpToPx(-SWIPE_PADDING_DP), (int) dpToPx(-SWIPE_PADDING_DP)); in getTouchRegion() 361 int swipePaddingPx = (int) dpToPx(SWIPE_PADDING_DP); in onFinishInflate() 1093 private float dpToPx(float dp) { in dpToPx() method in ScreenshotView 1173 return Math.abs(translationX) >= dpToPx(DISMISS_DISTANCE_THRESHOLD_DP); in isPastDismissThreshold()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/people/ |
D | PeopleTileViewHelper.java | 606 int outerPaddingPx = dpToPx(outerPadding); in createDndRemoteViews() 607 int outerPaddingTopPx = dpToPx(outerPaddingTop); in createDndRemoteViews() 632 /* min= */ dpToPx(10), in createDndRemoteViews() 1348 text, 0, text.length(), paint, dpToPx(availableWidthDp)) in buildStaticLayout() 1361 private int dpToPx(float dp) { in dpToPx() method in PeopleTileViewHelper
|