summaryrefslogtreecommitdiffstats
path: root/include/binder
diff options
context:
space:
mode:
authorRuben Brunk <rubenbrunk@google.com>2015-05-26 17:30:11 -0700
committerRuben Brunk <rubenbrunk@google.com>2015-06-01 16:55:07 -0700
commitd47da608366cf1c2649b5dd2759d36e30377fa54 (patch)
treeb63635aef1d0ba176fc7a2e8aacc0a5abaa940e5 /include/binder
parentbfb1f1cc832840b7232c25a91d49eb39aa79687f (diff)
downloadframeworks_native-d47da608366cf1c2649b5dd2759d36e30377fa54.zip
frameworks_native-d47da608366cf1c2649b5dd2759d36e30377fa54.tar.gz
frameworks_native-d47da608366cf1c2649b5dd2759d36e30377fa54.tar.bz2
Track camera and flashlight usage in battery stats.
Bug: 15986092 Change-Id: I272ec070113a0bfc41c637c45a6e1a2ab346e87b
Diffstat (limited to 'include/binder')
-rw-r--r--include/binder/IBatteryStats.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/binder/IBatteryStats.h b/include/binder/IBatteryStats.h
index 7ddac57..5f38186 100644
--- a/include/binder/IBatteryStats.h
+++ b/include/binder/IBatteryStats.h
@@ -36,6 +36,12 @@ public:
virtual void noteStopAudio(int uid) = 0;
virtual void noteResetVideo() = 0;
virtual void noteResetAudio() = 0;
+ virtual void noteFlashlightOn(int uid) = 0;
+ virtual void noteFlashlightOff(int uid) = 0;
+ virtual void noteStartCamera(int uid) = 0;
+ virtual void noteStopCamera(int uid) = 0;
+ virtual void noteResetCamera() = 0;
+ virtual void noteResetFlashlight() = 0;
enum {
NOTE_START_SENSOR_TRANSACTION = IBinder::FIRST_CALL_TRANSACTION,
@@ -46,6 +52,12 @@ public:
NOTE_STOP_AUDIO_TRANSACTION,
NOTE_RESET_VIDEO_TRANSACTION,
NOTE_RESET_AUDIO_TRANSACTION,
+ NOTE_FLASHLIGHT_ON_TRANSACTION,
+ NOTE_FLASHLIGHT_OFF_TRANSACTION,
+ NOTE_START_CAMERA_TRANSACTION,
+ NOTE_STOP_CAMERA_TRANSACTION,
+ NOTE_RESET_CAMERA_TRANSACTION,
+ NOTE_RESET_FLASHLIGHT_TRANSACTION
};
};