Home
last modified time | relevance | path

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

/packages/apps/Dialer/java/com/android/incallui/answer/impl/answermethod/
DFlingUpDownMethod.java475 -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 …]
DFlingUpDownTouchHandler.java181 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/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/utils/
DUiUtils.java49 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/
DTouchTargetEnforcer.java71 int minTargetPx = (int) Math.ceil(dpToPx(MIN_TARGET_DP)); in enforce()
123 private float dpToPx(int dp) { in dpToPx() method in TouchTargetEnforcer
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/interaction/
DTutorialStepIndicator.java103 lp.setMarginStart(Utilities.dpToPx(3)); in initializeStepIndicators()
104 lp.setMarginEnd(Utilities.dpToPx(3)); in initializeStepIndicators()
DSwipeUpGestureTutorialController.java63 private static final int FAKE_PREVIOUS_TASK_MARGIN = Utilities.dpToPx(12);
301 int fakeHomeIconSizePx = Utilities.dpToPx(60); in handleSwipeUpToHome()
303 int fakeHomeIconTop = mDp.heightPx - Utilities.dpToPx(216); in handleSwipeUpToHome()
DEdgeBackGestureHandler.java103 mEdgeWidth = systemBackRegion == 0 ? Utilities.dpToPx(18) : systemBackRegion; in EdgeBackGestureHandler()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DLauncherSwipeHandlerV2.java22 import static com.android.launcher3.Utilities.dpToPx;
123 final float transY = dpToPx(rp.getFloat(R.dimen.swipe_up_trans_y_dp));
292 mTransY = dpToPx(rp.getFloat(R.dimen.swipe_up_trans_y_dp));
/packages/apps/Gallery/src/com/android/camera/
DGridViewSpecial.java82 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/
DDpUtil.java28 public static float dpToPx(Context context, float dp) { in dpToPx() method in DpUtil
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DRectFSpringAnim2.java18 import static com.android.launcher3.Utilities.dpToPx;
153 mHomeTransYEnd = dpToPx(rp.getFloat(R.dimen.swipe_up_trans_y_dp)); in RectFSpringAnim2()
/packages/apps/Dialer/java/com/android/incallui/answer/impl/
DSmsBottomSheetFragment.java103 int padding = (int) DpUtil.dpToPx(context, 16); in newTextViewItem()
/packages/apps/Launcher3/src/com/android/launcher3/
DDeviceProfile.java383 && extraSpace >= Utilities.dpToPx(TALL_DEVICE_EXTRA_SPACE_THRESHOLD_DP)) { in DeviceProfile()
388 int piece = extraSpace < Utilities.dpToPx(TALL_DEVICE_MORE_EXTRA_SPACE_THRESHOLD_DP) in DeviceProfile()
DUtilities.java474 public static int dpToPx(float dp) { in dpToPx() method in Utilities
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DPreviewItemManager.java105 mClipThreshold = Utilities.dpToPx(1f); in PreviewItemManager()