summaryrefslogtreecommitdiff
path: root/opengl/java
diff options
context:
space:
mode:
author Biswarup Pal <biswarupp@google.com> 2025-01-31 13:09:44 +0000
committer Biswarup Pal <biswarupp@google.com> 2025-02-06 17:48:20 +0000
commitb1608a954f53515c90b500b93b5164b3365d6c55 (patch)
tree9191f1dc6805569345ebecd18ec3b2845faecb13 /opengl/java
parent3dcc45555519cc0a27c313bbb0fa251d7ae750ac (diff)
Add constraints for enabling RROs
This change introduces hidden API's for setting constraints for enabling RROs. Currently, the constraints are of the following types: 1. Display id constraint: This can be set for a RRO if the RRO is desired to be applied on only the apps running on that specific display. 2. Device id constraint: This can be set for a RRO if the RRO is desired to be applied on only the apps running on that specific device (for apps running on the default device, this would be Context#DEVICE_ID_DEFAULT, and for apps running on a virtual device, this would be the id of the virtual device). An overlay would be enabled when any of the given constraints are met. Constraints can only be set while enabling a RRO. Re-enabling a RRO with different constraints updates the constraints for the RRO. This change facilitates the writing of the constraints for RROs into the correspodning idmap files, and also persists them as part of the settings used by OverlayManagerService. The filtering of resource overlays based on constraints during resource resolution will be done in a follow-up CL. Test: atest FrameworksServicesTests Test: atest idmap2_tests Test: atest libandroidfw_tests Test: atest CtsResourcesTestCases Bug: 371801644 Flag: android.content.res.rro_constraints Change-Id: I0cad58bfb5b9b90105e2ef839c58147b9a50767c
Diffstat (limited to 'opengl/java')
0 files changed, 0 insertions, 0 deletions