Home
last modified time | relevance | path

Searched refs:mScroller (Results 1 – 16 of 16) 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.java75 TaskStackViewScroller mScroller; field in TaskStackViewTouchHandler
115 mScroller = scroller; in TaskStackViewTouchHandler()
227 mScroller.stopScroller(); in handleTouchEvent()
228 mScroller.stopBoundScrollAnimation(); in handleTouchEvent()
229 mScroller.resetDeltaScroll(); in handleTouchEvent()
237 mDownScrollP = mScroller.getStackScroll(); in handleTouchEvent()
252 mDownScrollP = mScroller.getStackScroll(); in handleTouchEvent()
253 mScroller.resetDeltaScroll(); in handleTouchEvent()
269 float stackScroll = mScroller.getStackScroll(); in handleTouchEvent()
307 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/
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 …]
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 …]
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.java785 private Scroller mScroller;
9929 if (mScroller == null) { in bringPointIntoView()
9937 mScroller.startScroll(mScrollX, mScrollY, dx, dy); in bringPointIntoView()
9938 awakenScrollBars(mScroller.getDuration()); in bringPointIntoView()
9941 if (!mScroller.isFinished()) { in bringPointIntoView()
9942 mScroller.abortAnimation(); in bringPointIntoView()
10040 if (mScroller != null) { in computeScroll()
10041 if (mScroller.computeScrollOffset()) { in computeScroll()
10042 mScrollX = mScroller.getCurrX(); in computeScroll()
10043 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()
388 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
949 mScroller = new OverScroller(getContext());
1101 mAmbientState.setCurrentScrollVelocity(mScroller.isFinished()
1103 : mScroller.getCurrVelocity());
1630 mScroller.startScroll(mScrollX, mOwnScrollY, 0, targetScroll - mOwnScrollY);
1681 mScroller.startScroll(mScrollX, mOwnScrollY, 0, range - mOwnScrollY);
1874 if (mScroller.computeScrollOffset()) {
1877 int y = mScroller.getCurrY();
1893 int y = mScroller.getCurrY();
1921 float currVelocity = mScroller.getCurrVelocity();
[all …]
/frameworks/base/core/java/android/view/
DViewRootImpl.java511 Scroller mScroller; field in ViewRootImpl
2395 if (mScroller != null) { in performTraversals()
2396 mScroller.abortAnimation(); in performTraversals()
3500 boolean animating = mScroller != null && mScroller.computeScrollOffset(); in draw()
3503 curScrollY = mScroller.getCurrY(); in draw()
3522 if (animating && mScroller != null) { in draw()
3523 mScroller.abortAnimation(); in draw()
3971 if (mScroller == null) { in scrollToRectOrFocus()
3972 mScroller = new Scroller(mView.getContext()); in scrollToRectOrFocus()
3974 mScroller.startScroll(0, mScrollY, 0, scrollY-mScrollY); in scrollToRectOrFocus()
[all …]