Home
last modified time | relevance | path

Searched refs:dpToPixel (Results 1 – 18 of 18) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DUndoBarView.java58 mBarHeight = (int) GalleryUtils.dpToPixel(48); in UndoBarView()
59 mBarMargin = (int) GalleryUtils.dpToPixel(4); in UndoBarView()
60 mUndoTextMargin = (int) GalleryUtils.dpToPixel(16); in UndoBarView()
61 mIconMargin = (int) GalleryUtils.dpToPixel(8); in UndoBarView()
62 mIconSize = (int) GalleryUtils.dpToPixel(32); in UndoBarView()
63 mSeparatorRightMargin = (int) GalleryUtils.dpToPixel(12); in UndoBarView()
64 mSeparatorTopMargin = (int) GalleryUtils.dpToPixel(10); in UndoBarView()
65 mSeparatorBottomMargin = (int) GalleryUtils.dpToPixel(10); in UndoBarView()
66 mSeparatorWidth = (int) GalleryUtils.dpToPixel(1); in UndoBarView()
67 mDeletedTextMargin = (int) GalleryUtils.dpToPixel(16); in UndoBarView()
[all …]
DPhotoView.java1049 int maxVelocity = (int) GalleryUtils.dpToPixel(MAX_DISMISS_VELOCITY); in flingImages()
1051 (int) GalleryUtils.dpToPixel(SWIPE_ESCAPE_VELOCITY); in flingImages()
DPositionController.java103 private static final int IMAGE_GAP = GalleryUtils.dpToPixel(16);
104 private static final int HORIZONTAL_SLACK = GalleryUtils.dpToPixel(12);
/packages/apps/Camera/src/com/android/camera/ui/
DZoomControlWheel.java80 mShutterButtonRadius = Util.dpToPixel(IndicatorControlWheelContainer.SHUTTER_BUTTON_RADIUS); in ZoomControlWheel()
81 mStrokeWidth = Util.dpToPixel(IndicatorControlWheelContainer.STROKE_WIDTH); in ZoomControlWheel()
163 mCenterX = right - left - Util.dpToPixel( in onLayout()
168 mCenterY = bottom - top - Util.dpToPixel( in onLayout()
DIndicatorControlWheelContainer.java67 mShutterButtonRadius = Util.dpToPixel(SHUTTER_BUTTON_RADIUS); in onFinishInflate()
124 mCenterX = right - left - Util.dpToPixel(WHEEL_CENTER_TO_SECANT); in onLayout()
132 mCenterY = bottom - top - Util.dpToPixel(WHEEL_CENTER_TO_SECANT); in onLayout()
DZoomControlBar.java34 private static final int THRESHOLD_FIRST_MOVE = Util.dpToPixel(10); // pixels
36 private static final int ICON_SPACING = Util.dpToPixel(12);
DIndicatorControlWheel.java211 mShutterButtonRadius = Util.dpToPixel( in initialize()
213 mStrokeWidth = Util.dpToPixel(IndicatorControlWheelContainer.STROKE_WIDTH); in initialize()
465 mCenterX = right - left - Util.dpToPixel( in onLayout()
470 mCenterY = bottom - top - Util.dpToPixel( in onLayout()
DIndicatorControlBar.java39 public static final int ICON_SPACING = Util.dpToPixel(16);
DSecondLevelIndicatorControlBar.java38 private static int ICON_SPACING = Util.dpToPixel(16);
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DZoomControlBar.java32 private static final int THRESHOLD_FIRST_MOVE = Util.dpToPixel(10); // pixels
34 private static final int ICON_SPACING = Util.dpToPixel(12);
DIndicatorControlWheelContainer.java53 mShutterButtonRadius = Util.dpToPixel(SHUTTER_BUTTON_RADIUS); in onFinishInflate()
106 mCenterX = right - left - Util.dpToPixel(FULL_WHEEL_RADIUS); in onLayout()
DZoomControlWheel.java82 mStrokeWidth = Util.dpToPixel(IndicatorControlWheelContainer.STROKE_WIDTH); in ZoomControlWheel()
146 mCenterX = right - left - Util.dpToPixel( in onLayout()
DIndicatorControlBar.java37 public static final int ICON_SPACING = Util.dpToPixel(16);
DIndicatorControlWheel.java160 mStrokeWidth = Util.dpToPixel(IndicatorControlWheelContainer.STROKE_WIDTH); in initialize()
337 mCenterX = right - left - Util.dpToPixel( in onLayout()
DSecondLevelIndicatorControlBar.java37 private static int ICON_SPACING = Util.dpToPixel(16);
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DGalleryUtils.java81 public static float dpToPixel(float dp) { in dpToPixel() method in GalleryUtils
85 public static int dpToPixel(int dp) { in dpToPixel() method in GalleryUtils
86 return Math.round(dpToPixel((float) dp)); in dpToPixel()
91 return Math.round(dpToPixel(meter * 39.37f * 160)); in meterToPixel()
/packages/apps/LegacyCamera/src/com/android/camera/
DUtil.java108 public static int dpToPixel(int dp) { in dpToPixel() method in Util
/packages/apps/Camera/src/com/android/camera/
DUtil.java93 public static int dpToPixel(int dp) { in dpToPixel() method in Util