/packages/apps/Dialer/java/com/android/incallui/videosurface/impl/ |
D | VideoScale.java | 32 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/ |
D | GeometryMathUtils.java | 332 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 …]
|
D | ImageStraighten.java | 207 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/ |
D | WallpaperThumbnailView.java | 57 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/ |
D | ImageViewTouchBase.java | 205 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/ |
D | ArrowTipView.java | 262 @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/ |
D | SlideshowView.java | 140 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/ |
D | PopupTransitionAnimation.java | 270 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/ |
D | FocusOverlayManager.java | 461 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/ |
D | TvViewUiManager.java | 225 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/ |
D | FocusOverlayManager.java | 561 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/ |
D | CircledImageView.java | 346 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/ |
D | PagedSnapHelper.java | 145 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/ |
D | FaceEnrollPreviewFragment.java | 306 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/ |
D | ButtonDropTarget.java | 259 int viewHeight = dragObject.dragView.getMeasuredHeight(); in getIconRect() local 289 final int yOffset = -(viewHeight - height) / 2; in getIconRect()
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | Util.java | 577 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/ |
D | CameraUtil.java | 736 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()
|