Home
last modified time | relevance | path

Searched refs:round (Results 1 – 25 of 152) sorted by relevance

1234567

/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/
DWallpaperPreviewBitmapTransformation.java59 Point scaledThumbnailSize = new Point(Math.round(toTransform.getWidth() * scale), in transform()
60 Math.round(toTransform.getHeight() * scale)); in transform()
65 Math.round(scaledThumbnailToScreenSize.x / scale), in transform()
66 Math.round(scaledThumbnailToScreenSize.y / scale), in transform()
67 Math.round(mScreenSize.x / scale), in transform()
68 Math.round(mScreenSize.y / scale)); in transform()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DFlingScroller.java69 return (int)Math.round(mCurrV * mCosAngle); in getCurrVelocityX()
73 return (int)Math.round(mCurrV * mSinAngle); in getCurrVelocityY()
96 mDuration = (int)Math.round(FLING_DURATION_PARAM in fling()
100 mDistance = (int)Math.round( in fling()
117 int r = (int) Math.round(mStartX + f * mDistance * mCosAngle); in getX()
127 int r = (int) Math.round(mStartY + f * mDistance * mSinAngle); in getY()
DTileImageView.java224 mOffsetX = Math.round(width / 2f + (range.left - centerX) * scale); in layoutTiles()
225 mOffsetY = Math.round(height / 2f + (range.top - centerY) * scale); in layoutTiles()
230 mOffsetX = Math.round(width / 2f - centerX * scale); in layoutTiles()
231 mOffsetY = Math.round(height / 2f - centerY * scale); in layoutTiles()
350 center.x = Math.round(viewW / 2f + distW * mScale); in getImageCenter()
351 center.y = Math.round(viewH / 2f + distH * mScale); in getImageCenter()
444 Math.round(mImageWidth * mScale), in render()
445 Math.round(mImageHeight * mScale)); in render()
/packages/apps/Camera2/src/com/android/camera/
DCaptureLayoutHelper.java359 round(config.mBottomBarRect); in getPositionConfiguration()
360 round(config.mPreviewRect); in getPositionConfiguration()
369 public static void round(RectF rect) { in round() method in CaptureLayoutHelper
373 float left = Math.round(rect.left); in round()
374 float top = Math.round(rect.top); in round()
375 float right = Math.round(rect.right); in round()
376 float bottom = Math.round(rect.bottom); in round()
/packages/apps/WallpaperPicker2/tests/src/com/android/wallpaper/testing/
DTestBitmapCropper.java45 Math.round((float) cropRect.left / scale), in cropAndScaleBitmap()
46 Math.round((float) cropRect.top / scale), in cropAndScaleBitmap()
47 Math.round((float) cropRect.right / scale), in cropAndScaleBitmap()
48 Math.round((float) cropRect.bottom / scale)); in cropAndScaleBitmap()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
DDefaultBitmapCropper.java38 Math.round((float) cropRect.left / scale), in cropAndScaleBitmap()
39 Math.round((float) cropRect.top / scale), in cropAndScaleBitmap()
40 Math.round((float) cropRect.right / scale), in cropAndScaleBitmap()
41 Math.round((float) cropRect.bottom / scale)); in cropAndScaleBitmap()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DScroller.java265 mCurrX = mStartX + Math.round(x * mDeltaX); in computeScrollOffset()
266 mCurrY = mStartY + Math.round(x * mDeltaY); in computeScrollOffset()
277 mCurrX = mStartX + Math.round(distanceCoef * (mFinalX - mStartX)); in computeScrollOffset()
282 mCurrY = mStartY + Math.round(distanceCoef * (mFinalY - mStartY)); in computeScrollOffset()
411 mFinalX = startX + Math.round(totalDistance * coeffX); in fling()
416 mFinalY = startY + Math.round(totalDistance * coeffY); in fling()
DBitmapUtils.java117 int width = Math.round(bitmap.getWidth() * scale); in resizeBitmapByScale()
118 int height = Math.round(bitmap.getHeight() * scale); in resizeBitmapByScale()
158 int width = Math.round(scale * bitmap.getWidth()); in resizeAndCropCenter()
159 int height = Math.round(scale * bitmap.getHeight()); in resizeAndCropCenter()
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DFaceView.java138 mFaceIndicator.setBounds(Math.round(mRect.left), Math.round(mRect.top), in onDraw()
139 Math.round(mRect.right), Math.round(mRect.bottom)); in onDraw()
DSharePopup.java191 params.width = Math.round(maxHeight * desiredAspect); in setOrientation()
192 params.height = Math.round(maxHeight); in setOrientation()
194 params.width = Math.round(maxWidth); in setOrientation()
195 params.height = Math.round(maxWidth / desiredAspect); in setOrientation()
/packages/apps/PermissionController/src/android/support/wearable/view/
DCircledImageView.java220 mPaint.setAlpha(Math.round(mPaint.getAlpha() * getAlpha())); in onDraw()
239 mPaint.setAlpha(Math.round(mPaint.getAlpha() * getAlpha())); in onDraw()
259 mPaint.setAlpha(Math.round(mPaint.getAlpha() * getAlpha())); in onDraw()
269 mDrawable.setAlpha(Math.round(getAlpha() * 255)); in onDraw()
359 final int drawableWidth = Math.round(scaleFactor * nativeDrawableWidth); in onLayout()
360 final int drawableHeight = Math.round(scaleFactor * nativeDrawableHeight); in onLayout()
364 + Math.round(mImageHorizontalOffcenterPercentage * drawableWidth); in onLayout()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DBaseActivityInterface.java265 outRect.set(Math.round(x), Math.round(y), in calculateTaskSizeInternal()
266 Math.round(x) + Math.round(outWidth), Math.round(y) + Math.round(outHeight)); in calculateTaskSizeInternal()
/packages/apps/Gallery/src/com/android/camera/
DHighlightView.java113 int d = (int) Math.round(Math.cos(/*45deg*/Math.PI / 4D) in draw()
359 return new Rect(Math.round(r.left), Math.round(r.top), in computeLayout()
360 Math.round(r.right), Math.round(r.bottom)); in computeLayout()
/packages/apps/TV/common/src/com/android/tv/common/ui/setup/animation/
DTranslationAnimationCreator.java64 int startPosX = viewPosX + Math.round(startX - terminalX); in createAnimation()
99 mStartX = startX - Math.round(mMovingView.getTranslationX()); in TransitionPositionListener()
109 mTransitionPosition = Math.round(mStartX + mMovingView.getTranslationX()); in onAnimationCancel()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/
DStreamableAsset.java50 Math.round((float) rect.left * scale), in scaleRect()
51 Math.round((float) rect.top * scale), in scaleRect()
52 Math.round((float) rect.right * scale), in scaleRect()
53 Math.round((float) rect.bottom * scale)); in scaleRect()
/packages/apps/Camera2/src/com/android/camera/data/
DGlideFilmstripManager.java203 int width = (int) Math.round(original.width() * ratio); in clampSize()
204 int height = (int) Math.round(original.height() * ratio); in clampSize()
224 Math.min((int) Math.round(original.width() * ratio), maxSize.width()), in computeFitWithinSize()
225 Math.min((int) Math.round(original.height() * ratio), maxSize.height())); in computeFitWithinSize()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/
DShelfScrimView.java110 mMaxScrimAlpha = Math.round(OVERVIEW.getOverviewScrimAlpha(mLauncher) * 255); in ShelfScrimView()
228 int alpha = Math.round(Utilities.mapToRange( in updateColors()
233 int alpha = Math.round( in updateColors()
238 int remainingScrimAlpha = Math.round( in updateColors()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DGestureFloatingTextDrawingPreview.java146 final float round = mParams.mGesturePreviewRoundRadius; in drawPreview() local
148 mGesturePreviewRectangle, round, round, mParams.getBackgroundPaint()); in drawPreview()
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/
DFocusOverlayManager.java471 rect.left = Math.round(rectF.left); in rectFToRect()
472 rect.top = Math.round(rectF.top); in rectFToRect()
473 rect.right = Math.round(rectF.right); in rectFToRect()
474 rect.bottom = Math.round(rectF.bottom); in rectFToRect()
/packages/apps/WallpaperPicker/src/com/android/photos/views/
DTiledImageRenderer.java278 mOffsetX = Math.round(mViewWidth / 2f + (range.left - mCenterX) * mScale); in layoutTiles()
279 mOffsetY = Math.round(mViewHeight / 2f + (range.top - mCenterY) * mScale); in layoutTiles()
284 mOffsetX = Math.round(mViewWidth / 2f - mCenterX * mScale); in layoutTiles()
285 mOffsetY = Math.round(mViewHeight / 2f - mCenterY * mScale); in layoutTiles()
451 Math.round(mImageWidth * mScale), in draw()
452 Math.round(mImageHeight * mScale)); in draw()
/packages/apps/Gallery2/src/com/android/photos/views/
DTiledImageRenderer.java278 mOffsetX = Math.round(mViewWidth / 2f + (range.left - mCenterX) * mScale); in layoutTiles()
279 mOffsetY = Math.round(mViewHeight / 2f + (range.top - mCenterY) * mScale); in layoutTiles()
284 mOffsetX = Math.round(mViewWidth / 2f - mCenterX * mScale); in layoutTiles()
285 mOffsetY = Math.round(mViewHeight / 2f - mCenterY * mScale); in layoutTiles()
451 Math.round(mImageWidth * mScale), in draw()
452 Math.round(mImageHeight * mScale)); in draw()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/camerafocus/
DFocusOverlayManager.java584 rect.left = Math.round(rectF.left); in rectFToRect()
585 rect.top = Math.round(rectF.top); in rectFToRect()
586 rect.right = Math.round(rectF.right); in rectFToRect()
587 rect.bottom = Math.round(rectF.bottom); in rectFToRect()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/
DTileSizeCalculator.java186 int widthPx = Math.round((float) availableWidthPx / columnCount); in getTileSize()
187 int heightPx = Math.round(((float) availableWidthPx / columnCount) in getTileSize()
207 int widthPx = Math.round((float) availableWidthPx / columnCount); in getSquareTileSize()
/packages/apps/Camera2/src/com/android/camera/captureintent/
DCaptureIntentModuleUI.java79 params.height = Math.round(previewArea.height());
81 Math.round(previewArea.left), Math.round(previewArea.top), 0, 0);
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/views/
DTaskThumbnailView.java243 Math.round(boundsInBitmapSpace.left), in getScaledInsets()
244 Math.round(boundsInBitmapSpace.top), in getScaledInsets()
245 Math.round(bitmapRect.right - boundsInBitmapSpace.right), in getScaledInsets()
246 Math.round(bitmapRect.bottom - boundsInBitmapSpace.bottom)); in getScaledInsets()
556 if (Math.round(bitmapHeight) < canvasHeight) { in updateThumbnailMatrix()

1234567