Home
last modified time | relevance | path

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

12

/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/base/packages/SettingsLib/src/com/android/settingslib/qrcode/
DQrDecorateView.java72 mRadius = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, CORNER_RADIUS, in QrDecorateView()
75 mInnerRidus = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, in QrDecorateView()
124 final float cornerLineLength = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, in calculateFramePos()
126 final float strokeWidth = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, in calculateFramePos()
/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/libs/WindowManager/Shell/src/com/android/wm/shell/pip/
DPipUtils.java21 import static android.util.TypedValue.COMPLEX_UNIT_DIP;
79 return (int) TypedValue.applyDimension(COMPLEX_UNIT_DIP, dpValue, dm); in dpToPx()
DPipContentOverlay.java19 import static android.util.TypedValue.COMPLEX_UNIT_DIP;
191 final int maxAppIconSizePx = (int) TypedValue.applyDimension(COMPLEX_UNIT_DIP, in PipAppIconOverlay()
/frameworks/base/core/java/android/util/
DTypedValue.java107 COMPLEX_UNIT_DIP,
120 public static final int COMPLEX_UNIT_DIP = 1; field in TypedValue
408 case COMPLEX_UNIT_DIP: in applyDimension()
/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.java355 int size = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 32, in ShortcutButton()
383 int size = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 32, in ActivityButton()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/
DScrollViewActivity.java36 text.setTextSize(TypedValue.COMPLEX_UNIT_DIP, 40); in onCreate()
/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/gingerbread/test/robotest/src/com/android/setupwizardlib/util/
DDimensionConsistencyTest.java63 return (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp, displayMetrics); in dp2Px()
/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/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/core/tests/coretests/src/android/util/
DTypedValueTest.kt150 TypedValue.COMPLEX_UNIT_DIP in testCreateComplexDimension_appliesUnits()
/frameworks/base/packages/SettingsLib/ButtonPreference/src/com/android/settingslib/widget/
DButtonPreference.java147 int size = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, ICON_SIZE, in setIcon()
/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/core/java/com/android/internal/policy/
DGestureNavigationSettingsObserver.java168 final float inset = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, backGestureInset, in getUnscaledInset()
/frameworks/base/tests/SilkFX/src/com/android/test/silkfx/materials/
DGlassActivity.kt102 materialView.blurRadius = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, in <lambda>()
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/template/
DButtonFooterMixinTest.java170 return (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp, displayMetrics); in dp2Px()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DKeyboardShortcutKeysLayout.java158 TypedValue.COMPLEX_UNIT_DIP, 4, displayMetrics); in getHorizontalVerticalSpacing()
/frameworks/base/services/core/java/com/android/server/wm/
DWatermark.java85 TypedValue.COMPLEX_UNIT_DIP, 20, dm); in Watermark()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DLayout.java235 width = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, width, metrics); in createSysUiLayoutParams()
238 height = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, height, metrics); in createSysUiLayoutParams()

12