/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma_2/String/ |
split-002.js | 250 if ( Math.abs( n ) == 0 251 || Math.abs( n ) == Number.POSITIVE_INFINITY 255 n = sign * Math.floor( Math.abs(n) )
|
/frameworks/base/core/java/android/view/ |
WindowOrientationListener.java | 419 if (Math.abs(tiltAngle) > MAX_TILT) { 583 if (Math.abs(mHistoryMagnitudes[olderIndex] - magnitude) 604 int delta = Math.abs(a - b);
|
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/ |
BitmapTest.java | 214 assertTrue("red", Math.abs(rr - r1) <= tolerance); 219 assertTrue("green", Math.abs(gg - g1) <= tolerance); 224 assertTrue("blue", Math.abs(bb - b1) <= tolerance);
|
/frameworks/base/media/libstagefright/codecs/g711/dec/ |
SoftG711.cpp | 289 int32_t abs = (0x80l << exponent) + step * mantissa + step / 2 - 4 * 33; local 291 *out++ = (x < 0x80) ? -abs : abs;
|
/libcore/luni/src/test/java/libcore/java/lang/ |
OldAndroidMathTest.java | 51 // Test for method double java.lang.Math.abs(double) 53 assertTrue("Incorrect double abs value", 54 (Math.abs(-1908.8976) == 1908.8976)); 55 assertTrue("Incorrect double abs value", 56 (Math.abs(1908.8976) == 1908.8976)); 60 // Test for method float java.lang.Math.abs(float) 61 assertTrue("Incorrect float abs value", 62 (Math.abs(-1908.8976f) == 1908.8976f)); 63 assertTrue("Incorrect float abs value", 64 (Math.abs(1908.8976f) == 1908.8976f)) [all...] |
OldAndroidStrictMathTest.java | 34 // Test for method double java.lang.StrictMath.abs(double) 36 assertTrue("Incorrect double abs value", 37 (StrictMath.abs(-1908.8976) == 1908.8976)); 38 assertTrue("Incorrect double abs value", 39 (StrictMath.abs(1908.8976) == 1908.8976)); 43 // Test for method float java.lang.StrictMath.abs(float) 44 assertTrue("Incorrect float abs value", 45 (StrictMath.abs(-1908.8976f) == 1908.8976f)); 46 assertTrue("Incorrect float abs value", 47 (StrictMath.abs(1908.8976f) == 1908.8976f)) [all...] |
/libcore/luni/src/main/java/java/math/ |
BigDecimal.java | 1721 public BigDecimal abs() { method in class:BigDecimal 1734 public BigDecimal abs(MathContext mc) { method in class:BigDecimal [all...] |
Conversion.java | 76 int resLengthInChars = (int) (val.abs().bitLength() / bitsForRadixDigit + ((sign < 0) ? 1 430 int bitLen = val.abs().bitLength(); 434 long lVal = val.abs().shiftRight(delta).longValue();
|
/libcore/luni/src/test/java/tests/api/java/math/ |
BigIntegerTest.java | 536 * java.math.BigInteger#abs() 540 .abs().equals(aZillion.abs())); 541 assertTrue("Invalid number returned for zero neg", zero.negate().abs() 543 assertTrue("Invalid number returned for zero", zero.abs().equals(zero)); 544 assertTrue("Invalid number returned for two", two.negate().abs() [all...] |
/external/opencv/cv/src/ |
cvoptflowbm.cpp | 54 int t0 = abs(vec1[i] - vec2[i]); 55 int t1 = abs(vec1[i + 1] - vec2[i + 1]); 56 int t2 = abs(vec1[i + 2] - vec2[i + 2]); 57 int t3 = abs(vec1[i + 3] - vec2[i + 3]); 64 int t0 = abs(vec1[i] - vec2[i]);
|
/packages/experimental/DreamTheater/src/com/android/dreamtheater/ |
BouncyDroid.java | 273 mBody.v.x = (float) Math.abs(mBody.v.x) * 276 mBody.v.x = (float) Math.abs(mBody.v.x) * 280 mBody.v.y = (float) Math.abs(mBody.v.y) * 283 mBody.v.y = (float) Math.abs(mBody.v.y) * 309 (Math.abs(mBody.v.x) < 25)
|
/external/doclava/src/com/google/doclava/apicheck/ |
ApiFile.java | 120 boolean abs = false; 146 abs = true; 167 pkgpriv, false/*isPrivate*/, stat, iface, abs, true/*isOrdinaryClass*/, 280 boolean abs = false; 306 abs = true; 324 stat, false/*isSynthetic*/, abs/*isAbstract*/, syn, false/*isNative*/,
|
/external/stlport/stlport/stl/ |
_cmath.h | 20 * declaration. cmath have abs overloads and cstdlib a using directive 340 //We have to tell the compilers that abs, acos ... math functions are not intrinsic 345 # pragma function (abs, acos, asin, atan, atan2, cos, cosh, exp, fabs, fmod, log, log10, sin, sinh, sqrt, tan, tanh) 424 inline double abs(double __x) function 427 _STLP_DEF_MATH_INLINE(abs, fabs) 428 # else // __MVS__ has native long double abs? 429 inline float abs(float __x) { return ::fabsf(__x); } 515 # pragma intrinsic (abs, acos, asin, atan, atan2, cos, cosh, exp, fabs, fmod, log, log10, sin, sinh, sqrt, tan, tanh) 525 * problem we provide all abs overload before the 'using' call. 526 * Beware: This header inclusion has to be after all abs overload of this file [all...] |
/external/webkit/PerformanceTests/SunSpider/tests/sunspider-0.9/ |
3d-raytrace.js | 129 if (Math.abs(normal[0]) > Math.abs(normal[1])) 130 if (Math.abs(normal[0]) > Math.abs(normal[2])) 135 if (Math.abs(normal[1]) > Math.abs(normal[2]))
|
/external/webkit/PerformanceTests/SunSpider/tests/sunspider-0.9.1/ |
3d-raytrace.js | 129 if (Math.abs(normal[0]) > Math.abs(normal[1])) 130 if (Math.abs(normal[0]) > Math.abs(normal[2])) 135 if (Math.abs(normal[1]) > Math.abs(normal[2]))
|
/ndk/sources/cxx-stl/stlport/stlport/stl/ |
_cmath.h | 20 * declaration. cmath have abs overloads and cstdlib a using directive 340 //We have to tell the compilers that abs, acos ... math functions are not intrinsic 345 # pragma function (abs, acos, asin, atan, atan2, cos, cosh, exp, fabs, fmod, log, log10, sin, sinh, sqrt, tan, tanh) 424 inline double abs(double __x) function 427 _STLP_DEF_MATH_INLINE(abs, fabs) 428 # else // __MVS__ has native long double abs? 429 inline float abs(float __x) { return ::fabsf(__x); } 515 # pragma intrinsic (abs, acos, asin, atan, atan2, cos, cosh, exp, fabs, fmod, log, log10, sin, sinh, sqrt, tan, tanh) 525 * problem we provide all abs overload before the 'using' call. 526 * Beware: This header inclusion has to be after all abs overload of this file [all...] |
/packages/apps/Browser/src/com/android/browser/ |
NavTabScroller.java | 280 long duration = (long) (Math.abs(distance) * 1000 / Math.abs(velocity)); 443 if (Math.abs(diff) > (mHorizontal ? downView.getHeight() : downView.getWidth()) / 2) { 456 if (mAnimator == null && Math.abs(velocity) > mFlingVelocity / 2) { 473 return 1 - (float) Math.abs(distance) / (mHorizontal ? v.getHeight() : v.getWidth()); 514 int oscroll = Math.abs(mPullValue);
|
/packages/apps/Camera/src/com/android/camera/ |
Util.java | 358 int dist = Math.abs(orientation - orientationHistory); 394 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) continue; 395 if (Math.abs(size.height - targetHeight) < minDiff) { 397 minDiff = Math.abs(size.height - targetHeight); 407 if (Math.abs(size.height - targetHeight) < minDiff) { 409 minDiff = Math.abs(size.height - targetHeight);
|
/prebuilt/ndk/android-ndk-r5/sources/cxx-stl/stlport/stlport/stl/ |
_cmath.h | 20 * declaration. cmath have abs overloads and cstdlib a using directive 340 //We have to tell the compilers that abs, acos ... math functions are not intrinsic 345 # pragma function (abs, acos, asin, atan, atan2, cos, cosh, exp, fabs, fmod, log, log10, sin, sinh, sqrt, tan, tanh) 424 inline double abs(double __x) function 427 _STLP_DEF_MATH_INLINE(abs, fabs) 428 # else // __MVS__ has native long double abs? 429 inline float abs(float __x) { return ::fabsf(__x); } 515 # pragma intrinsic (abs, acos, asin, atan, atan2, cos, cosh, exp, fabs, fmod, log, log10, sin, sinh, sqrt, tan, tanh) 525 * problem we provide all abs overload before the 'using' call. 526 * Beware: This header inclusion has to be after all abs overload of this file [all...] |
/prebuilt/ndk/android-ndk-r6/sources/cxx-stl/stlport/stlport/stl/ |
_cmath.h | 20 * declaration. cmath have abs overloads and cstdlib a using directive 340 //We have to tell the compilers that abs, acos ... math functions are not intrinsic 345 # pragma function (abs, acos, asin, atan, atan2, cos, cosh, exp, fabs, fmod, log, log10, sin, sinh, sqrt, tan, tanh) 424 inline double abs(double __x) function 427 _STLP_DEF_MATH_INLINE(abs, fabs) 428 # else // __MVS__ has native long double abs? 429 inline float abs(float __x) { return ::fabsf(__x); } 515 # pragma intrinsic (abs, acos, asin, atan, atan2, cos, cosh, exp, fabs, fmod, log, log10, sin, sinh, sqrt, tan, tanh) 525 * problem we provide all abs overload before the 'using' call. 526 * Beware: This header inclusion has to be after all abs overload of this file [all...] |
/cts/tests/tests/widget/src/android/widget/cts/ |
ScrollerTest.java | 419 assertTrue(Math.abs(currX - previousX) < Math.abs(previousX - 0)); 420 assertTrue(Math.abs(currY - previousY) < Math.abs(previousY - 0));
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/ |
StrictMathTest.java | 42 * @tests java.lang.StrictMath#abs(double) 45 // Test for method double java.lang.StrictMath.abs(double) 47 assertTrue("Incorrect double abs value", 48 (StrictMath.abs(-1908.8976) == 1908.8976)); 49 assertTrue("Incorrect double abs value", 50 (StrictMath.abs(1908.8976) == 1908.8976)); 54 * @tests java.lang.StrictMath#abs(float) 57 // Test for method float java.lang.StrictMath.abs(float) 58 assertTrue("Incorrect float abs value", 59 (StrictMath.abs(-1908.8976f) == 1908.8976f)) [all...] |
/external/apache-harmony/math/src/test/java/org/apache/harmony/tests/java/math/ |
BigDecimalCompareTest.java | 32 * Methods: abs, compareTo, equals, hashCode, 37 * Abs() of a negative BigDecimal 43 assertEquals("incorrect value", result, aNumber.abs().toString()); 47 * Abs() of a positive BigDecimal 53 assertEquals("incorrect value", result, aNumber.abs().toString()); 57 * Abs(MathContext) of a negative BigDecimal 67 BigDecimal res = aNumber.abs(mc); 73 * Abs(MathContext) of a positive BigDecimal 83 BigDecimal res = aNumber.abs(mc);
|
/external/bouncycastle/src/main/java/org/bouncycastle/crypto/generators/ |
RSAKeyPairGenerator.java | 80 if (q.subtract(p).abs().bitLength() < mindiffbits)
|
/external/chromium/chrome/browser/ |
oom_priority_manager.cc | 77 if (abs((first.last_selected - second.last_selected).ToInternalValue()) <
|