Home
last modified time | relevance | path

Searched refs:viewHeight (Results 1 – 13 of 13) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DGeometryMathUtils.java332 boolean reflectRotation, Rect bmapDimens, float viewWidth, float viewHeight) { in getImageToScreenMatrix() argument
335 bmapDimens.height(), viewWidth, viewHeight); in getImageToScreenMatrix()
374 float originalHeight, float viewWidth, float viewHeight) { in getOriginalToScreen() argument
381 (int) originalHeight, (int) viewWidth, (int) viewHeight); in getOriginalToScreen()
402 Bitmap photo, int viewWidth, int viewHeight) { in drawTransformedCropped() argument
408 viewWidth, viewHeight); in drawTransformedCropped()
441 int bitmapHeight, int viewWidth, int viewHeight) { in getFullGeometryToScreenMatrix() argument
448 float scale = GeometryMathUtils.scale(bw, bh, viewWidth, viewHeight); in getFullGeometryToScreenMatrix()
450 float s = Math.min(viewWidth / (float) bitmapWidth, viewHeight / (float) bitmapHeight); in getFullGeometryToScreenMatrix()
453 m.postTranslate(viewWidth / 2f, viewHeight / 2f); in getFullGeometryToScreenMatrix()
[all …]
DImageStraighten.java207 int imageHeight, int viewWidth, int viewHeight) { in updateCurrentCrop() argument
225 float scale = GeometryMathUtils.scale(iw, ih, viewWidth, viewHeight); in updateCurrentCrop()
229 tmp.offset(viewWidth / 2f - tmp.centerX(), viewHeight / 2f - tmp.centerY()); in updateCurrentCrop()
232 imageHeight, viewWidth, viewHeight); in updateCurrentCrop()
254 int viewHeight = canvas.getHeight(); in onDraw() local
258 imageHeight, viewWidth, viewHeight); in onDraw()
269 imageHeight, viewWidth, viewHeight); in onDraw()
281 float step = Math.max(viewWidth, viewHeight) / NBLINES; in onDraw()
290 canvas.drawLine(p, 0, p, viewHeight, mPaint); in onDraw()
/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/
DImageViewTouchBase.java265 final float viewHeight = getHeight(); in getProperBaseMatrix() local
275 float heightScale = Math.min(viewHeight / h, 10.0f); in getProperBaseMatrix()
278 matrix.postTranslate((viewWidth - w * scale) / 2F, (viewHeight - h * scale) / 2F); in getProperBaseMatrix()
280 matrix.postTranslate((viewWidth - w) / 2F, (viewHeight - h) / 2F); in getProperBaseMatrix()
327 public static float maxZoom(int bitmapWidth, int bitmapHeight, int viewWidth, int viewHeight) { in maxZoom() argument
329 final float fh = (float)bitmapHeight / viewHeight; in maxZoom()
493 int viewHeight = getHeight(); in center() local
494 if (height < viewHeight) { in center()
495 deltaY = (viewHeight - height) / 2 - rect.top; in center()
498 } else if (rect.bottom < viewHeight) { in center()
/packages/apps/Gallery/src/com/android/camera/
DImageViewTouchBase.java205 int viewHeight = getHeight(); in center() local
206 if (height < viewHeight) { in center()
207 deltaY = (viewHeight - height) / 2 - rect.top; in center()
210 } else if (rect.bottom < viewHeight) { in center()
261 float viewHeight = getHeight(); in getProperBaseMatrix() local
270 float heightScale = Math.min(viewHeight / h, 3.0f); in getProperBaseMatrix()
278 (viewHeight - h * scale) / 2F); in getProperBaseMatrix()
/packages/apps/InCallUI/src/com/android/incallui/
DSmallerHitTargetTouchListener.java67 final int viewHeight = v.getHeight(); in onTouch() local
78 if (viewWidth < targetMinSizeX || viewHeight < targetMinSizeY) { in onTouch()
90 final int maxTouchY = viewHeight - edgeIgnoreY; in onTouch()
/packages/services/Telephony/src/com/android/phone/
DSmallerHitTargetTouchListener.java68 final int viewHeight = v.getHeight(); in onTouch() local
79 if (viewWidth < targetMinSizeX || viewHeight < targetMinSizeY) { in onTouch()
91 final int maxTouchY = viewHeight - edgeIgnoreY; in onTouch()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DSlideshowView.java140 int viewHeight = getHeight(); in apply() local
143 viewWidth / mWidth, (float) viewHeight / mHeight); in apply()
147 float centerY = viewHeight / 2 + mMovingVector.y * mProgress; in apply()
/packages/apps/Launcher3/src/com/android/launcher3/
DButtonDropTarget.java126 Rect getIconRect(int viewWidth, int viewHeight, int drawableWidth, int drawableHeight) { in getIconRect() argument
154 final int yOffset = (int) -(viewHeight - height) / 2; in getIconRect()
/packages/apps/Launcher2/src/com/android/launcher2/
DButtonDropTarget.java124 Rect getIconRect(int viewWidth, int viewHeight, int drawableWidth, int drawableHeight) { in getIconRect() argument
152 final int yOffset = (int) -(viewHeight - height) / 2; in getIconRect()
/packages/apps/LegacyCamera/src/com/android/camera/
DUtil.java577 int viewWidth, int viewHeight) { in prepareMatrix() argument
584 matrix.postScale(viewWidth / 2000f, viewHeight / 2000f); in prepareMatrix()
585 matrix.postTranslate(viewWidth / 2f, viewHeight / 2f); in prepareMatrix()
/packages/apps/Camera/src/com/android/camera/
DUtil.java642 int viewWidth, int viewHeight) { in prepareMatrix() argument
649 matrix.postScale(viewWidth / 2000f, viewHeight / 2000f); in prepareMatrix()
650 matrix.postTranslate(viewWidth / 2f, viewHeight / 2f); in prepareMatrix()
/packages/apps/Camera2/src/com/android/camera/util/
DCameraUtil.java692 int viewWidth, int viewHeight) { in prepareMatrix() argument
699 matrix.postScale(viewWidth / 2000f, viewHeight / 2000f); in prepareMatrix()
700 matrix.postTranslate(viewWidth / 2f, viewHeight / 2f); in prepareMatrix()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DAnimatedAdapter.java560 int deletedRow, int viewHeight) { in setupLeaveBehind() argument
567 leaveBehind.bind(deletedRow, mAccount, this, undoOp, target, mFolder, viewHeight); in setupLeaveBehind()