diff options
| author | 2024-08-21 14:26:30 -0700 | |
|---|---|---|
| committer | 2024-09-03 20:05:09 -0700 | |
| commit | 7b2419c73643f64f02aeb3830d1d5ad7f9e0da20 (patch) | |
| tree | b432ed4fe20f669f972449c5243b140ed0afbc16 /libs/androidfw/ResourceTimer.cpp | |
| parent | 897a3525d5f9e55308053250f6f486ed7f84ffed (diff) | |
Add WindowManagerWrapper class to window decor classes.
The ADDITIONAL_WINDOWS_ABOVE_STATUS_BAR flag currently breaks several
tests due to the app handle using the flag and requiring MONITOR_INPUT
permission due to being a spy window.
This CL changes the method of retrieval of the system WindowManager
service by using a wrapper of the system WindowManager rather than
fetching it directly when needed. This allows us to provide a mock for
tests so we can avoid running into the above permission issue.
Bug: 361411076
Test: atest DesktopModeWindowDecorationTests, HandleMenuTest,
AdditionalSystemViewContainerTest, manual
Flag: EXEMPT bugfix
Change-Id: I3a45a46fe980f409cb8392a2a508ca3c7fb26c89
Diffstat (limited to 'libs/androidfw/ResourceTimer.cpp')
0 files changed, 0 insertions, 0 deletions