Home
last modified time | relevance | path

Searched refs:mScroller (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/tests/UiBench/src/com/android/test/uibench/
DNotificationShadeActivity.java41 private Scroller mScroller; field in 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()); in FakeNotificationStackView()
/frameworks/base/core/java/com/android/internal/widget/
DAutoScrollHelper.java136 private final ClampedScroller mScroller = new ClampedScroller(); field in AutoScrollHelper
426 mScroller.setRampUpDuration(durationMillis); in setRampUpDuration()
441 mScroller.setRampDownDuration(durationMillis); in setRampDownDuration()
470 mScroller.setTargetVelocity(xTargetVelocity, yTargetVelocity); in onTouch()
491 final ClampedScroller scroller = mScroller; in shouldAnimate()
532 mScroller.requestStop(); in requestStop()
692 mScroller.start(); in run()
695 final ClampedScroller scroller = mScroller; in run()
DViewPager.java124 private final Scroller mScroller; field in ViewPager
349 mScroller = new Scroller(context, sInterpolator); in ViewPager()
808 mScroller.startScroll(sx, sy, dx, dy, duration); in smoothScrollTo()
1481 if (!mScroller.isFinished()) {
1483 final int newDuration = mScroller.getDuration() - mScroller.timePassed();
1485 mScroller.startScroll(newOffsetPixels, 0,
1624 if (!mScroller.isFinished() && mScroller.computeScrollOffset()) {
1627 final int x = mScroller.getCurrX();
1628 final int y = mScroller.getCurrY();
1634 mScroller.abortAnimation();
[all …]
DResolverDrawerLayout.java115 private final OverScroller mScroller; field in ResolverDrawerLayout
177 mScroller = new OverScroller(context, AnimationUtils.loadInterpolator(context, in ResolverDrawerLayout()
264 return mIsDragging || !mScroller.isFinished(); in isMoving()
558 if (mScroller.computeScrollOffset()) {
559 final boolean keepGoing = !mScroller.isFinished();
560 performDrag(mScroller.getCurrY() - mCollapseOffset);
570 mScroller.abortAnimation();
686 mScroller.startScroll(0, sy, 0, dy, duration);
818 if (mScroller.isFinished()) {
DRecyclerView.java4750 private OverScroller mScroller; field in RecyclerView.ViewFlinger
4761 mScroller = new OverScroller(getContext(), sQuinticInterpolator); in ViewFlinger()
4774 final OverScroller scroller = mScroller; in run()
4907 mScroller.fling(0, 0, velocityX, velocityY, in fling()
4960 mScroller = new OverScroller(getContext(), interpolator); in smoothScrollBy()
4964 mScroller.startScroll(0, 0, dx, dy, duration); in smoothScrollBy()
4970 mScroller.abortAnimation(); in stop()
/frameworks/base/core/java/android/widget/
DHorizontalScrollView.java94 private OverScroller mScroller; field in HorizontalScrollView
330 mScroller = new OverScroller(getContext()); in initScrollView()
651 mIsBeingDragged = !mScroller.isFinished() || !mEdgeGlowLeft.isFinished() in onInterceptTouchEvent()
668 if (mScroller.springBack(mScrollX, mScrollY, 0, getScrollRange(), 0, 0)) { in onInterceptTouchEvent()
703 if (!mScroller.isFinished()) { in onTouchEvent()
714 if (!mScroller.isFinished()) { in onTouchEvent()
715 mScroller.abortAnimation(); in onTouchEvent()
806 if (mScroller.springBack(mScrollX, mScrollY, 0, in onTouchEvent()
825 if (mScroller.springBack(mScrollX, mScrollY, 0, getScrollRange(), 0, 0)) { in onTouchEvent()
934 if (!mScroller.isFinished()) { in onOverScrolled()
[all …]
DScrollView.java105 private OverScroller mScroller; field in ScrollView
367 mScroller = new OverScroller(getContext()); in initScrollView()
730 mScroller.computeScrollOffset(); in onInterceptTouchEvent()
734 setFrameContentVelocity(Math.abs(mScroller.getCurrVelocity())); in onInterceptTouchEvent()
737 mIsBeingDragged = !mScroller.isFinished() || !mEdgeGlowBottom.isFinished() in onInterceptTouchEvent()
759 if (mScroller.springBack(mScrollX, mScrollY, 0, 0, 0, getScrollRange())) { in onInterceptTouchEvent()
798 if (!mScroller.isFinished()) { in onTouchEvent()
809 if (!mScroller.isFinished()) { in onTouchEvent()
810 mScroller.abortAnimation(); in onTouchEvent()
914 } else if (mScroller.springBack(mScrollX, mScrollY, 0, 0, 0, in onTouchEvent()
[all …]
DGallery.java1103 if (mFlingRunnable.mScroller.isFinished()) { in onUp()
1473 private Scroller mScroller; field in Gallery.FlingRunnable
1481 mScroller = new Scroller(getContext()); in FlingRunnable()
1497 mScroller.fling(initialX, 0, initialVelocity, 0, in startUsingVelocity()
1508 mScroller.startScroll(0, 0, -distance, 0, mAnimationDuration);
1522 mScroller.forceFinished(true);
1537 final Scroller scroller = mScroller;
DAbsListView.java4923 private final OverScroller mScroller; field in AbsListView.FlingRunnable
4941 final OverScroller scroller = mScroller;
4964 mScroller = new OverScroller(getContext()); in FlingRunnable()
4968 return (float) mScroller.getSplineFlingDistance(velocity); in getSplineFlingDistance()
4976 mScroller.setInterpolator(null); in start()
4977 mScroller.fling(0, initialY, 0, initialVelocity, in start()
4998 if (mScroller.springBack(0, mScrollY, 0, 0, 0, 0)) {
5009 mScroller.setInterpolator(null);
5010 mScroller.fling(0, mScrollY, 0, initialVelocity, 0, 0,
5019 mScroller.notifyVerticalEdgeReached(mScrollY, 0, mOverflingDistance);
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DPagedTileLayout.java71 @VisibleForTesting Scroller mScroller; field in PagedTileLayout
97 mScroller = new Scroller(context, SCROLL_CUBIC); in PagedTileLayout()
275 if (!mScroller.isFinished() && mScroller.computeScrollOffset()) { in computeScroll()
279 fakeDragBy(getScrollX() - mScroller.getCurrX()); in computeScroll()
322 if (mScroller.isFinished()) { in setPageIndicator()
340 mScroller.startScroll(/* startX= */ getScrollX(), /* startY= */ getScrollY(), in scrollByX()
/frameworks/ex/widget/java/com/android/ex/widget/
DStaggeredGridView.java130 private final ScrollerCompat mScroller; field in StaggeredGridView
212 mScroller = ScrollerCompat.from(context); in StaggeredGridView()
285 mScroller.abortAnimation(); in onInterceptTouchEvent()
326 mScroller.abortAnimation(); in onTouchEvent()
369 mScroller.fling(0, 0, 0, (int) velocity, 0, 0, in onTouchEvent()
543 if (mScroller.computeScrollOffset()) { in computeScroll()
544 final int y = mScroller.getCurrY(); in computeScroll()
549 if (!stopped && !mScroller.isFinished()) { in computeScroll()
561 edge.onAbsorb(Math.abs((int) mScroller.getCurrVelocity())); in computeScroll()
564 mScroller.abortAnimation(); in computeScroll()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DPagedTileLayoutTest.kt39 scroller = pageTileLayout.mScroller in setUp()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/
DFullScreenMagnificationController.java1878 private final Scroller mScroller; field in FullScreenMagnificationController.SpecAnimationBridge
1899 mScroller = scrollerSupplier.get(); in SpecAnimationBridge()
1913 if (!mScroller.computeScrollOffset()) { in SpecAnimationBridge()
1918 mEndMagnificationSpec.offsetX = mScroller.getCurrX(); in SpecAnimationBridge()
1919 mEndMagnificationSpec.offsetY = mScroller.getCurrY(); in SpecAnimationBridge()
1925 mScroller = null; in SpecAnimationBridge()
2093 mScroller.fling( in startFlingAnimation()
2123 mScroller.forceFinished(true); in cancelFlingAnimation()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DNotificationStackScrollLayout.java181 private OverScroller mScroller; field in NotificationStackScrollLayout
916 mScroller = new OverScroller(getContext()); in initView()
1288 mAmbientState.setCurrentScrollVelocity(mScroller.isFinished()
1290 : mScroller.getCurrVelocity());
1914 mScroller.startScroll(mScrollX, mOwnScrollY, 0, targetScroll - mOwnScrollY);
1970 mScroller.startScroll(mScrollX, mOwnScrollY, 0, range - mOwnScrollY);
2123 if (mScroller.computeScrollOffset()) {
2125 int y = mScroller.getCurrY();
2151 float currVelocity = mScroller.getCurrVelocity();
2303 if (!mScroller.isFinished()) {
[all …]
/frameworks/base/core/java/android/view/
DViewRootImpl.java904 Scroller mScroller; field in ViewRootImpl
3808 if (mScroller != null) { in performTraversals()
3809 mScroller.abortAnimation(); in performTraversals()
5531 boolean animating = mScroller != null && mScroller.computeScrollOffset(); in draw()
5534 curScrollY = mScroller.getCurrY(); in draw()
5553 if (animating && mScroller != null) { in draw()
5554 mScroller.abortAnimation(); in draw()
6152 if (mScroller == null) { in scrollToRectOrFocus()
6153 mScroller = new Scroller(mView.getContext()); in scrollToRectOrFocus()
6155 mScroller.startScroll(0, mScrollY, 0, scrollY-mScrollY); in scrollToRectOrFocus()
[all …]
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt64174 Landroid/view/ViewRootImpl;->mScroller:Landroid/widget/Scroller;
67022 Landroid/widget/Gallery$FlingRunnable;->mScroller:Landroid/widget/Scroller;
69919 Landroid/widget/TextView;->mScroller:Landroid/widget/Scroller;
85679 Lcom/android/internal/widget/AutoScrollHelper;->mScroller:Lcom/android/internal/widget/AutoScrollHe…