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

123

/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/services/java/com/android/server/
H A DTwilightCalculator.java86 float n = Math.round(daysSince2000 - J0 - arcLongitude);
113 mSunset = Math.round((solarTransitJ2000 + hourAngle) * DateUtils.DAY_IN_MILLIS) + UTC_2000;
114 mSunrise = 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;
H A Dfastquant.cpp159 Int round = 1 << 15; local
224 coeff = aan_scale(q_value, coeff, round, QPdiv2);
278 Int round = 1 << 15; local
326 q_value = round + (coeff << 12);
383 q_value = smlabb(q_value, coeff, round);
553 Int round = 1 << 15; local
583 q_value = smlabb(q_value, coeff, round);
682 Int round = 1 << 15; local
708 q_value = round + (coeff << 12);
754 /* q_value = coeff*q_value + round */
[all...]
/frameworks/base/core/java/android/widget/
H A DStackView.java244 int duration = Math.round(mStackSlider.getDurationForNeutralPosition(mYVelocity));
264 int duration = Math.round(mStackSlider.getDurationForOffscreenPosition(mYVelocity));
562 final int newSlideAmount = Math.round(SLIDE_UP_RATIO * getMeasuredHeight());
565 mSwipeThreshold = Math.round(SWIPE_THRESHOLD_RATIO * newSlideAmount);
781 if (mTouchRect.contains(Math.round(x), Math.round(y))) {
852 duration = Math.round(mStackSlider.getDurationForNeutralPosition());
854 duration = Math.round(mStackSlider.getDurationForOffscreenPosition());
870 duration = Math.round(mStackSlider.getDurationForNeutralPosition());
872 duration = Math.round(mStackSlide
[all...]
H A DScroller.java295 mCurrX = mStartX + Math.round(x * mDeltaX);
296 mCurrY = mStartY + Math.round(x * mDeltaY);
314 mCurrX = mStartX + Math.round(distanceCoef * (mFinalX - mStartX));
319 mCurrY = mStartY + Math.round(distanceCoef * (mFinalY - mStartY));
447 mFinalX = startX + (int) Math.round(totalDistance * coeffX);
452 mFinalY = startY + (int) Math.round(totalDistance * coeffY);
H A DScrollBarDrawable.java124 int length = Math.round((float) size * extent / range);
125 int offset = Math.round((float) (size - length) * mOffset / (range - extent));
H A DRatingBar.java111 // than 1 so boundaries round up).
194 setProgress(Math.round(rating * getProgressPerStar()));
/frameworks/base/graphics/java/android/graphics/
H A DRectF.java443 public void round(Rect dst) { method in class:RectF
444 dst.set(FastMath.round(left), FastMath.round(top),
445 FastMath.round(right), FastMath.round(bottom));
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/asm/ARMV5E/
H A DDeemph_32_opt.s55 MOV r14, r10, ASR #16 @y[0] = round(L_tmp)
66 MOV r14, r10, ASR #16 @y[1] = round(L_tmp)
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/asm/ARMV7/
H A DDeemph_32_neon.s55 MOV r14, r10, ASR #16 @y[0] = round(L_tmp)
66 MOV r14, r10, ASR #16 @y[1] = round(L_tmp)
/frameworks/base/services/java/com/android/server/power/
H A DRampAnimator.java118 mCurrentValue = (int)Math.round(mAnimatedValue);
/frameworks/base/core/java/android/view/
H A DOrientationEventListener.java129 orientation = 90 - (int)Math.round(angle);
H A DWindowOrientationListener.java448 final int tiltAngle = (int) Math.round(
474 int orientationAngle = (int) Math.round(
/frameworks/testing/uiautomator/library/src/com/android/uiautomator/core/
H A DUiDevice.java119 p.x = Math.round(dpx);
120 p.y = Math.round(dpy);
750 width = Math.round(scale * width);
751 height = Math.round(scale * height);
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
H A DFixedRotationFilter.java80 switch (((int)Math.round(mRotation / 90f)) % 4) {
/frameworks/av/media/libstagefright/codecs/amrnb/common/
H A DAndroid.mk54 src/round.cpp \
/frameworks/base/core/java/com/android/internal/widget/multiwaveview/
H A DTargetDrawable.java62 mRealDrawable.setAlpha((int) Math.round(mAlpha * 255f));
248 mDrawable.setAlpha((int) Math.round(mAlpha * 255f));
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/
H A DBitmapTest.java173 int premul = Math.round(alpha * comp / 255.f);
174 int unpre = Math.round(255.0f * premul / alpha);
/frameworks/base/services/java/com/android/server/location/
H A DLocationFudger.java91 * This number actually varies because the earth is not round, but
249 lat = Math.round(lat / latGranularity) * latGranularity;
251 lon = Math.round(lon / lonGranularity) * lonGranularity;
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DBitmapShader_Delegate.java197 int x = getCoordinate(Math.round(fx), mImage.getWidth(), mTileModeX);
198 int y = getCoordinate(Math.round(fy), mImage.getHeight(), mTileModeY);
/frameworks/base/core/java/android/webkit/
H A DZoomManager.java491 int tx = Math.round(scale * (mInitialScrollX + mZoomCenterX) - mZoomCenterX);
492 tx = -WebViewClassic.pinLoc(tx, mWebView.getViewWidth(), Math.round(mWebView.getContentWidth()
495 int ty = Math.round(scale
499 - titleHeight, mWebView.getViewHeight(), Math.round(mWebView.getContentHeight()
595 int scrollX = mWebView.pinLocX(Math.round(sx));
596 int scrollY = mWebView.pinLocY(Math.round(sy));
1096 newZoomOverviewWidth = Math.round(viewWidth / mDefaultScale);
/frameworks/base/core/java/com/android/internal/widget/
H A DDrawableHolder.java135 mDrawable.setAlpha((int) Math.round(mAlpha * 255f));

Completed in 345 milliseconds

123