/cts/tests/tests/widget/src/android/widget/cts/ |
ScrollerTest.java | 34 private Scroller mScroller; 42 mScroller = new Scroller(mTargetContext); 78 mScroller.forceFinished(true); 79 assertTrue(mScroller.isFinished()); 81 mScroller.forceFinished(false); 82 assertFalse(mScroller.isFinished()); 92 assertEquals(0, mScroller.getDuration()); 95 mScroller.startScroll(0, 0, 10000, 100); 97 assertTrue(mScroller.getDuration() > 0); 99 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...] |
PositionController.java | 86 private FlingScroller mScroller; 103 mScroller = new FlingScroller(); 379 mScroller.fling(mCurrentX, mCurrentY, 383 int targetX = mScroller.getFinalX(); 384 int targetY = mScroller.getFinalY(); 385 mAnimationDuration = mScroller.getDuration(); 474 mScroller.computeScrollOffset(progress); 477 mCurrentX = mScroller.getCurrX(); 478 mCurrentY = mScroller.getCurrY(); 482 int v = Math.round(-mScroller.getCurrVelocityX() * mCurrentScale) [all...] |
SlotView.java | 58 private final ScrollerHelper mScroller; 92 mScroller = new ScrollerHelper(context); 129 mScroller.setPosition(position); 227 mDownInScrolling = !mScroller.isFinished(); 228 mScroller.forceFinished(); 248 mScroller.setOverfling(kind == OVERSCROLL_SYSTEM); 256 boolean more = mScroller.advanceAnimation(currentTimeMillis); 258 updateScrollPosition(mScroller.getPosition(), false); 266 float v = mScroller.getCurrVelocity(); 668 mScroller.fling((int) -velocity, 0, scrollLimit) [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); 541 NavTabScroller mScroller; 545 mScroller = scroller; 551 if (mScroller.getGap() != 0) { 554 if (mScroller.isHorizontal()) {
|
PhoneUi.java | 428 mNavScreen.mScroller.finishScroller(); 435 int fromLeft = tabview.getLeft() + target.getLeft() - mNavScreen.mScroller.getScrollX(); 436 int fromTop = tabview.getTop() + target.getTop() - mNavScreen.mScroller.getScrollY();
|
/frameworks/base/core/java/android/webkit/ |
OverScrollGlow.java | 125 mEdgeGlowTop.onAbsorb((int) mHostView.mScroller.getCurrVelocity()); 130 mEdgeGlowBottom.onAbsorb((int) mHostView.mScroller.getCurrVelocity()); 139 mEdgeGlowLeft.onAbsorb((int) mHostView.mScroller.getCurrVelocity()); 144 mEdgeGlowRight.onAbsorb((int) mHostView.mScroller.getCurrVelocity());
|
WebView.java | 622 OverScroller mScroller; [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 | 88 protected Scroller mScroller; 227 mScroller = new Scroller(getContext(), new ScrollInterpolator()); 285 mScroller.setFinalX(newX); 292 if (!mScroller.isFinished()) { 293 mScroller.abortAnimation(); 385 if (mScroller.computeScrollOffset()) { 387 if (mScrollX != mScroller.getCurrX() || mScrollY != mScroller.getCurrY()) { 389 scrollTo(mScroller.getCurrX(), mScroller.getCurrY()) [all...] |
/frameworks/base/core/java/android/widget/ |
HorizontalScrollView.java | 73 private OverScroller mScroller; 98 * mScroller.isFinished() (flinging begins when the user lifts his finger). 198 mScroller = new OverScroller(getContext()); 495 * otherwise don't. mScroller.isFinished should be false when 498 mIsBeingDragged = !mScroller.isFinished(); 507 if (mScroller.springBack(mScrollX, mScrollY, 0, getScrollRange(), 0, 0)) { 548 if (!mScroller.isFinished()) { 549 mScroller.abortAnimation(); 609 if (mScroller.springBack(mScrollX, mScrollY, 0, 628 if (mScroller.springBack(mScrollX, mScrollY, 0, getScrollRange(), 0, 0)) [all...] |
ScrollView.java | 69 private OverScroller mScroller; 94 * mScroller.isFinished() (flinging begins when the user lifts his finger). 208 mScroller = new OverScroller(getContext()); 508 * otherwise don't. mScroller.isFinished should be false when 511 mIsBeingDragged = !mScroller.isFinished(); 524 if (mScroller.springBack(mScrollX, mScrollY, 0, 0, 0, getScrollRange())) { 558 if (!mScroller.isFinished()) { 559 mScroller.abortAnimation(); 623 if (mScroller.springBack(mScrollX, mScrollY, 0, 0, 0, 636 if (mScroller.springBack(mScrollX, mScrollY, 0, 0, 0, getScrollRange())) [all...] |
Gallery.java | [all...] |
AbsListView.java | [all...] |
TextView.java | [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/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/support/v4/java/android/support/v4/view/ |
ViewPager.java | 95 private Scroller mScroller; 242 mScroller = new Scroller(context, sInterpolator); 541 mScroller.startScroll(sx, sy, dx, dy, duration); 885 if (!mScroller.isFinished()) { 887 final int newDuration = mScroller.getDuration() - mScroller.timePassed(); 888 mScroller.startScroll(scrollPos, 0, mCurItem * widthWithMargin, 0, newDuration); 928 if (DEBUG) Log.i(TAG, "computeScroll: finished=" + mScroller.isFinished()); 929 if (!mScroller.isFinished()) { 930 if (mScroller.computeScrollOffset()) [all...] |
/frameworks/base/core/java/android/view/ |
ViewRootImpl.java | 258 Scroller mScroller; [all...] |
/packages/apps/Calendar/src/com/android/calendar/ |
DayView.java | 590 private OverScroller mScroller; 716 mScroller = new OverScroller(context); [all...] |
/dalvik/hit/samples/ |
android.hprof | [all...] |