Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DPagedTileLayoutTest.kt30 private lateinit var scroller: Scroller variable in com.android.systemui.qs.PagedTileLayoutTest
39 scroller = pageTileLayout.mScroller in setUp()
53 assertThat(scroller.isFinished).isFalse() // aka we're scrolling in scrollsRight_afterRightScrollActionTriggered()
54 assertThat(scroller.finalX).isEqualTo(scroller.currX + PAGE_WIDTH) in scrollsRight_afterRightScrollActionTriggered()
63 assertThat(scroller.isFinished).isFalse() // aka we're scrolling in scrollsLeft_afterLeftScrollActionTriggered()
64 assertThat(scroller.finalX).isEqualTo(scroller.currX - PAGE_WIDTH) in scrollsLeft_afterLeftScrollActionTriggered()
/frameworks/base/core/tests/coretests/src/android/view/
DBigCache.java58 final ScrollView scroller = new ScrollView(this); in onCreate() local
59 scroller.setLayoutParams(new ViewGroup.LayoutParams( in onCreate()
64 scroller.addView(testBed); in onCreate()
66 setContentView(scroller); in onCreate()
/frameworks/base/tests/graphics/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/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.java4774 final OverScroller scroller = mScroller; in run() local
4776 if (scroller.computeScrollOffset()) { in run()
4777 final int x = scroller.getCurrX(); in run()
4778 final int y = scroller.getCurrY(); in run()
4824 final int vel = (int) scroller.getCurrVelocity(); in run()
4839 if ((velX != 0 || overscrollX == x || scroller.getFinalX() == 0) in run()
4840 && (velY != 0 || overscrollY == y || scroller.getFinalY() == 0)) { in run()
4841 scroller.abortAnimation(); in run()
4859 if (scroller.isFinished() || !fullyConsumedAny) { in run()
/frameworks/base/services/core/java/com/android/server/input/debug/
DFocusEventDebugView.java177 final var scroller = new HorizontalScrollView(mContext); in handleUpdateShowKeyPresses() local
178 scroller.addView(mPressedKeyContainer); in handleUpdateShowKeyPresses()
179 scroller.setHorizontalScrollBarEnabled(false); in handleUpdateShowKeyPresses()
180 scroller.addOnLayoutChangeListener( in handleUpdateShowKeyPresses()
181 (view, l, t, r, b, ol, ot, or, ob) -> scroller.fullScroll(View.FOCUS_RIGHT)); in handleUpdateShowKeyPresses()
182 scroller.setHorizontalFadingEdgeEnabled(true); in handleUpdateShowKeyPresses()
186 addView(scroller, scrollerLayoutParams); in handleUpdateShowKeyPresses()
194 modifierLayoutParams.addRule(LEFT_OF, scroller.getId()); in handleUpdateShowKeyPresses()
/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/core/java/android/widget/
DNumberPicker.java872 private boolean moveToFinalScrollerPosition(Scroller scroller) { in moveToFinalScrollerPosition() argument
873 scroller.forceFinished(true); in moveToFinalScrollerPosition()
874 int amountToScroll = scroller.getFinalY() - scroller.getCurrY(); in moveToFinalScrollerPosition()
1130 Scroller scroller = mFlingScroller; in computeScroll() local
1131 if (scroller.isFinished()) { in computeScroll()
1132 scroller = mAdjustScroller; in computeScroll()
1133 if (scroller.isFinished()) { in computeScroll()
1137 scroller.computeScrollOffset(); in computeScroll()
1138 int currentScrollerY = scroller.getCurrY(); in computeScroll()
1140 mPreviousScrollerY = scroller.getStartY(); in computeScroll()
[all …]
DGallery.java1537 final Scroller scroller = mScroller;
1538 boolean more = scroller.computeScrollOffset();
1539 final int x = scroller.getCurrX();
DAbsListView.java4941 final OverScroller scroller = mScroller;
4950 && scroller.isScrollingInDirection(0, yvel)) {
5099 final OverScroller scroller = mScroller;
5100 boolean more = scroller.computeScrollOffset();
5101 final int y = scroller.getCurrY();
5179 final OverScroller scroller = mScroller; local
5180 if (scroller.computeScrollOffset()) {
5182 final int currY = scroller.getCurrY();
5189 int velocity = (int) scroller.getCurrVelocity();
5193 scroller.abortAnimation();
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/
DActivityTestMain.java655 ScrollView scroller = new ScrollView(this); in scrollWrap() local
656 scroller.addView(view, new ScrollView.LayoutParams(ScrollView.LayoutParams.MATCH_PARENT, in scrollWrap()
658 return scroller; in scrollWrap()