summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Atneya Nair <atneya@google.com> 2024-03-22 22:40:24 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2024-03-22 22:40:24 +0000
commited4e7943f428f5f0e8dfbedf932f72c1ff11733d (patch)
tree71cfa5dac0a5bef5a838726827874adcefcc8125
parentdc5c05a05e0536b3f75feded0a65cfb532823498 (diff)
parent364ce02f7d46ed99e93f3f156ae1907f74de449f (diff)
Merge "Migrate BatteryStats audio calls to oneway" into main
-rw-r--r--core/java/com/android/internal/app/IBatteryStats.aidl8
1 files changed, 5 insertions, 3 deletions
diff --git a/core/java/com/android/internal/app/IBatteryStats.aidl b/core/java/com/android/internal/app/IBatteryStats.aidl
index 5f688f6406bc..99b3f9a16355 100644
--- a/core/java/com/android/internal/app/IBatteryStats.aidl
+++ b/core/java/com/android/internal/app/IBatteryStats.aidl
@@ -43,14 +43,16 @@ interface IBatteryStats {
void noteStartVideo(int uid);
@EnforcePermission("UPDATE_DEVICE_STATS")
void noteStopVideo(int uid);
+ // The audio battery stats interface is oneway to prevent inversion. These calls
+ // are ordered with respect to each other, but not with any other calls.
@EnforcePermission("UPDATE_DEVICE_STATS")
- void noteStartAudio(int uid);
+ oneway void noteStartAudio(int uid);
@EnforcePermission("UPDATE_DEVICE_STATS")
- void noteStopAudio(int uid);
+ oneway void noteStopAudio(int uid);
@EnforcePermission("UPDATE_DEVICE_STATS")
void noteResetVideo();
@EnforcePermission("UPDATE_DEVICE_STATS")
- void noteResetAudio();
+ oneway void noteResetAudio();
@EnforcePermission("UPDATE_DEVICE_STATS")
void noteFlashlightOn(int uid);
@EnforcePermission("UPDATE_DEVICE_STATS")