Home
last modified time | relevance | path

Searched refs:scroller (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/view/
DBigCache.java61 final ScrollView scroller = new ScrollView(this); in onCreate() local
62 scroller.setLayoutParams(new ViewGroup.LayoutParams( in onCreate()
67 scroller.addView(testBed); in onCreate()
69 setContentView(scroller); in onCreate()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DTextPathActivity.java34 ScrollView scroller = new ScrollView(this); in onCreate() local
35 scroller.addView(new CustomTextView(this)); in onCreate()
36 setContentView(scroller); in onCreate()
/frameworks/support/core-ui/java/android/support/v4/widget/
DAutoScrollHelper.java491 final ClampedScroller scroller = mScroller; in shouldAnimate() local
492 final int verticalDirection = scroller.getVerticalDirection(); in shouldAnimate()
493 final int horizontalDirection = scroller.getHorizontalDirection(); in shouldAnimate()
698 final ClampedScroller scroller = mScroller; in run() local
699 if (scroller.isFinished() || !shouldAnimate()) { in run()
709 scroller.computeScrollDelta(); in run()
711 final int deltaX = scroller.getDeltaX(); in run()
712 final int deltaY = scroller.getDeltaY(); in run()
/frameworks/base/core/java/com/android/internal/widget/
DAutoScrollHelper.java491 final ClampedScroller scroller = mScroller; in shouldAnimate() local
492 final int verticalDirection = scroller.getVerticalDirection(); in shouldAnimate()
493 final int horizontalDirection = scroller.getHorizontalDirection(); in shouldAnimate()
695 final ClampedScroller scroller = mScroller; in run() local
696 if (scroller.isFinished() || !shouldAnimate()) { in run()
706 scroller.computeScrollDelta(); in run()
708 final int deltaX = scroller.getDeltaX(); in run()
709 final int deltaY = scroller.getDeltaY(); in run()
DRecyclerView.java4652 final OverScroller scroller = mScroller; in run() local
4654 if (scroller.computeScrollOffset()) { in run()
4655 final int x = scroller.getCurrX(); in run()
4656 final int y = scroller.getCurrY(); in run()
4702 final int vel = (int) scroller.getCurrVelocity(); in run()
4717 if ((velX != 0 || overscrollX == x || scroller.getFinalX() == 0) in run()
4718 && (velY != 0 || overscrollY == y || scroller.getFinalY() == 0)) { in run()
4719 scroller.abortAnimation(); in run()
4737 if (scroller.isFinished() || !fullyConsumedAny) { in run()
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/app/
DFragmentLayoutSupport.java212 ScrollView scroller = new ScrollView(getActivity()); in onCreateView() local
217 scroller.addView(text); in onCreateView()
219 return scroller; in onCreateView()
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DRecyclerViewFastScrollerTest.java265 FastScroller scroller = (FastScroller) view.getItemDecorationAt(0); in inflationTest() local
266 assertNotNull(scroller.getHorizontalThumbDrawable()); in inflationTest()
267 assertNotNull(scroller.getHorizontalTrackDrawable()); in inflationTest()
268 assertNotNull(scroller.getVerticalThumbDrawable()); in inflationTest()
269 assertNotNull(scroller.getVerticalTrackDrawable()); in inflationTest()
/frameworks/base/core/java/android/widget/
DNumberPicker.java837 private boolean moveToFinalScrollerPosition(Scroller scroller) { in moveToFinalScrollerPosition() argument
838 scroller.forceFinished(true); in moveToFinalScrollerPosition()
839 int amountToScroll = scroller.getFinalY() - scroller.getCurrY(); in moveToFinalScrollerPosition()
1092 Scroller scroller = mFlingScroller; in computeScroll() local
1093 if (scroller.isFinished()) { in computeScroll()
1094 scroller = mAdjustScroller; in computeScroll()
1095 if (scroller.isFinished()) { in computeScroll()
1099 scroller.computeScrollOffset(); in computeScroll()
1100 int currentScrollerY = scroller.getCurrY(); in computeScroll()
1102 mPreviousScrollerY = scroller.getStartY(); in computeScroll()
[all …]
DGallery.java1518 final Scroller scroller = mScroller;
1519 boolean more = scroller.computeScrollOffset();
1520 final int x = scroller.getCurrX();
DAbsListView.java4585 final OverScroller scroller = mScroller;
4594 && scroller.isScrollingInDirection(0, yvel)) {
4732 final OverScroller scroller = mScroller;
4733 boolean more = scroller.computeScrollOffset();
4734 final int y = scroller.getCurrY();
4807 final OverScroller scroller = mScroller; local
4808 if (scroller.computeScrollOffset()) {
4810 final int currY = scroller.getCurrY();
4817 int velocity = (int) scroller.getCurrVelocity();
4821 scroller.abortAnimation();
/frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/
DDpiTestActivity.java146 ScrollView scroller = new ScrollView(this); in scrollWrap() local
147 scroller.addView(view, new ScrollView.LayoutParams(ScrollView.LayoutParams.MATCH_PARENT, in scrollWrap()
149 return scroller; in scrollWrap()
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/
DActivityTestMain.java588 ScrollView scroller = new ScrollView(this); in scrollWrap() local
589 scroller.addView(view, new ScrollView.LayoutParams(ScrollView.LayoutParams.MATCH_PARENT, in scrollWrap()
591 return scroller; in scrollWrap()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
DTaskStackViewTouchHandler.java111 TaskStackViewScroller scroller) { in TaskStackViewTouchHandler() argument
116 mScroller = scroller; in TaskStackViewTouchHandler()
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DRecyclerView.java3601 final OverScroller scroller = mViewFlinger.mScroller; in fillRemainingScrollValues() local
3602 state.mRemainingScrollHorizontal = scroller.getFinalX() - scroller.getCurrX(); in fillRemainingScrollValues()
3603 state.mRemainingScrollVertical = scroller.getFinalY() - scroller.getCurrY(); in fillRemainingScrollValues()
4835 final OverScroller scroller = mScroller; in run() local
4837 if (scroller.computeScrollOffset()) { in run()
4839 final int x = scroller.getCurrX(); in run()
4840 final int y = scroller.getCurrY(); in run()
4896 final int vel = (int) scroller.getCurrVelocity(); in run()
4911 if ((velX != 0 || overscrollX == x || scroller.getFinalX() == 0) in run()
4912 && (velY != 0 || overscrollY == y || scroller.getFinalY() == 0)) { in run()
[all …]
DStaggeredGridLayoutManager.java2033 LinearSmoothScroller scroller = new LinearSmoothScroller(recyclerView.getContext());
2034 scroller.setTargetPosition(position);
2035 startSmoothScroll(scroller);