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
Loading
Please register or sign in to comment