/frameworks/base/location/tests/locationtests/src/android/location/ |
H A D | GeocoderTest.java | 47 assertFalse(Math.abs(addr.getLatitude() - 37.4240385) > 0.1); 61 assertFalse(Math.abs(addr.getLatitude() - 37.77916) > 0.1);
|
/frameworks/base/policy/src/com/android/internal/policy/impl/keyguard/ |
H A D | CheckLongPressHelper.java | 63 boolean xMoved = Math.abs(mDownX - x) > mScaledTouchSlop; 64 boolean yMoved = Math.abs(mDownY - y) > mScaledTouchSlop;
|
H A D | PagedView.java | 1112 final int xDist = Math.abs(mScroller.getFinalX() - mScroller.getCurrX()); 1185 final int xDiff = (int) Math.abs(x - mLastMotionX); 1186 final int yDiff = (int) Math.abs(y - mLastMotionY); 1197 mTotalMotionX += Math.abs(mLastMotionX - x); 1250 if (Math.abs(f) >= 1) { 1251 f /= Math.abs(f); 1271 f = f / (Math.abs(f)) * (overScrollInfluenceCurve(Math.abs(f))); 1274 if (Math.abs(f) >= 1) { 1275 f /= Math.abs( [all...] |
/frameworks/base/telephony/java/android/telephony/ |
H A D | JapanesePhoneNumberFormatter.java | 199 int dashPos2 = rootIndex + (Math.abs(value) % 10); 203 int dashPos1 = rootIndex + (Math.abs(value) / 10);
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
H A D | StraightenFilter.java | 140 float maxWidth = (float) Math.max(Math.abs(p0.x), Math.abs(p1.x)); 141 float maxHeight = (float) Math.max(Math.abs(p0.y), Math.abs(p1.y));
|
/frameworks/base/core/java/android/gesture/ |
H A D | Instance.java | 101 if (Math.abs(delta) < Math.abs(adjustment)) {
|
H A D | GestureStroke.java | 139 float dx = Math.abs(x - mX); 140 float dy = Math.abs(y - mY); 188 float dx = Math.abs(x - mX); 189 float dy = Math.abs(y - mY);
|
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/testapp/ |
H A D | TouchHandler.java | 89 if (Math.abs(dy) <= 2.0f) { 92 if (Math.abs(dx) <= 2.0f) {
|
/frameworks/base/core/java/android/webkit/ |
H A D | DeviceOrientationService.java | 171 || Math.abs(alpha - mAlpha) > DELTA_DEGRESS 172 || Math.abs(beta - mBeta) > DELTA_DEGRESS 173 || Math.abs(gamma - mGamma) > DELTA_DEGRESS) {
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | SwipeHelper.java | 232 if (Math.abs(delta) > mPagingTouchSlop) { 275 (int) (Math.abs(newPos - getTranslation(animView)) * 1000f / Math 276 .abs(velocity))); 343 if (Math.abs(delta) >= size) { 367 Math.abs(getTranslation(mCurrAnimView)) > 0.4 * getSize(mCurrAnimView); 368 boolean childSwipedFastEnough = (Math.abs(velocity) > escapeVelocity) && 369 (Math.abs(velocity) > Math.abs(perpendicularVelocity)) &&
|
H A D | ExpandHelper.java | 240 float pull = Math.abs(drag) + Math.abs(span) + 1f; 241 float hand = drag * Math.abs(drag) / pull + span * Math.abs(span) / pull; 311 float stretch = Math.abs((target - actual) / mMaximumStretch); 450 final float pull = Math.abs(ev.getY() - mInitialTouchY);
|
/frameworks/base/services/java/com/android/server/location/ |
H A D | GeofenceState.java | 91 return Math.abs(mFence.getRadius() - mDistanceToCenter);
|
/frameworks/base/test-runner/src/android/test/ |
H A D | ViewAsserts.java | 161 assertEquals("views are not right aligned", Math.abs(firstRight - secondRight), margin); 198 assertEquals("views are not left aligned", Math.abs(firstLeft - secondLeft), margin); 235 assertEquals("views are not bottom aligned", Math.abs(firstBottom - secondBottom), margin); 272 assertEquals("views are not top aligned", Math.abs(firstTop - secondTop), margin);
|
/frameworks/native/opengl/tests/gl2_jni/src/com/android/gl2jni/ |
H A D | GL2JNIView.java | 155 int distance = Math.abs(r - mRedSize) 156 + Math.abs(g - mGreenSize) 157 + Math.abs(b - mBlueSize) 158 + Math.abs(a - mAlphaSize);
|
/frameworks/native/opengl/tests/gl_perfapp/src/com/android/glperf/ |
H A D | GLPerfView.java | 155 int distance = Math.abs(r - mRedSize) 156 + Math.abs(g - mGreenSize) 157 + Math.abs(b - mBlueSize) 158 + Math.abs(a - mAlphaSize);
|
/frameworks/native/opengl/tests/gldual/src/com/android/gldual/ |
H A D | GLDualGL2View.java | 158 int distance = Math.abs(r - mRedSize) 159 + Math.abs(g - mGreenSize) 160 + Math.abs(b - mBlueSize) 161 + Math.abs(a - mAlphaSize);
|
/frameworks/base/core/java/android/widget/ |
H A D | OverScroller.java | 616 if (Math.abs(tx - alpha) < 1E-5) break; 628 if (Math.abs(dy - alpha) < 1E-5) break; 668 final float x = Math.abs((float) newDistance / oldDistance); 742 mOver = Math.abs(delta); 783 return Math.log(INFLEXION * Math.abs(velocity) / (mFlingFriction * mPhysicalCoeff)); 802 final float distanceToApex = velocity * velocity / 2.0f / Math.abs(mDeceleration); 803 final float distanceToEdge = Math.abs(end - start); 805 2.0 * (distanceToApex + distanceToEdge) / Math.abs(mDeceleration)); 832 if (totalDistance > Math.abs(overDistance)) { 853 float distance = mVelocity * mVelocity / (2.0f * Math.abs(mDeceleratio [all...] |
H A D | EdgeEffect.java | 218 float distance = Math.abs(mPullDistance); 226 (Math.abs(deltaDistance) * PULL_DISTANCE_ALPHA_GLOW_FACTOR)); 228 float glowChange = Math.abs(deltaDistance); 286 velocity = Math.max(MIN_VELOCITY, Math.abs(velocity));
|
/frameworks/base/tests/ImfTest/tests/src/com/android/imftest/samples/ |
H A D | ImfBaseTestCase.java | 135 while (Math.abs(newHeight - origHeight) < IME_MIN_HEIGHT && SystemClock.uptimeMillis() < timeoutTime) { 139 return (Math.abs(origHeight - newHeight) >= IME_MIN_HEIGHT);
|
/frameworks/base/tests/RenderScriptTests/MiscSamples/src/com/example/android/rs/miscsamples/ |
H A D | RsListRS.java | 107 if (Math.abs(dy) <= 2) {
|
/frameworks/native/opengl/libagl/ |
H A D | primitives.cpp | 263 if (abs(area) >= minArea) { 273 s = 32 - gglClz(abs(m_dy02)|abs(m_dy10)|abs(m_dx01)|abs(m_dx20)); 296 const int A = gglClz(abs(m_dy02)|abs(m_dy10)|abs(m_dx01)|abs(m_dx20)); 297 const int B = gglClz(abs(m_x [all...] |
/frameworks/av/media/libstagefright/codecs/g711/dec/ |
H A D | SoftG711.cpp | 291 int32_t abs = (0x80l << exponent) + step * mantissa + step / 2 - 4 * 33; local 293 *out++ = (x < 0x80) ? -abs : abs;
|
/frameworks/base/core/java/android/view/ |
H A D | ScaleGestureDetector.java | 312 devSumX += Math.abs(event.getX(i) - focusX) + touchSize; 313 devSumY += Math.abs(event.getY(i) - focusY) + touchSize; 342 (wasInProgress || Math.abs(span - mInitialSpan) > mSpanSlop)) {
|
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/ |
H A D | 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/support/v4/java/android/support/v4/view/ |
H A D | PagerTabStrip.java | 237 if (Math.abs(x - mInitialMotionX) > mTouchSlop || 238 Math.abs(y - mInitialMotionY) > mTouchSlop) { 286 mTabAlpha = (int) (Math.abs(positionOffset - 0.5f) * 2 * 0xFF);
|