summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Galia Peycheva <galinap@google.com> 2022-01-27 11:18:20 +0100
committer Galia Peycheva <galinap@google.com> 2022-01-31 14:03:54 +0100
commit2277bc5399985d048b8651ff1bb197bda19f4f34 (patch)
tree14364f634004a0ecf60823065c7e5a321ac0c978 /api/api.go
parent78f3eb7af4a3340f4dfc7db4fb0d035954dec0e5 (diff)
Add SystemApi USE_UNRESTRICTED_KEEP_CLEAR_AREAS
Normal applications should have restrictions on how big/many keep-clear areas they can set. This is to prevent malicious apps from misusing the API and causing unexpected effects (like the Pip moving unexpectedly or too much around the screen). System apps, however, can be trusted to set any keep-clear areas. In this CL we introduce a new permission to allow system apps to set unrestricted keep-clear areas. We send two lists to Shell - one with restricted, the other one with unrestricted keep-clear areas. When moving floating windows away, the Shell can decide to always take into account unrestricted keep-clear areas and be more restrictive about the restricted ones. Bug: 209578131 Bug: 209577354 Test: atest CtsWindowManagerDeviceTestCases:KeepClearRectsTests Test: atest WindowStateTests Test: atest DisplayContentTests Change-Id: I68804c50fb81173b0795cf30dd71ea91abd02229
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions