summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorshawnlin <shawnlin@google.com>2020-04-14 14:34:16 +0800
committershawnlin <shawnlin@google.com>2020-04-17 17:14:26 +0800
commit4d2a2f4459c0a97de94d48b186cfaeaca67e21e2 (patch)
tree4ab90ffd5fa16846db343fa6301d37fc9c637cb6 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent3002b11fb6691bc7c734ed9e880efb64d63854c7 (diff)
Fixed incorrect size and position of a snapshot starting window in
waterfall device. The dst frame was calculated from scaling the cropped snapshot which copped out the system decorations(letterboxes, nav bar and sometimes status bar). But the src frame was set to the original uncropped snapshot which caused this issue. Now set the src frame to the cropped snapshot and we could just offset the dst frame to (0, 0) since we use a matrix to tranlate from a cropped frame to a scaled cropped frame. Bug: 151740296 Test: atest TaskSnapshotSurfaceTest Test: Enable waterfall overlay, launch an app and lock then unlock device Change-Id: I0ddc8aa480264d2e6d0e59bf4dc9bd09aa3e3041
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions