Searched refs:mScroller (Results 1 - 24 of 24) sorted by relevance

/frameworks/support/compat/java/android/support/v4/widget/
H A DScrollerCompat.java34 OverScroller mScroller; field in class:ScrollerCompat
57 mScroller = interpolator != null ?
70 return mScroller.isFinished();
82 return mScroller.getCurrX();
94 return mScroller.getCurrY();
104 return mScroller.getFinalX();
114 return mScroller.getFinalY();
130 return mScroller.getCurrVelocity();
142 return mScroller.computeScrollOffset();
163 mScroller
[all...]
/frameworks/support/compat/tests/java/android/support/v4/widget/
H A DScrollerCompatTestBase.java41 private ScrollerCompat mScroller; field in class:ScrollerCompatTestBase
47 mScroller = new ScrollerCompat(InstrumentationRegistry.getContext(), interpolator);
56 mScroller.fling(0, 0, 0, 1000,
58 int target = mScroller.getFinalY();
59 while (mScroller.computeScrollOffset()) {
63 mScroller.getCurrY());
72 mScroller.fling(0, 0, 0, 10000,
74 assertTrue("Scroller should have some offset", mScroller.computeScrollOffset());
75 mScroller.abortAnimation();
77 mScroller
[all...]
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DRecyclerViewFastScrollerTest.java63 private FastScroller mScroller; field in class:RecyclerViewFastScrollerTest
130 mScroller = new FastScroller(mRecyclerView, (StateListDrawable) res.getDrawable(
154 mScroller.onDrawOver(null, mRecyclerView, null);
172 mScroller = (FastScroller) mRecyclerView.getItemDecorationAt(0);
173 assertTrue("Expected centerY to start == 0", mScroller.mVerticalThumbCenterY == 0);
174 assertFalse("Expected thumb to start invisible", mScroller.isVisible());
183 assertTrue("Expected centerY to be > 0" + mScroller.mVerticalThumbCenterY,
184 mScroller.mVerticalThumbCenterY > 0);
185 assertTrue("Expected thumb to be visible", mScroller.isVisible());
193 mRecyclerView.getWidth() - 10, mScroller
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DTaskStackViewScroller.java81 OverScroller mScroller; field in class:TaskStackViewScroller
91 mScroller = new OverScroller(context);
93 mScroller.setFriction(0.06f);
167 mScroller.fling(0, y, 0, velY, 0, 0, minY, maxY, 0, overscroll);
225 float pos = algorithm.scrollToPercentage(mScroller.getFinalY());
281 mScroller.forceFinished(true);
315 if (mScroller.computeScrollOffset()) {
316 float deltaP = mLayoutAlgorithm.getDeltaPForY(mFlingDownY, mScroller.getCurrY());
328 return !mScroller.isFinished();
332 return mScroller
[all...]
H A DTaskStackViewTouchHandler.java76 TaskStackViewScroller mScroller; field in class:TaskStackViewTouchHandler
116 mScroller = scroller;
228 mScroller.stopScroller();
229 mScroller.stopBoundScrollAnimation();
230 mScroller.resetDeltaScroll();
238 mDownScrollP = mScroller.getStackScroll();
253 mDownScrollP = mScroller.getStackScroll();
254 mScroller.resetDeltaScroll();
267 float stackScroll = mScroller.getStackScroll();
305 mDownScrollP += mScroller
[all...]
/frameworks/support/design/src/android/support/design/widget/
H A DHeaderBehavior.java39 OverScroller mScroller; field in class:HeaderBehavior
233 if (mScroller == null) {
234 mScroller = new OverScroller(layout.getContext());
237 mScroller.fling(
243 if (mScroller.computeScrollOffset()) {
296 if (mLayout != null && mScroller != null) {
297 if (mScroller.computeScrollOffset()) {
298 setHeaderTopBottomOffset(mParent, mLayout, mScroller.getCurrY());
/frameworks/base/tests/UiBench/src/com/android/test/uibench/
H A DNotificationShadeActivity.java41 private Scroller mScroller; field in class:NotificationShadeActivity.FakeNotificationStackView
50 if (mScroller.computeScrollOffset()) {
51 updateState(mScroller.getCurrY());
69 mScroller.fling(0, mFullHeight, 0, (int) vY, 0, 0, 0, getHeight());
99 mScroller = new Scroller(getContext());
/frameworks/support/core-ui/java/android/support/v4/widget/
H A DAutoScrollHelper.java136 final ClampedScroller mScroller = new ClampedScroller(); field in class:AutoScrollHelper
426 mScroller.setRampUpDuration(durationMillis);
441 mScroller.setRampDownDuration(durationMillis);
470 mScroller.setTargetVelocity(xTargetVelocity, yTargetVelocity);
491 final ClampedScroller scroller = mScroller;
532 mScroller.requestStop();
695 mScroller.start();
698 final ClampedScroller scroller = mScroller;
H A DViewDragHelper.java132 private OverScroller mScroller; field in class:ViewDragHelper
324 * Interpolator defining the animation curve for mScroller
393 mScroller = new OverScroller(context, sInterpolator);
516 final int oldX = mScroller.getCurrX();
517 final int oldY = mScroller.getCurrY();
518 mScroller.abortAnimation();
519 final int newX = mScroller.getCurrX();
520 final int newY = mScroller.getCurrY();
593 mScroller.abortAnimation();
599 mScroller
[all...]
H A DNestedScrollView.java98 private OverScroller mScroller; field in class:NestedScrollView
124 * mScroller.isFinished() (flinging begins when the user lifts his finger).
389 mScroller = new OverScroller(getContext());
716 * otherwise don't. mScroller.isFinished should be false when
720 mScroller.computeScrollOffset();
721 mIsBeingDragged = !mScroller.isFinished();
732 if (mScroller.springBack(getScrollX(), getScrollY(), 0, 0, 0, getScrollRange())) {
767 if ((mIsBeingDragged = !mScroller.isFinished())) {
778 if (!mScroller.isFinished()) {
779 mScroller
[all...]
/frameworks/base/core/java/com/android/internal/widget/
H A DAutoScrollHelper.java136 private final ClampedScroller mScroller = new ClampedScroller(); field in class:AutoScrollHelper
426 mScroller.setRampUpDuration(durationMillis);
441 mScroller.setRampDownDuration(durationMillis);
470 mScroller.setTargetVelocity(xTargetVelocity, yTargetVelocity);
491 final ClampedScroller scroller = mScroller;
532 mScroller.requestStop();
692 mScroller.start();
695 final ClampedScroller scroller = mScroller;
H A DResolverDrawerLayout.java91 private final OverScroller mScroller; field in class:ResolverDrawerLayout
141 mScroller = new OverScroller(context, AnimationUtils.loadInterpolator(context,
197 return mIsDragging || !mScroller.isFinished();
427 if (mScroller.computeScrollOffset()) {
428 final boolean keepGoing = !mScroller.isFinished();
429 performDrag(mScroller.getCurrY() - mCollapseOffset);
440 mScroller.abortAnimation();
514 mScroller.startScroll(0, sy, 0, dy, duration);
637 if (mScroller.isFinished()) {
H A DViewPager.java122 private final Scroller mScroller; field in class:ViewPager
344 mScroller = new Scroller(context, sInterpolator);
802 mScroller.startScroll(sx, sy, dx, dy, duration);
1475 if (!mScroller.isFinished()) {
1477 final int newDuration = mScroller.getDuration() - mScroller.timePassed();
1479 mScroller.startScroll(newOffsetPixels, 0,
1618 if (!mScroller.isFinished() && mScroller.computeScrollOffset()) {
1621 final int x = mScroller
[all...]
H A DRecyclerView.java4628 private OverScroller mScroller; field in class:RecyclerView.ViewFlinger
4639 mScroller = new OverScroller(getContext(), sQuinticInterpolator);
4652 final OverScroller scroller = mScroller;
4785 mScroller.fling(0, 0, velocityX, velocityY,
4838 mScroller = new OverScroller(getContext(), interpolator);
4842 mScroller.startScroll(0, 0, dx, dy, duration);
4848 mScroller.abortAnimation();
/frameworks/base/core/java/android/widget/
H A DHorizontalScrollView.java79 private OverScroller mScroller; field in class:HorizontalScrollView
104 * mScroller.isFinished() (flinging begins when the user lifts his finger).
217 mScroller = new OverScroller(getContext());
533 * otherwise don't. mScroller.isFinished should be false when
536 mIsBeingDragged = !mScroller.isFinished();
545 if (mScroller.springBack(mScrollX, mScrollY, 0, getScrollRange(), 0, 0)) {
580 if ((mIsBeingDragged = !mScroller.isFinished())) {
591 if (!mScroller.isFinished()) {
592 mScroller.abortAnimation();
672 if (mScroller
[all...]
H A DScrollView.java87 private OverScroller mScroller; field in class:ScrollView
112 * mScroller.isFinished() (flinging begins when the user lifts his finger).
245 mScroller = new OverScroller(getContext());
575 * otherwise don't. mScroller.isFinished should be false when
579 mScroller.computeScrollOffset();
580 mIsBeingDragged = !mScroller.isFinished();
594 if (mScroller.springBack(mScrollX, mScrollY, 0, 0, 0, getScrollRange())) {
629 if ((mIsBeingDragged = !mScroller.isFinished())) {
640 if (!mScroller.isFinished()) {
641 mScroller
[all...]
H A DGallery.java1086 if (mFlingRunnable.mScroller.isFinished()) {
1455 private Scroller mScroller; field in class:Gallery.FlingRunnable
1458 * X value reported by mScroller on the previous fling
1463 mScroller = new Scroller(getContext());
1478 mScroller.fling(initialX, 0, initialVelocity, 0,
1489 mScroller.startScroll(0, 0, -distance, 0, mAnimationDuration);
1503 mScroller.forceFinished(true);
1518 final Scroller scroller = mScroller;
H A DAbsListView.java4567 private final OverScroller mScroller; field in class:AbsListView.FlingRunnable
4570 * Y value reported by mScroller on the previous fling
4585 final OverScroller scroller = mScroller;
4608 mScroller = new OverScroller(getContext());
4614 mScroller.setInterpolator(null);
4615 mScroller.fling(0, initialY, 0, initialVelocity,
4635 if (mScroller.springBack(0, mScrollY, 0, 0, 0, 0)) {
4646 mScroller.setInterpolator(null);
4647 mScroller.fling(0, mScrollY, 0, initialVelocity, 0, 0,
4656 mScroller
[all...]
H A DTextView.java679 private Scroller mScroller; field in class:TextView
8778 if (mScroller == null) {
8786 mScroller.startScroll(mScrollX, mScrollY, dx, dy);
8787 awakenScrollBars(mScroller.getDuration());
8790 if (!mScroller.isFinished()) {
8791 mScroller.abortAnimation();
8889 if (mScroller != null) {
8890 if (mScroller.computeScrollOffset()) {
8891 mScrollX = mScroller.getCurrX();
8892 mScrollY = mScroller
[all...]
/frameworks/support/core-ui/java/android/support/v4/view/
H A DViewPager.java160 private Scroller mScroller; field in class:ViewPager
399 mScroller = new Scroller(context, sInterpolator);
475 if ((mScroller != null) && !mScroller.isFinished()) {
476 mScroller.abortAnimation();
949 boolean wasScrolling = (mScroller != null) && !mScroller.isFinished();
955 sx = mIsScrollStarted ? mScroller.getCurrX() : mScroller.getStartX();
957 mScroller
[all...]
/frameworks/ex/widget/java/com/android/ex/widget/
H A DStaggeredGridView.java130 private final ScrollerCompat mScroller; field in class:StaggeredGridView
212 mScroller = ScrollerCompat.from(context);
285 mScroller.abortAnimation();
326 mScroller.abortAnimation();
369 mScroller.fling(0, 0, 0, (int) velocity, 0, 0,
543 if (mScroller.computeScrollOffset()) {
544 final int y = mScroller.getCurrY();
549 if (!stopped && !mScroller.isFinished()) {
561 edge.onAbsorb(Math.abs((int) mScroller.getCurrVelocity()));
564 mScroller
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/
H A DNotificationStackScrollLayout.java137 private OverScroller mScroller; field in class:NotificationStackScrollLayout
503 mScroller = new OverScroller(getContext());
636 mAmbientState.setCurrentScrollVelocity(mScroller.isFinished()
638 : mScroller.getCurrVelocity());
1219 mScroller.startScroll(mScrollX, mOwnScrollY, 0, targetScroll - mOwnScrollY);
1258 mScroller.startScroll(mScrollX, mOwnScrollY, 0, range - mOwnScrollY);
1423 boolean isBeingDragged = !mScroller.isFinished();
1429 if (!mScroller.isFinished()) {
1430 mScroller.forceFinished(true);
1504 if (mScroller
[all...]
/frameworks/base/core/java/android/view/
H A DViewRootImpl.java405 Scroller mScroller; field in class:ViewRootImpl
2018 if (mScroller != null) {
2019 mScroller.abortAnimation();
2882 boolean animating = mScroller != null && mScroller.computeScrollOffset();
2885 curScrollY = mScroller.getCurrY();
2906 if (animating && mScroller != null) {
2907 mScroller.abortAnimation();
3316 if (mScroller == null) {
3317 mScroller
[all...]
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DRecyclerView.java3601 final OverScroller scroller = mViewFlinger.mScroller;
4811 private OverScroller mScroller; field in class:RecyclerView.ViewFlinger
4822 mScroller = new OverScroller(getContext(), sQuinticInterpolator);
4835 final OverScroller scroller = mScroller;
4982 mScroller.fling(0, 0, velocityX, velocityY,
5035 mScroller = new OverScroller(getContext(), interpolator);
5039 mScroller.startScroll(0, 0, dx, dy, duration);
5044 mScroller.computeScrollOffset();
5051 mScroller.abortAnimation();

Completed in 2478 milliseconds