summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRuben Brunk <rubenbrunk@google.com>2015-06-02 14:23:55 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-06-02 14:23:55 +0000
commit502005b0b203eb201be57872295dd98959ad9857 (patch)
treed4fa5dca8b6dac19bf19d5241e6a81d167b4284e /include
parent10fd0f18ec5bdb59662d536d023a17ac8b9cda52 (diff)
parent7e5bb3701a313e539447c96ee2b31df62edc79fe (diff)
downloadframeworks_native-502005b0b203eb201be57872295dd98959ad9857.zip
frameworks_native-502005b0b203eb201be57872295dd98959ad9857.tar.gz
frameworks_native-502005b0b203eb201be57872295dd98959ad9857.tar.bz2
am 7e5bb370: Merge "Track camera and flashlight usage in battery stats." into mnc-dev
* commit '7e5bb3701a313e539447c96ee2b31df62edc79fe': Track camera and flashlight usage in battery stats.
Diffstat (limited to 'include')
-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
};
};