diff options
author | Gloria Wang <gwang@google.com> | 2011-02-23 09:58:33 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-02-23 09:58:33 -0800 |
commit | 87e639bc151551c9618641a6765837b44eb90b9b (patch) | |
tree | 500a02d889ecbe86dd305df226d7282153e4c740 /include | |
parent | 282ff9ae3f798dec325ce6b868f053649b596a8c (diff) | |
parent | d211f41f764fe81fe00b10a99b4b44cb84479cbe (diff) | |
download | frameworks_base-87e639bc151551c9618641a6765837b44eb90b9b.zip frameworks_base-87e639bc151551c9618641a6765837b44eb90b9b.tar.gz frameworks_base-87e639bc151551c9618641a6765837b44eb90b9b.tar.bz2 |
Merge "- Add method in MediaPlayerService to collect and pull codec usage (duration) for the battery app - Collect MediaPlayer decoding usage data"
Diffstat (limited to 'include')
-rw-r--r-- | include/media/IMediaPlayerService.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/media/IMediaPlayerService.h b/include/media/IMediaPlayerService.h index 0bfb166..cce9129 100644 --- a/include/media/IMediaPlayerService.h +++ b/include/media/IMediaPlayerService.h @@ -54,6 +54,22 @@ public: virtual sp<IMemory> decode(const char* url, uint32_t *pSampleRate, int* pNumChannels, int* pFormat) = 0; virtual sp<IMemory> decode(int fd, int64_t offset, int64_t length, uint32_t *pSampleRate, int* pNumChannels, int* pFormat) = 0; virtual sp<IOMX> getOMX() = 0; + + // codecs usage tracking for the battery app + enum BatteryDataBits { + // tracking audio codec + kBatteryDataTrackAudio = 1, + // tracking video codec + kBatteryDataTrackVideo = 2, + // codec is started, otherwise codec is paused + kBatteryDataCodecStarted = 4, + // tracking decoder (for media player), + // otherwise tracking encoder (for media recorder) + kBatteryDataTrackDecoder = 8, + }; + + virtual void addBatteryData(uint32_t params) = 0; + virtual status_t pullBatteryData(Parcel* reply) = 0; }; // ---------------------------------------------------------------------------- |