/aosp12/packages/apps/Dialer/java/com/android/incallui/videosurface/impl/ |
H A D | VideoScale.java | 32 float viewHeight = textureView.getHeight(); in scaleVideoAndFillView() local 33 float viewAspectRatio = viewWidth / 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() 98 int viewHeight = textureView.getHeight(); in scaleVideoMaintainingAspectRatio() local 102 if (viewWidth > viewHeight) { in scaleVideoMaintainingAspectRatio() 130 viewHeight, in scaleVideoMaintainingAspectRatio() [all …]
|
/aosp12/packages/apps/WallpaperPicker2/src/com/android/wallpaper/widget/ |
H A 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()
|
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
H A D | GeometryMathUtils.java | 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() 453 m.postTranslate(viewWidth / 2f, viewHeight / 2f); in getFullGeometryToScreenMatrix() 469 int bitmapWidth, int bitmapHeight, int viewWidth, int viewHeight) { in getCropSelectionToScreenMatrix() argument 485 int viewHeight) { in getCropSelectionToScreenMatrix() argument [all …]
|
H A 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()
|
/aosp12/frameworks/base/test-runner/src/android/test/ |
H A D | TouchUtils.java | 249 final int viewHeight = v.getHeight(); in dragViewToBottom() local 269 final int viewHeight = v.getHeight(); in tapView() local 272 float y = xy[1] + (viewHeight / 2.0f); in tapView() 309 final int viewHeight = v.getHeight(); in touchAndCancelView() local 312 float y = xy[1] + (viewHeight / 2.0f); in touchAndCancelView() 344 final int viewHeight = v.getHeight(); in clickView() local 405 final int viewHeight = v.getHeight(); in longClickView() local 492 final int viewHeight = v.getHeight(); in dragViewToTop() local 514 final int viewHeight = v.getHeight(); in getStartLocation() local 520 xy[1] += viewHeight / 2; in getStartLocation() [all …]
|
/aosp12/packages/apps/Gallery/src/com/android/camera/ |
H A 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()
|
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
H A 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()
|
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/views/ |
H A D | ArrowTipView.java | 271 @Px int viewHeight = getHeight(); in showAtLocation() 273 ? (yCoordUpPointingTip + viewHeight > parentViewHeight) in showAtLocation() 274 : (yCoordDownPointingTip - viewHeight < 0)) { in showAtLocation() 282 setY(mIsPointingUp ? yCoordUpPointingTip : yCoordDownPointingTip - viewHeight); in showAtLocation()
|
/aosp12/packages/apps/Messaging/src/com/android/messaging/ui/animation/ |
H A 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()
|
/aosp12/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/ |
H A 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()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/ |
H A D | MirrorWindowControl.java | 171 private void updateDraggableBound(int viewWidth, int viewHeight) { in updateDraggableBound() argument 174 mDraggableBound.set(0, 0, size.x - viewWidth, size.y - viewHeight); in updateDraggableBound()
|
/aosp12/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/camerafocus/ |
H A 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()
|
/aosp12/packages/apps/TV/src/com/android/tv/ui/ |
H A 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()
|
/aosp12/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/widget/ |
H A 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()
|
/aosp12/packages/modules/Permission/PermissionController/src/android/support/wearable/view/ |
H A 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()
|
/aosp12/packages/apps/Settings/src/com/android/settings/biometrics/face/ |
H A D | FaceEnrollPreviewFragment.java | 306 private void configureTransform(int viewWidth, int viewHeight) { in configureTransform() argument 313 float scaleY = (float) viewHeight / mPreviewSize.getHeight(); in configureTransform()
|
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/ |
H A D | ButtonDropTarget.java | 256 int viewHeight = dragObject.dragView.getMeasuredHeight(); in getIconRect() local 286 final int yOffset = -(viewHeight - height) / 2; in getIconRect()
|
/aosp12/frameworks/base/core/java/com/android/internal/widget/ |
H A D | LockPatternView.java | 707 int viewHeight = resolveMeasured(heightMeasureSpec, minimumHeight); in onMeasure() local 711 viewWidth = viewHeight = Math.min(viewWidth, viewHeight); in onMeasure() 714 viewHeight = Math.min(viewWidth, viewHeight); in onMeasure() 717 viewWidth = Math.min(viewWidth, viewHeight); in onMeasure() 721 setMeasuredDimension(viewWidth, viewHeight); in onMeasure()
|
H A D | SlidingTab.java | 669 int viewHeight = getHeight(); 672 dy = slider == mRightSlider ? (top + viewHeight - holdOffset) 673 : - ((viewHeight - bottom) + viewHeight - holdOffset);
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ |
H A D | NotificationContentView.java | 1031 int viewHeight = mContentHeight; in calculateVisibleType() local 1034 viewHeight = Math.min(mContentHeight, intrinsicHeight); in calculateVisibleType() 1036 return getVisualTypeForHeight(viewHeight); in calculateVisibleType() 1039 private int getVisualTypeForHeight(float viewHeight) { in getVisualTypeForHeight() argument 1041 if (!noExpandedChild && viewHeight == getViewHeight(VISIBLE_TYPE_EXPANDED)) { in getVisualTypeForHeight() 1050 if (viewHeight <= getViewHeight(VISIBLE_TYPE_HEADSUP) || noExpandedChild) { in getVisualTypeForHeight() 1057 && viewHeight <= getViewHeight(VISIBLE_TYPE_CONTRACTED) in getVisualTypeForHeight()
|
/aosp12/packages/apps/LegacyCamera/src/com/android/camera/ |
H A 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()
|
/aosp12/frameworks/av/media/tests/SampleVideoEncoder/app/src/main/java/com/android/media/samplevideoencoder/ |
H A D | MainActivity.java | 646 private void configureTransform(int viewWidth, int viewHeight) { in configureTransform() argument 652 RectF viewRect = new RectF(0, 0, viewWidth, viewHeight); in configureTransform() 658 float scale = Math.max((float) viewHeight / mPreviewSize.getHeight(), in configureTransform()
|
/aosp12/system/extras/power_profile/camera_avg/Application/src/main/java/com/example/android/powerprofile/cameraavg/ |
H A D | CameraAvgFragment.java | 752 private void configureTransform(int viewWidth, int viewHeight) { in configureTransform() argument 759 RectF viewRect = new RectF(0, 0, viewWidth, viewHeight); in configureTransform() 767 (float) viewHeight / mPreviewSize.getHeight(), in configureTransform()
|
/aosp12/packages/apps/Camera2/src/com/android/camera/util/ |
H A 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()
|
/aosp12/frameworks/base/core/java/android/widget/ |
H A D | RemoteViewsAdapter.java | 401 int viewHeight = mCache.getMetaData().getLoadingTemplate(getContext()).defaultHeight; in getDefaultView() local 406 loadingTextView.setHeight(viewHeight); in getDefaultView()
|