/cts/tests/tests/widget/src/android/widget/cts/ |
ScrollerTest.java | 29 private Scroller mScroller; 37 mScroller = new Scroller(mTargetContext); 47 mScroller.forceFinished(true); 48 assertTrue(mScroller.isFinished()); 50 mScroller.forceFinished(false); 51 assertFalse(mScroller.isFinished()); 55 assertEquals(0, mScroller.getDuration()); 58 mScroller.startScroll(0, 0, 10000, 100); 60 assertTrue(mScroller.getDuration() > 0); 62 mScroller.startScroll(0, 0, 10000, 100, 50000) [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
ScrollerHelper.java | 26 private OverScroller mScroller; 31 mScroller = new OverScroller(context); 46 return mScroller.computeScrollOffset(); 50 return mScroller.isFinished(); 54 mScroller.forceFinished(true); 58 return mScroller.getCurrX(); 62 return mScroller.getCurrVelocity(); 66 mScroller.startScroll( 71 mScroller.abortAnimation(); 76 mScroller.fling [all...] |
SlotView.java | 64 private final ScrollerHelper mScroller; 93 mScroller = new ScrollerHelper(activity); 140 mScroller.setPosition(position); 207 mDownInScrolling = !mScroller.isFinished(); 208 mScroller.forceFinished(); 228 mScroller.setOverfling(kind == OVERSCROLL_SYSTEM); 246 boolean more = mScroller.advanceAnimation(animTime); 249 updateScrollPosition(mScroller.getPosition(), false); 257 float v = mScroller.getCurrVelocity(); 664 mScroller.fling((int) -velocity, 0, scrollLimit) [all...] |
/frameworks/support/v4/tests/java/android/support/v4/widget/ |
ScrollerCompatTestBase.java | 37 private ScrollerCompat mScroller; 50 mScroller = constructor.newInstance(mApiLevel, getContext(), interpolator); 58 mScroller.fling(0, 0, 0, 1000, 60 int target = mScroller.getFinalY(); 61 while (mScroller.computeScrollOffset()) { 65 mScroller.getCurrY()); 73 mScroller.fling(0, 0, 0, 10000, 75 assertTrue("Scroller should have some offset", mScroller.computeScrollOffset()); 76 mScroller.abortAnimation(); 78 mScroller.computeScrollOffset()) [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
TaskStackViewTouchHandler.java | 34 TaskStackViewScroller mScroller; 65 mScroller = scroller; 110 pev.setLocation(0, mScroller.progressToScrollRange(mScroller.getStackScroll())); 128 boolean wasScrolling = mScroller.isScrolling() || 129 (mScroller.mScrollAnimator != null && mScroller.mScrollAnimator.isRunning()); 140 mScroller.stopScroller(); 141 mScroller.stopBoundScrollAnimation(); 146 mIsScrolling = mScroller.isScrolling() [all...] |
TaskStackViewScroller.java | 39 OverScroller mScroller; 44 mScroller = new OverScroller(context); 176 if (mScroller.computeScrollOffset()) { 177 float scroll = scrollRangeToProgress(mScroller.getCurrY()); 189 return !mScroller.isFinished(); 194 if (!mScroller.isFinished()) { 195 mScroller.abortAnimation();
|
/frameworks/support/v4/java/android/support/v4/widget/ |
ScrollerCompat.java | 35 Object mScroller; 270 mScroller = mImpl.createScroller(context, interpolator); 279 return mImpl.isFinished(mScroller); 288 return mImpl.getCurrX(mScroller); 297 return mImpl.getCurrY(mScroller); 304 return mImpl.getFinalX(mScroller); 311 return mImpl.getFinalY(mScroller); 325 return mImpl.getCurrVelocity(mScroller); 334 return mImpl.computeScrollOffset(mScroller); 352 mImpl.startScroll(mScroller, startX, startY, dx, dy) [all...] |
AutoScrollHelper.java | 137 private final ClampedScroller mScroller = new ClampedScroller(); 427 mScroller.setRampUpDuration(durationMillis); 442 mScroller.setRampDownDuration(durationMillis); 471 mScroller.setTargetVelocity(xTargetVelocity, yTargetVelocity); 492 final ClampedScroller scroller = mScroller; 533 mScroller.requestStop(); 693 mScroller.start(); 696 final ClampedScroller scroller = mScroller; [all...] |
ViewDragHelper.java | 132 private ScrollerCompat mScroller; 324 * Interpolator defining the animation curve for mScroller 391 mScroller = ScrollerCompat.create(context, sInterpolator); 514 final int oldX = mScroller.getCurrX(); 515 final int oldY = mScroller.getCurrY(); 516 mScroller.abortAnimation(); 517 final int newX = mScroller.getCurrX(); 518 final int newY = mScroller.getCurrY(); 591 mScroller.abortAnimation(); 597 mScroller.startScroll(startLeft, startTop, dx, dy, duration) [all...] |
/packages/apps/Browser/src/com/android/browser/ |
NavScreen.java | 66 NavTabScroller mScroller; 102 int sv = mScroller.getScrollValue(); 106 mScroller.setScrollValue(sv); 112 mScroller.handleDataChanged( 126 mScroller = (NavTabScroller) findViewById(R.id.scroller); 130 mScroller.setOrientation(mOrientation == Configuration.ORIENTATION_LANDSCAPE 133 mScroller.setAdapter(mAdapter, 135 mScroller.setOnRemoveListener(new OnRemoveListener() { 176 mScroller.setOnLayoutListener(new OnLayoutListener() { 185 mScroller.handleDataChanged(tix) [all...] |
/external/chromium_org/android_webview/java/src/org/chromium/android_webview/ |
AwScrollOffsetManager.java | 77 private OverScroller mScroller; 81 mScroller = overScroller; 167 boolean flinging = mScroller.computeScrollOffset(); 259 mScroller.forceFinished(true); 277 mScroller.fling(scrollX, scrollY, velocityX, velocityY, 284 if (!mScroller.computeScrollOffset() && !mWasFlinging) { 291 int x = mScroller.getCurrX(); 292 int y = mScroller.getCurrY(); 299 mScroller.getCurrVelocity()); 302 // The mScroller is configured not to go outside of the scrollable range, so this cal [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
SmoothPagedView.java | 105 mScroller = new Scroller(getContext(), mScrollInterpolator); 128 // if (!mScroller.isFinished()) return; 137 if (!mScroller.isFinished()) { 138 mScroller.abortAnimation();
|
PagedView.java | 94 protected Scroller mScroller; 236 mScroller = new Scroller(getContext(), new ScrollInterpolator()); 315 mScroller.setFinalX(newX); 316 mScroller.forceFinished(true); 325 mScroller.forceFinished(true); 341 if (!mScroller.isFinished()) { 342 mScroller.abortAnimation(); 445 if (mScroller.computeScrollOffset()) { 447 if (getScrollX() != mScroller.getCurrX() 448 || getScrollY() != mScroller.getCurrY( [all...] |
/packages/apps/Dialer/src/com/android/dialer/widget/ |
ViewDragHelper.java | 134 // we programmatically scroll or fling mScroller. 135 private Scroller mScroller; 397 mScroller = new Scroller(context); 520 final int oldX = mScroller.getCurrX(); 521 final int oldY = mScroller.getCurrY(); 522 mScroller.abortAnimation(); 523 final int newX = mScroller.getCurrX(); 524 final int newY = mScroller.getCurrY(); 590 mScroller.abortAnimation(); 596 mScroller.startScroll(startLeft, startTop, dx, dy, duration) [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
AutoScrollHelper.java | 136 private final ClampedScroller mScroller = new ClampedScroller(); 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; [all...] |
ResolverDrawerLayout.java | 74 private final OverScroller mScroller; 116 mScroller = new OverScroller(context, AnimationUtils.loadInterpolator(context, 139 return mIsDragging || !mScroller.isFinished(); 197 mScroller.abortAnimation(); 221 mScroller.abortAnimation(); 330 if (!mScroller.isFinished()) { 331 final boolean keepGoing = mScroller.computeScrollOffset(); 332 performDrag(mScroller.getCurrY() - mCollapseOffset); 363 mScroller.abortAnimation(); 386 mScroller.startScroll(0, sy, 0, dy, duration) [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/ |
SmoothPagedView.java | 125 // if (!mScroller.isFinished()) return; 134 if (!mScroller.isFinished()) { 135 mScroller.abortAnimation();
|
/packages/apps/Browser/src/com/android/browser/view/ |
ScrollerView.java | 73 protected OverScroller mScroller; 96 * mScroller.isFinished() (flinging begins when the user lifts his finger). 177 mScroller = new OverScroller(getContext()); 578 * otherwise don't. mScroller.isFinished should be false when being 581 mIsBeingDragged = !mScroller.isFinished(); 600 if (mScroller.springBack(mScrollX, mScrollY, 0, 0, 0, 634 if (!mScroller.isFinished()) { 635 mScroller.abortAnimation(); 726 if (mScroller.springBack(mScrollX, mScrollY, 0, bottom, 0, 0)) { 730 if (mScroller.springBack(mScrollX, mScrollY, 0, 0, 0, bottom)) [all...] |
/frameworks/base/core/java/android/widget/ |
HorizontalScrollView.java | 74 private OverScroller mScroller; 99 * mScroller.isFinished() (flinging begins when the user lifts his finger). 206 mScroller = new OverScroller(getContext()); 509 * otherwise don't. mScroller.isFinished should be false when 512 mIsBeingDragged = !mScroller.isFinished(); 521 if (mScroller.springBack(mScrollX, mScrollY, 0, getScrollRange(), 0, 0)) { 556 if ((mIsBeingDragged = !mScroller.isFinished())) { 567 if (!mScroller.isFinished()) { 568 mScroller.abortAnimation(); 648 if (mScroller.springBack(mScrollX, mScrollY, 0 [all...] |
ScrollView.java | 81 private OverScroller mScroller; 106 * mScroller.isFinished() (flinging begins when the user lifts his finger). 233 mScroller = new OverScroller(getContext()); 551 * otherwise don't. mScroller.isFinished should be false when 554 mIsBeingDragged = !mScroller.isFinished(); 568 if (mScroller.springBack(mScrollX, mScrollY, 0, 0, 0, getScrollRange())) { 603 if ((mIsBeingDragged = !mScroller.isFinished())) { 614 if (!mScroller.isFinished()) { 615 mScroller.abortAnimation(); 708 } else if (mScroller.springBack(mScrollX, mScrollY, 0, 0, 0 [all...] |
/packages/apps/Contacts/src/com/android/contacts/widget/ |
MultiShrinkScroller.java | 136 private final Scroller mScroller; 240 mScroller = new Scroller(context, sInterpolator); 407 if (!mScroller.isFinished()) { 507 mScroller.abortAnimation(); 516 onDragFinished(mScroller.getFinalY() - mScroller.getStartY()); 556 mScroller.forceFinished(true); 612 mScroller.forceFinished(true); 771 if (mScroller.computeScrollOffset()) { 774 scrollTo(0, mScroller.getCurrY()) [all...] |
/packages/apps/Gallery2/src/com/android/photos/views/ |
GalleryThumbnailView.java | 84 private final OverScroller mScroller; 109 mScroller = new OverScroller(context); 286 mScroller.abortAnimation(); 327 mScroller.abortAnimation(); 370 mScroller.fling(0, 0, (int) velocity, 0, 534 if (mScroller.computeScrollOffset()) { 535 final int x = mScroller.getCurrX(); 540 if (!stopped && !mScroller.isFinished()) { 552 edge.onAbsorb(Math.abs((int) mScroller.getCurrVelocity())); 555 mScroller.abortAnimation() [all...] |
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/ |
PinDialogFragment.java | 329 private final OverScroller mScroller; 357 mScroller = new OverScroller(context); 373 if (!mScroller.isFinished() || mCancelAnimation) { 376 if (mScroller.isFinished() || mCancelAnimation) { 381 mScroller.startScroll(0, 0, 0, mNumberViewHeight, 387 mScroller.startScroll(0, 0, 0, -mNumberViewHeight, 436 if (mScroller.computeScrollOffset()) { 437 mNumberViewHolder.setScrollY(mScroller.getCurrY() + mNumberViewHeight); 548 if (!mScroller.isFinished()) { 550 mScroller.abortAnimation() [all...] |
/packages/apps/Gallery/src/com/android/camera/ |
GridViewSpecial.java | 141 private Scroller mScroller = null; 311 if (mScroller != null && !mScroller.isFinished()) { 312 mScroller.forceFinished(true); 335 mScroller = new Scroller(getContext()); 336 mScroller.fling(0, mScrollY, 0, -(int) velocityY, 0, 0, 0, 435 mScroller = new Scroller(getContext()); 436 mScroller.startScroll(mScrollX, mScrollY, 0, 440 mScroller = new Scroller(getContext()); 441 mScroller.startScroll(mScrollX, mScrollY, 0, r.top - mScrollY, 200) [all...] |
/packages/apps/Contacts/src/com/android/contacts/quickcontact/ |
QuickContactActivity.java | 218 private MultiShrinkScroller mScroller; 384 mScroller.prepareForShrinkingScrollChild(heightDelta); 389 mScroller.prepareForExpandingScrollChild(); 639 mScroller = (MultiShrinkScroller) findViewById(R.id.multiscroller); 660 if (mScroller != null) { 664 mScroller.scrollOffBottom(); 685 mScroller.initialize(mMultiShrinkScrollerListener, mExtraMode == MODE_FULLY_EXPANDED); 686 // mScroller needs to perform asynchronous measurements after initalize(), therefore 688 mScroller.setVisibility(View.INVISIBLE); 702 SchedulingUtils.doOnPreDraw(mScroller, /* drawNextFrame = */ true [all...] |