From 27328afb20f90c091d421598186152f09f6f74c1 Mon Sep 17 00:00:00 2001 From: Vishnu Nair Date: Thu, 1 Dec 2022 17:28:42 -0800 Subject: [PATCH] Add WAKEUP_SURFACE_FLINGER permission Add a new permission so sysui and launcher can provide a hint to SurfaceFlinger to wake up earlier via eEarlyWakeupStart & eEarlyWakeupEnd transaction flags. The flags can be used to indicate the composition is likely to be expensive (blur, corners, etc). Test: presubmit Fixes: 261103978 Change-Id: I80ef9cb0e3251f28db251953fc30d36c30818c53 --- core/api/system-current.txt | 1 + core/res/AndroidManifest.xml | 9 +++++++++ libs/WindowManager/Shell/AndroidManifest.xml | 1 + 3 files changed, 11 insertions(+) diff --git a/core/api/system-current.txt b/core/api/system-current.txt index eac990d671cd5..76efe8771267e 100644 --- a/core/api/system-current.txt +++ b/core/api/system-current.txt @@ -352,6 +352,7 @@ package android { field public static final String USE_COLORIZED_NOTIFICATIONS = "android.permission.USE_COLORIZED_NOTIFICATIONS"; field public static final String USE_RESERVED_DISK = "android.permission.USE_RESERVED_DISK"; field public static final String UWB_PRIVILEGED = "android.permission.UWB_PRIVILEGED"; + field public static final String WAKEUP_SURFACE_FLINGER = "android.permission.WAKEUP_SURFACE_FLINGER"; field public static final String WHITELIST_AUTO_REVOKE_PERMISSIONS = "android.permission.WHITELIST_AUTO_REVOKE_PERMISSIONS"; field public static final String WHITELIST_RESTRICTED_PERMISSIONS = "android.permission.WHITELIST_RESTRICTED_PERMISSIONS"; field public static final String WIFI_ACCESS_COEX_UNSAFE_CHANNELS = "android.permission.WIFI_ACCESS_COEX_UNSAFE_CHANNELS"; diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml index 5a7abcce6b751..e90731c60fc89 100644 --- a/core/res/AndroidManifest.xml +++ b/core/res/AndroidManifest.xml @@ -4941,6 +4941,15 @@ + + +