/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/core/java/android/animation/ |
H A D | ArgbEvaluator.java | 88 return Math.round(a) << 24 | Math.round(r) << 16 | Math.round(g) << 8 | Math.round(b);
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
H A D | Throughput.java | 50 return Math.round(getFramesPerSecond()) + " FPS";
|
/frameworks/support/graphics/drawable/animated/src/android/support/graphics/drawable/ |
H A D | ArgbEvaluator.java | 96 return Math.round(a) << 24 | Math.round(r) << 16 | Math.round(g) << 8 | Math.round(b);
|
/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());
|
/frameworks/support/transition/src/android/support/transition/ |
H A D | TransitionUtils.java | 49 int left = Math.round(bounds.left); 50 int top = Math.round(bounds.top); 51 int right = Math.round(bounds.right); 52 int bottom = Math.round(bounds.bottom); 83 int bitmapWidth = Math.round(bounds.width()); 84 int bitmapHeight = Math.round(bounds.height());
|
H A D | TranslationAnimationCreator.java | 59 int startPosX = viewPosX + Math.round(startX - terminalX); 60 int startPosY = viewPosY + Math.round(startY - terminalY); 95 mStartX = startX - Math.round(mMovingView.getTranslationX()); 96 mStartY = startY - Math.round(mMovingView.getTranslationY()); 110 mTransitionPosition[0] = Math.round(mStartX + mMovingView.getTranslationX()); 111 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 | 53 loc[0] += Math.round(view.getTranslationX()); 55 loc[1] += Math.round(view.getTranslationY());
|
/frameworks/support/v17/leanback/api21/android/support/v17/leanback/transition/ |
H A D | TranslationAnimationCreator.java | 55 int startPosX = viewPosX + Math.round(startX - terminalX); 56 int startPosY = viewPosY + Math.round(startY - terminalY); 95 mStartX = startX - Math.round(mMovingView.getTranslationX()); 96 mStartY = startY - Math.round(mMovingView.getTranslationY()); 110 mTransitionPosition[0] = Math.round(mStartX + mMovingView.getTranslationX()); 111 mTransitionPosition[1] = Math.round(mStartY + mMovingView.getTranslationY());
|
/frameworks/native/cmds/surfacereplayer/replayer/ |
H A D | Color.h | 121 return RGB(round(r * 255), round(g * 255), round(b * 255));
|
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
H A D | TwilightCalculator.java | 103 float n = Math.round(daysSince2000 - J0 - arcLongitude); 130 sunset = Math.round((solarTransitJ2000 + hourAngle) * DateUtils.DAY_IN_MILLIS) + UTC_2000; 131 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/base/core/java/com/android/internal/graphics/ |
H A D | ColorUtils.java | 253 r = Math.round(255 * (c + m)); 254 g = Math.round(255 * (x + m)); 255 b = Math.round(255 * m); 258 r = Math.round(255 * (x + m)); 259 g = Math.round(255 * (c + m)); 260 b = Math.round(255 * m); 263 r = Math.round(255 * m); 264 g = Math.round(255 * (c + m)); 265 b = Math.round(255 * (x + m)); 268 r = Math.round(25 [all...] |
/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/design/base/android/support/design/widget/ |
H A D | AnimationUtils.java | 42 return startValue + Math.round(fraction * (endValue - startValue));
|
/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);
|