summaryrefslogtreecommitdiff
path: root/opengl/tests/gl_basic/gl_basic.cpp
diff options
context:
space:
mode:
authorSvet Ganov <svetoslavganov@google.com>2018-02-26 13:27:26 -0800
committerSvet Ganov <svetoslavganov@google.com>2018-02-26 13:27:28 -0800
commit616554c051842f3700c65197f69b7653883e5794 (patch)
tree413c3324b714cb7d2f1a6ecee1186a6ca78a90eb /opengl/tests/gl_basic/gl_basic.cpp
parent5058fa02a6bbb6b55fdaea54eae460618ff41252 (diff)
Use start/finish app ops in window manager - frameworks native
Add infrastructure to app ops to specify how to treat mode_default (for now only for startOp) allowing the caller to decide of this mode should be treated as success - this is useful if the caller already performed the default permission checks which determined that the caller would perform the operation if the mode is default. This way there is a record in the app ops history that this op was performed. This is now used by the window manager service which starts/finishes ops when an alert window is shown/hidden. The window manager allows adding the window if the mode is default but the caller has the fallback permission. In this case the alert window would be shown and we want that noted in the op history. Now the window manager properly starts/finishes alert window op when an alert window is shown/hidden. This is required to allow SystemUI to badge notifications from apps showing alert windows or add a dedicated notification if the app has no notifications. Test: cts-tradefed run cts-dev -m CtsWindowManagerDeviceTestCases Added android.server.wm.AppOpAlertWindowAppOpsTest cts-tradefed run cts-dev -m CtsPermissionTestCases -t android.permission.cts.AppOpsTest bug:64085448 Change-Id: I59658522bb521bb1e08009de046f52fef6f88687
Diffstat (limited to 'opengl/tests/gl_basic/gl_basic.cpp')
0 files changed, 0 insertions, 0 deletions