/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/modules/Permission/PermissionController/src/com/android/permissioncontroller/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/Launcher3/quickstep/src/com/android/quickstep/interaction/ |
D | TutorialStepIndicator.java | 103 lp.setMarginStart(Utilities.dpToPx(3)); in initializeStepIndicators() 104 lp.setMarginEnd(Utilities.dpToPx(3)); in initializeStepIndicators()
|
D | SwipeUpGestureTutorialController.java | 63 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()
|
D | EdgeBackGestureHandler.java | 103 mEdgeWidth = systemBackRegion == 0 ? Utilities.dpToPx(18) : systemBackRegion; in EdgeBackGestureHandler()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/ |
D | LauncherSwipeHandlerV2.java | 22 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/ |
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/Launcher3/quickstep/src/com/android/quickstep/util/ |
D | RectFSpringAnim2.java | 18 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/ |
D | SmsBottomSheetFragment.java | 103 int padding = (int) DpUtil.dpToPx(context, 16); in newTextViewItem()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | DeviceProfile.java | 383 && 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()
|
D | Utilities.java | 474 public static int dpToPx(float dp) { in dpToPx() method in Utilities
|
/packages/apps/Launcher3/src/com/android/launcher3/folder/ |
D | PreviewItemManager.java | 105 mClipThreshold = Utilities.dpToPx(1f); in PreviewItemManager()
|