Power: add a generic game mode
Test: Boot
Bug: 201769701
Bug: 214405108
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: I4da5821bb0ed135d467146babe03863145e42435
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 ba444a7..f38426b 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
@@ -49,5 +49,6 @@
CAMERA_STREAMING_LOW = 12,
CAMERA_STREAMING_MID = 13,
CAMERA_STREAMING_HIGH = 14,
- GAME_LOADING = 15,
+ GAME = 15,
+ GAME_LOADING = 16,
}
diff --git a/power/aidl/android/hardware/power/Mode.aidl b/power/aidl/android/hardware/power/Mode.aidl
index 2ebace1..cc4b130 100644
--- a/power/aidl/android/hardware/power/Mode.aidl
+++ b/power/aidl/android/hardware/power/Mode.aidl
@@ -164,6 +164,11 @@
CAMERA_STREAMING_HIGH,
/**
+ * This mode indicates that user is playing a game.
+ */
+ GAME,
+
+ /**
* This mode indicates that the user is waiting for loading in a game.
*/
GAME_LOADING,