/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 | 62 Point scaledThumbnailSize = new Point(Math.round(toTransform.getWidth() * scale), in transform() 63 Math.round(toTransform.getHeight() * scale)); in transform() 67 int x = Math.round(scaledThumbnailToScreenSize.x / scale); in transform() 68 int y = Math.round(scaledThumbnailToScreenSize.y / scale); in transform() 69 Rect cropSize = new Rect(x, y, x + Math.round(mScreenSize.x / scale), in transform() 70 y + Math.round(mScreenSize.y / scale)); in transform()
|
/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/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/Car/libs/car-ui-lib/referencedesign/sharedlibrary/src/main/java/com/chassis/car/ui/sharedlibrary/appstyleview/ |
D | AppStyleViewControllerImpl.java | 83 params.width = Math.round( in getDialogWindowLayoutParam() 85 params.height = Math.round( in getDialogWindowLayoutParam() 88 params.x = Math.round( in getDialogWindowLayoutParam() 90 params.y = Math.round( in getDialogWindowLayoutParam()
|
/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/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()
|
/packages/modules/Permission/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/WallpaperPicker2/src/com/android/wallpaper/util/ |
D | FullScreenAnimation.java | 154 layoutParams.setMargins(0, Math.round(marginTop), 0, Math.round(marginBottom)); in setViewMargins() 280 Math.round(mWorkspaceHeight * HIDE_ICONS_TOP_RATIO), in setWorkspaceVisibility() 282 mWorkspaceHeight + Math.round(mFullScreenButtonsTranslation / mScale))); in setWorkspaceVisibility() 418 Math.round(mWorkspaceHeight * top), in startAnimation() 420 mWorkspaceHeight + Math.round(bottom))); in startAnimation()
|
D | WallpaperCropUtils.java | 135 relativePosition.x = Math.round((outer.x - inner.x) / 2f); in calculateCenterPosition() 137 relativePosition.y = Math.round((outer.y - inner.y) / 2f); in calculateCenterPosition() 196 int scaledWallpaperWidth = Math.round(wallpaperSize.x * wallpaperZoom); in calculateCropRect() 197 int scaledWallpaperHeight = Math.round(wallpaperSize.y * wallpaperZoom); in calculateCropRect()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | BatteryHistEntryTest.java | 200 /*foregroundUsageTimeInMs=*/ Math.round(100 + 0.5 * (200 - 100)), in testInterpolate_returnExpectedResult() 201 /*backgroundUsageTimeInMs=*/ Math.round(200 + 0.5 * (300 - 200)), in testInterpolate_returnExpectedResult() 202 /*batteryLevel=*/ (int) Math.round(90 + 0.5 * (80 - 90))); in testInterpolate_returnExpectedResult() 234 /*foregroundUsageTimeInMs=*/ Math.round(0.5 * 200), in testInterpolate_withoutLowerEntryData_returnExpectedResult() 235 /*backgroundUsageTimeInMs=*/ Math.round(0.5 * 300), in testInterpolate_withoutLowerEntryData_returnExpectedResult()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | BatteryChartView.java | 16 import static java.lang.Math.round; 235 mIndent.bottom = maxHeight + round(mTextPadding * 1.5f); in onMeasure() 419 mTrapezoidSlots[index].mLeft = round(startX + trapezoidSlotOffset); in drawVerticalDividers() 420 mTrapezoidSlots[index].mRight = round(nextX - trapezoidSlotOffset); in drawVerticalDividers() 461 + round(mTextPadding * 1.5f); in getTimestampY() 494 final float leftTop = round(trapezoidBottom - mLevels[index] * unitHeight); in drawTrapezoids() 495 final float rightTop = round(trapezoidBottom - mLevels[index + 1] * unitHeight); in drawTrapezoids()
|
/packages/apps/Launcher3/src/com/android/launcher3/views/ |
D | FloatingSurfaceView.java | 179 lp.width = Math.round(mIconPosition.width()); in updateIconLocation() 180 lp.height = Math.round(mIconPosition.height()); in updateIconLocation() 181 lp.leftMargin = Math.round(mIconPosition.left); in updateIconLocation() 182 lp.topMargin = Math.round(mIconPosition.top); in updateIconLocation()
|
/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/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/src/com/android/launcher3/graphics/ |
D | DragPreviewProvider.java | 161 outPos[0] = Math.round(outPos[0] - in getScaleAndPosition() 163 outPos[1] = Math.round(outPos[1] - (1 - scale) * preview.getIntrinsicHeight() / 2 in getScaleAndPosition() 178 outPos[0] = Math.round(outPos[0] in getScaleAndPosition() 180 outPos[1] = Math.round(outPos[1] - (1 - scale) * view.getHeight() / 2 - previewPadding / 2); in getScaleAndPosition()
|
/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/Launcher3/quickstep/src/com/android/quickstep/ |
D | BaseActivityInterface.java | 222 int outWidth = Math.round(scale * taskDimension.x); in calculateTaskSize() 223 int outHeight = Math.round(scale * taskDimension.y); in calculateTaskSize() 265 int outWidth = Math.round(scale * taskDimension.x); in calculateTaskSizeInternal() 266 int outHeight = Math.round(scale * taskDimension.y); in calculateTaskSizeInternal() 329 int outWidth = Math.round(scale * taskDimension.x); in calculateGridTaskSize() 330 int outHeight = Math.round(scale * taskDimension.y); in calculateGridTaskSize()
|
/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/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/Settings/src/com/android/settings/display/ |
D | PeakRefreshRatePreferenceController.java | 110 return Math.round(peakRefreshRate) == Math.round(mPeakRefreshRate); in isChecked() 136 if (Math.round(mode.getRefreshRate()) > peakRefreshRate) { in findPeakRefreshRate()
|
/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()
|