Searched refs:round (Results 1 - 25 of 112) sorted by relevance

12345

/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DFlingScroller.java69 return (int)Math.round(mCurrV * mCosAngle);
73 return (int)Math.round(mCurrV * mSinAngle);
96 mDuration = (int)Math.round(FLING_DURATION_PARAM
100 mDistance = (int)Math.round(
117 int r = (int) Math.round(mStartX + f * mDistance * mCosAngle);
127 int r = (int) Math.round(mStartY + f * mDistance * mSinAngle);
H A DScrollBarView.java86 mGripPosition = Math.round(r * mContentPosition);
H A DAbstractSlotRenderer.java74 int w = Math.round(scale * v.getWidth());
75 int h = Math.round(scale * v.getHeight());
H A DTiledScreenNail.java81 mWidth = Math.round(scale * width);
82 mHeight = Math.round(scale * height);
/packages/apps/Launcher3/src/com/android/launcher3/touch/
H A DOverScroll.java53 return Math.round(OVERSCROLL_DAMP_FACTOR * f * max);
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/anim/
H A DColorMatcher.java33 int result = (int) Math.round(((double) value / BUCKET_SIZE)) * BUCKET_SIZE;
/packages/apps/Camera2/src/com/android/camera/
H A DThumbnail.java62 int w = Math.round(scale * width);
63 int h = Math.round(scale * height);
H A DCaptureLayoutHelper.java359 round(config.mBottomBarRect);
360 round(config.mPreviewRect);
369 public static void round(RectF rect) { method in class:CaptureLayoutHelper
373 float left = Math.round(rect.left);
374 float top = Math.round(rect.top);
375 float right = Math.round(rect.right);
376 float bottom = Math.round(rect.bottom);
/packages/apps/TV/common/src/com/android/tv/common/ui/setup/animation/
H A DTranslationAnimationCreator.java46 int startPosX = viewPosX + Math.round(startX - terminalX);
81 mStartX = startX - Math.round(mMovingView.getTranslationX());
91 mTransitionPosition = Math.round(mStartX + mMovingView.getTranslationX());
/packages/apps/LegacyCamera/src/com/android/camera/ui/
H A DFaceView.java138 mFaceIndicator.setBounds(Math.round(mRect.left), Math.round(mRect.top),
139 Math.round(mRect.right), Math.round(mRect.bottom));
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
H A DGestureFloatingTextDrawingPreview.java146 final float round = mParams.mGesturePreviewRoundRadius;
148 mGesturePreviewRectangle, round, round, mParams.getBackgroundPaint());
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
H A DScroller.java265 mCurrX = mStartX + Math.round(x * mDeltaX);
266 mCurrY = mStartY + Math.round(x * mDeltaY);
277 mCurrX = mStartX + Math.round(distanceCoef * (mFinalX - mStartX));
282 mCurrY = mStartY + Math.round(distanceCoef * (mFinalY - mStartY));
411 mFinalX = startX + Math.round(totalDistance * coeffX);
416 mFinalY = startY + Math.round(totalDistance * coeffY);
H A DBitmapUtils.java56 * request is 3. So we round up the sample size to avoid OOM.
117 int width = Math.round(bitmap.getWidth() * scale);
118 int height = Math.round(bitmap.getHeight() * scale);
158 int width = Math.round(scale * bitmap.getWidth());
159 int height = Math.round(scale * bitmap.getHeight());
/packages/apps/Contacts/src/com/android/contacts/widget/
H A DProportionalLayout.java105 width = Math.round(childHeight * mRatio);
109 height = Math.round(childWidth * mRatio);
/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/
H A DShortcutDragPreviewProvider.java92 outPos[0] += Math.round(scale * iconLeft + (scale * iconSize - preview.getWidth()) / 2 +
94 outPos[1] += Math.round((scale * mView.getHeight() - preview.getHeight()) / 2
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
H A DCompositeImageRequest.java77 Math.round(avatarDestOnGroup.width()),
78 Math.round(avatarDestOnGroup.height()));
/packages/apps/Camera2/tests/src/com/android/camera/unittest/
H A DCameraUnitTest.java60 assertEquals("Array index " + i + " mismatch", expected[i], Math.round(actual[i]));
/packages/apps/Dialer/java/com/android/dialershared/bubble/
H A DChangeOnScreenBounds.java151 left = Math.round(topLeft.x);
152 top = Math.round(topLeft.y);
160 right = Math.round(bottomRight.x);
161 bottom = Math.round(bottomRight.y);
/packages/apps/PackageInstaller/src/android/support/wearable/view/
H A DCircledImageView.java221 mPaint.setAlpha(Math.round(mPaint.getAlpha() * getAlpha()));
240 mPaint.setAlpha(Math.round(mPaint.getAlpha() * getAlpha()));
260 mPaint.setAlpha(Math.round(mPaint.getAlpha() * getAlpha()));
270 mDrawable.setAlpha(Math.round(getAlpha() * 255));
360 final int drawableWidth = Math.round(scaleFactor * nativeDrawableWidth);
361 final int drawableHeight = Math.round(scaleFactor * nativeDrawableHeight);
365 + Math.round(mImageHorizontalOffcenterPercentage * drawableWidth);
/packages/apps/Launcher3/src/com/android/launcher3/
H A DLauncherScroller.java294 mCurrX = mStartX + Math.round(x * mDeltaX);
295 mCurrY = mStartY + Math.round(x * mDeltaY);
313 mCurrX = mStartX + Math.round(distanceCoef * (mFinalX - mStartX));
318 mCurrY = mStartY + Math.round(distanceCoef * (mFinalY - mStartY));
447 mFinalX = startX + (int) Math.round(totalDistance * coeffX);
452 mFinalY = startY + (int) Math.round(totalDistance * coeffY);
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
H A DDragHoverListener.java162 return new Point(Math.round(offsetX + x), Math.round(offsetY + y));
/packages/apps/Launcher3/src/com/android/launcher3/popup/
H A DPopupItemView.java103 int cornerCenterX = Math.round(cornerWidth / 2f);
104 int cornerCenterY = Math.round(cornerHeight / 2f);
129 * Creates a round rect drawable (with the specified corners unrounded)
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DButteryProgressBar.java94 Math.round(DEFAULT_BAR_HEIGHT_DP * mDensity));
97 Math.round(DEFAULT_DETENT_WIDTH_DP * mDensity));
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
H A DBitmapUtil.java156 srcCroppedW = Math.round(w / scale);
157 srcCroppedH = Math.round(h / scale);
/packages/apps/Camera2/src/com/android/camera/data/
H A DGlideFilmstripManager.java203 int width = (int) Math.round(original.width() * ratio);
204 int height = (int) Math.round(original.height() * ratio);
224 Math.min((int) Math.round(original.width() * ratio), maxSize.width()),
225 Math.min((int) Math.round(original.height() * ratio), maxSize.height()));

Completed in 2885 milliseconds

12345