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/
DDistanceClassifier.java198 logDebug("Vertical swipe distance: " + Math.abs(distanceVectors.mDy)); in getPassedDistanceThreshold()
200 return Math.abs(distanceVectors.mDy) >= mVerticalSwipeThresholdPx; in getPassedDistanceThreshold()
207 float dY = distanceVectors.mDy + distanceVectors.mVy * mVelocityToDistanceMultiplier; in getPassedFlingThreshold()
216 logDebug("Vertical swipe and fling distance: " + distanceVectors.mDy + ", " in getPassedFlingThreshold()
224 final float mDy; field in DistanceClassifier.DistanceVectors
230 this.mDy = dY; in DistanceVectors()
237 return String.format((Locale) null, "{dx=%f, vx=%f, dy=%f, vy=%f}", mDx, mVx, mDy, mVy); in toString()
/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.java10959 private int mDy; field in RecyclerView.SmoothScroller.Action
10999 mDy = dy; in Action()
11039 recyclerView.mViewFlinger.smoothScrollBy(mDx, mDy); in runIfNecessary()
11041 recyclerView.mViewFlinger.smoothScrollBy(mDx, mDy, mDuration); in runIfNecessary()
11045 mDx, mDy, mDuration, mInterpolator); in runIfNecessary()
11079 return mDy; in getDy()
11084 mDy = dy; in setDy()
11121 mDy = dy; in update()