/frameworks/base/test-runner/src/android/test/ |
D | TouchUtils.java | 67 final float fromY = size.y * 0.5f; in dragQuarterScreenDown() local 70 drag(test, x, x, fromY, toY, 4); in dragQuarterScreenDown() 97 final float fromY = size.y * 0.5f; in dragQuarterScreenUp() local 100 drag(test, x, x, fromY, toY, 4); in dragQuarterScreenUp() 234 float fromY = xy[1] + (viewHeight / 2.0f); in dragViewToBottom() local 237 drag(test, x, x, fromY, toY, stepCount); in dragViewToBottom() 477 float fromY = xy[1] + (viewHeight / 2.0f); in dragViewToTop() local 480 drag(test, x, x, fromY, toY, stepCount); in dragViewToTop() 571 final int fromY = xy[1]; in dragViewBy() local 575 drag(test, fromX, fromX + deltaX, fromY, fromY + deltaY, distance); in dragViewBy() [all …]
|
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/ |
D | TouchUtils.java | 180 float fromY = xy[1] + (viewHeight / 2.0f); in dragViewToTop() local 183 drag(inst, x, x, fromY, toY, stepCount); in dragViewToTop() 226 final int fromY = xy[1]; in dragViewTo() local 229 int deltaY = fromY - toY; in dragViewTo() 232 drag(inst, fromX, toX, fromY, toY, calculateStepsForDistance(distance)); in dragViewTo() 243 final int fromY = xy[1]; in dragViewToX() local 247 drag(inst, fromX, toX, fromY, fromY, calculateStepsForDistance(deltaX)); in dragViewToX() 258 final int fromY = xy[1]; in dragViewToY() local 260 int deltaY = fromY - toY; in dragViewToY() 262 drag(inst, fromX, fromX, fromY, toY, calculateStepsForDistance(deltaY)); in dragViewToY() [all …]
|
D | LoggingItemAnimator.java | 152 public boolean animateMove(RecyclerView.ViewHolder holder, int fromX, int fromY, in animateMove() argument 155 return super.animateMove(holder, fromX, fromY, toX, toY); in animateMove() 160 RecyclerView.ViewHolder newHolder, int fromX, int fromY, int toX, int toY) { in animateChange() argument 167 return super.animateChange(oldHolder, newHolder, fromX, fromY, toX, toY); in animateChange()
|
D | DefaultItemAnimatorTest.java | 353 boolean animateMove(final RecyclerView.ViewHolder vh, final int fromX, final int fromY, in animateMove() argument 359 result[0] = mAnimator.animateMove(vh, fromX, fromY, toX, toY); in animateMove() 367 final int fromX, final int fromY, final int toX, final int toY) throws Throwable { in animateChange() argument 372 result[0] = mAnimator.animateChange(oldHolder, newHolder, fromX, fromY, toX, toY); in animateChange()
|
D | DummyItemAnimator.java | 126 public boolean animateMove(RecyclerView.ViewHolder holder, int fromX, int fromY, int toX, in animateMove() argument
|
D | RecyclerViewLayoutTest.java | 2796 public void drag(ViewGroup view, float fromX, float toX, float fromY, float toY, in drag() argument 2801 float y = fromY; in drag() 2804 float yStep = (toY - fromY) / stepCount; in drag()
|
D | RecyclerViewAnimationsTest.java | 774 public boolean animateMove(RecyclerView.ViewHolder holder, int fromX, int fromY, in addRemoveSamePass()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | DefaultItemAnimator.java | 60 public int fromX, fromY, toX, toY; field in DefaultItemAnimator.MoveInfo 62 MoveInfo(ViewHolder holder, int fromX, int fromY, int toX, int toY) { in MoveInfo() argument 65 this.fromY = fromY; in MoveInfo() 73 public int fromX, fromY, toX, toY; field in DefaultItemAnimator.ChangeInfo 80 int fromX, int fromY, int toX, int toY) { in ChangeInfo() argument 83 this.fromY = fromY; in ChangeInfo() 94 + ", fromY=" + fromY in toString() 126 animateMoveImpl(moveInfo.holder, moveInfo.fromX, moveInfo.fromY, in runPendingAnimations() 256 public boolean animateMove(final ViewHolder holder, int fromX, int fromY, in animateMove() argument 260 fromY += holder.itemView.getTranslationY(); in animateMove() [all …]
|
D | SimpleItemAnimator.java | 234 public abstract boolean animateMove(ViewHolder holder, int fromX, int fromY, in animateMove() argument
|
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/ |
D | DefaultItemAnimator.java | 59 public int fromX, fromY, toX, toY; field in DefaultItemAnimator.MoveInfo 61 MoveInfo(RecyclerView.ViewHolder holder, int fromX, int fromY, int toX, int toY) { in MoveInfo() argument 64 this.fromY = fromY; in MoveInfo() 72 public int fromX, fromY, toX, toY; field in DefaultItemAnimator.ChangeInfo 79 int fromX, int fromY, int toX, int toY) { in ChangeInfo() argument 82 this.fromY = fromY; in ChangeInfo() 93 + ", fromY=" + fromY in toString() 125 animateMoveImpl(moveInfo.holder, moveInfo.fromX, moveInfo.fromY, in runPendingAnimations() 255 public boolean animateMove(final RecyclerView.ViewHolder holder, int fromX, int fromY, in animateMove() argument 259 fromY += (int) holder.itemView.getTranslationY(); in animateMove() [all …]
|
D | SimpleItemAnimator.java | 232 public abstract boolean animateMove(RecyclerView.ViewHolder holder, int fromX, int fromY, in animateMove() argument
|
/frameworks/support/wear/src/androidTest/java/androidx/wear/widget/ |
D | ScrollManagerTest.java | 123 private static void scroll(ScrollManager scrollManager, float fromX, float toX, float fromY, in scroll() argument 128 float y = fromY; in scroll() 131 float yStep = (toY - fromY) / STEP_COUNT; in scroll() 150 private static void scrollOnArch(ScrollManager scrollManager, float fromX, float fromY, in scrollOnArch() argument 157 double relativeY = fromY - (TEST_HEIGHT / 2); in scrollOnArch() 159 float angle = getAngle(fromX, fromY, TEST_WIDTH, TEST_HEIGHT); in scrollOnArch() 161 float y = fromY; in scrollOnArch()
|
/frameworks/base/core/java/android/view/animation/ |
D | ScaleAnimation.java | 145 public ScaleAnimation(float fromX, float toX, float fromY, float toY) { in ScaleAnimation() argument 149 mFromY = fromY; in ScaleAnimation() 171 public ScaleAnimation(float fromX, float toX, float fromY, float toY, in ScaleAnimation() argument 176 mFromY = fromY; in ScaleAnimation() 212 public ScaleAnimation(float fromX, float toX, float fromY, float toY, in ScaleAnimation() argument 217 mFromY = fromY; in ScaleAnimation()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | SystemGesturesPointerEventListener.java | 217 final float fromY = mDownY[i]; in detectSwipe() local 220 + " moved (" + fromX + "->" + x + "," + fromY + "->" + y + ") in " + elapsed); in detectSwipe() 221 if (fromY <= mSwipeStartThreshold in detectSwipe() 222 && y > fromY + mSwipeDistanceThreshold in detectSwipe() 226 if (fromY >= screenHeight - mSwipeStartThreshold in detectSwipe() 227 && y < fromY - mSwipeDistanceThreshold in detectSwipe()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | AppTransition.java | 1016 float fromY; in createThumbnailAspectScaleAnimationLocked() local 1023 fromY = mTmpRect.top; in createThumbnailAspectScaleAnimationLocked() 1034 fromY -= thumbHeightI; in createThumbnailAspectScaleAnimationLocked() 1041 fromY = mTmpRect.top; in createThumbnailAspectScaleAnimationLocked() 1058 Animation translate = createCurvedMotion(fromX, toX, fromY, toY); in createThumbnailAspectScaleAnimationLocked() 1100 Animation translate = createCurvedMotion(toX, fromX, toY, fromY); in createThumbnailAspectScaleAnimationLocked() 1119 private Animation createCurvedMotion(float fromX, float toX, float fromY, float toY) { in createCurvedMotion() argument 1123 return new TranslateAnimation(fromX, toX, fromY, toY); in createCurvedMotion() 1125 final Path path = createCurvedPath(fromX, toX, fromY, toY); in createCurvedMotion() 1130 private Path createCurvedPath(float fromX, float toX, float fromY, float toY) { in createCurvedPath() argument [all …]
|
D | WindowState.java | 4860 private MoveAnimationSpec(int fromX, int fromY, int toX, int toY) { in MoveAnimationSpec() argument 4866 mFrom.set(fromX, fromY); in MoveAnimationSpec()
|