/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
H A D | FlingScroller.java | 69 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 D | ScrollBarView.java | 86 mGripPosition = Math.round(r * mContentPosition);
|
H A D | AbstractSlotRenderer.java | 74 int w = Math.round(scale * v.getWidth()); 75 int h = Math.round(scale * v.getHeight());
|
H A D | TiledScreenNail.java | 81 mWidth = Math.round(scale * width); 82 mHeight = Math.round(scale * height);
|
/packages/apps/Launcher3/src/com/android/launcher3/touch/ |
H A D | OverScroll.java | 53 return Math.round(OVERSCROLL_DAMP_FACTOR * f * max);
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/anim/ |
H A D | ColorMatcher.java | 33 int result = (int) Math.round(((double) value / BUCKET_SIZE)) * BUCKET_SIZE;
|
/packages/apps/Camera2/src/com/android/camera/ |
H A D | Thumbnail.java | 62 int w = Math.round(scale * width); 63 int h = Math.round(scale * height);
|
H A D | CaptureLayoutHelper.java | 359 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 D | TranslationAnimationCreator.java | 46 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 D | FaceView.java | 138 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 D | GestureFloatingTextDrawingPreview.java | 146 final float round = mParams.mGesturePreviewRoundRadius; 148 mGesturePreviewRectangle, round, round, mParams.getBackgroundPaint());
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
H A D | Scroller.java | 265 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 D | BitmapUtils.java | 56 * 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 D | ProportionalLayout.java | 105 width = Math.round(childHeight * mRatio); 109 height = Math.round(childWidth * mRatio);
|
/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/ |
H A D | ShortcutDragPreviewProvider.java | 92 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 D | CompositeImageRequest.java | 77 Math.round(avatarDestOnGroup.width()), 78 Math.round(avatarDestOnGroup.height()));
|
/packages/apps/Camera2/tests/src/com/android/camera/unittest/ |
H A D | CameraUnitTest.java | 60 assertEquals("Array index " + i + " mismatch", expected[i], Math.round(actual[i]));
|
/packages/apps/Dialer/java/com/android/dialershared/bubble/ |
H A D | ChangeOnScreenBounds.java | 151 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 D | CircledImageView.java | 221 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 D | LauncherScroller.java | 294 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 D | DragHoverListener.java | 162 return new Point(Math.round(offsetX + x), Math.round(offsetY + y));
|
/packages/apps/Launcher3/src/com/android/launcher3/popup/ |
H A D | PopupItemView.java | 103 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 D | ButteryProgressBar.java | 94 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 D | BitmapUtil.java | 156 srcCroppedW = Math.round(w / scale); 157 srcCroppedH = Math.round(h / scale);
|
/packages/apps/Camera2/src/com/android/camera/data/ |
H A D | GlideFilmstripManager.java | 203 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()));
|