/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | FlingScroller.java | 69 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()
|
D | TileImageView.java | 224 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/WallpaperPicker2/src/com/android/wallpaper/picker/ |
D | WallpaperPreviewBitmapTransformation.java | 59 Point scaledThumbnailSize = new Point(Math.round(toTransform.getWidth() * scale), in transform() 60 Math.round(toTransform.getHeight() * scale)); in transform() 72 Math.round(scaledThumbnailToScreenSize.x / scale), in transform() 73 Math.round(scaledThumbnailToScreenSize.y / scale), in transform() 74 Math.round(mScreenSize.x / scale), in transform() 75 Math.round(mScreenSize.y / scale)); in transform()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/ |
D | LayoutUtils.java | 127 outRect.set(Math.round(x), Math.round(y), in calculateTaskSize() 128 Math.round(x) + Math.round(outWidth), Math.round(y) + Math.round(outHeight)); in calculateTaskSize()
|
/packages/apps/Camera2/src/com/android/camera/ |
D | CaptureLayoutHelper.java | 359 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/ |
D | TestBitmapCropper.java | 45 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/Launcher3/src/com/android/launcher3/dragndrop/ |
D | DragLayer.java | 275 int toX = Math.round(coord[0]); in animateViewIntoPosition() 276 int toY = Math.round(coord[1]); in animateViewIntoPosition() 291 toY -= Math.round(toScale * dragView.getDragVisualizeOffset().y); in animateViewIntoPosition() 294 toX -= (dragView.getMeasuredWidth() - Math.round(scale * child.getMeasuredWidth())) / 2; in animateViewIntoPosition() 297 toY += Math.round(scale * (child.getPaddingTop() - dragView.getDragRegionTop())); in animateViewIntoPosition() 301 toX -= (dragView.getMeasuredWidth() - Math.round(scale * child.getMeasuredWidth())) / 2; in animateViewIntoPosition() 303 toY -= (Math.round(scale * (dragView.getHeight() - child.getMeasuredHeight()))) / 2; in animateViewIntoPosition() 304 toX -= (Math.round(scale * (dragView.getMeasuredWidth() in animateViewIntoPosition() 399 int x = (int) (fromLeft + Math.round(((to.left - fromLeft) * motionPercent))); in animateView() 400 int y = (int) (fromTop + Math.round(((to.top - fromTop) * motionPercent))); in animateView()
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
D | Scroller.java | 265 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()
|
D | BitmapUtils.java | 117 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/WallpaperPicker2/src/com/android/wallpaper/module/ |
D | DefaultBitmapCropper.java | 38 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/PermissionController/src/android/support/wearable/view/ |
D | CircledImageView.java | 220 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/LegacyCamera/src/com/android/camera/ui/ |
D | FaceView.java | 138 mFaceIndicator.setBounds(Math.round(mRect.left), Math.round(mRect.top), in onDraw() 139 Math.round(mRect.right), Math.round(mRect.bottom)); in onDraw()
|
D | SharePopup.java | 191 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/Gallery/src/com/android/camera/ |
D | HighlightView.java | 113 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/Launcher3/quickstep/src/com/android/quickstep/views/ |
D | ShelfScrimView.java | 105 mMaxScrimAlpha = Math.round(OVERVIEW.getOverviewScrimAlpha(mLauncher) * 255); in ShelfScrimView() 212 int alpha = Math.round(Utilities.mapToRange( in updateColors() 217 int alpha = Math.round( in updateColors() 222 int remainingScrimAlpha = Math.round( in updateColors()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/ |
D | StreamableAsset.java | 50 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/ |
D | GlideFilmstripManager.java | 203 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/TV/common/src/com/android/tv/common/ui/setup/animation/ |
D | TranslationAnimationCreator.java | 64 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/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | GestureFloatingTextDrawingPreview.java | 146 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/ |
D | FocusOverlayManager.java | 471 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/Gallery2/src/com/android/photos/views/ |
D | TiledImageRenderer.java | 278 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/WallpaperPicker/src/com/android/photos/views/ |
D | TiledImageRenderer.java | 278 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/ |
D | FocusOverlayManager.java | 584 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/Camera2/src/com/android/camera/captureintent/ |
D | CaptureIntentModuleUI.java | 79 params.height = Math.round(previewArea.height()); 81 Math.round(previewArea.left), Math.round(previewArea.top), 0, 0);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
D | Key.java | 270 mX = Math.round(keyXPos + horizontalGapFloat / 2); in Key() 272 mWidth = Math.round(keyWidth - horizontalGapFloat); in Key() 273 mHitBox.set(Math.round(keyXPos), keyYPos, Math.round(keyXPos + keyWidth) + 1, in Key() 282 final int visualInsetsLeft = Math.round(keyAttr.getFraction( in Key() 284 final int visualInsetsRight = Math.round(keyAttr.getFraction( in Key()
|