/frameworks/base/core/tests/coretests/src/com/android/internal/view/ |
D | ScrollViewCaptureHelperTest.java | 122 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 …]
|
D | RecyclerViewCaptureHelperTest.java | 114 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 …]
|
D | ScrollCaptureViewSupportTest.java | 35 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/ |
D | RecyclerViewCaptureHelper.java | 47 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()
|
D | ScrollViewCaptureHelper.java | 46 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()
|
D | ListViewCaptureHelper.java | 42 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()
|
D | ScrollCaptureViewHelper.java | 99 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/ |
D | ScrollCaptureSearchResults.java | 146 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()
|
D | ScrollCaptureSession.java | 42 public ScrollCaptureSession(@NonNull Surface surface, @NonNull Rect scrollBounds, in ScrollCaptureSession() argument 45 mScrollBounds = requireNonNull(scrollBounds); in ScrollCaptureSession()
|
D | ScrollCaptureTarget.java | 105 public void setScrollBounds(@Nullable Rect scrollBounds) { in setScrollBounds() argument 106 mScrollBounds = Rect.copyOrNull(scrollBounds); in setScrollBounds()
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | TestScrollCaptureCallback.java | 62 void completeSearchRequest(Rect scrollBounds) { in completeSearchRequest() argument 64 mSearchConsumer.accept(scrollBounds); in completeSearchRequest()
|
D | ScrollCaptureSearchResultsTest.java | 369 public void setScrollBounds(@Nullable Rect scrollBounds) { in setScrollBounds() argument 370 mScrollBounds = scrollBounds; in setScrollBounds()
|