/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Math/ |
15.8.2.15.js | 24 ECMA Section: 15.8.2.15 Math.round(x) 39 Math.round( 3.5 ) == 4 40 Math.round( -3.5 ) == 3 42 - Math.round(x) == Math.floor( x + 0.5 ) 43 except if x = -0. in that case, Math.round(x) = -0 55 var TITLE = "Math.round(x)"; 69 array[item++] = new TestCase( SECTION, "Math.round.length", 1, Math.round.length ); 71 array[item++] = new TestCase( SECTION, "Math.round()", Number.NaN, Math.round() ); [all...] |
/external/webkit/Source/WebCore/platform/mac/ |
ThreadCheck.mm | 65 void setDefaultThreadViolationBehavior(ThreadViolationBehavior behavior, ThreadViolationRound round) 67 ASSERT(round < MaximumThreadViolationRound); 68 if (round >= MaximumThreadViolationRound) 73 threadViolationBehavior[round] = behavior; 76 void reportThreadViolation(const char* function, ThreadViolationRound round) 78 ASSERT(round < MaximumThreadViolationRound); 79 if (round >= MaximumThreadViolationRound) 83 if (threadViolationBehavior[round] == NoThreadCheck) 87 WebCoreReportThreadViolation(function, round); 93 void WebCoreReportThreadViolation(const char* function, WebCore::ThreadViolationRound round) [all...] |
/bionic/libm/src/ |
s_llround.c | 5 #define roundit round
|
s_round.c | 33 round(double x) function
|
s_lround.c | 35 #define roundit round
|
/frameworks/base/core/java/com/android/internal/util/ |
FastMath.java | 25 * Fast round from float to int. This is faster than Math.round() 29 public static int round(float x) { method in class:FastMath
|
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/ |
HasCoverage.java | 28 int diff = Math.round(entity.getCoveragePercentage()) 29 - Math.round(otherEntity.getCoveragePercentage());
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
FlingScroller.java | 69 return (int)Math.round(mCurrV * mCosAngle); 73 return (int)Math.round(mCurrV * mSinAngle); 96 mDuration = (int)Math.round(FLING_DURATION_PARAM 100 mDistance = (int)Math.round( 118 Math.round(mStartX + f * mDistance * mCosAngle), mMinX, mMaxX); 123 Math.round(mStartY + f * mDistance * mSinAngle), mMinY, mMaxY);
|
PositionController.java | 153 mCurrentX = Math.round((mViewW / 2f - position.x) / scale) + mImageW / 2; 154 mCurrentY = Math.round((mViewH / 2f - position.y) / scale) + mImageH / 2; 168 int tempX = Math.round((tapX - mViewW / 2) / mCurrentScale + mCurrentX); 169 int tempY = Math.round((tapY - mViewH / 2) / mCurrentScale + mCurrentY); 213 return Math.round(newSize / 2f + (value - size / 2f) / ratio); 263 mFocusBitmapX = Math.round(mCurrentX + 265 mFocusBitmapY = Math.round(mCurrentY + 277 int x = Math.round(mFocusBitmapX - (focusX - mViewW / 2f) / s); 278 int y = Math.round(mFocusBitmapY - (focusY - mViewH / 2f) / s); 319 mFromX = Math.round(fromX) [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/filters/ |
CropFilter.java | 42 dst.changeDimension(Math.round(bounds.width() * src.width()), 43 Math.round(bounds.height() * src.height())); 46 effect.setParameter("xorigin", Math.round(bounds.left * src.width())); 47 effect.setParameter("yorigin", Math.round(bounds.top * src.height()));
|
/external/webkit/LayoutTests/fast/dom/CSSStyleDeclaration/script-tests/ |
transition-property-names.js | 2 'This test checks that CSS property names work round trip in the transition property.'
|
/external/libvpx/vp8/encoder/arm/ |
quantize_arm.c | 31 d->eob = vp8_fast_quantize_b_neon_func(b->coeff, b->zbin, d->qcoeff, d->dqcoeff, d->dequant, vp8_rvsplus1_default_zig_zag1d, b->round, b->quant_fast); 43 short *round_ptr = &b->Round[0][0];
|
/libcore/luni/src/test/java/libcore/java/math/ |
OldBigDecimalArithmeticTest.java | 36 a.round(mc).toString()); 38 b.round(mc).toString()); 40 a.round(mc).add(b.round(mc)).toString()); 61 a.round(mc).subtract(b.round(mc)).toString()); 83 res = a.round(mc).multiply(b.round(mc)); 85 res = res.round(mc); 131 a.round(mc).pow(1000).round(mc).toString()) [all...] |
/frameworks/base/services/java/com/android/server/ |
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;
|
/external/icu4c/test/intltest/ |
dcfmtest.h | 46 const UnicodeString &round,
|
dcfmtest.cpp | 368 const UnicodeString &round, // rounding mode 384 if (round=="ceiling") { 386 } else if (round=="floor") { 388 } else if (round=="down") { 390 } else if (round=="up") { 392 } else if (round=="halfeven") { 394 } else if (round=="halfdown") { 396 } else if (round=="halfup") { 398 } else if (round=="default") { 403 lineNum, UnicodeStringPiece(round).data()) [all...] |
/external/srec/audio/AudioIn/UNIX/include/ |
filter.h | 45 typeAccum round; // used for roundoff member in struct:fir_struct
|
/frameworks/base/media/libstagefright/codecs/m4v_h263/enc/src/ |
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 = 1 << (FDCT_SHIFT - 1) 477 Int round; local 656 Int round; local 867 Int round; local 1054 Int round; local [all...] |
fastquant_inline.h | 30 __inline int32 aan_scale(int32 q_value, int32 coeff, int32 round, int32 QPdiv2) 32 q_value = coeff * q_value + round; 83 __inline int32 smlabb(int32 q_value, int32 coeff, int32 round) 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) 225 smlabb q_value, coeff, q_value, round 269 int32 round, int32 QPdiv2) 273 mla q_value, coeff, q_value, round [all...] |
dct_inline.h | 38 __inline int32 mla392(int32 k0, int32 k14, int32 round) 44 k1 = k0 * 392 + round; 123 __inline int32 mla392(int32 k0, int32 k14, int32 round) 129 smlabt k1, k0, k14, round 187 __inline int32 mla392(int32 k0, int32 k14, int32 round) 194 mla k1, k0, k1, round 285 __inline int32 mla392(int32 k0, int32 k14, int32 round) 290 register int32 cc = (int32)round;
|
/external/apache-xml/src/main/java/org/apache/xpath/functions/ |
FuncSubstring.java | 70 start = Math.round(start); 77 int end = (int) (Math.round(len) + start) - 1;
|
/packages/apps/Camera/src/com/android/camera/ui/ |
FaceView.java | 138 mFaceIndicator.setBounds(Math.round(mRect.left), Math.round(mRect.top), 139 Math.round(mRect.right), Math.round(mRect.bottom));
|
/packages/apps/Gallery2/tests/src/com/android/gallery3d/ui/ |
GLMock.java | 185 return (Math.round(alpha * 255) << 24) | 186 (Math.round(red * 255) << 16) | 187 (Math.round(green * 255) << 8) | 188 Math.round(blue * 255);
|
/hardware/invensense/mlsdk/platform/include/ |
mlmath.h | 34 #define round(x)(((double)((long long)((x)>0?(x)+.5:(x)-.5)))) macro 70 #define round(x) (((double)((long long)((x)>0?(x)+.5:(x)-.5)))) macro
|
/packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/actions/ |
FlipAction.java | 105 // Round the current flip degrees in case flip tracking has not stopped yet. 115 horizontalFlipDegrees = Math.round(horizontalFlipDegrees / 180) * 180; 118 verticalFlipDegrees = Math.round(verticalFlipDegrees / 180) * 180;
|