Home
last modified time | relevance | path

Searched refs:viewWidth (Results 1 – 17 of 17) 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()
253 int viewWidth = canvas.getWidth(); 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()
291 canvas.drawLine(0, p, viewWidth, p, mPaint); in onDraw()
/packages/apps/Gallery/src/com/android/camera/
DImageViewTouchBase.java155 final int viewWidth = getWidth(); in setImageRotateBitmapResetBase() local
157 if (viewWidth <= 0) { in setImageRotateBitmapResetBase()
216 int viewWidth = getWidth(); in center() local
217 if (width < viewWidth) { in center()
218 deltaX = (viewWidth - width) / 2 - rect.left; in center()
221 } else if (rect.right < viewWidth) { in center()
222 deltaX = viewWidth - rect.right; in center()
260 float viewWidth = getWidth(); in getProperBaseMatrix() local
269 float widthScale = Math.min(viewWidth / w, 3.0f); in getProperBaseMatrix()
277 (viewWidth - w * scale) / 2F, in getProperBaseMatrix()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DSlideshowView.java139 int viewWidth = getWidth(); in apply() local
143 viewWidth / mWidth, (float) viewHeight / mHeight); in apply()
146 float centerX = viewWidth / 2 + mMovingVector.x * mProgress; in apply()
DPhotoView.java1615 private static int gapToSide(int imageWidth, int viewWidth) { in gapToSide() argument
1616 return Math.max(0, (viewWidth - imageWidth) / 2); in gapToSide()
1718 int viewWidth) { in calculateMoveOutProgress() argument
1728 if (w < viewWidth) { in calculateMoveOutProgress()
1729 int zx = viewWidth / 2 - w / 2; in calculateMoveOutProgress()
1731 return -(left - zx) / (float) (viewWidth - zx); // progress = (0, -1] in calculateMoveOutProgress()
1744 return -left / (float) viewWidth; in calculateMoveOutProgress()
1747 if (right < viewWidth) { in calculateMoveOutProgress()
1748 return (viewWidth - right) / (float) viewWidth; in calculateMoveOutProgress()
/packages/apps/Messaging/src/com/android/messaging/ui/animation/
DPopupTransitionAnimation.java269 final float viewWidth = mViewToAnimate.getWidth(); in initPopupWindow()
271 if (viewWidth > 0 && viewHeight > 0) { in initPopupWindow()
272 canvas.scale(mCurrentRect.width() / viewWidth, in initPopupWindow()
/packages/apps/LegacyCamera/src/com/android/camera/
DModePicker.java258 int viewWidth = mModeSelectionIcon[MODE_CAMERA].getWidth(); in onLayout() local
261 int padding = (viewWidth - iconWidth) / 2; in onLayout()
262 int l = mModeSelectionFrame.getLeft() + mCurrentMode * viewWidth; in onLayout()
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/Launcher2/src/com/android/launcher2/
DButtonDropTarget.java124 Rect getIconRect(int viewWidth, int viewHeight, int drawableWidth, int drawableHeight) { in getIconRect() argument
151 final int xOffset = (int) -(viewWidth - width) / 2; in getIconRect()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/camerafocus/
DFocusOverlayManager.java561 int viewWidth, int viewHeight) { in prepareMatrix() argument
568 matrix.postScale(viewWidth / 2000f, viewHeight / 2000f); in prepareMatrix()
569 matrix.postTranslate(viewWidth / 2f, viewHeight / 2f); in prepareMatrix()
/packages/apps/PackageInstaller/src/android/support/wearable/view/
DCircledImageView.java346 final int viewWidth = getMeasuredWidth(); in onLayout() local
354 ? imageCirclePercentage * viewWidth / nativeDrawableWidth : 1, in onLayout()
364 final int drawableLeft = (viewWidth - drawableWidth) / 2 in onLayout()
/packages/apps/TV/src/com/android/tv/ui/
DTvViewUiManager.java225 int viewWidth = mContentView.getWidth(); in isDisplayModeAvailable() local
229 if (viewWidth <= 0 || viewHeight <= 0 || videoDisplayAspectRatio <= 0f) { in isDisplayModeAvailable()
233 + "viewWidth=" + viewWidth in isDisplayModeAvailable()
241 float viewRatio = viewWidth / (float) viewHeight; in isDisplayModeAvailable()
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DConversationItemViewModel.java94 public int viewWidth; field in ConversationItemViewModel
208 return Objects.hashCode(mDataHashCode, viewWidth, standardScaledDimen, gadgetMode); in getLayoutHashCode()
DConversationItemView.java676 mHeader.viewWidth = mViewWidth; in onMeasure()
/packages/apps/Launcher3/src/com/android/launcher3/
DButtonDropTarget.java266 … protected Rect getIconRect(int viewWidth, int viewHeight, int drawableWidth, int drawableHeight) { in getIconRect() argument
293 final int xOffset = (int) -(viewWidth - width) / 2; in getIconRect()
/packages/apps/Camera2/src/com/android/camera/util/
DCameraUtil.java731 int viewWidth, int viewHeight) { in prepareMatrix() argument
738 matrix.postScale(viewWidth / 2000f, viewHeight / 2000f); in prepareMatrix()
739 matrix.postTranslate(viewWidth / 2f, viewHeight / 2f); in prepareMatrix()
/packages/apps/Camera2/src/com/android/camera/widget/
DFilmstripView.java2063 private int estimateMinX(int index, int leftPos, int viewWidth) { in estimateMinX() argument
2064 return leftPos - (index + 100) * (viewWidth + mViewGapInPixel); in estimateMinX()
2067 private int estimateMaxX(int index, int leftPos, int viewWidth) { in estimateMaxX() argument
2070 * (viewWidth + mViewGapInPixel); in estimateMaxX()