Home
last modified time | relevance | path

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

/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/widget/
DRecyclerViewActivity.java151 int scrolled = 0; in scrollVerticallyBy() local
155 while (scrolled > dy) { in scrollVerticallyBy()
158 final int scrollBy = Math.min(scrolled - dy, hangingTop); in scrollVerticallyBy()
159 scrolled -= scrollBy; in scrollVerticallyBy()
161 if (mFirstPosition > 0 && scrolled > dy) { in scrollVerticallyBy()
175 while (scrolled < dy) { in scrollVerticallyBy()
179 final int scrollBy = -Math.min(dy - scrolled, hangingBottom); in scrollVerticallyBy()
180 scrolled -= scrollBy; in scrollVerticallyBy()
182 if (scrolled < dy && state.getItemCount() > mFirstPosition + getChildCount()) { in scrollVerticallyBy()
195 return scrolled; in scrollVerticallyBy()
DAnimatedRecyclerView.java526 int scrolled = 0; in scrollVerticallyBy() local
530 while (scrolled > dy) { in scrollVerticallyBy()
533 final int scrollBy = Math.min(scrolled - dy, hangingTop); in scrollVerticallyBy()
534 scrolled -= scrollBy; in scrollVerticallyBy()
536 if (mFirstPosition > 0 && scrolled > dy) { in scrollVerticallyBy()
550 while (scrolled < dy) { in scrollVerticallyBy()
553 final int scrollBy = -Math.min(dy - scrolled, hangingBottom); in scrollVerticallyBy()
554 scrolled -= scrollBy; in scrollVerticallyBy()
556 if (scrolled < dy && state.getItemCount() > mFirstPosition + getChildCount()) { in scrollVerticallyBy()
569 return scrolled; in scrollVerticallyBy()
/frameworks/support/wear/src/main/java/androidx/wear/widget/
DWearableLinearLayoutManager.java97 int scrolled = super.scrollVerticallyBy(dy, recycler, state); in scrollVerticallyBy() local
100 return scrolled; in scrollVerticallyBy()
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
DGridLayoutManagerBaseConfigSetTest.java95 int scrolled = mGlm.scrollBy(scrollStep, in scrollBackAndPreservePositionsTest()
97 globalScrollPosition += scrolled; in scrollBackAndPreservePositionsTest()
98 if (scrolled == 0) { in scrollBackAndPreservePositionsTest()
/frameworks/layoutlib/bridge/tests/res/testApp/MyApplication/build/intermediates/classes/debug/com/android/layoutlib/test/myapplication/
DR$layout.class ... four_corners public static final int layout public static final int scrolled public static final int shadows_test public static final int themable_widget_layout ...
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DUiScrollable.java272 boolean scrolled = scrollForward(); in scrollIntoView()
276 if (!scrolled) { in scrollIntoView()
/frameworks/base/core/java/com/android/internal/widget/
DLinearLayoutManager.java1310 final int scrolled = absDy > consumed ? layoutDirection * consumed : dy; in scrollBy() local
1311 mOrientationHelper.offsetChildren(-scrolled); in scrollBy()
1313 Log.d(TAG, "scroll req: " + dy + " scrolled: " + scrolled); in scrollBy()
1315 mLayoutState.mLastScrollDelta = scrolled; in scrollBy()
1316 return scrolled; in scrollBy()
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/
DLinearLayoutManager.java1338 final int scrolled = absDy > consumed ? layoutDirection * consumed : dy; in scrollBy() local
1339 mOrientationHelper.offsetChildren(-scrolled); in scrollBy()
1341 Log.d(TAG, "scroll req: " + dy + " scrolled: " + scrolled); in scrollBy()
1343 mLayoutState.mLastScrollDelta = scrolled; in scrollBy()
1344 return scrolled; in scrollBy()
DStaggeredGridLayoutManager.java1783 int scrolled = layoutState.mStartLine - getMaxStart(layoutState.mStartLine);
1785 if (scrolled < 0) {
1788 line = layoutState.mEndLine - Math.min(scrolled, layoutState.mAvailable);
1793 int scrolled = getMinEnd(layoutState.mEndLine) - layoutState.mEndLine;
1795 if (scrolled < 0) {
1798 line = layoutState.mStartLine + Math.min(scrolled, layoutState.mAvailable);
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/widget/
DGridWidgetTest.java1761 final boolean[] scrolled = new boolean[1]; in testScrollAfterRequestLayout()
1765 if (dx != 0) scrolled[0] = true; in testScrollAfterRequestLayout()
1776 assertFalse(scrolled[0]); in testScrollAfterRequestLayout()
1798 final boolean[] scrolled = new boolean[1]; in testScrollAfterItemAnimator()
1802 if (dx != 0) scrolled[0] = true; in testScrollAfterItemAnimator()
1813 assertFalse(scrolled[0]); in testScrollAfterItemAnimator()
3039 final boolean[] scrolled = new boolean[]{false}; in testFocusableViewAvailable()
3044 scrolled[0] = true; in testFocusableViewAvailable()
3056 assertFalse("GridView should not be scrolled", scrolled[0]); in testFocusableViewAvailable()
/frameworks/base/core/java/android/view/
DViewRootImpl.java7771 final boolean scrolled = scrollToRectOrFocus(rectangle, immediate); in requestChildRectangleOnScreen()
7780 return scrolled; in requestChildRectangleOnScreen()