Home
last modified time | relevance | path

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

/frameworks/layoutlib/bridge/src/android/graphics/
DLinearGradient_Delegate.java102 private final float mDx; field in LinearGradient_Delegate.LinearGradientPaint
111 mDx = x1 - x0; in LinearGradientPaint()
113 mDSize2 = mDx * mDx + mDy * mDy; in LinearGradientPaint()
204 if (mDx == 0) { in getColor()
207 pos = (x - mX0) / mDx; in getColor()
210 float _x = (mDx*mDy*(y-mY0) + mDy*mDy*mX0 + mDx*mDx*x) / mDSize2; in getColor()
212 pos = (_x - mX0) / mDx; in getColor()
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/brightline/
DDistanceClassifier.java155 final float mDx; field in DistanceClassifier.DistanceVectors
161 this.mDx = dX; in DistanceVectors()
169 logDebug("Horizontal swipe distance: " + Math.abs(mDx)); in getPassedDistanceThreshold()
172 return Math.abs(mDx) >= mHorizontalSwipeThresholdPx; in getPassedDistanceThreshold()
181 float dX = this.mDx + this.mVx * mVelocityToDistanceMultiplier; in getPassedFlingThreshold()
185 logDebug("Horizontal swipe and fling distance: " + this.mDx + ", " in getPassedFlingThreshold()
/frameworks/base/core/java/com/android/internal/widget/helper/
DItemTouchHelper.java197 float mDx; field in ItemTouchHelper
502 outPosition[0] = mSelectedStartX + mDx - mSelected.itemView.getLeft(); in getSelectedDxDy()
581 targetTranslateX = Math.signum(mDx) * mRecyclerView.getWidth(); in select()
718 int curX = (int) (mSelectedStartX + mDx); in scrollIfNecessary()
720 if (mDx < 0 && leftDiff < 0) { in scrollIfNecessary()
722 } else if (mDx > 0) { in scrollIfNecessary()
774 final int left = Math.round(mSelectedStartX + mDx) - margin; in findSwapTargets()
826 final int x = (int) (mSelectedStartX + mDx); 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.java10836 private int mDx; field in RecyclerView.SmoothScroller.Action
10877 mDx = dx; 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()
10949 return mDx; in getDx()
10954 mDx = dx; in setDx()
10999 mDx = dx; in update()