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

12345678

/frameworks/base/core/java/com/android/internal/util/
H A DFastMath.java25 * 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 DScrollBarUtils.java24 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 DBitmapUtils.java75 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/packages/SettingsLib/src/com/android/settingslib/display/
H A DBrightnessUtils.java64 return Math.round(MathUtils.lerp(min, max, ret / 12));
99 return Math.round(MathUtils.lerp(0, GAMMA_SPACE_MAX, ret));
/frameworks/base/core/java/android/animation/
H A DArgbEvaluator.java88 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 DThroughput.java50 return Math.round(getFramesPerSecond()) + " FPS";
/frameworks/support/graphics/drawable/animated/src/main/java/androidx/vectordrawable/graphics/drawable/
H A DArgbEvaluator.java97 return Math.round(a) << 24 | Math.round(r) << 16 | Math.round(g) << 8 | Math.round(b);
/frameworks/base/core/java/android/transition/
H A DTranslationAnimationCreator.java62 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 DCircularPropagation.java83 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 DVisibilityPropagation.java52 loc[0] += Math.round(view.getTranslationX());
54 loc[1] += Math.round(view.getTranslationY());
/frameworks/support/leanback/api21/androidx/leanback/transition/
H A DTranslationAnimationCreator.java56 int startPosX = viewPosX + Math.round(startX - terminalX);
57 int startPosY = viewPosY + Math.round(startY - terminalY);
96 mStartX = startX - Math.round(mMovingView.getTranslationX());
97 mStartY = startY - Math.round(mMovingView.getTranslationY());
111 mTransitionPosition[0] = Math.round(mStartX + mMovingView.getTranslationX());
112 mTransitionPosition[1] = Math.round(mStartY + mMovingView.getTranslationY());
/frameworks/support/transition/src/main/java/androidx/transition/
H A DTranslationAnimationCreator.java59 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 DCircularPropagation.java83 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 DTransitionUtils.java57 int left = Math.round(bounds.left);
58 int top = Math.round(bounds.top);
59 int right = Math.round(bounds.right);
60 int bottom = Math.round(bounds.bottom);
111 int bitmapWidth = Math.round(bounds.width());
112 int bitmapHeight = Math.round(bounds.height());
115 bitmapWidth = Math.round(bitmapWidth * scale);
116 bitmapHeight = Math.round(bitmapHeight * scale);
H A DVisibilityPropagation.java53 loc[0] += Math.round(view.getTranslationX());
55 loc[1] += Math.round(view.getTranslationY());
/frameworks/native/cmds/surfacereplayer/replayer/
H A DColor.h121 return RGB(round(r * 255), round(g * 255), round(b * 255));
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/app/
H A DTwilightCalculator.java103 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/base/packages/SystemUI/src/com/android/systemui/qs/touch/
H A DOverScroll.java55 return Math.round(OVERSCROLL_DAMP_FACTOR * f * max);
/frameworks/ml/nn/runtime/test/specs/V1_0/
H A Dlogistic_quant8_2.mod.py37 else int(round(1. / (1. + math.exp(-x * .5)) * 256))
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
H A Ddct.cpp42 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 Dfastquant_inline.h30 __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...]
/frameworks/base/core/java/com/android/internal/graphics/
H A DColorUtils.java296 r = Math.round(255 * (c + m));
297 g = Math.round(255 * (x + m));
298 b = Math.round(255 * m);
301 r = Math.round(255 * (x + m));
302 g = Math.round(255 * (c + m));
303 b = Math.round(255 * m);
306 r = Math.round(255 * m);
307 g = Math.round(255 * (c + m));
308 b = Math.round(255 * (x + m));
311 r = Math.round(25
[all...]
/frameworks/support/compat/src/main/java/androidx/core/graphics/
H A DColorUtils.java320 r = Math.round(255 * (c + m));
321 g = Math.round(255 * (x + m));
322 b = Math.round(255 * m);
325 r = Math.round(255 * (x + m));
326 g = Math.round(255 * (c + m));
327 b = Math.round(255 * m);
330 r = Math.round(255 * m);
331 g = Math.round(255 * (c + m));
332 b = Math.round(255 * (x + m));
335 r = Math.round(25
[all...]
/frameworks/base/core/java/com/android/internal/view/menu/
H A DContextMenuBuilder.java115 helper.show(Math.round(x), Math.round(y));
/frameworks/native/services/surfaceflinger/
H A DColorLayer.cpp87 error = hwcLayer->setColor({static_cast<uint8_t>(std::round(255.0f * color.r)),
88 static_cast<uint8_t>(std::round(255.0f * color.g)),
89 static_cast<uint8_t>(std::round(255.0f * color.b)), 255});

Completed in 861 milliseconds

12345678