/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/services/Car/car-support-lib/src/android/support/car/ui/ |
D | DrawerArrowDrawable.java | 77 …mBarSize = Math.round(typedArray.getDimension(R.styleable.DrawerArrowDrawable_carArrowBarSize, 0)); in DrawerArrowDrawable() 79 mTopBottomArrowSize = Math.round(typedArray.getDimension( in DrawerArrowDrawable() 83 mBarGap = Math.round(typedArray.getDimension( in DrawerArrowDrawable() 120 final float middleBarCut = Math.round(lerp(0, mMaxCutForBarSize, mProgress)); in draw() 126 final float arrowWidth = Math.round(arrowSize * Math.cos(rotation)); in draw() 127 final float arrowHeight = Math.round(arrowSize * Math.sin(rotation)); in draw()
|
/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()
|
D | Thumbnail.java | 62 int w = Math.round(scale * width); in createVideoThumbnailBitmap() 63 int h = Math.round(scale * height); in createVideoThumbnailBitmap()
|
/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/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/Launcher3/src/com/android/launcher3/ |
D | LauncherScroller.java | 294 mCurrX = mStartX + Math.round(x * mDeltaX); in computeScrollOffset() 295 mCurrY = mStartY + Math.round(x * mDeltaY); in computeScrollOffset() 313 mCurrX = mStartX + Math.round(distanceCoef * (mFinalX - mStartX)); in computeScrollOffset() 318 mCurrY = mStartY + Math.round(distanceCoef * (mFinalY - mStartY)); in computeScrollOffset() 447 mFinalX = startX + (int) Math.round(totalDistance * coeffX); in fling() 452 mFinalY = startY + (int) Math.round(totalDistance * coeffY); in fling()
|
D | DragLayer.java | 603 toY += Math.round(toScale * tv.getPaddingTop()); in animateViewIntoPosition() 606 toY -= Math.round(toScale * dragView.getDragVisualizeOffset().y); in animateViewIntoPosition() 609 toX -= (dragView.getMeasuredWidth() - Math.round(scale * child.getMeasuredWidth())) / 2; in animateViewIntoPosition() 612 toY += Math.round(scale * (child.getPaddingTop() - dragView.getDragRegionTop())); in animateViewIntoPosition() 616 toX -= (dragView.getMeasuredWidth() - Math.round(scale * child.getMeasuredWidth())) / 2; in animateViewIntoPosition() 618 toY -= (Math.round(scale * (dragView.getHeight() - child.getMeasuredHeight()))) / 2; in animateViewIntoPosition() 619 toX -= (Math.round(scale * (dragView.getMeasuredWidth() in animateViewIntoPosition() 720 int x = (int) (fromLeft + Math.round(((to.left - fromLeft) * motionPercent))); in animateView() 721 int y = (int) (fromTop + Math.round(((to.top - fromTop) * motionPercent))); in animateView()
|
/packages/apps/PackageInstaller/src/android/support/wearable/view/ |
D | CircledImageView.java | 221 mPaint.setAlpha(Math.round(mPaint.getAlpha() * getAlpha())); in onDraw() 240 mPaint.setAlpha(Math.round(mPaint.getAlpha() * getAlpha())); in onDraw() 260 mPaint.setAlpha(Math.round(mPaint.getAlpha() * getAlpha())); in onDraw() 270 mDrawable.setAlpha(Math.round(getAlpha() * 255)); in onDraw() 360 final int drawableWidth = Math.round(scaleFactor * nativeDrawableWidth); in onLayout() 361 final int drawableHeight = Math.round(scaleFactor * nativeDrawableHeight); in onLayout() 365 + Math.round(mImageHorizontalOffcenterPercentage * drawableWidth); in onLayout()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | DragLayer.java | 338 coord[0] = (int) Math.round(pt[0]); in getDescendantCoordRelativeToSelf() 339 coord[1] = (int) Math.round(pt[1]); in getDescendantCoordRelativeToSelf() 503 toY += Math.round(scale * tv.getPaddingTop()); in animateViewIntoPosition() 505 toX -= (dragView.getMeasuredWidth() - Math.round(scale * child.getMeasuredWidth())) / 2; in animateViewIntoPosition() 511 toX -= (dragView.getMeasuredWidth() - Math.round(scale * child.getMeasuredWidth())) / 2; in animateViewIntoPosition() 513 toY -= (Math.round(scale * (dragView.getHeight() - child.getMeasuredHeight()))) / 2; in animateViewIntoPosition() 514 toX -= (Math.round(scale * (dragView.getMeasuredWidth() in animateViewIntoPosition() 616 int x = (int) (fromLeft + Math.round(((to.left - fromLeft) * motionPercent))); in animateView() 617 int y = (int) (fromTop + Math.round(((to.top - fromTop) * motionPercent))); in animateView()
|
/packages/apps/TV/common/src/com/android/tv/common/ui/setup/animation/ |
D | TranslationAnimationCreator.java | 46 int startPosX = viewPosX + Math.round(startX - terminalX); in createAnimation() 81 mStartX = startX - Math.round(mMovingView.getTranslationX()); in TransitionPositionListener() 91 mTransitionPosition = Math.round(mStartX + mMovingView.getTranslationX()); in onAnimationCancel()
|
/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/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/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/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/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/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/Launcher3/WallpaperPicker/src/com/android/photos/views/ |
D | TiledImageRenderer.java | 279 mOffsetX = Math.round(mViewWidth / 2f + (range.left - mCenterX) * mScale); in layoutTiles() 280 mOffsetY = Math.round(mViewHeight / 2f + (range.top - mCenterY) * mScale); in layoutTiles() 285 mOffsetX = Math.round(mViewWidth / 2f - mCenterX * mScale); in layoutTiles() 286 mOffsetY = Math.round(mViewHeight / 2f - mCenterY * mScale); in layoutTiles() 452 Math.round(mImageWidth * mScale), in draw() 453 Math.round(mImageHeight * mScale)); in draw()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
D | CompositeImageRequest.java | 77 Math.round(avatarDestOnGroup.width()), in loadMediaInternal() 78 Math.round(avatarDestOnGroup.height())); in loadMediaInternal()
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/widget/ |
D | ProportionalLayout.java | 105 width = Math.round(childHeight * mRatio); in onMeasure() 109 height = Math.round(childWidth * mRatio); in onMeasure()
|
/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()
|
/packages/apps/Calculator/src/com/android/calculator2/ |
D | CalculatorPadLayout.java | 67 Math.round((float) (right - left - paddingLeft - paddingRight)) / mColumnCount; in onLayout() 69 Math.round((float) (bottom - top - paddingTop - paddingBottom)) / mRowCount; in onLayout()
|