summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorMatt Casey <mrcasey@google.com>2021-03-02 16:42:50 -0500
committerMatt Casey <mrcasey@google.com>2021-03-02 17:02:15 -0500
commitd4d903104e8e0a308d59e848e2b820cd4ad88e02 (patch)
treec52ec9f47b98e1f6e2e27afd9deff5d39af2f3c5 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentb7f82de1f14e969c6936d7336ba97c7253cbd866 (diff)
Add bidirectional scroll capture in infinite scroll.
Previously if we never hit a boundary, we would only capture downard. This captures above and below in this case. This has to be done by only requesting adjacent blocks, so the algorithm is: - Request tiles upward until we hit the top or we get "enough" headroom for the infinite scroll case. - If we hit the top, switch directions, acquire images until we hit max tiles or the bottom, then finish. - If we didn't hit the top, Switch directions and see if you can get the max tiles in the down direction (if so, finish). - If we hit the bottom before getting max tiles, switch directions again and go up until we hit max tiles or the top then finish. Test: Run scroll capture in infinite scroll, run it near the top of a finite scroll view and near the bottom, observe output. Enjoy. Bug: 181562681 Change-Id: Ibe2a0f39ea82789003a30924a9e7f55f0fa37a71
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions