diff options
| author | Peiyong Lin <lpy@google.com> | 2021-12-01 23:05:59 +0000 |
|---|---|---|
| committer | Peiyong Lin <lpy@google.com> | 2022-01-21 09:18:08 +0000 |
| commit | 399e06d648a15d2e2239cc3e66a270e6212a7b4d (patch) | |
| tree | 82a6d1f6c17a4b4a08841a95a93542455dddf1fb /core/java/android/inputmethodservice/InputMethodService.java | |
| parent | 53aa02dd8928c85de1433de0d5ea3d4021fac005 (diff) | |
Raise SurfaceControlFpsListener to System API.
Previously the SurfaceControlFpsListener is a hidden API which only
allows platform code access. This patch renames it to follow the
callback convention and raises it to be a system API in order to allow
system applications to access the FPS count of a task and its children.
The FPS count access is guarded by a permission ACCESS_FPS_COUNTER.
To follow the API convention and properly check the permission, the
register/unregister callback APIs are moved to WindowManager and
permission check is done in the System Server.
Minor: Rename to SurfaceControlFpsCallback to TaskFpsCallback in order
to follow the API naming convention.
Bug: b/199920468
CTS-Coverage-Bug: b/199920468
Test: atest TaskFpsCallbackTest
Change-Id: I6b0a0ad6500278b3da09059e9c2ede28d9a743aa
Diffstat (limited to 'core/java/android/inputmethodservice/InputMethodService.java')
0 files changed, 0 insertions, 0 deletions
