summaryrefslogtreecommitdiff
path: root/libs/androidfw/ZipFileRO.cpp
diff options
context:
space:
mode:
author Jorge Gil <jorgegil@google.com> 2023-06-08 23:24:01 +0000
committer Jorge Gil <jorgegil@google.com> 2023-06-08 23:34:08 +0000
commitdfc99fb0b2e9f65e23dc9819ff16c402ffac995a (patch)
tree11c03ba0c9677d30c331f2bd0c9aea93b8eb1613 /libs/androidfw/ZipFileRO.cpp
parent2eb911d3cb56c4c1bfbd3bceaa794532ed68b39d (diff)
Use mDecorWindowContext to verify window resources
Fixes an issue where two different Contexts are used to create an AdditionalWindow and verify the SurfaceControl.Transactions on its SurfaceControl. The window is created using mDecorWindowContext, which may have an overriden density and may be different that the density of the display. Meanwhile, the verification phase was using the Context of ShellTestCase.java, which is a TestableContext whose density will be true to the display density. This CL changes that the verification phase to also use mDecorWindowContext. It also changes the Context object passed into the constructor of TestWindowDecoration from Instrumentation.getContext() to the TestableContext for consistency. Bug: 286259007 Test: `atest WindowDecorationTests`, then from settings change the display size, then running `atest WindowDecorationTests` again. Change-Id: I8d61f6836c7088efd5d77edf494066b2a2b12f8a
Diffstat (limited to 'libs/androidfw/ZipFileRO.cpp')
0 files changed, 0 insertions, 0 deletions