/frameworks/base/core/java/android/inputmethodservice/navigationbar/ |
D | NavigationBarUtils.java | 19 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/ |
D | NavigationHandle.java | 59 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/ |
D | QrDecorateView.java | 74 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/ |
D | TypedValue.java | 111 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/ |
D | LayoutPreview.kt | 28 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/ |
D | FocusEventDebugView.java | 19 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/ |
D | AccessibilityUtils.java | 122 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/ |
D | Dimension.kt | 32 TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, toFloat(), displayMetrics)
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
D | SelectablePreference.java | 32 mSize = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 32, in SelectablePreference()
|
D | NavBarTuner.java | 180 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()
|
D | LockscreenFragment.java | 360 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/ |
D | ScrollViewActivity.java | 36 text.setTextSize(TypedValue.COMPLEX_UNIT_DIP, 40); in onCreate()
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | TypedValueTest.kt | 155 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/ |
D | KeyboardLayoutPreviewDrawable.java | 420 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/ |
D | DimensionConsistencyTest.java | 63 return (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp, displayMetrics); in dp2Px()
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/leanback/ |
D | TestHelper.java | 110 (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/ |
D | GlifDimensionTest.java | 110 return (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp, displayMetrics); in dp2Px()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/ |
D | PipContentOverlay.java | 19 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/ |
D | CachingIconViewTest.java | 233 (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/ |
D | LinkAccessibilityHelperTest.java | 311 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/ |
D | ButtonPreference.java | 148 int size = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, ICON_SIZE, in setIcon()
|
/frameworks/base/core/java/com/android/internal/policy/ |
D | GestureNavigationSettingsObserver.java | 176 final float inset = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, backGestureInset, in getUnscaledInset()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/ |
D | PipUtils.kt | 81 return TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dpValue, dm).toInt() in dpToPx()
|
/frameworks/base/core/java/android/widget/ |
D | CalendarViewLegacyDelegate.java | 301 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/ |
D | GlassActivity.kt | 102 materialView.blurRadius = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, in <lambda>()
|