Searched defs:viewHeight (Results 1 - 9 of 9) sorted by relevance

/packages/apps/Launcher2/src/com/android/launcher2/
H A DButtonDropTarget.java124 Rect getIconRect(int viewWidth, int viewHeight, int drawableWidth, int drawableHeight) { argument
152 final int yOffset = (int) -(viewHeight - height) / 2;
/packages/apps/Launcher3/src/com/android/launcher3/
H A DButtonDropTarget.java126 Rect getIconRect(int viewWidth, int viewHeight, int drawableWidth, int drawableHeight) { argument
154 final int yOffset = (int) -(viewHeight - height) / 2;
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
H A DImageStraighten.java207 int imageHeight, int viewWidth, int viewHeight) {
225 float scale = GeometryMathUtils.scale(iw, ih, viewWidth, viewHeight);
229 tmp.offset(viewWidth / 2f - tmp.centerX(), viewHeight / 2f - tmp.centerY());
232 imageHeight, viewWidth, viewHeight);
254 int viewHeight = canvas.getHeight();
258 imageHeight, viewWidth, viewHeight);
269 imageHeight, viewWidth, viewHeight);
281 float step = Math.max(viewWidth, viewHeight) / NBLINES;
290 canvas.drawLine(p, 0, p, viewHeight, mPaint);
206 updateCurrentCrop(Matrix m, GeometryHolder h, RectF tmp, int imageWidth, int imageHeight, int viewWidth, int viewHeight) argument
H A DGeometryMathUtils.java332 boolean reflectRotation, Rect bmapDimens, float viewWidth, float viewHeight) {
335 bmapDimens.height(), viewWidth, viewHeight);
374 float originalHeight, float viewWidth, float viewHeight) {
381 (int) originalHeight, (int) viewWidth, (int) viewHeight);
402 Bitmap photo, int viewWidth, int viewHeight) {
408 viewWidth, viewHeight);
441 int bitmapHeight, int viewWidth, int viewHeight) {
448 float scale = GeometryMathUtils.scale(bw, bh, viewWidth, viewHeight);
450 float s = Math.min(viewWidth / (float) bitmapWidth, viewHeight / (float) bitmapHeight);
453 m.postTranslate(viewWidth / 2f, viewHeight /
331 getImageToScreenMatrix(Collection<FilterRepresentation> geometry, boolean reflectRotation, Rect bmapDimens, float viewWidth, float viewHeight) argument
372 getOriginalToScreen(GeometryHolder holder, boolean rotate, float originalWidth, float originalHeight, float viewWidth, float viewHeight) argument
401 drawTransformedCropped(GeometryHolder holder, Canvas canvas, Bitmap photo, int viewWidth, int viewHeight) argument
440 getFullGeometryToScreenMatrix(GeometryHolder holder, int bitmapWidth, int bitmapHeight, int viewWidth, int viewHeight) argument
468 getCropSelectionToScreenMatrix(RectF outCrop, GeometryHolder holder, int bitmapWidth, int bitmapHeight, int viewWidth, int viewHeight) argument
483 getCropSelectionToScreenMatrix(RectF outCrop, Collection<FilterRepresentation> res, int bitmapWidth, int bitmapHeight, int viewWidth, int viewHeight) argument
[all...]
/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/
H A DImageViewTouchBase.java265 final float viewHeight = getHeight();
275 float heightScale = Math.min(viewHeight / h, 10.0f);
278 matrix.postTranslate((viewWidth - w * scale) / 2F, (viewHeight - h * scale) / 2F);
280 matrix.postTranslate((viewWidth - w) / 2F, (viewHeight - h) / 2F);
327 public static float maxZoom(int bitmapWidth, int bitmapHeight, int viewWidth, int viewHeight) { argument
329 final float fh = (float)bitmapHeight / viewHeight;
493 int viewHeight = getHeight();
494 if (height < viewHeight) {
495 deltaY = (viewHeight - height) / 2 - rect.top;
498 } else if (rect.bottom < viewHeight) {
[all...]
/packages/apps/LegacyCamera/src/com/android/camera/
H A DUtil.java577 int viewWidth, int viewHeight) {
584 matrix.postScale(viewWidth / 2000f, viewHeight / 2000f);
585 matrix.postTranslate(viewWidth / 2f, viewHeight / 2f);
576 prepareMatrix(Matrix matrix, boolean mirror, int displayOrientation, int viewWidth, int viewHeight) argument
/packages/apps/Camera/src/com/android/camera/
H A DUtil.java642 int viewWidth, int viewHeight) {
649 matrix.postScale(viewWidth / 2000f, viewHeight / 2000f);
650 matrix.postTranslate(viewWidth / 2f, viewHeight / 2f);
641 prepareMatrix(Matrix matrix, boolean mirror, int displayOrientation, int viewWidth, int viewHeight) argument
/packages/apps/Camera2/src/com/android/camera/util/
H A DCameraUtil.java692 int viewWidth, int viewHeight) {
699 matrix.postScale(viewWidth / 2000f, viewHeight / 2000f);
700 matrix.postTranslate(viewWidth / 2f, viewHeight / 2f);
691 prepareMatrix(Matrix matrix, boolean mirror, int displayOrientation, int viewWidth, int viewHeight) argument
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DAnimatedAdapter.java560 int deletedRow, int viewHeight) {
567 leaveBehind.bind(deletedRow, mAccount, this, undoOp, target, mFolder, viewHeight);
559 setupLeaveBehind(Conversation target, ToastBarOperation undoOp, int deletedRow, int viewHeight) argument

Completed in 931 milliseconds