Home
last modified time | relevance | path

Searched refs:scrollBounds (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/core/tests/coretests/src/com/android/internal/view/
DScrollViewCaptureHelperTest.java122 Rect scrollBounds = svc.onComputeScrollBounds(mTarget); in onPrepareForStart() local
123 svc.onPrepareForStart(mTarget, scrollBounds); in onPrepareForStart()
132 Rect scrollBounds = svc.onComputeScrollBounds(mTarget); in onScrollRequested_up_fromTop() local
133 svc.onPrepareForStart(mTarget, scrollBounds); in onScrollRequested_up_fromTop()
135 assertTrue(scrollBounds.height() > CAPTURE_HEIGHT); in onScrollRequested_up_fromTop()
137 Rect request = new Rect(0, -CAPTURE_HEIGHT, scrollBounds.width(), 0); in onScrollRequested_up_fromTop()
140 scrollBounds, request); in onScrollRequested_up_fromTop()
154 Rect scrollBounds = svc.onComputeScrollBounds(mTarget); in onScrollRequested_down_fromTop() local
155 svc.onPrepareForStart(mTarget, scrollBounds); in onScrollRequested_down_fromTop()
157 assertTrue(scrollBounds.height() > CAPTURE_HEIGHT); in onScrollRequested_down_fromTop()
[all …]
DRecyclerViewCaptureHelperTest.java114 Rect scrollBounds = rvc.onComputeScrollBounds(mTarget); in onScrollRequested_up_fromTop() local
115 rvc.onPrepareForStart(mTarget, scrollBounds); in onScrollRequested_up_fromTop()
117 assertThat(scrollBounds.height()).isGreaterThan(CAPTURE_HEIGHT); in onScrollRequested_up_fromTop()
119 Rect request = new Rect(0, -CAPTURE_HEIGHT, scrollBounds.width(), 0); in onScrollRequested_up_fromTop()
122 scrollBounds, request); in onScrollRequested_up_fromTop()
136 Rect scrollBounds = rvc.onComputeScrollBounds(mTarget); in onScrollRequested_down_fromTop() local
137 rvc.onPrepareForStart(mTarget, scrollBounds); in onScrollRequested_down_fromTop()
139 assertThat(scrollBounds.height()).isGreaterThan(CAPTURE_HEIGHT); in onScrollRequested_down_fromTop()
142 Rect request = new Rect(0, WINDOW_HEIGHT, scrollBounds.width(), in onScrollRequested_down_fromTop()
145 ScrollResult scrollResult = rvc.onScrollRequested(mTarget, scrollBounds, request); in onScrollRequested_down_fromTop()
[all …]
DScrollCaptureViewSupportTest.java35 public void onPrepareForStart(@NonNull View view, @NonNull Rect scrollBounds) {
40 public ScrollResult onScrollRequested(@NonNull View view, @NonNull Rect scrollBounds,
72 Rect scrollBounds = mViewHelper.onComputeScrollBounds(target); in testComputeScrollBounds() local
74 new Rect(0, 0, 200, 200), scrollBounds); in testComputeScrollBounds()
78 scrollBounds = mViewHelper.onComputeScrollBounds(target); in testComputeScrollBounds()
80 new Rect(25, 50, 175, 150), scrollBounds); in testComputeScrollBounds()
/frameworks/base/core/java/com/android/internal/view/
DRecyclerViewCaptureHelper.java47 public void onPrepareForStart(@NonNull ViewGroup view, Rect scrollBounds) { in onPrepareForStart() argument
58 public ScrollResult onScrollRequested(@NonNull ViewGroup recyclerView, Rect scrollBounds, in onScrollRequested() argument
73 requestedContainerBounds.offset(scrollBounds.left, scrollBounds.top); in onScrollRequested()
105 Rect recyclerLocalVisible = new Rect(scrollBounds); in onScrollRequested()
113 available.offset(-scrollBounds.left, -scrollBounds.top); in onScrollRequested()
DScrollViewCaptureHelper.java46 public void onPrepareForStart(@NonNull ViewGroup view, Rect scrollBounds) { in onPrepareForStart() argument
58 public ScrollResult onScrollRequested(@NonNull ViewGroup view, Rect scrollBounds, in onScrollRequested() argument
114 requestedContainerBounds.offset(scrollBounds.left, scrollBounds.top); in onScrollRequested()
165 available.offset(-scrollBounds.left, -scrollBounds.top); in onScrollRequested()
DListViewCaptureHelper.java42 public void onPrepareForStart(@NonNull ListView view, Rect scrollBounds) { in onPrepareForStart() argument
53 public ScrollResult onScrollRequested(@NonNull ListView listView, Rect scrollBounds, in onScrollRequested() argument
56 Log.d(TAG, "onScrollRequested(scrollBounds=" + scrollBounds + ", " in onScrollRequested()
71 transformFromRequestToContainer(mScrollDelta, scrollBounds, requestRect); in onScrollRequested()
106 transformFromRequestToContainer(mScrollDelta, scrollBounds, requestRect)); in onScrollRequested()
111 mScrollDelta, scrollBounds, requestedContainerBounds); in onScrollRequested()
DScrollCaptureViewHelper.java99 void onPrepareForStart(@NonNull V view, @NonNull Rect scrollBounds); in onPrepareForStart() argument
117 ScrollResult onScrollRequested(@NonNull V view, @NonNull Rect scrollBounds, in onScrollRequested() argument
/frameworks/base/core/java/android/view/
DScrollCaptureSearchResults.java146 public void accept(Rect scrollBounds) { in accept() argument
150 mExecutor.execute(() -> consume(scrollBounds)); in accept()
153 private void consume(Rect scrollBounds) { in consume() argument
157 if (!nullOrEmpty(scrollBounds)) { in consume()
158 mTarget.setScrollBounds(scrollBounds); in consume()
DScrollCaptureSession.java42 public ScrollCaptureSession(@NonNull Surface surface, @NonNull Rect scrollBounds, in ScrollCaptureSession() argument
45 mScrollBounds = requireNonNull(scrollBounds); in ScrollCaptureSession()
DScrollCaptureTarget.java105 public void setScrollBounds(@Nullable Rect scrollBounds) { in setScrollBounds() argument
106 mScrollBounds = Rect.copyOrNull(scrollBounds); in setScrollBounds()
/frameworks/base/core/tests/coretests/src/android/view/
DTestScrollCaptureCallback.java62 void completeSearchRequest(Rect scrollBounds) { in completeSearchRequest() argument
64 mSearchConsumer.accept(scrollBounds); in completeSearchRequest()
DScrollCaptureSearchResultsTest.java369 public void setScrollBounds(@Nullable Rect scrollBounds) { in setScrollBounds() argument
370 mScrollBounds = scrollBounds; in setScrollBounds()