/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/Launcher3/src/com/android/launcher3/dragndrop/ |
D | LivePreviewWidgetCell.java | 64 int viewHeight = dp.cellHeightPx * info.spanY; in generateFromRemoteViews() local 70 MeasureSpec.makeMeasureSpec(viewHeight, MeasureSpec.EXACTLY)); in generateFromRemoteViews() 73 viewHeight = v.getMeasuredHeight(); in generateFromRemoteViews() 74 v.layout(0, 0, viewWidth, viewHeight); in generateFromRemoteViews() 85 bitmapHeight = (int) (viewHeight * scale); in generateFromRemoteViews() 89 bitmapHeight = viewHeight; in generateFromRemoteViews()
|
/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/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 | 467 private void prepareMatrix(Matrix matrix, boolean mirror, int viewWidth, int viewHeight) { in prepareMatrix() argument 472 matrix.postScale(viewWidth / 2000f, viewHeight / 2000f); in prepareMatrix() 473 matrix.postTranslate(viewWidth / 2f, viewHeight / 2f); in prepareMatrix()
|
/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/apps/TV/src/com/android/tv/ui/ |
D | TvViewUiManager.java | 245 int viewHeight = mContentView.getHeight(); in isDisplayModeAvailable() local 248 if (viewWidth <= 0 || viewHeight <= 0 || videoDisplayAspectRatio <= 0f) { in isDisplayModeAvailable() 253 + ", viewHeight=" + viewHeight in isDisplayModeAvailable() 260 float viewRatio = viewWidth / (float) viewHeight; in isDisplayModeAvailable()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | ButtonDropTarget.java | 124 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/PackageInstaller/src/android/support/wearable/view/ |
D | CircledImageView.java | 347 final int viewHeight = getMeasuredHeight(); in onLayout() local 357 * viewHeight / nativeDrawableHeight : 1)); in onLayout() 366 final int drawableTop = (viewHeight - drawableHeight) / 2; in onLayout()
|
/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/Launcher3/src/com/android/launcher3/ |
D | ButtonDropTarget.java | 256 int viewHeight = dragObject.dragView.getMeasuredHeight(); in getIconRect() local 286 final int yOffset = (int) -(viewHeight - height) / 2; in getIconRect()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ |
D | FastScroller.java | 317 int viewHeight = mRecyclerViewHeight; in drawHorizontalScrollbar() local 319 int top = viewHeight - mHorizontalThumbHeight; in drawHorizontalScrollbar()
|
/packages/apps/Camera2/src/com/android/camera/util/ |
D | CameraUtil.java | 731 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/UnifiedEmail/src/com/android/mail/ui/ |
D | AnimatedAdapter.java | 573 int deletedRow, int viewHeight) { in setupLeaveBehind() argument 580 leaveBehind.bind(deletedRow, mAccount, this, undoOp, target, mFolder, viewHeight); in setupLeaveBehind()
|