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

123456

/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/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DThroughput.java50 return Math.round(getFramesPerSecond()) + " FPS";
/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());
H A DTransitionUtils.java95 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 DChangeBounds.java75 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 DSidePropagation.java93 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 DExplode.java135 + 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 DTranslationAnimationCreator.java50 int startPosX = viewPosX + Math.round(startX - terminalX);
51 int startPosY = viewPosY + Math.round(startY - terminalY);
90 mStartX = startX - Math.round(mMovingView.getTranslationX());
91 mStartY = startY - Math.round(mMovingView.getTranslationY());
105 mTransitionPosition[0] = Math.round(mStartX + mMovingView.getTranslationX());
106 mTransitionPosition[1] = Math.round(mStartY + mMovingView.getTranslationY());
/frameworks/base/services/core/java/com/android/server/
H A DTwilightCalculator.java85 float n = Math.round(daysSince2000 - J0 - arcLongitude);
112 mSunset = Math.round((solarTransitJ2000 + hourAngle) * DateUtils.DAY_IN_MILLIS) + UTC_2000;
113 mSunrise = Math.round((solarTransitJ2000 - hourAngle) * DateUtils.DAY_IN_MILLIS) + UTC_2000;
/frameworks/support/v7/appcompat/src/android/support/v7/app/
H A DTwilightCalculator.java100 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 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...]
H A Ddct_inline.h38 __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/v4/java/android/support/v4/graphics/
H A DColorUtils.java252 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 DContextMenuBuilder.java115 helper.show(Math.round(x), Math.round(y));
/frameworks/support/v7/appcompat/src/android/support/v7/graphics/drawable/
H A DDrawerArrowDrawable.java136 // round this because having this floating may cause bad measurements
137 setGapSize(Math.round(a.getDimension(R.styleable.DrawerArrowToggle_gapBetweenBars, 0)));
140 // round this because having this floating may cause bad measurements
141 mBarLength = Math.round(a.getDimension(R.styleable.DrawerArrowToggle_barLength, 0));
142 // round this because having this floating may cause bad measurements
143 mArrowHeadLength = Math.round(a.getDimension(
348 final float arrowShaftCut = Math.round(lerp(0, mMaxCutForBarSize, mProgress));
356 final float arrowWidth = Math.round(arrowHeadBarLength * Math.cos(rotation));
357 final float arrowHeight = Math.round(arrowHeadBarLength * Math.sin(rotation));
/frameworks/base/core/java/android/widget/
H A DStackView.java250 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 Dmath.h78 // 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 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());
/frameworks/support/design/base/android/support/design/widget/
H A DAnimationUtils.java43 return startValue + Math.round(fraction * (endValue - startValue));
/frameworks/base/graphics/java/android/graphics/
H A DRectF.java442 public void round(Rect dst) { method in class:RectF
443 dst.set(FastMath.round(left), FastMath.round(top),
444 FastMath.round(right), FastMath.round(bottom));

Completed in 445 milliseconds

123456