/frameworks/base/core/java/com/android/internal/util/ |
H A D | FastMath.java | 25 * Fast round from float to int. This is faster than Math.round() 29 public static int round(float value) { method in class:FastMath
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | ScrollBarUtils.java | 24 int length = Math.round((float) size * extent / range); 33 int thumbOffset = Math.round((float) (size - thumbLength) * offset / (range - extent));
|
/frameworks/opt/bitmap/src/com/android/bitmap/util/ |
H A D | BitmapUtils.java | 75 final int srcCroppedW = Math.round(dstW * scale); 76 final int srcCroppedH = Math.round(dstH * scale); 77 final int srcCroppedSliceH = Math.round(dstSliceH * scale); 87 centerV = Math.max(minCenterV, Math.min(maxCenterV, Math.round(srcH * vertSliceFrac))); 90 .round(Math.abs(srcH - srcCroppedSliceH) * vertSliceFrac + srcHalfSliceH); 120 final int srcCroppedW = Math.round(dstW * scale); 121 final int srcCroppedH = Math.round(dstH * scale);
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
H A D | Throughput.java | 50 return Math.round(getFramesPerSecond()) + " FPS";
|
/frameworks/base/core/java/android/transition/ |
H A D | TranslationAnimationCreator.java | 62 int startPosX = viewPosX + Math.round(startX - terminalX); 63 int startPosY = viewPosY + Math.round(startY - terminalY); 102 mStartX = startX - Math.round(mMovingView.getTranslationX()); 103 mStartY = startY - Math.round(mMovingView.getTranslationY()); 117 mTransitionPosition[0] = Math.round(mStartX + mMovingView.getTranslationX()); 118 mTransitionPosition[1] = Math.round(mStartY + mMovingView.getTranslationY());
|
H A D | CircularPropagation.java | 83 epicenterX = Math.round(loc[0] + (sceneRoot.getWidth() / 2) 85 epicenterY = Math.round(loc[1] + (sceneRoot.getHeight() / 2) 97 return Math.round(duration * directionMultiplier / mPropagationSpeed * distanceFraction);
|
H A D | VisibilityPropagation.java | 52 loc[0] += Math.round(view.getTranslationX()); 54 loc[1] += Math.round(view.getTranslationY());
|
H A D | TransitionUtils.java | 95 int left = Math.round(bounds.left); 96 int top = Math.round(bounds.top); 97 int right = Math.round(bounds.right); 98 int bottom = Math.round(bounds.bottom); 157 int bitmapWidth = Math.round(bounds.width()); 158 int bitmapHeight = Math.round(bounds.height());
|
H A D | ChangeBounds.java | 75 mBounds.offsetTo(Math.round(value.x), Math.round(value.y)); 118 int right = Math.round(bottomRight.x); 119 int bottom = Math.round(bottomRight.y); 133 int left = Math.round(topLeft.x); 134 int top = Math.round(topLeft.y); 150 int left = Math.round(topLeft.x); 151 int top = Math.round(topLeft.y); 483 mLeft = Math.round(topLeft.x); 484 mTop = Math.round(topLef [all...] |
H A D | SidePropagation.java | 93 int left = loc[0] + Math.round(sceneRoot.getTranslationX()); 94 int top = loc[1] + Math.round(sceneRoot.getTranslationY()); 118 return Math.round(duration * directionMultiplier / mPropagationSpeed * distanceFraction);
|
H A D | Explode.java | 135 + Math.round(sceneRoot.getTranslationX()); 137 + Math.round(sceneRoot.getTranslationY()); 160 outVector[0] = (int) Math.round(maxDistance * xVector); 161 outVector[1] = (int) Math.round(maxDistance * yVector);
|
/frameworks/support/v17/leanback/api21/android/support/v17/leanback/transition/ |
H A D | TranslationAnimationCreator.java | 54 int startPosX = viewPosX + Math.round(startX - terminalX); 55 int startPosY = viewPosY + Math.round(startY - terminalY); 94 mStartX = startX - Math.round(mMovingView.getTranslationX()); 95 mStartY = startY - Math.round(mMovingView.getTranslationY()); 109 mTransitionPosition[0] = Math.round(mStartX + mMovingView.getTranslationX()); 110 mTransitionPosition[1] = Math.round(mStartY + mMovingView.getTranslationY());
|
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
H A D | TwilightCalculator.java | 100 float n = Math.round(daysSince2000 - J0 - arcLongitude); 127 sunset = Math.round((solarTransitJ2000 + hourAngle) * DateUtils.DAY_IN_MILLIS) + UTC_2000; 128 sunrise = Math.round((solarTransitJ2000 - hourAngle) * DateUtils.DAY_IN_MILLIS) + UTC_2000;
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
H A D | dct.cpp | 42 Int round; local 53 round = 1 << (FDCT_SHIFT - 1); 118 k1 = mla724(k12, k5, round); 119 k0 = mla724(k12, k2, round); 136 k1 = mla392(k0, k14, round); 213 k1 = mla724(k12, k5, round); 214 k0 = mla724(k12, k2, round); 231 k1 = mla392(k0, k14, round); 271 Int round; local 282 round 477 Int round; local 656 Int round; local 867 Int round; local 1054 Int round; local [all...] |
H A D | fastquant_inline.h | 30 __inline int32 aan_scale(int32 q_value, int32 coeff, int32 round, int32 QPdiv2) argument 32 q_value = coeff * q_value + round; 83 __inline int32 smlabb(int32 q_value, int32 coeff, int32 round) argument 85 q_value = coeff * q_value + round; 174 int32 round, int32 QPdiv2) 178 smlabb q_value, coeff, q_value, round 221 __inline int32 smlabb(int32 q_value, int32 coeff, int32 round) argument 225 smlabb q_value, coeff, q_value, round 269 int32 round, int32 QPdiv2) 273 mla q_value, coeff, q_value, round 173 aan_scale(int32 q_value, int32 coeff, int32 round, int32 QPdiv2) argument 268 aan_scale(int32 q_value, int32 coeff, int32 round, int32 QPdiv2) argument 317 smlabb(int32 q_value, int32 coeff, int32 round) argument 428 aan_scale(int32 q_value, int32 coeff, int32 round, int32 QPdiv2) argument 510 smlabb(int32 q_value, int32 coeff, int32 round) argument [all...] |
H A D | dct_inline.h | 38 __inline int32 mla392(int32 k0, int32 k14, int32 round) argument 44 k1 = k0 * 392 + round; 123 __inline int32 mla392(int32 k0, int32 k14, int32 round) argument 129 smlabt k1, k0, k14, round 187 __inline int32 mla392(int32 k0, int32 k14, int32 round) argument 194 mla k1, k0, k1, round 285 __inline int32 mla392(int32 k0, int32 k14, int32 round) argument 290 register int32 cc = (int32)round;
|
/frameworks/support/core-utils/java/android/support/v4/graphics/ |
H A D | ColorUtils.java | 252 r = Math.round(255 * (c + m)); 253 g = Math.round(255 * (x + m)); 254 b = Math.round(255 * m); 257 r = Math.round(255 * (x + m)); 258 g = Math.round(255 * (c + m)); 259 b = Math.round(255 * m); 262 r = Math.round(255 * m); 263 g = Math.round(255 * (c + m)); 264 b = Math.round(255 * (x + m)); 267 r = Math.round(25 [all...] |
/frameworks/base/core/java/com/android/internal/view/menu/ |
H A D | ContextMenuBuilder.java | 115 helper.show(Math.round(x), Math.round(y));
|
/frameworks/support/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/utils/ |
H A D | Utils.java | 31 return Math.round((float) dp * density);
|
/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/utils/ |
H A D | Utils.java | 31 return Math.round((float) dp * density);
|
/frameworks/support/v7/appcompat/src/android/support/v7/graphics/drawable/ |
H A D | DrawerArrowDrawable.java | 140 // round this because having this floating may cause bad measurements 141 setGapSize(Math.round(a.getDimension(R.styleable.DrawerArrowToggle_gapBetweenBars, 0))); 144 // round this because having this floating may cause bad measurements 145 mBarLength = Math.round(a.getDimension(R.styleable.DrawerArrowToggle_barLength, 0)); 146 // round this because having this floating may cause bad measurements 147 mArrowHeadLength = Math.round(a.getDimension( 352 final float arrowShaftCut = Math.round(lerp(0, mMaxCutForBarSize, mProgress)); 360 final float arrowWidth = Math.round(arrowHeadBarLength * Math.cos(rotation)); 361 final float arrowHeight = Math.round(arrowHeadBarLength * Math.sin(rotation));
|
/frameworks/support/percent/src/android/support/percent/ |
H A D | PercentLayoutHelper.java | 417 params.width = Math.round(widthHint * widthPercent); 421 params.height = Math.round(heightHint * heightPercent); 426 params.width = Math.round(params.height * aspectRatio); 431 params.height = Math.round(params.width / aspectRatio); 473 params.leftMargin = Math.round(widthHint * leftMarginPercent); 476 params.topMargin = Math.round(heightHint * topMarginPercent); 479 params.rightMargin = Math.round(widthHint * rightMarginPercent); 482 params.bottomMargin = Math.round(heightHint * bottomMarginPercent); 487 Math.round(widthHint * startMarginPercent)); 492 Math.round(widthHin [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | StackView.java | 250 int duration = Math.round(mStackSlider.getDurationForNeutralPosition(mYVelocity)); 270 int duration = Math.round(mStackSlider.getDurationForOffscreenPosition(mYVelocity)); 568 final int newSlideAmount = Math.round(SLIDE_UP_RATIO * getMeasuredHeight()); 571 mSwipeThreshold = Math.round(SWIPE_THRESHOLD_RATIO * newSlideAmount); 787 if (mTouchRect.contains(Math.round(x), Math.round(y))) { 858 duration = Math.round(mStackSlider.getDurationForNeutralPosition()); 860 duration = Math.round(mStackSlider.getDurationForOffscreenPosition()); 876 duration = Math.round(mStackSlider.getDurationForNeutralPosition()); 878 duration = Math.round(mStackSlide [all...] |
/frameworks/av/media/libeffects/loudness/common/core/ |
H A D | math.h | 78 // since std::round is missing on android. 81 inline T round(const T &x) { function in namespace:std
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/ |
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());
|