Home
last modified time | relevance | path

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

/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DUndoBarView.java63 mBarHeight = GalleryUtils.dpToPixel(48); in UndoBarView()
64 mBarMargin = GalleryUtils.dpToPixel(4); in UndoBarView()
65 mUndoTextMargin = GalleryUtils.dpToPixel(16); in UndoBarView()
66 mIconMargin = GalleryUtils.dpToPixel(8); in UndoBarView()
67 mIconSize = GalleryUtils.dpToPixel(32); in UndoBarView()
68 mSeparatorRightMargin = GalleryUtils.dpToPixel(12); in UndoBarView()
69 mSeparatorTopMargin = GalleryUtils.dpToPixel(10); in UndoBarView()
70 mSeparatorBottomMargin = GalleryUtils.dpToPixel(10); in UndoBarView()
71 mSeparatorWidth = GalleryUtils.dpToPixel(1); in UndoBarView()
72 mDeletedTextMargin = GalleryUtils.dpToPixel(16); in UndoBarView()
[all …]
DPhotoView.java1106 int maxVelocity = GalleryUtils.dpToPixel(MAX_DISMISS_VELOCITY); in flingImages()
1107 int escapeVelocity = GalleryUtils.dpToPixel(SWIPE_ESCAPE_VELOCITY); in flingImages()
1108 int escapeDistance = GalleryUtils.dpToPixel(SWIPE_ESCAPE_DISTANCE); in flingImages()
DPositionController.java104 private static final int IMAGE_GAP = GalleryUtils.dpToPixel(16);
105 private static final int HORIZONTAL_SLACK = GalleryUtils.dpToPixel(12);
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DGalleryUtils.java108 public static float dpToPixel(float dp) { in dpToPixel() method in GalleryUtils
112 public static int dpToPixel(int dp) { in dpToPixel() method in GalleryUtils
113 return Math.round(dpToPixel((float) dp)); in dpToPixel()
118 return Math.round(dpToPixel(meter * 39.37f * 160)); in meterToPixel()
/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()
DIndicatorControlWheel.java160 mStrokeWidth = Util.dpToPixel(IndicatorControlWheelContainer.STROKE_WIDTH); in initialize()
344 mCenterX = right - left - Util.dpToPixel( in onLayout()
DIndicatorControlBar.java37 public static final int ICON_SPACING = Util.dpToPixel(16);
DSecondLevelIndicatorControlBar.java37 private static int ICON_SPACING = Util.dpToPixel(16);
/packages/apps/LegacyCamera/src/com/android/camera/
DUtil.java108 public static int dpToPixel(int dp) { in dpToPixel() method in Util
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/recyclerview/
DCarUiRecyclerViewTest.java1081 int margin = (int) dpToPixel(mTestableContext, 15) in testScrollbarVisibility_justEnoughToShowOnlyButtons()
1116 int margin = (int) dpToPixel(mTestableContext, 15) in testScrollbarVisibility_enoughToShowEverything()
1905 private static float dpToPixel(Context context, int dp) { in dpToPixel() method in CarUiRecyclerViewTest