/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/ |
MatrixUtilsTests.java | 35 assertTrue(Math.abs(f0 - f1) < error);
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/aggregation/util/ |
NameDistanceTest.java | 75 Math.abs(actual - expected) < 0.001);
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_long_future.py | 27 a, b = abs(a), abs(b) 103 if skip_small and max(abs(a), abs(b)) < 2**DBL_MANT_DIG:
|
test_timeout.py | 125 _delta = abs(_t1 - _t2) 142 _delta = abs(_t1 - _t2) 159 _delta = abs(_t1 - _t2) 176 _delta = abs(_t1 - _t2)
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_long_future.py | 27 a, b = abs(a), abs(b) 103 if skip_small and max(abs(a), abs(b)) < 2**DBL_MANT_DIG:
|
test_timeout.py | 125 _delta = abs(_t1 - _t2) 142 _delta = abs(_t1 - _t2) 159 _delta = abs(_t1 - _t2) 176 _delta = abs(_t1 - _t2)
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/grid/ |
GridDropHandler.java | 30 import static java.lang.Math.abs; 217 int centerDistance = Math.abs(cellWidth / 2 - leftDistance); 227 int centerDistance = Math.abs(cellHeight / 2 - topDistance); 264 int distance = abs(columnX - x1); 297 int distance = abs((x1 + x2) / 2 - matchedLine); 341 int distance = abs(dragBaselineY - rowBaselineY); 357 int distance = abs(matchedLine - x1); 365 int distance = abs(matchedLine - x2); 376 int distance = abs(matchedLine - x1); 387 distance = abs(matchedLine - x1) [all...] |
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/ |
Dummy83BufferGenerator.java | 138 int randomNumber = Math.abs(mRandom.nextInt()); 161 randomNumber = Math.abs(mRandom.nextInt());
|
/external/chromium_org/cc/trees/ |
layer_sorter.cc | 75 float abs_dif = std::abs(b - a); 76 float abs_max = std::max(std::abs(b), std::abs(a)); 163 std::abs(max_positive) > std::abs(max_negative) ? 174 *weight = std::abs(max_diff); 298 z_range_ = std::abs(max_z - min_z);
|
/external/eigen/test/ |
geo_quaternion.cpp | 26 using std::abs; 39 VERIFY(abs(q.norm() - 1) < largeEps); 41 else VERIFY(abs(theta - t * theta_tot) < largeEps); 50 using std::abs; 84 Scalar refangle = abs(AngleAxisx(q1.inverse()*q2).angle()); 90 VERIFY_IS_MUCH_SMALLER_THAN(abs(q1.angularDistance(q2) - refangle), Scalar(1)); 111 if (abs(aa.angle()) > 5*test_precision<Scalar>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
KeyguardAffordanceHelper.java | 149 && Math.abs(w) > Math.abs(y - mInitialTouchY) 291 snapBack |= Math.abs(vel) > mMinFlingVelocity && velIsInWrongDirection; 297 return Math.abs(mTranslation) < Math.abs(mTranslationOnDown) + getMinTranslationAmount(); 336 float absTranslation = Math.abs(translation); 337 if (absTranslation > Math.abs(mTranslationOnDown) + getMinTranslationAmount() ||
|
/packages/apps/Gallery/src/com/android/camera/ |
HighlightView.java | 191 if (Math.abs(delta) <= hysteresis) { 192 if (Math.abs(distY) > Math.abs(distX)) { 219 if ((Math.abs(r.left - x) < hysteresis) && verticalCheck) { 222 if ((Math.abs(r.right - x) < hysteresis) && verticalCheck) { 225 if ((Math.abs(r.top - y) < hysteresis) && horizCheck) { 228 if ((Math.abs(r.bottom - y) < hysteresis) && horizCheck) {
|
/external/chromium_org/third_party/libvpx/source/libvpx/vp8/common/ppc/ |
sad_altivec.asm | 46 ;# v6 = abs (v4 - v5) 51 ;# v8 += abs (v4 - v5) 79 ;# perform abs() of difference 263 ;# v6 = abs (v4 - v5) 268 ;# v8 += abs (v4 - v5)
|
/external/libvpx/libvpx/vp8/common/ppc/ |
sad_altivec.asm | 46 ;# v6 = abs (v4 - v5) 51 ;# v8 += abs (v4 - v5) 79 ;# perform abs() of difference 263 ;# v6 = abs (v4 - v5) 268 ;# v8 += abs (v4 - v5)
|
/frameworks/base/core/java/android/widget/ |
OverScroller.java | 617 if (Math.abs(tx - alpha) < 1E-5) break; 629 if (Math.abs(dy - alpha) < 1E-5) break; 669 final float x = Math.abs((float) newDistance / oldDistance); 743 mOver = Math.abs(delta); 784 return Math.log(INFLEXION * Math.abs(velocity) / (mFlingFriction * mPhysicalCoeff)); 803 final float distanceToApex = velocity * velocity / 2.0f / Math.abs(mDeceleration); 804 final float distanceToEdge = Math.abs(end - start); 806 2.0 * (distanceToApex + distanceToEdge) / Math.abs(mDeceleration)); 833 if (totalDistance > Math.abs(overDistance)) { [all...] |
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/common/ppc/ |
sad_altivec.asm | 46 ;# v6 = abs (v4 - v5) 51 ;# v8 += abs (v4 - v5) 79 ;# perform abs() of difference 263 ;# v6 = abs (v4 - v5) 268 ;# v8 += abs (v4 - v5)
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
OverScroller.java | 618 if (Math.abs(tx - alpha) < 1E-5) break; 630 if (Math.abs(dy - alpha) < 1E-5) break; 673 final float x = Math.abs((float) newDistance / oldDistance); 747 mOver = Math.abs(delta); 788 return Math.log(INFLEXION * Math.abs(velocity) / (mFlingFriction * PHYSICAL_COEF)); 807 final float distanceToApex = velocity * velocity / 2.0f / Math.abs(mDeceleration); 808 final float distanceToEdge = Math.abs(end - start); 810 2.0 * (distanceToApex + distanceToEdge) / Math.abs(mDeceleration)); 837 if (totalDistance > Math.abs(overDistance)) { [all...] |
/build/tools/droiddoc/templates-pdk/assets/ |
carousel.js | 185 animation.origin = Math.abs(origin); 188 var motions = Math.abs(animation.goal - animation.origin); 195 var left = (ease(current_frame/animation.frames) * Math.abs(animation.goal - animation.origin)) - cp; 298 var originpoint = Math.abs(currentStripPosition); 302 var motionValue = Math.abs(originPosition[slideName]-originpoint);
|
/external/eigen/Eigen/src/SparseCore/ |
AmbiVector.h | 294 using std::abs; 308 while (m_currentEl>=0 && abs(llElements[m_currentEl].value)<=m_epsilon) 330 using std::abs; 335 } while (m_cachedIndex<m_vector.m_end && abs(m_vector.m_buffer[m_cachedIndex])<m_epsilon); 346 } while (m_currentEl>=0 && abs(llElements[m_currentEl].value)<m_epsilon);
|
/external/replicaisland/src/com/replica/replicaisland/ |
NPCAnimationComponent.java | 149 if (Math.abs(velocity.x) >= RUN_SPEED_THRESHOLD) { 199 } else if (Math.abs(velocity.x) > 0.0f && shouldMove(parentObject)) { 225 } else if (Math.abs(velocity.x) > 0.0f) { 262 } else if (Math.abs(velocity.x) > 0.0f) { 324 if (Math.abs(velocity.x) > 0.0f) {
|
/external/stlport/test/unit/ |
cmath_test.cpp | 48 CPPUNIT_CHECK( are_equals(std::abs(int_val), -int_val) ); 49 CPPUNIT_CHECK( are_equals(std::abs(long_val), -long_val) ); 51 CPPUNIT_CHECK( are_equals(std::abs(float_val), -float_val) ); 52 CPPUNIT_CHECK( are_equals(std::abs(double_val), -double_val) ); 54 CPPUNIT_CHECK( are_equals(std::abs(long_double_val), -long_double_val) );
|
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/ |
ImageUtils.java | 140 delta += Math.abs(deltaR); 141 delta += Math.abs(deltaG); 142 delta += Math.abs(deltaB); 154 } else if (Math.abs(goldenImage.getWidth() - image.getWidth()) >= 2) { 158 } else if (Math.abs(goldenImage.getHeight() - image.getHeight()) >= 2) {
|
/ndk/tests/device/test-gnustl-full/unit/ |
cmath_test.cpp | 48 CPPUNIT_CHECK( are_equals(std::abs(int_val), -int_val) ); 49 CPPUNIT_CHECK( are_equals(std::abs(long_val), -long_val) ); 51 CPPUNIT_CHECK( are_equals(std::abs(float_val), -float_val) ); 52 CPPUNIT_CHECK( are_equals(std::abs(double_val), -double_val) ); 54 CPPUNIT_CHECK( are_equals(std::abs(long_double_val), -long_double_val) );
|
/ndk/tests/device/test-stlport/unit/ |
cmath_test.cpp | 48 CPPUNIT_CHECK( are_equals(std::abs(int_val), -int_val) ); 49 CPPUNIT_CHECK( are_equals(std::abs(long_val), -long_val) ); 51 CPPUNIT_CHECK( are_equals(std::abs(float_val), -float_val) ); 52 CPPUNIT_CHECK( are_equals(std::abs(double_val), -double_val) ); 54 CPPUNIT_CHECK( are_equals(std::abs(long_double_val), -long_double_val) );
|
/external/chromium_org/third_party/libvpx/source/libvpx/vp8/common/x86/ |
loopfilter_sse2.asm | 63 por xmm4, xmm6 ; abs(q2-q1) 64 por xmm1, xmm2 ; abs(q3-q2) 72 por xmm5, xmm3 ; abs(q0-q1) 101 pmaxub xmm1, xmm4 ; abs(p3 - p2) 104 pmaxub xmm1, xmm2 ; abs(p3 - p2) 106 pmaxub xmm1, xmm5 ; abs(p2 - p1) 109 pmaxub xmm1, xmm3 ; abs(p2 - p1) 124 por xmm6, xmm4 ; abs(p1 - p0) 136 por xmm2, xmm3 ; abs(p1-q1) 145 psrlw xmm2, 1 ; abs(p1-q1)/ [all...] |