/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | SwipeHelper.java | 188 if (Math.abs(delta) > mPagingTouchSlop) { in onInterceptTouchEvent() 225 (int) (Math.abs(newPos - getTranslation(animView)) * 1000f / Math in dismissChild() 226 .abs(velocity))); in dismissChild() 286 if (Math.abs(delta) >= size) { in onTouchEvent() 310 Math.abs(getTranslation(mCurrAnimView)) > 0.4 * getSize(mCurrAnimView); in onTouchEvent() 311 boolean childSwipedFastEnough = (Math.abs(velocity) > escapeVelocity) && in onTouchEvent() 312 (Math.abs(velocity) > Math.abs(perpendicularVelocity)) && in onTouchEvent()
|
/frameworks/base/core/java/android/widget/ |
D | OverScroller.java | 614 if (Math.abs(tx - alpha) < 1E-5) break; 626 if (Math.abs(dy - alpha) < 1E-5) break; 669 final float x = Math.abs((float) newDistance / oldDistance); in adjustDuration() 743 mOver = Math.abs(delta); in startSpringback() 784 return Math.log(INFLEXION * Math.abs(velocity) / (mFlingFriction * PHYSICAL_COEF)); in getSplineDeceleration() 803 final float distanceToApex = velocity * velocity / 2.0f / Math.abs(mDeceleration); in fitOnBounceCurve() 804 final float distanceToEdge = Math.abs(end - start); in fitOnBounceCurve() 806 2.0 * (distanceToApex + distanceToEdge) / Math.abs(mDeceleration)); in fitOnBounceCurve() 833 if (totalDistance > Math.abs(overDistance)) { in startAfterEdge() 854 float distance = mVelocity * mVelocity / (2.0f * Math.abs(mDeceleration)); in onEdgeReached()
|
D | EdgeEffect.java | 190 float distance = Math.abs(mPullDistance); in onPull() 198 (Math.abs(deltaDistance) * PULL_DISTANCE_ALPHA_GLOW_FACTOR)); in onPull() 200 float glowChange = Math.abs(deltaDistance); in onPull() 258 velocity = Math.max(MIN_VELOCITY, Math.abs(velocity)); in onAbsorb()
|
D | ZoomButtonsController.java | 651 distanceX = Math.min(Math.abs(frame.left - containerCoordsX), in findViewForTouch() 652 Math.abs(containerCoordsX - frame.right)); in findViewForTouch() 658 distanceY = Math.min(Math.abs(frame.top - containerCoordsY), in findViewForTouch() 659 Math.abs(containerCoordsY - frame.bottom)); in findViewForTouch()
|
/frameworks/base/telephony/java/android/telephony/ |
D | JapanesePhoneNumberFormatter.java | 199 int dashPos2 = rootIndex + (Math.abs(value) % 10); in format() 203 int dashPos1 = rootIndex + (Math.abs(value) / 10); in format()
|
/frameworks/base/core/java/android/gesture/ |
D | GestureStroke.java | 139 float dx = Math.abs(x - mX); in makePath() 140 float dy = Math.abs(y - mY); in makePath() 188 float dx = Math.abs(x - mX); in toPath() 189 float dy = Math.abs(y - mY); in toPath()
|
D | Instance.java | 101 if (Math.abs(delta) < Math.abs(adjustment)) { in temporalSampler()
|
/frameworks/base/location/tests/locationtests/src/android/location/ |
D | GeocoderTest.java | 47 assertFalse(Math.abs(addr.getLatitude() - 37.4240385) > 0.1); in testGeocoder() 61 assertFalse(Math.abs(addr.getLatitude() - 37.77916) > 0.1); in testGeocoder()
|
/frameworks/base/test-runner/src/android/test/ |
D | ViewAsserts.java | 161 assertEquals("views are not right aligned", Math.abs(firstRight - secondRight), margin); in assertRightAligned() 198 assertEquals("views are not left aligned", Math.abs(firstLeft - secondLeft), margin); in assertLeftAligned() 235 assertEquals("views are not bottom aligned", Math.abs(firstBottom - secondBottom), margin); in assertBottomAligned() 272 assertEquals("views are not top aligned", Math.abs(firstTop - secondTop), margin); in assertTopAligned()
|
/frameworks/base/core/java/android/webkit/ |
D | DeviceOrientationService.java | 171 || Math.abs(alpha - mAlpha) > DELTA_DEGRESS in maybeSendChange() 172 || Math.abs(beta - mBeta) > DELTA_DEGRESS in maybeSendChange() 173 || Math.abs(gamma - mGamma) > DELTA_DEGRESS) { in maybeSendChange()
|
/frameworks/base/opengl/tests/gldual/src/com/android/gldual/ |
D | GLDualGL2View.java | 158 int distance = Math.abs(r - mRedSize) in chooseConfig() 159 + Math.abs(g - mGreenSize) in chooseConfig() 160 + Math.abs(b - mBlueSize) in chooseConfig() 161 + Math.abs(a - mAlphaSize); in chooseConfig()
|
/frameworks/base/opengl/tests/gl2_jni/src/com/android/gl2jni/ |
D | GL2JNIView.java | 155 int distance = Math.abs(r - mRedSize) in chooseConfig() 156 + Math.abs(g - mGreenSize) in chooseConfig() 157 + Math.abs(b - mBlueSize) in chooseConfig() 158 + Math.abs(a - mAlphaSize); in chooseConfig()
|
/frameworks/base/opengl/tests/gl_perfapp/src/com/android/glperf/ |
D | GLPerfView.java | 155 int distance = Math.abs(r - mRedSize) in chooseConfig() 156 + Math.abs(g - mGreenSize) in chooseConfig() 157 + Math.abs(b - mBlueSize) in chooseConfig() 158 + Math.abs(a - mAlphaSize); in chooseConfig()
|
/frameworks/base/opengl/libagl/ |
D | primitives.cpp | 263 if (abs(area) >= minArea) { in initLerp() 273 s = 32 - gglClz(abs(m_dy02)|abs(m_dy10)|abs(m_dx01)|abs(m_dx20)); in initLerp() 296 const int A = gglClz(abs(m_dy02)|abs(m_dy10)|abs(m_dx01)|abs(m_dx20)); in initLerp() 297 const int B = gglClz(abs(m_x0)|abs(m_y0)); in initLerp() 308 const int A = gglClz(abs(c0)); in iteratorsScale() 309 const int B = gglClz(abs(dc01)|abs(dc02)); in iteratorsScale() 703 const GGLcoord area = abs(lerp.area()); in compute_lod() 707 int32_t texelArea = abs( gglMulx(s1-s0, t2-t0, shift) - in compute_lod()
|
/frameworks/base/core/java/android/view/ |
D | GestureDetector.java | 551 } else if ((Math.abs(scrollX) >= 1) || (Math.abs(scrollY) >= 1)) { in onTouchEvent() 577 if ((Math.abs(velocityY) > mMinimumFlingVelocity) in onTouchEvent() 578 || (Math.abs(velocityX) > mMinimumFlingVelocity)){ in onTouchEvent()
|
D | WindowOrientationListener.java | 419 if (Math.abs(tiltAngle) > MAX_TILT) { in onSensorChanged() 583 if (Math.abs(mHistoryMagnitudes[olderIndex] - magnitude) in updateProposal() 604 int delta = Math.abs(a - b); in angleAbsoluteDelta()
|
/frameworks/base/tests/ImfTest/tests/src/com/android/imftest/samples/ |
D | ImfBaseTestCase.java | 135 …while (Math.abs(newHeight - origHeight) < IME_MIN_HEIGHT && SystemClock.uptimeMillis() < timeoutTi… in destructiveCheckImeUp() 139 return (Math.abs(origHeight - newHeight) >= IME_MIN_HEIGHT); in destructiveCheckImeUp()
|
/frameworks/base/media/libstagefright/codecs/g711/dec/ |
D | SoftG711.cpp | 289 int32_t abs = (0x80l << exponent) + step * mantissa + step / 2 - 4 * 33; in DecodeMLaw() local 291 *out++ = (x < 0x80) ? -abs : abs; in DecodeMLaw()
|
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/ |
D | BitmapTest.java | 214 assertTrue("red", Math.abs(rr - r1) <= tolerance); in testSetPixelsWithNonOpaqueAlpha() 219 assertTrue("green", Math.abs(gg - g1) <= tolerance); in testSetPixelsWithNonOpaqueAlpha() 224 assertTrue("blue", Math.abs(bb - b1) <= tolerance); in testSetPixelsWithNonOpaqueAlpha()
|
/frameworks/base/tests/RenderScriptTests/ShadersTest/res/raw/ |
D | vignette_fs.glsl | 8 vec2 powers = pow(abs((gl_FragCoord.xy / vec2(UNI_width, UNI_height)) - 0.5), vec2(2.0));
|
/frameworks/base/core/java/android/text/method/ |
D | Touch.java | 115 if (Math.abs(event.getX() - ds[0].mX) >= slop || in onTouchEvent() 116 Math.abs(event.getY() - ds[0].mY) >= slop) { in onTouchEvent()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | RotarySelector.java | 545 Math.abs(velocity / mDimpleSpacing)); in onTouchEvent() 565 Math.abs(velocity / mDimpleSpacing)); in onTouchEvent() 577 && Math.abs(eventX - mLeftHandleX) > 5) { in onTouchEvent() 581 && Math.abs(eventX - mRightHandleX) > 5) { in onTouchEvent()
|
D | LockPatternView.java | 531 if (Math.abs(dRow) == 2 && Math.abs(dColumn) != 1) { in detectAndAddHit() 535 if (Math.abs(dColumn) == 2 && Math.abs(dRow) != 1) { in detectAndAddHit() 689 final float dx = Math.abs(x - mInProgressX); in handleActionMove() 690 final float dy = Math.abs(y - mInProgressY); in handleActionMove()
|
/frameworks/base/tests/RenderScriptTests/ModelViewer/src/com/android/modelviewer/ |
D | SceneGraphRS.java | 75 if (Math.abs(dx) > 50 || Math.abs(dx) < 3) { in touchEvent()
|
/frameworks/support/v4/java/android/support/v4/view/ |
D | ViewPager.java | 530 final float pageDelta = (float) Math.abs(dx) / (getWidth() + mPageMargin); in smoothScrollTo() 533 velocity = Math.abs(velocity); in smoothScrollTo() 1041 final float xDiff = Math.abs(dx); 1043 final float yDiff = Math.abs(y - mLastMotionY); 1157 final float xDiff = Math.abs(x - mLastMotionX); 1159 final float yDiff = Math.abs(y - mLastMotionY); 1369 if ((Math.abs(initialVelocity) > mMinimumVelocity) 1370 || Math.abs(mInitialMotionX-mLastMotionX) >= (getWidth()/3)) {
|