Home
last modified time | relevance | path

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

/aosp14/frameworks/base/core/tests/coretests/src/android/view/
H A 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()
/aosp14/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DTextPathActivity.java34 ScrollView scroller = new ScrollView(this); in onCreate() local
35 scroller.addView(new CustomTextView(this)); in onCreate()
36 setContentView(scroller); in onCreate()
/aosp14/frameworks/base/services/core/java/com/android/server/input/
H A DFocusEventDebugView.java91 final var scroller = new HorizontalScrollView(mContext); in FocusEventDebugView() local
92 scroller.addView(mPressedKeyContainer); in FocusEventDebugView()
93 scroller.setHorizontalScrollBarEnabled(false); in FocusEventDebugView()
94 scroller.addOnLayoutChangeListener( in FocusEventDebugView()
95 (view, l, t, r, b, ol, ot, or, ob) -> scroller.fullScroll(View.FOCUS_RIGHT)); in FocusEventDebugView()
96 scroller.setHorizontalFadingEdgeEnabled(true); in FocusEventDebugView()
97 addView(scroller, new LayoutParams(0, WRAP_CONTENT, 1)); in FocusEventDebugView()
/aosp14/frameworks/base/core/java/com/android/internal/widget/
H A 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()
H A 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()
/aosp14/frameworks/base/core/java/android/widget/
H A DNumberPicker.java873 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()
1144 if (scroller.isFinished()) { in computeScroll()
1145 onScrollerFinished(scroller); in computeScroll()
[all …]
H A DGallery.java1537 final Scroller scroller = mScroller;
1538 boolean more = scroller.computeScrollOffset();
1539 final int x = scroller.getCurrX();
H A DAbsListView.java4904 final OverScroller scroller = mScroller;
4913 && scroller.isScrollingInDirection(0, yvel)) {
5062 final OverScroller scroller = mScroller;
5063 boolean more = scroller.computeScrollOffset();
5064 final int y = scroller.getCurrY();
5137 final OverScroller scroller = mScroller; local
5138 if (scroller.computeScrollOffset()) {
5140 final int currY = scroller.getCurrY();
5147 int velocity = (int) scroller.getCurrVelocity();
5151 scroller.abortAnimation();
/aosp14/frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/
H A 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()
/aosp14/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/
H A 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()