Searched defs:mDx (Results 1 - 8 of 8) sorted by relevance

/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
H A DGridLayoutManagerCacheTest.java42 final int mDx; field in class:GridLayoutManagerCacheTest
47 mDx = dx;
103 mRecyclerView.mGapWorker.postFromTraversal(mRecyclerView, mDx, mDy);
116 if ((config.mOrientation == HORIZONTAL && mDx == 0)
122 boolean reverseScroll = config.mOrientation == HORIZONTAL ? mDx < 0 : mDy < 0;
H A DLinearLayoutManagerCacheTest.java41 final int mDx; field in class:LinearLayoutManagerCacheTest
46 mDx = dx;
92 mRecyclerView.mGapWorker.postFromTraversal(mRecyclerView, mDx, mDy);
106 if ((config.mOrientation == HORIZONTAL && mDx == 0)
110 boolean reverseScroll = config.mOrientation == HORIZONTAL ? mDx < 0 : mDy < 0;
H A DStaggeredGridLayoutManagerCacheTest.java43 final int mDx; field in class:StaggeredGridLayoutManagerCacheTest
48 mDx = dx;
117 mRecyclerView.mGapWorker.postFromTraversal(mRecyclerView, mDx, mDy);
130 if ((config.mOrientation == HORIZONTAL && mDx == 0)
136 boolean reverseScroll = config.mOrientation == HORIZONTAL ? mDx < 0 : mDy < 0;
/frameworks/layoutlib/bridge/src/android/graphics/
H A DLinearGradient_Delegate.java110 private final float mDx; field in class:LinearGradient_Delegate.LinearGradientPaint
119 mDx = x1 - x0;
121 mDSize2 = mDx * mDx + mDy * mDy;
212 if (mDx == 0) {
215 pos = (x - mX0) / mDx;
218 float _x = (mDx*mDy*(y-mY0) + mDy*mDy*mX0 + mDx*mDx*x) / mDSize2;
220 pos = (_x - mX0) / mDx;
[all...]
/frameworks/base/core/java/com/android/internal/widget/helper/
H A DItemTouchHelper.java197 float mDx; field in class:ItemTouchHelper
502 outPosition[0] = mSelectedStartX + mDx - mSelected.itemView.getLeft();
581 targetTranslateX = Math.signum(mDx) * mRecyclerView.getWidth();
718 int curX = (int) (mSelectedStartX + mDx);
720 if (mDx < 0 && leftDiff < 0) {
722 } else if (mDx > 0) {
774 final int left = Math.round(mSelectedStartX + mDx) - margin;
826 final int x = (int) (mSelectedStartX + mDx);
963 // mDx and mDy are only set in allowed directions. We use custom x/y here instead of
972 // direction is allowed. This why here, we use mDx mD
[all...]
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/
H A DItemTouchHelper.java200 private float mDx; field in class:ItemTouchHelper
521 outPosition[0] = mSelectedStartX + mDx - mSelected.itemView.getLeft();
604 targetTranslateX = Math.signum(mDx) * mRecyclerView.getWidth();
741 int curX = (int) (mSelectedStartX + mDx);
743 if (mDx < 0 && leftDiff < 0) {
745 } else if (mDx > 0) {
797 final int left = Math.round(mSelectedStartX + mDx) - margin;
849 final int x = (int) (mSelectedStartX + mDx);
985 // mDx and mDy are only set in allowed directions. We use custom x/y here instead of
994 // direction is allowed. This why here, we use mDx mD
[all...]
H A DRecyclerView.java11738 private int mDx; field in class:RecyclerView.SmoothScroller.Action
11780 mDx = dx;
11821 recyclerView.mViewFlinger.smoothScrollBy(mDx, mDy);
11823 recyclerView.mViewFlinger.smoothScrollBy(mDx, mDy, mDuration);
11827 mDx, mDy, mDuration, mInterpolator);
11853 return mDx;
11858 mDx = dx;
11906 mDx = dx;
/frameworks/base/core/java/com/android/internal/widget/
H A DRecyclerView.java10834 private int mDx; field in class:RecyclerView.SmoothScroller.Action
10875 mDx = dx;
10916 recyclerView.mViewFlinger.smoothScrollBy(mDx, mDy);
10918 recyclerView.mViewFlinger.smoothScrollBy(mDx, mDy, mDuration);
10922 mDx, mDy, mDuration, mInterpolator);
10947 return mDx;
10952 mDx = dx;
10997 mDx = dx;

Completed in 189 milliseconds