Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/views/
DTaskStackViewScroller.java81 OverScroller mScroller; field in TaskStackViewScroller
91 mScroller = new OverScroller(context); in TaskStackViewScroller()
93 mScroller.setFriction(0.06f); in TaskStackViewScroller()
167 mScroller.fling(0, y, 0, velY, 0, 0, minY, maxY, 0, overscroll); in fling()
225 float pos = algorithm.scrollToPercentage(mScroller.getFinalY()); in scrollToClosestTask()
281 mScroller.forceFinished(true); in animateScroll()
315 if (mScroller.computeScrollOffset()) { in computeScroll()
316 float deltaP = mLayoutAlgorithm.getDeltaPForY(mFlingDownY, mScroller.getCurrY()); in computeScroll()
328 return !mScroller.isFinished(); in isScrolling()
332 return mScroller.getCurrVelocity(); in getScrollVelocity()
[all …]
DTaskStackViewTouchHandler.java76 TaskStackViewScroller mScroller; field in TaskStackViewTouchHandler
116 mScroller = scroller; in TaskStackViewTouchHandler()
228 mScroller.stopScroller(); in handleTouchEvent()
229 mScroller.stopBoundScrollAnimation(); in handleTouchEvent()
230 mScroller.resetDeltaScroll(); in handleTouchEvent()
238 mDownScrollP = mScroller.getStackScroll(); in handleTouchEvent()
253 mDownScrollP = mScroller.getStackScroll(); in handleTouchEvent()
254 mScroller.resetDeltaScroll(); in handleTouchEvent()
270 float stackScroll = mScroller.getStackScroll(); in handleTouchEvent()
308 mDownScrollP += mScroller.setDeltaStackScroll(mDownScrollP, in handleTouchEvent()
[all …]
/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()
DResolverDrawerLayout.java100 private final OverScroller mScroller; field in ResolverDrawerLayout
154 mScroller = new OverScroller(context, AnimationUtils.loadInterpolator(context, in ResolverDrawerLayout()
220 return mIsDragging || !mScroller.isFinished(); in isMoving()
488 if (mScroller.computeScrollOffset()) {
489 final boolean keepGoing = !mScroller.isFinished();
490 performDrag(mScroller.getCurrY() - mCollapseOffset);
500 mScroller.abortAnimation();
596 mScroller.startScroll(0, sy, 0, dy, duration);
725 if (mScroller.isFinished()) {
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 …]
DRecyclerView.java4629 private OverScroller mScroller; field in RecyclerView.ViewFlinger
4640 mScroller = new OverScroller(getContext(), sQuinticInterpolator); in ViewFlinger()
4653 final OverScroller scroller = mScroller; in run()
4786 mScroller.fling(0, 0, velocityX, velocityY, in fling()
4839 mScroller = new OverScroller(getContext(), interpolator); in smoothScrollBy()
4843 mScroller.startScroll(0, 0, dx, dy, duration); in smoothScrollBy()
4849 mScroller.abortAnimation(); in stop()
/frameworks/base/core/java/android/widget/
DHorizontalScrollView.java83 private OverScroller mScroller; field in HorizontalScrollView
313 mScroller = new OverScroller(getContext()); in initScrollView()
634 mIsBeingDragged = !mScroller.isFinished(); in onInterceptTouchEvent()
643 if (mScroller.springBack(mScrollX, mScrollY, 0, getScrollRange(), 0, 0)) { in onInterceptTouchEvent()
678 if ((mIsBeingDragged = !mScroller.isFinished())) { in onTouchEvent()
689 if (!mScroller.isFinished()) { in onTouchEvent()
690 mScroller.abortAnimation(); in onTouchEvent()
770 if (mScroller.springBack(mScrollX, mScrollY, 0, in onTouchEvent()
789 if (mScroller.springBack(mScrollX, mScrollY, 0, getScrollRange(), 0, 0)) { in onTouchEvent()
874 if (!mScroller.isFinished()) { in onOverScrolled()
[all …]
DScrollView.java92 private OverScroller mScroller; field in ScrollView
345 mScroller = new OverScroller(getContext()); in initScrollView()
681 mScroller.computeScrollOffset(); in onInterceptTouchEvent()
682 mIsBeingDragged = !mScroller.isFinished(); in onInterceptTouchEvent()
696 if (mScroller.springBack(mScrollX, mScrollY, 0, 0, 0, getScrollRange())) { in onInterceptTouchEvent()
735 if ((mIsBeingDragged = !mScroller.isFinished())) { in onTouchEvent()
746 if (!mScroller.isFinished()) { in onTouchEvent()
747 mScroller.abortAnimation(); in onTouchEvent()
840 } else if (mScroller.springBack(mScrollX, mScrollY, 0, 0, 0, in onTouchEvent()
851 if (mScroller.springBack(mScrollX, mScrollY, 0, 0, 0, getScrollRange())) { in onTouchEvent()
[all …]
DGallery.java1102 if (mFlingRunnable.mScroller.isFinished()) { in onUp()
1472 private Scroller mScroller; field in Gallery.FlingRunnable
1480 mScroller = new Scroller(getContext()); in FlingRunnable()
1496 mScroller.fling(initialX, 0, initialVelocity, 0, in startUsingVelocity()
1507 mScroller.startScroll(0, 0, -distance, 0, mAnimationDuration);
1521 mScroller.forceFinished(true);
1536 final Scroller scroller = mScroller;
DAbsListView.java4647 private final OverScroller mScroller; field in AbsListView.FlingRunnable
4665 final OverScroller scroller = mScroller;
4688 mScroller = new OverScroller(getContext()); in FlingRunnable()
4696 mScroller.setInterpolator(null); in start()
4697 mScroller.fling(0, initialY, 0, initialVelocity, in start()
4717 if (mScroller.springBack(0, mScrollY, 0, 0, 0, 0)) {
4728 mScroller.setInterpolator(null);
4729 mScroller.fling(0, mScrollY, 0, initialVelocity, 0, 0,
4738 mScroller.notifyVerticalEdgeReached(mScrollY, 0, mOverflingDistance);
4743 final int vel = (int) mScroller.getCurrVelocity();
[all …]
DTextView.java787 private Scroller mScroller;
9944 if (mScroller == null) { in bringPointIntoView()
9952 mScroller.startScroll(mScrollX, mScrollY, dx, dy); in bringPointIntoView()
9953 awakenScrollBars(mScroller.getDuration()); in bringPointIntoView()
9956 if (!mScroller.isFinished()) { in bringPointIntoView()
9957 mScroller.abortAnimation(); in bringPointIntoView()
10055 if (mScroller != null) { in computeScroll()
10056 if (mScroller.computeScrollOffset()) { in computeScroll()
10057 mScrollX = mScroller.getCurrX(); in computeScroll()
10058 mScrollY = mScroller.getCurrY(); in computeScroll()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DPagedTileLayout.java56 private Scroller mScroller; field in PagedTileLayout
70 mScroller = new Scroller(context, SCROLL_CUBIC); in PagedTileLayout()
144 if (!mScroller.isFinished() && mScroller.computeScrollOffset()) { in computeScroll()
145 fakeDragBy(getScrollX() - mScroller.getCurrX()); in computeScroll()
390 mScroller.startScroll(getScrollX(), getScrollY(), isLayoutRtl() ? -dx : dx, 0, in startTileReveal()
/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/src/com/android/systemui/statusbar/notification/stack/
DNotificationStackScrollLayout.java201 private OverScroller mScroller; field in NotificationStackScrollLayout
969 mScroller = new OverScroller(getContext());
1126 mAmbientState.setCurrentScrollVelocity(mScroller.isFinished()
1128 : mScroller.getCurrVelocity());
1673 mScroller.startScroll(mScrollX, mOwnScrollY, 0, targetScroll - mOwnScrollY);
1724 mScroller.startScroll(mScrollX, mOwnScrollY, 0, range - mOwnScrollY);
1917 if (mScroller.computeScrollOffset()) {
1920 int y = mScroller.getCurrY();
1936 int y = mScroller.getCurrY();
1964 float currVelocity = mScroller.getCurrVelocity();
[all …]
/frameworks/base/core/java/android/view/
DViewRootImpl.java534 Scroller mScroller; field in ViewRootImpl
2419 if (mScroller != null) { in performTraversals()
2420 mScroller.abortAnimation(); in performTraversals()
3657 boolean animating = mScroller != null && mScroller.computeScrollOffset(); in draw()
3660 curScrollY = mScroller.getCurrY(); in draw()
3679 if (animating && mScroller != null) { in draw()
3680 mScroller.abortAnimation(); in draw()
4135 if (mScroller == null) { in scrollToRectOrFocus()
4136 mScroller = new Scroller(mView.getContext()); in scrollToRectOrFocus()
4138 mScroller.startScroll(0, mScrollY, 0, scrollY-mScrollY); in scrollToRectOrFocus()
[all …]
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt79246 Landroid/view/ViewRootImpl;->mScroller:Landroid/widget/Scroller;
82094 Landroid/widget/Gallery$FlingRunnable;->mScroller:Landroid/widget/Scroller;
84991 Landroid/widget/TextView;->mScroller:Landroid/widget/Scroller;
100755 Lcom/android/internal/widget/AutoScrollHelper;->mScroller:Lcom/android/internal/widget/AutoScrollHe…