Home
last modified time | relevance | path

Searched refs:dX (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/services/accessibility/java/com/android/server/accessibility/gestures/
DSwipe.java157 final float dX = Math.abs(x - mPreviousGestureX); in onMove() local
202 if (dX >= mMinPixelsBetweenSamplesX || dY >= mMinPixelsBetweenSamplesY) { in onMove()
219 final float dX = Math.abs(x - mPreviousGestureX); in onUp() local
221 if (dX >= mMinPixelsBetweenSamplesX || dY >= mMinPixelsBetweenSamplesY) { in onUp()
261 float dX = 0; // Sum of unit vectors from last delimiter to each following point in recognizeGesture() local
271 float currentDX = dX / count; in recognizeGesture()
299 dX = 0; in recognizeGesture()
312 dX = dX + currentDX / length; in recognizeGesture()
345 float dX = end.x - start.x; in recognizeGesturePath() local
347 int direction = toDirection(dX, dY); in recognizeGesturePath()
[all …]
DMultiFingerSwipe.java230 final float dX = Math.abs(x - mPreviousGesturePoint[pointerIndex].x); in onPointerUp() local
232 if (dX >= mMinPixelsBetweenSamplesX || dY >= mMinPixelsBetweenSamplesY) { in onPointerUp()
269 final float dX = Math.abs(x - mPreviousGesturePoint[pointerIndex].x); in onMove() local
307 if (dX >= mMinPixelsBetweenSamplesX || dY >= mMinPixelsBetweenSamplesY) { in onMove()
337 final float dX = Math.abs(x - mPreviousGesturePoint[pointerIndex].x); in onUp() local
339 if (dX >= mMinPixelsBetweenSamplesX || dY >= mMinPixelsBetweenSamplesY) { in onUp()
391 float dX = end.x - start.x; in recognizeGesturePath() local
393 int direction = toDirection(dX, dY); in recognizeGesturePath()
412 private static int toDirection(float dX, float dY) { in toDirection() argument
413 if (Math.abs(dX) > Math.abs(dY)) { in toDirection()
[all …]
DMultiFingerMultiTap.java257 final float dX = p.x - event.getX(index); in findNearestPoint() local
259 if (dX == 0 && dY == 0) { in findNearestPoint()
265 final float delta = (float) Math.hypot(dX, dY); in findNearestPoint()
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DDistanceClassifier.java139 float dX = getLastMotionEvent().getX() - getFirstMotionEvent().getX(); in calculateDistances() local
142 return new DistanceVectors(dX, dY, vX, vY); in calculateDistances()
206 float dX = distanceVectors.mDx + distanceVectors.mVx * mVelocityToDistanceMultiplier; in getPassedFlingThreshold() local
213 return Math.abs(dX) >= mHorizontalFlingThresholdPx; in getPassedFlingThreshold()
228 DistanceVectors(float dX, float dY, float vX, float vY) { in DistanceVectors() argument
229 this.mDx = dX; in DistanceVectors()
/frameworks/base/core/java/com/android/internal/widget/helper/
DItemTouchUIUtilImpl.java32 float dX, float dY, int actionState, boolean isCurrentlyActive) { in onDraw() argument
44 view.setTranslationX(dX); in onDraw()
82 View view, float dX, float dY, int actionState, boolean isCurrentlyActive) { in onDrawOver() argument
DItemTouchUIUtil.java44 float dX, float dY, int actionState, boolean isCurrentlyActive); in onDraw() argument
51 float dX, float dY, int actionState, boolean isCurrentlyActive); in onDrawOver() argument
DItemTouchHelper.java1925 int actionState, float dX, float dY) { in onDraw() argument
1937 onChildDraw(c, parent, selected, dX, dY, actionState, true); in onDraw()
1944 int actionState, float dX, float dY) { in onDrawOver() argument
1955 onChildDrawOver(c, parent, selected, dX, dY, actionState, true); in onDrawOver()
2018 float dX, float dY, int actionState, boolean isCurrentlyActive) { in onChildDraw() argument
2019 sUICallback.onDraw(c, recyclerView, viewHolder.itemView, dX, dY, actionState, in onChildDraw()
2052 float dX, float dY, int actionState, boolean isCurrentlyActive) { in onChildDrawOver() argument
2053 sUICallback.onDrawOver(c, recyclerView, viewHolder.itemView, dX, dY, actionState, in onChildDrawOver()
/frameworks/av/media/libeffects/loudness/dsp/core/
Dinterpolator_linear.h65 T dX = x_data_[cached_index_ + 1] - x_data_[cached_index_]; in MethodSpecificInterpolation() local
68 return y_data_[cached_index_] + (dY * dx) / dX; in MethodSpecificInterpolation()
/frameworks/base/graphics/java/android/graphics/drawable/
DRippleForeground.java352 final float dX = mStartingX - cX; in clampStartingPosition() local
355 if (dX * dX + dY * dY > r * r) { in clampStartingPosition()
357 final double angle = Math.atan2(dY, dX); in clampStartingPosition()
/frameworks/base/core/java/android/widget/
DRadialTimePickerView.java935 final double dX = x - mXCenter; in getDegreesFromXY() local
937 final double distFromCenter = Math.sqrt(dX * dX + dY * dY); in getDegreesFromXY()
943 final int degrees = (int) (Math.toDegrees(Math.atan2(dY, dX) + Math.PI / 2) + 0.5); in getDegreesFromXY()
953 final double dX = x - mXCenter; in getInnerCircleFromXY() local
955 final double distFromCenter = Math.sqrt(dX * dX + dY * dY); in getInnerCircleFromXY()
DTimePickerClockDelegate.java1117 final int dX = x - (child.getLeft() + child.getWidth() / 2);
1119 final int dist = dX * dX + dY * dY;
DAbsListView.java5877 int dX, dY; // dest x, y in getDistance() local
5882 dX = dest.left; in getDistance()
5888 dX = dest.left + dest.width() / 2; in getDistance()
5894 dX = dest.right; in getDistance()
5900 dX = dest.left + dest.width() / 2; in getDistance()
5907 dX = dest.left + dest.width() / 2; in getDistance()
5915 int deltaX = dX - sX; in getDistance()
/frameworks/base/tools/aapt2/compile/
DPng.cpp852 int endY, int dX, int dY, int* outInset) { in findMaxOpacity() argument
857 x += dX, y += dY, inset++) { in findMaxOpacity()
/frameworks/base/tools/aapt/
DImages.cpp412 int startX, int startY, int endX, int endY, int dX, int dY, in find_max_opacity() argument
418 for (int x = startX, y = startY; x != endX && y != endY; x += dX, y += dY, inset++) { in find_max_opacity()
/frameworks/base/core/java/com/android/internal/widget/
DViewPager.java2120 final float dX = mLastMotionX - x;
2123 final float releaseConsumed = releaseHorizontalGlow(dX, y);
2124 final float deltaX = dX - releaseConsumed;