/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() 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/ |
D | ImageViewTouchBase.java | 155 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/ |
D | SlideshowView.java | 139 int viewWidth = getWidth(); in apply() local 143 viewWidth / mWidth, (float) viewHeight / mHeight); in apply() 146 float centerX = viewWidth / 2 + mMovingVector.x * mProgress; in apply()
|
D | PhotoView.java | 1615 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/ |
D | PopupTransitionAnimation.java | 269 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/ |
D | ModePicker.java | 258 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()
|
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/Launcher2/src/com/android/launcher2/ |
D | ButtonDropTarget.java | 124 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/ |
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/PackageInstaller/src/android/support/wearable/view/ |
D | CircledImageView.java | 346 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/ |
D | TvViewUiManager.java | 225 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/ |
D | ConversationItemViewModel.java | 94 public int viewWidth; field in ConversationItemViewModel 208 return Objects.hashCode(mDataHashCode, viewWidth, standardScaledDimen, gadgetMode); in getLayoutHashCode()
|
D | ConversationItemView.java | 676 mHeader.viewWidth = mViewWidth; in onMeasure()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | ButtonDropTarget.java | 266 … 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/ |
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/Camera2/src/com/android/camera/widget/ |
D | FilmstripView.java | 2063 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()
|