Searched refs:dpToPx (Results 1 – 7 of 7) sorted by relevance
/packages/apps/Dialer/java/com/android/incallui/answer/impl/answermethod/ |
D | FlingUpDownMethod.java | 475 -clampedProgress * DpUtil.dpToPx(getContext(), SWIPE_TO_ANSWER_MAX_TRANSLATION_Y_DP)); in updateSwipeTextAndPuckForTouch() 479 -clampedProgress * DpUtil.dpToPx(getContext(), SWIPE_TO_REJECT_MAX_TRANSLATION_Y_DP)); in updateSwipeTextAndPuckForTouch() 600 DpUtil.dpToPx(getContext(), 192 /* dp */), in startSwipeToAnswerEntryAnimation() 601 DpUtil.dpToPx(getContext(), -20 /* dp */)); in startSwipeToAnswerEntryAnimation() 609 DpUtil.dpToPx(getContext(), -20) /* dp */, in startSwipeToAnswerEntryAnimation() 622 DpUtil.dpToPx(getContext(), HINT_REJECT_FADE_TRANSLATION_Y_DP), in startSwipeToAnswerEntryAnimation() 632 DpUtil.dpToPx(getContext(), 400 /* dp */), in startSwipeToAnswerEntryAnimation() 633 DpUtil.dpToPx(getContext(), -12 /* dp */)); in startSwipeToAnswerEntryAnimation() 643 DpUtil.dpToPx(getContext(), -12 /* dp */), in startSwipeToAnswerEntryAnimation() 753 float textOffset = DpUtil.dpToPx(getContext(), 42 /* dp */); in createBreatheAnimation() [all …]
|
D | FlingUpDownTouchHandler.java | 181 falsingThresholdPx = DpUtil.dpToPx(context, FALSING_THRESHOLD_DP); in FlingUpDownTouchHandler() 182 acceptThresholdPx = DpUtil.dpToPx(context, ACCEPT_THRESHOLD_DP); in FlingUpDownTouchHandler() 183 rejectThresholdPx = DpUtil.dpToPx(context, REJECT_THRESHOLD_DP); in FlingUpDownTouchHandler()
|
/packages/apps/PermissionController/src/com/android/packageinstaller/role/utils/ |
D | UiUtils.java | 49 public static float dpToPx(@Dimension(unit = Dimension.DP) float dp, @NonNull Context context) { in dpToPx() method in UiUtils 66 return (int) dpToPx(dp, context); in dpToPxOffset() 81 float value = dpToPx(dp, context); in dpToPxSize()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/ |
D | TouchTargetEnforcer.java | 71 int minTargetPx = (int) Math.ceil(dpToPx(MIN_TARGET_DP)); in enforce() 123 private float dpToPx(int dp) { in dpToPx() method in TouchTargetEnforcer
|
/packages/apps/Gallery/src/com/android/camera/ |
D | GridViewSpecial.java | 82 mCellWidth = dpToPx(w, metrics); in LayoutSpec() 83 mCellHeight = dpToPx(h, metrics); in LayoutSpec() 84 mCellSpacing = dpToPx(intercellSpacing, metrics); in LayoutSpec() 85 mLeftEdgePadding = dpToPx(leftEdgePadding, metrics); in LayoutSpec() 105 private static int dpToPx(int dp, DisplayMetrics metrics) { in dpToPx() method in GridViewSpecial
|
/packages/apps/Dialer/java/com/android/dialer/common/ |
D | DpUtil.java | 28 public static float dpToPx(Context context, float dp) { in dpToPx() method in DpUtil
|
/packages/apps/Dialer/java/com/android/incallui/answer/impl/ |
D | SmsBottomSheetFragment.java | 103 int padding = (int) DpUtil.dpToPx(context, 16); in newTextViewItem()
|