/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/services/java/com/android/server/ |
H A D | TwilightCalculator.java | 86 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 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;
|
H A D | fastquant.cpp | 159 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 D | StackView.java | 244 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 D | Scroller.java | 295 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 D | ScrollBarDrawable.java | 124 int length = Math.round((float) size * extent / range); 125 int offset = Math.round((float) (size - length) * mOffset / (range - extent));
|
H A D | RatingBar.java | 111 // than 1 so boundaries round up). 194 setProgress(Math.round(rating * getProgressPerStar()));
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | RectF.java | 443 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 D | Deemph_32_opt.s | 55 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 D | Deemph_32_neon.s | 55 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 D | RampAnimator.java | 118 mCurrentValue = (int)Math.round(mAnimatedValue);
|
/frameworks/base/core/java/android/view/ |
H A D | OrientationEventListener.java | 129 orientation = 90 - (int)Math.round(angle);
|
H A D | WindowOrientationListener.java | 448 final int tiltAngle = (int) Math.round( 474 int orientationAngle = (int) Math.round(
|
/frameworks/testing/uiautomator/library/src/com/android/uiautomator/core/ |
H A D | UiDevice.java | 119 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 D | FixedRotationFilter.java | 80 switch (((int)Math.round(mRotation / 90f)) % 4) {
|
/frameworks/av/media/libstagefright/codecs/amrnb/common/ |
H A D | Android.mk | 54 src/round.cpp \
|
/frameworks/base/core/java/com/android/internal/widget/multiwaveview/ |
H A D | TargetDrawable.java | 62 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 D | BitmapTest.java | 173 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 D | LocationFudger.java | 91 * 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 D | BitmapShader_Delegate.java | 197 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 D | ZoomManager.java | 491 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 D | DrawableHolder.java | 135 mDrawable.setAlpha((int) Math.round(mAlpha * 255f));
|