Searched refs:mDx (Results 1 – 4 of 4) sorted by relevance
/frameworks/layoutlib/bridge/src/android/graphics/ |
D | LinearGradient_Delegate.java | 102 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/ |
D | DistanceClassifier.java | 192 logDebug("Horizontal swipe distance: " + Math.abs(distanceVectors.mDx)); in getPassedDistanceThreshold() 195 return Math.abs(distanceVectors.mDx) >= mHorizontalSwipeThresholdPx; in getPassedDistanceThreshold() 206 float dX = distanceVectors.mDx + distanceVectors.mVx * mVelocityToDistanceMultiplier; in getPassedFlingThreshold() 210 logDebug("Horizontal swipe and fling distance: " + distanceVectors.mDx + ", " in getPassedFlingThreshold() 223 final float mDx; field in DistanceClassifier.DistanceVectors 229 this.mDx = dX; 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/ |
D | ItemTouchHelper.java | 197 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/ |
D | RecyclerView.java | 10957 private int mDx; field in RecyclerView.SmoothScroller.Action 10998 mDx = dx; 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() 11070 return mDx; in getDx() 11075 mDx = dx; in setDx() 11120 mDx = dx; in update()
|