Home
last modified time | relevance | path

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

/frameworks/base/core/java/com/android/internal/view/
DWebViewCaptureHelper.java61 int scrollDelta = view.getScrollY() - mOriginScrollY; in onScrollRequested() local
66 result.scrollDelta = scrollDelta; in onScrollRequested()
76 mRequestWebViewLocal.offset(0, -scrollDelta); in onScrollRequested()
87 scrollDelta = view.getScrollY() - mOriginScrollY; in onScrollRequested()
89 result.scrollDelta = scrollDelta; in onScrollRequested()
93 result.availableArea.offset(0, result.scrollDelta); in onScrollRequested()
DScrollViewCaptureHelper.java101 int scrollDelta = view.getScrollY() - mStartScrollY; in onScrollRequested() local
105 result.scrollDelta = scrollDelta; in onScrollRequested()
122 requestedContainerBounds.offset(0, -scrollDelta); in onScrollRequested()
152 scrollDelta = view.getScrollY() - mStartScrollY; in onScrollRequested()
153 result.scrollDelta = scrollDelta; in onScrollRequested()
179 available.offset(0, scrollDelta); in onScrollRequested()
DScrollCaptureViewHelper.java54 public int scrollDelta; // visible top offset from start field in ScrollCaptureViewHelper.ScrollResult
61 + ", scrollDelta=" + scrollDelta in toString()
DListViewCaptureHelper.java70 result.scrollDelta = mScrollDelta; in onScrollRequested()
109 result.scrollDelta = mScrollDelta; in onScrollRequested()
DRecyclerViewCaptureHelper.java71 result.scrollDelta = mScrollDelta; in onScrollRequested()
117 result.scrollDelta = mScrollDelta; in onScrollRequested()
DScrollCaptureViewSupport.java273 viewCaptureArea.offset(0, -scrollResult.scrollDelta); in onScrollResult()
/frameworks/base/packages/CredentialManager/horologist/src/com/google/android/horologist/compose/rotaryinput/
DHaptics.kt83 public fun handleScrollHaptic(scrollDelta: Float) in handleScrollHaptic()
89 public fun handleSnapHaptic(scrollDelta: Float) in handleScrollHaptic()
112 override fun handleScrollHaptic(scrollDelta: Float) { in handleScrollHaptic()
113 if ((scrollDelta > 0 && !scrollableState.canScrollForward) || in handleScrollHaptic()
114 (scrollDelta < 0 && !scrollableState.canScrollBackward) in handleScrollHaptic()
122 currScrollPosition += scrollDelta in handleScrollHaptic()
132 override fun handleSnapHaptic(scrollDelta: Float) { in handleScrollHaptic()
133 if ((scrollDelta > 0 && !scrollableState.canScrollForward) || in handleScrollHaptic()
134 (scrollDelta < 0 && !scrollableState.canScrollBackward) in handleScrollHaptic()
200 override fun handleScrollHaptic(scrollDelta: Float) { in <lambda>()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/view/
DAbsCaptureHelperTest.java184 assertThat(scrollResult.scrollDelta).isEqualTo((WINDOW_HEIGHT / 2) + (CAPTURE_HEIGHT / 2)); in onScrollRequested_down_fromTop()
197 assertThat(scrollResult.scrollDelta).isEqualTo( in onScrollRequested_up_fromMiddle()
211 assertThat(scrollResult.scrollDelta).isEqualTo( in onScrollRequested_down_fromMiddle()
225 assertThat(scrollResult.scrollDelta).isEqualTo( in onScrollRequested_up_fromBottom()
259 assertThat(scrollResult.scrollDelta).isEqualTo(0); in onScrollRequested_offTopEdge()
275 assertThat(scrollResult.scrollDelta).isEqualTo(0); in onScrollRequested_offBottomEdge()
341 localAvailable.offset(0, -result.scrollDelta); // make relative to view top in assertAvailableAreaCompletelyVisible()
350 requested.offset(0, -result.scrollDelta); // make relative in assertAvailableAreaPartiallyVisible()
/frameworks/base/core/java/android/widget/
DHorizontalScrollView.java1270 int scrollDelta = computeScrollDeltaToGetChildRectOnScreen(mTempRect); in arrowScroll() local
1271 doScrollX(scrollDelta); in arrowScroll()
1275 int scrollDelta = maxJump; in arrowScroll() local
1277 if (direction == View.FOCUS_LEFT && getScrollX() < scrollDelta) { in arrowScroll()
1278 scrollDelta = getScrollX(); in arrowScroll()
1286 scrollDelta = daRight - screenRight; in arrowScroll()
1289 if (scrollDelta == 0) { in arrowScroll()
1292 doScrollX(direction == View.FOCUS_RIGHT ? scrollDelta : -scrollDelta); in arrowScroll()
1547 int scrollDelta = computeScrollDeltaToGetChildRectOnScreen(mTempRect); in scrollToChild() local
1549 if (scrollDelta != 0) { in scrollToChild()
[all …]
DScrollView.java1354 int scrollDelta = computeScrollDeltaToGetChildRectOnScreen(mTempRect); in arrowScroll() local
1355 doScrollY(scrollDelta); in arrowScroll()
1359 int scrollDelta = maxJump; in arrowScroll() local
1361 if (direction == View.FOCUS_UP && getScrollY() < scrollDelta) { in arrowScroll()
1362 scrollDelta = getScrollY(); in arrowScroll()
1368 scrollDelta = daBottom - screenBottom; in arrowScroll()
1372 if (scrollDelta == 0) { in arrowScroll()
1375 doScrollY(direction == View.FOCUS_DOWN ? scrollDelta : -scrollDelta); in arrowScroll()
1646 int scrollDelta = computeScrollDeltaToGetChildRectOnScreen(mTempRect); in scrollToDescendant() local
1648 if (scrollDelta != 0) { in scrollToDescendant()
[all …]