From 4206d28b886ca2cfc611730da27b4359fd99eea1 Mon Sep 17 00:00:00 2001 From: jimmyshiu Date: Thu, 31 Aug 2023 18:25:07 +0000 Subject: [PATCH] Power: add a DISPLAY_CHANGE mode Bug: 298150450 Test: build pass Change-Id: Ibdfb5bc071c17809bc35e892e8450406b2acdb70 --- .../current/android/hardware/power/Mode.aidl | 1 + power/aidl/android/hardware/power/Mode.aidl | 11 ++++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/power/aidl/aidl_api/android.hardware.power/current/android/hardware/power/Mode.aidl b/power/aidl/aidl_api/android.hardware.power/current/android/hardware/power/Mode.aidl index efbb300f8d..b8a071096f 100644 --- a/power/aidl/aidl_api/android.hardware.power/current/android/hardware/power/Mode.aidl +++ b/power/aidl/aidl_api/android.hardware.power/current/android/hardware/power/Mode.aidl @@ -51,4 +51,5 @@ enum Mode { CAMERA_STREAMING_HIGH, GAME, GAME_LOADING, + DISPLAY_CHANGE, } diff --git a/power/aidl/android/hardware/power/Mode.aidl b/power/aidl/android/hardware/power/Mode.aidl index cc4b1308d2..78f03632dc 100644 --- a/power/aidl/android/hardware/power/Mode.aidl +++ b/power/aidl/android/hardware/power/Mode.aidl @@ -133,11 +133,6 @@ enum Mode { */ DISPLAY_INACTIVE, - /** - * Below hints are currently not sent in Android framework but OEM might choose to - * implement for power/perf optimizations. - */ - /** * This mode indicates that low latency audio is active. */ @@ -172,4 +167,10 @@ enum Mode { * This mode indicates that the user is waiting for loading in a game. */ GAME_LOADING, + + /** + * This mode indicates that the display layout is changing due to rotation + * or switching between inner and outer panels. + */ + DISPLAY_CHANGE, }