Home
last modified time | relevance | path

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

/packages/apps/Dialer/java/com/android/incallui/videosurface/impl/
DVideoScale.java32 float viewHeight = textureView.getHeight(); in scaleVideoAndFillView() local
33 float viewAspectRatio = viewWidth / viewHeight; in scaleVideoAndFillView()
42 scaleHeight = desiredScaledHeight / viewHeight; in scaleVideoAndFillView()
45 float scaleFactor = viewHeight / videoHeight; in scaleVideoAndFillView()
56 scaleWidth = viewHeight / viewWidth * scaleY; in scaleVideoAndFillView()
57 scaleHeight = viewWidth / viewHeight * scaleX; in scaleVideoAndFillView()
70 viewHeight, in scaleVideoAndFillView()
84 viewHeight / 2.0f); in scaleVideoAndFillView()
86 transform.postRotate(rotationDegrees, viewWidth / 2.0f, viewHeight / 2.0f); in scaleVideoAndFillView()
98 int viewHeight = textureView.getHeight(); in scaleVideoMaintainingAspectRatio() local
[all …]
/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/WallpaperPicker2/src/com/android/wallpaper/widget/
DWallpaperThumbnailView.java57 final int viewHeight = getHeight() - getPaddingTop() - getPaddingBottom(); in recomputeImageMatrix() local
62 if (drawableWidth * viewHeight > drawableHeight * viewWidth) { in recomputeImageMatrix()
63 scale = (float) viewHeight / drawableHeight; in recomputeImageMatrix()
72 if ((drawableHeight * scale) > viewHeight) { in recomputeImageMatrix()
73 float dy = -(((drawableHeight * scale) - viewHeight) / 2f); in recomputeImageMatrix()
/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/Launcher3/src/com/android/launcher3/views/
DArrowTipView.java262 @Px int viewHeight = getHeight(); in showAtLocation() local
264 ? (yCoordUpPointingTip + viewHeight > parentViewHeight) in showAtLocation()
265 : (yCoordDownPointingTip - viewHeight < 0)) { in showAtLocation()
273 setY(mIsPointingUp ? yCoordUpPointingTip : yCoordDownPointingTip - viewHeight); in showAtLocation()
/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/Messaging/src/com/android/messaging/ui/animation/
DPopupTransitionAnimation.java270 final float viewHeight = mViewToAnimate.getHeight(); in initPopupWindow()
271 if (viewWidth > 0 && viewHeight > 0) { in initPopupWindow()
273 mCurrentRect.height() / viewHeight); in initPopupWindow()
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/
DFocusOverlayManager.java461 private void prepareMatrix(Matrix matrix, boolean mirror, int viewWidth, int viewHeight) { in prepareMatrix() argument
466 matrix.postScale(viewWidth / 2000f, viewHeight / 2000f); in prepareMatrix()
467 matrix.postTranslate(viewWidth / 2f, viewHeight / 2f); in prepareMatrix()
/packages/apps/TV/src/com/android/tv/ui/
DTvViewUiManager.java225 int viewHeight = mContentView.getHeight(); in isDisplayModeAvailable() local
228 if (viewWidth <= 0 || viewHeight <= 0 || videoDisplayAspectRatio <= 0f) { in isDisplayModeAvailable()
237 + viewHeight in isDisplayModeAvailable()
244 float viewRatio = viewWidth / (float) viewHeight; in isDisplayModeAvailable()
/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/modules/Permission/PermissionController/src/android/support/wearable/view/
DCircledImageView.java346 final int viewHeight = getMeasuredHeight(); in onLayout() local
356 * viewHeight / nativeDrawableHeight : 1)); in onLayout()
365 final int drawableTop = (viewHeight - drawableHeight) / 2; in onLayout()
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/widget/
DPagedSnapHelper.java145 int viewHeight = helper.getDecoratedMeasurement(view); in getPercentageVisible() local
158 return 1.f - ((float) (Math.abs(viewStart) + Math.abs(viewEnd)) / viewHeight); in getPercentageVisible()
/packages/apps/Settings/src/com/android/settings/biometrics/face/
DFaceEnrollPreviewFragment.java306 private void configureTransform(int viewWidth, int viewHeight) { in configureTransform() argument
313 float scaleY = (float) viewHeight / mPreviewSize.getHeight(); in configureTransform()
/packages/apps/Launcher3/src/com/android/launcher3/
DButtonDropTarget.java259 int viewHeight = dragObject.dragView.getMeasuredHeight(); in getIconRect() local
289 final int yOffset = -(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/Camera2/src/com/android/camera/util/
DCameraUtil.java736 int viewWidth, int viewHeight) { in prepareMatrix() argument
743 matrix.postScale(viewWidth / 2000f, viewHeight / 2000f); in prepareMatrix()
744 matrix.postTranslate(viewWidth / 2f, viewHeight / 2f); in prepareMatrix()