Searched defs:fromX (Results 1 - 14 of 14) sorted by relevance

/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
H A DTouchUtils.java225 final int fromX = xy[0];
228 int deltaX = fromX - toX;
232 drag(inst, fromX, toX, fromY, toY, calculateStepsForDistance(distance));
242 final int fromX = xy[0];
245 int deltaX = fromX - toX;
247 drag(inst, fromX, toX, fromY, fromY, calculateStepsForDistance(deltaX));
257 final int fromX = xy[0];
262 drag(inst, fromX, fromX, fromY, toY, calculateStepsForDistance(deltaY));
268 public static void drag(Instrumentation inst, float fromX, floa argument
[all...]
H A DDummyItemAnimator.java126 public boolean animateMove(RecyclerView.ViewHolder holder, int fromX, int fromY, int toX, argument
H A DLoggingItemAnimator.java152 public boolean animateMove(RecyclerView.ViewHolder holder, int fromX, int fromY, argument
155 return super.animateMove(holder, fromX, fromY, toX, toY);
160 RecyclerView.ViewHolder newHolder, int fromX, int fromY, int toX, int toY) {
167 return super.animateChange(oldHolder, newHolder, fromX, fromY, toX, toY);
159 animateChange(RecyclerView.ViewHolder oldHolder, RecyclerView.ViewHolder newHolder, int fromX, int fromY, int toX, int toY) argument
H A DDefaultItemAnimatorTest.java353 boolean animateMove(final RecyclerView.ViewHolder vh, final int fromX, final int fromY, argument
359 result[0] = mAnimator.animateMove(vh, fromX, fromY, toX, toY);
367 final int fromX, final int fromY, final int toX, final int toY) throws Throwable {
372 result[0] = mAnimator.animateChange(oldHolder, newHolder, fromX, fromY, toX, toY);
365 animateChange(final RecyclerView.ViewHolder oldHolder, final RecyclerView.ViewHolder newHolder, final int fromX, final int fromY, final int toX, final int toY) argument
H A DRecyclerViewLayoutTest.java2796 public void drag(ViewGroup view, float fromX, float toX, float fromY, float toY, argument
2802 float x = fromX;
2805 float xStep = (toX - fromX) / stepCount;
/frameworks/support/wear/src/androidTest/java/androidx/wear/widget/
H A DScrollManagerTest.java123 private static void scroll(ScrollManager scrollManager, float fromX, float toX, float fromY, argument
129 float x = fromX;
132 float xStep = (toX - fromX) / STEP_COUNT;
150 private static void scrollOnArch(ScrollManager scrollManager, float fromX, float fromY, argument
156 double relativeX = fromX - (TEST_WIDTH / 2);
159 float angle = getAngle(fromX, fromY, TEST_WIDTH, TEST_HEIGHT);
162 float x = fromX;
/frameworks/base/core/java/android/view/animation/
H A DScaleAnimation.java138 * @param fromX Horizontal scaling factor to apply at the start of the
145 public ScaleAnimation(float fromX, float toX, float fromY, float toY) { argument
147 mFromX = fromX;
158 * @param fromX Horizontal scaling factor to apply at the start of the
171 public ScaleAnimation(float fromX, float toX, float fromY, float toY, argument
174 mFromX = fromX;
189 * @param fromX Horizontal scaling factor to apply at the start of the
212 public ScaleAnimation(float fromX, float toX, float fromY, float toY, argument
215 mFromX = fromX;
/frameworks/base/core/java/com/android/internal/widget/
H A DDefaultItemAnimator.java60 public int fromX, fromY, toX, toY; field in class:DefaultItemAnimator.MoveInfo
62 MoveInfo(ViewHolder holder, int fromX, int fromY, int toX, int toY) { argument
64 this.fromX = fromX;
73 public int fromX, fromY, toX, toY; field in class:DefaultItemAnimator.ChangeInfo
80 int fromX, int fromY, int toX, int toY) {
82 this.fromX = fromX;
93 + ", fromX=" + fromX
79 ChangeInfo(ViewHolder oldHolder, ViewHolder newHolder, int fromX, int fromY, int toX, int toY) argument
256 animateMove(final ViewHolder holder, int fromX, int fromY, int toX, int toY) argument
278 animateMoveImpl(final ViewHolder holder, int fromX, int fromY, int toX, int toY) argument
320 animateChange(ViewHolder oldHolder, ViewHolder newHolder, int fromX, int fromY, int toX, int toY) argument
[all...]
H A DSimpleItemAnimator.java234 public abstract boolean animateMove(ViewHolder holder, int fromX, int fromY, argument
/frameworks/base/test-runner/src/android/test/
H A DTouchUtils.java570 final int fromX = xy[0];
575 drag(test, fromX, fromX + deltaX, fromY, fromY + deltaY, distance);
620 final int fromX = xy[0];
623 int deltaX = fromX - toX;
627 drag(test, fromX, toX, fromY, toY, distance);
669 final int fromX = xy[0];
672 int deltaX = fromX - toX;
674 drag(test, fromX, toX, fromY, fromY, deltaX);
716 final int fromX
742 drag(ActivityInstrumentationTestCase test, float fromX, float toX, float fromY, float toY, int stepCount) argument
757 drag(InstrumentationTestCase test, float fromX, float toX, float fromY, float toY, int stepCount) argument
[all...]
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/
H A DDefaultItemAnimator.java59 public int fromX, fromY, toX, toY; field in class:DefaultItemAnimator.MoveInfo
61 MoveInfo(RecyclerView.ViewHolder holder, int fromX, int fromY, int toX, int toY) { argument
63 this.fromX = fromX;
72 public int fromX, fromY, toX, toY; field in class:DefaultItemAnimator.ChangeInfo
79 int fromX, int fromY, int toX, int toY) {
81 this.fromX = fromX;
92 + ", fromX=" + fromX
78 ChangeInfo(RecyclerView.ViewHolder oldHolder, RecyclerView.ViewHolder newHolder, int fromX, int fromY, int toX, int toY) argument
255 animateMove(final RecyclerView.ViewHolder holder, int fromX, int fromY, int toX, int toY) argument
277 animateMoveImpl(final RecyclerView.ViewHolder holder, int fromX, int fromY, int toX, int toY) argument
319 animateChange(RecyclerView.ViewHolder oldHolder, RecyclerView.ViewHolder newHolder, int fromX, int fromY, int toX, int toY) argument
[all...]
H A DSimpleItemAnimator.java232 public abstract boolean animateMove(RecyclerView.ViewHolder holder, int fromX, int fromY, argument
/frameworks/base/services/core/java/com/android/server/wm/
H A DAppTransition.java1015 final float fromX;
1022 fromX = mTmpRect.left;
1040 fromX = mTmpRect.left;
1058 Animation translate = createCurvedMotion(fromX, toX, fromY, toY);
1100 Animation translate = createCurvedMotion(toX, fromX, toY, fromY);
1119 private Animation createCurvedMotion(float fromX, float toX, float fromY, float toY) { argument
1122 if (Math.abs(toX - fromX) < 1f || mNextAppTransition != TRANSIT_DOCK_TASK_FROM_RECENTS) {
1123 return new TranslateAnimation(fromX, toX, fromY, toY);
1125 final Path path = createCurvedPath(fromX, toX, fromY, toY);
1130 private Path createCurvedPath(float fromX, floa argument
[all...]
H A DWindowState.java4860 private MoveAnimationSpec(int fromX, int fromY, int toX, int toY) { argument
4866 mFrom.set(fromX, fromY);

Completed in 368 milliseconds