From 399e06d648a15d2e2239cc3e66a270e6212a7b4d Mon Sep 17 00:00:00 2001 From: Peiyong Lin Date: Wed, 1 Dec 2021 23:05:59 +0000 Subject: 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 --- data/etc/com.android.systemui.xml | 1 + 1 file changed, 1 insertion(+) (limited to 'data/etc/com.android.systemui.xml') diff --git a/data/etc/com.android.systemui.xml b/data/etc/com.android.systemui.xml index f2a33de008d6..dbc7fdd30f7c 100644 --- a/data/etc/com.android.systemui.xml +++ b/data/etc/com.android.systemui.xml @@ -71,5 +71,6 @@ + -- cgit v1.2.3-59-g8ed1b