/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/java/android/support/v4/widget/ |
ScrollerCompat.java | 32 Object mScroller; 259 mScroller = IMPL.createScroller(context, interpolator); 268 return IMPL.isFinished(mScroller); 277 return IMPL.getCurrX(mScroller); 286 return IMPL.getCurrY(mScroller); 293 return IMPL.getFinalX(mScroller); 300 return IMPL.getFinalY(mScroller); 314 return IMPL.getCurrVelocity(mScroller); 323 return IMPL.computeScrollOffset(mScroller); 341 IMPL.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(); 584 mScroller.abortAnimation(); 590 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() { 175 mScroller.setOnLayoutListener(new OnLayoutListener() { 183 mScroller.handleDataChanged(tix) [all...] |
NavTabScroller.java | 220 mScroller.forceFinished(true); 227 mScroller.forceFinished(true); 542 NavTabScroller mScroller; 546 mScroller = scroller; 552 if (mScroller.getGap() != 0) { 555 if (mScroller.isHorizontal()) {
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
ScrollKeyboardView.java | 55 private final Scroller mScroller; 66 mScroller = new Scroller(context); 77 final Scroller scroller = mScroller; 92 mScroller.forceFinished(true /* finished */); 103 mScroller.startScroll(0, currentTop, 0, deltaY, 300);
|
/external/chromium_org/android_webview/java/src/org/chromium/android_webview/ |
AwScrollOffsetManager.java | 81 private OverScroller mScroller; 85 mScroller = overScroller; 171 boolean flinging = mScroller.computeScrollOffset(); 269 mScroller.forceFinished(true); 287 mScroller.fling(scrollX, scrollY, velocityX, velocityY, 294 if (!mScroller.computeScrollOffset() && !mWasFlinging) { 301 int x = mScroller.getCurrX(); 302 int y = mScroller.getCurrY(); 309 mScroller.getCurrVelocity()); 312 // 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/VideoEditor/src/com/android/videoeditor/widgets/ |
HorizontalScrollView.java | 72 private OverScroller mScroller; 102 * mScroller.isFinished() (flinging begins when the user lifts his finger). 190 mScroller = new OverScroller(getContext()); 499 * otherwise don't. mScroller.isFinished should be false when 502 mIsBeingDragged = !mScroller.isFinished(); 511 if (mScroller.springBack(mScrollX, mScrollY, 0, getScrollRange(), 0, 0)) { 545 if ((mIsBeingDragged = !mScroller.isFinished())) { 556 if (!mScroller.isFinished()) { 557 mScroller.abortAnimation(); 629 if (mScroller.springBack(mScrollX, mScrollY, 0 [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...] |
/packages/apps/Launcher3/src/com/android/launcher3/ |
SmoothPagedView.java | 125 // if (!mScroller.isFinished()) return; 134 if (!mScroller.isFinished()) { 135 mScroller.abortAnimation();
|
PagedView.java | 123 protected LauncherScroller mScroller; 311 mScroller = new LauncherScroller(getContext()); 334 mScroller.setInterpolator(mDefaultInterpolator); 519 mScroller.setFinalX(newX); 535 mScroller.abortAnimation(); 544 mScroller.forceFinished(true); 554 if (!mScroller.isFinished()) { 716 if (mScroller.computeScrollOffset()) { 718 if (getScrollX() != mScroller.getCurrX() 719 || getScrollY() != mScroller.getCurrY( [all...] |
/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). 201 mScroller = new OverScroller(getContext()); 504 * otherwise don't. mScroller.isFinished should be false when 507 mIsBeingDragged = !mScroller.isFinished(); 516 if (mScroller.springBack(mScrollX, mScrollY, 0, getScrollRange(), 0, 0)) { 551 if ((mIsBeingDragged = !mScroller.isFinished())) { 562 if (!mScroller.isFinished()) { 563 mScroller.abortAnimation(); 641 if (mScroller.springBack(mScrollX, mScrollY, 0 [all...] |
ScrollView.java | 81 private OverScroller mScroller; 106 * mScroller.isFinished() (flinging begins when the user lifts his finger). 222 mScroller = new OverScroller(getContext()); 539 * otherwise don't. mScroller.isFinished should be false when 542 mIsBeingDragged = !mScroller.isFinished(); 555 if (mScroller.springBack(mScrollX, mScrollY, 0, 0, 0, getScrollRange())) { 583 if ((mIsBeingDragged = !mScroller.isFinished())) { 594 if (!mScroller.isFinished()) { 595 mScroller.abortAnimation(); 677 if (mScroller.springBack(mScrollX, mScrollY, 0, 0, 0 [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/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...] |
/external/chromium_org/remoting/android/java/src/org/chromium/chromoting/ |
TrackingInputHandler.java | 33 private GestureDetector mScroller; 88 mScroller = new GestureDetector(context, listener, null, false); 94 mScroller.setIsLongpressEnabled(false); 253 boolean handled = mScroller.onTouchEvent(event);
|
/development/samples/training/InteractiveChart/src/com/example/android/interactivechart/ |
InteractiveLineGraphView.java | 145 private OverScroller mScroller; 230 mScroller = new OverScroller(context); 722 mScroller.forceFinished(true); [all...] |
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
SlidingChallengeLayout.java | 79 private final Scroller mScroller; 239 mScroller = new Scroller(context, sMotionInterpolator); 429 mScroller.startScroll(0, sy, 0, dy, duration); [all...] |
PagedView.java | 115 protected Scroller mScroller; 312 mScroller = new Scroller(getContext(), new ScrollInterpolator()); 449 mScroller.setFinalX(newX); 450 mScroller.forceFinished(true); 458 if (!mScroller.isFinished()) { 459 mScroller.abortAnimation(); 606 if (mScroller.computeScrollOffset()) { 608 if (getScrollX() != mScroller.getCurrX() 609 || getScrollY() != mScroller.getCurrY() 610 || mOverScrollX != mScroller.getCurrX()) [all...] |