Home
last modified time | relevance | path

Searched refs:COMPLEX_UNIT_DIP (Results 1 – 25 of 62) sorted by relevance

123

/frameworks/base/core/java/android/inputmethodservice/navigationbar/
DNavigationBarUtils.java19 import static android.util.TypedValue.COMPLEX_UNIT_DIP;
40 return (int) TypedValue.applyDimension(COMPLEX_UNIT_DIP, dpValue, res.getDisplayMetrics()); in dpToPx()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DNavigationHandle.java59 mRadius = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, RADIUS_DP, in NavigationHandle()
61 mBottom = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, BOTTOM_DP, in NavigationHandle()
73 mWidth = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, WIDTH_DP, in NavigationHandle()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/qrcode/
DQrDecorateView.java74 mRadius = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, CORNER_RADIUS, in QrDecorateView()
77 mInnerRadius = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, in QrDecorateView()
132 final float cornerLineLength = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, in calculateFramePos()
134 final float strokeWidth = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, in calculateFramePos()
/frameworks/base/core/java/android/util/
DTypedValue.java111 COMPLEX_UNIT_DIP,
124 public static final int COMPLEX_UNIT_DIP = 1; field in TypedValue
427 case COMPLEX_UNIT_DIP: in applyDimension()
432 COMPLEX_UNIT_DIP, in applyDimension()
469 case COMPLEX_UNIT_DIP: { in deriveDimension()
478 final float dpValue = deriveDimension(COMPLEX_UNIT_DIP, pixelValue, metrics); in deriveDimension()
/frameworks/base/tests/InputScreenshotTest/src/android/input/screenshot/
DLayoutPreview.kt28 val width = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, in createLayoutPreview()
30 val height = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, in createLayoutPreview()
/frameworks/base/services/core/java/com/android/server/input/debug/
DFocusEventDebugView.java19 import static android.util.TypedValue.COMPLEX_UNIT_DIP;
108 mOuterPadding = (int) TypedValue.applyDimension(COMPLEX_UNIT_DIP, OUTER_PADDING_DP, mDm); in FocusEventDebugView()
391 (int) TypedValue.applyDimension(COMPLEX_UNIT_DIP, KEY_VIEW_SIDE_PADDING_DP, dm); in PressedKeyView()
393 (int) TypedValue.applyDimension(COMPLEX_UNIT_DIP, KEY_VIEW_VERTICAL_PADDING_DP, in PressedKeyView()
396 (int) TypedValue.applyDimension(COMPLEX_UNIT_DIP, KEY_VIEW_MIN_WIDTH_DP, dm); in PressedKeyView()
433 (int) TypedValue.applyDimension(COMPLEX_UNIT_DIP, KEY_SEPARATION_MARGIN_DP, dm); in PressedKeyContainer()
/frameworks/base/core/java/android/accessibilityservice/util/
DAccessibilityUtils.java122 return Math.round(TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, screenWidthDp, in getScreenWidthPixels()
136 return Math.round(TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, screenHeightDp, in getScreenHeightPixels()
/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/util/
DDimension.kt32 TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, toFloat(), displayMetrics)
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DSelectablePreference.java32 mSize = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 32, in SelectablePreference()
DNavBarTuner.java180 int size = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 14, in updateSummary()
222 int size = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 14, in setupIcons()
DLockscreenFragment.java360 int size = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 32, in ShortcutButton()
388 int size = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 32, in ActivityButton()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/scroll/
DScrollViewActivity.java36 text.setTextSize(TypedValue.COMPLEX_UNIT_DIP, 40); in onCreate()
/frameworks/base/core/tests/coretests/src/android/util/
DTypedValueTest.kt155 TypedValue.COMPLEX_UNIT_DIP in <lambda>()
228 TypedValue.COMPLEX_UNIT_DIP, in <lambda>()
254 TypedValue.COMPLEX_UNIT_DIP, in <lambda>()
/frameworks/base/core/java/android/hardware/input/
DKeyboardLayoutPreviewDrawable.java420 mKeyPadding = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, in ResourceProvider()
422 mKeyboardPadding = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, in ResourceProvider()
424 mKeyRadius = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, in ResourceProvider()
426 mBackgroundRadius = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, in ResourceProvider()
430 mTextPadding = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, in ResourceProvider()
/frameworks/opt/setupwizard/library/gingerbread/test/robotest/src/com/android/setupwizardlib/util/
DDimensionConsistencyTest.java63 return (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp, displayMetrics); in dp2Px()
/frameworks/base/tests/UiBench/src/com/android/test/uibench/leanback/
DTestHelper.java110 (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, mWidthDP, dm), in build()
111 (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, mHeightDP, dm)); in build()
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/util/
DGlifDimensionTest.java110 return (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp, displayMetrics); in dp2Px()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/
DPipContentOverlay.java19 import static android.util.TypedValue.COMPLEX_UNIT_DIP;
173 final int maxAppIconSizePx = (int) TypedValue.applyDimension(COMPLEX_UNIT_DIP, in PipAppIconOverlay()
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
DCachingIconViewTest.java233 (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 80f, in assertDrawableResized()
248 (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 80f, in assertDrawableNotResized()
/frameworks/opt/setupwizard/library/gingerbread/test/instrumentation/src/com/android/setupwizardlib/util/
DLinkAccessibilityHelperTest.java311 mTextView.setTextSize(TypedValue.COMPLEX_UNIT_DIP, 15); in initTextView()
324 return (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp, mDisplayMetrics); in dp2Px()
/frameworks/base/packages/SettingsLib/ButtonPreference/src/com/android/settingslib/widget/
DButtonPreference.java148 int size = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, ICON_SIZE, in setIcon()
/frameworks/base/core/java/com/android/internal/policy/
DGestureNavigationSettingsObserver.java176 final float inset = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, backGestureInset, in getUnscaledInset()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/
DPipUtils.kt81 return TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dpValue, dm).toInt() in dpToPx()
/frameworks/base/core/java/android/widget/
DCalendarViewLegacyDelegate.java301 mWeekMinVisibleHeight = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, in CalendarViewLegacyDelegate()
303 mListScrollTopOffset = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, in CalendarViewLegacyDelegate()
305 mBottomBuffer = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, in CalendarViewLegacyDelegate()
307 mSelectedDateVerticalBarWidth = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, in CalendarViewLegacyDelegate()
309 mWeekSeparatorLineWidth = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, in CalendarViewLegacyDelegate()
/frameworks/base/tests/graphics/SilkFX/src/com/android/test/silkfx/materials/
DGlassActivity.kt102 materialView.blurRadius = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, in <lambda>()

123