Home
last modified time | relevance | path

Searched refs:dpToPx (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/widget/
DAbsSeekBarTest.java63 mBar.setThumb(newThumb(dpToPx(20))); in testExclusionForThumb_limitedTo48dp()
67 measureAndLayout(dpToPx(200), dpToPx(100)); in testExclusionForThumb_limitedTo48dp()
73 assertEquals("exclusion should be 48dp high", dpToPx(48), exclusions.get(0).height()); in testExclusionForThumb_limitedTo48dp()
74 assertEquals("exclusion should be 48dp wide", dpToPx(48), exclusions.get(0).width()); in testExclusionForThumb_limitedTo48dp()
80 mBar.setThumb(newThumb(dpToPx(20))); in testExclusionForThumb_limitedToHeight()
84 measureAndLayout(dpToPx(200), dpToPx(32)); in testExclusionForThumb_limitedToHeight()
90 assertEquals("exclusion should be 32dp high", dpToPx(32), exclusions.get(0).height()); in testExclusionForThumb_limitedToHeight()
91 assertEquals("exclusion should be 32dp wide", dpToPx(32), exclusions.get(0).width()); in testExclusionForThumb_limitedToHeight()
99 mBar.setThumb(newThumb(dpToPx(20))); in testExclusionForThumb_passesThroughUserExclusions()
103 measureAndLayout(dpToPx(200), dpToPx(32)); in testExclusionForThumb_passesThroughUserExclusions()
[all …]
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DSysUiOverlay.java59 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/
DFrameInfoVisualizer.cpp66 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/services/core/java/com/android/server/wm/
DPinnedStackController.java203 : new Point(dpToPx(screenEdgeInsetsDp.getWidth(), mTmpMetrics), in reloadResources()
204 dpToPx(screenEdgeInsetsDp.getHeight(), mTmpMetrics)); in reloadResources()
588 private int dpToPx(float dpValue, DisplayMetrics dm) { in dpToPx() method in PinnedStackController
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/utilities/
DUtilities.java231 public static float dpToPx(Resources res, float dp) { in dpToPx() method in Utilities