summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Blackler <jimblackler@google.com>2021-11-17 16:39:37 +0000
committerJim Blackler <jimblackler@google.com>2021-12-03 14:55:11 +0000
commit7e54e604c8e4025bc82d19d80358739c8484860e (patch)
treef8178523223df8ef4ba0c85a548c04cdae6140d2
parent8590b861e61ab53f9cbb5d820a4a07b760f846bc (diff)
Game Loading Time improvement by boosting CPU via ADPF
Bug: 201769701 Test: atest android.gamemanager.cts.GameManagerTest Change-Id: Ie4f6855214d07fd73d730f7e261484c0114f0395
-rw-r--r--compatibility_matrices/compatibility_matrix.current.xml2
-rw-r--r--power/aidl/aidl_api/android.hardware.power/current/android/hardware/power/Mode.aidl1
-rw-r--r--power/aidl/android/hardware/power/Mode.aidl5
-rw-r--r--power/aidl/default/Android.bp2
-rw-r--r--power/aidl/default/power-default.xml2
5 files changed, 9 insertions, 3 deletions
diff --git a/compatibility_matrices/compatibility_matrix.current.xml b/compatibility_matrices/compatibility_matrix.current.xml
index 74d93b39ef..2094ed7699 100644
--- a/compatibility_matrices/compatibility_matrix.current.xml
+++ b/compatibility_matrices/compatibility_matrix.current.xml
@@ -453,7 +453,7 @@
</hal>
<hal format="aidl" optional="false">
<name>android.hardware.power</name>
- <version>1-2</version>
+ <version>1-3</version>
<interface>
<name>IPower</name>
<instance>default</instance>
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 8920c014e3..ba444a7081 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,4 +49,5 @@ enum Mode {
CAMERA_STREAMING_LOW = 12,
CAMERA_STREAMING_MID = 13,
CAMERA_STREAMING_HIGH = 14,
+ GAME_LOADING = 15,
}
diff --git a/power/aidl/android/hardware/power/Mode.aidl b/power/aidl/android/hardware/power/Mode.aidl
index ae113e3799..2ebace103f 100644
--- a/power/aidl/android/hardware/power/Mode.aidl
+++ b/power/aidl/android/hardware/power/Mode.aidl
@@ -162,4 +162,9 @@ enum Mode {
* This hint indicates that camera high resolution stream is being started.
*/
CAMERA_STREAMING_HIGH,
+
+ /**
+ * This mode indicates that the user is waiting for loading in a game.
+ */
+ GAME_LOADING,
}
diff --git a/power/aidl/default/Android.bp b/power/aidl/default/Android.bp
index 9acb9e044e..223b9d5e6b 100644
--- a/power/aidl/default/Android.bp
+++ b/power/aidl/default/Android.bp
@@ -30,7 +30,7 @@ cc_binary {
shared_libs: [
"libbase",
"libbinder_ndk",
- "android.hardware.power-V2-ndk",
+ "android.hardware.power-V3-ndk",
],
srcs: [
"main.cpp",
diff --git a/power/aidl/default/power-default.xml b/power/aidl/default/power-default.xml
index 9f56debdae..927ba22dbf 100644
--- a/power/aidl/default/power-default.xml
+++ b/power/aidl/default/power-default.xml
@@ -1,7 +1,7 @@
<manifest version="1.0" type="device">
<hal format="aidl">
<name>android.hardware.power</name>
- <version>2</version>
+ <version>3</version>
<fqname>IPower/default</fqname>
</hal>
</manifest>