Home
last modified time | relevance | path

Searched refs:mDy (Results 1 – 4 of 4) sorted by relevance

/frameworks/layoutlib/bridge/src/android/graphics/
DLinearGradient_Delegate.java103 private final float mDy; field in LinearGradient_Delegate.LinearGradientPaint
112 mDy = y1 - y0; in LinearGradientPaint()
113 mDSize2 = mDx * mDx + mDy * mDy; in LinearGradientPaint()
205 pos = (y - mY0) / mDy; in getColor()
206 } else if (mDy == 0) { in getColor()
210 float _x = (mDx*mDy*(y-mY0) + mDy*mDy*mX0 + mDx*mDx*x) / mDSize2; in getColor()
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/brightline/
DDistanceClassifier.java156 final float mDy; field in DistanceClassifier.DistanceVectors
162 this.mDy = dY; in DistanceVectors()
175 logDebug("Vertical swipe distance: " + Math.abs(mDy)); in getPassedDistanceThreshold()
177 return Math.abs(mDy) >= mVerticalSwipeThresholdPx; in getPassedDistanceThreshold()
182 float dY = this.mDy + this.mVy * mVelocityToDistanceMultiplier; in getPassedFlingThreshold()
191 logDebug("Vertical swipe and fling distance: " + this.mDy + ", " in getPassedFlingThreshold()
/frameworks/base/core/java/com/android/internal/widget/helper/
DItemTouchHelper.java199 float mDy; field in ItemTouchHelper
507 outPosition[1] = mSelectedStartY + mDy - mSelected.itemView.getTop(); in getSelectedDxDy()
586 targetTranslateY = Math.signum(mDy) * mRecyclerView.getHeight(); in select()
732 int curY = (int) (mSelectedStartY + mDy); in scrollIfNecessary()
734 if (mDy < 0 && topDiff < 0) { in scrollIfNecessary()
736 } else if (mDy > 0) { in scrollIfNecessary()
775 final int top = Math.round(mSelectedStartY + mDy) - margin; in findSwapTargets()
827 final int y = (int) (mSelectedStartY + mDy); in moveIfNecessary()
994 mDx = mDy = 0f; in checkSelectForSwipe()
1006 if (hitTest(selectedView, x, y, mSelectedStartX + mDx, mSelectedStartY + mDy)) { in findChildView()
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DRecyclerView.java10838 private int mDy; field in RecyclerView.SmoothScroller.Action
10878 mDy = dy; in Action()
10918 recyclerView.mViewFlinger.smoothScrollBy(mDx, mDy); in runIfNecessary()
10920 recyclerView.mViewFlinger.smoothScrollBy(mDx, mDy, mDuration); in runIfNecessary()
10924 mDx, mDy, mDuration, mInterpolator); in runIfNecessary()
10958 return mDy; in getDy()
10963 mDy = dy; in setDy()
11000 mDy = dy; in update()