diff options
author | Gloria Wang <gwang@google.com> | 2011-02-19 18:37:57 -0800 |
---|---|---|
committer | Gloria Wang <gwang@google.com> | 2011-02-22 22:42:05 -0800 |
commit | d211f41f764fe81fe00b10a99b4b44cb84479cbe (patch) | |
tree | 462cf2a7da5216c45c5f105dac33ef607f893972 /include | |
parent | 25474a2230152700e5f7eb7e1495be40c6bd26a8 (diff) | |
download | frameworks_base-d211f41f764fe81fe00b10a99b4b44cb84479cbe.zip frameworks_base-d211f41f764fe81fe00b10a99b4b44cb84479cbe.tar.gz frameworks_base-d211f41f764fe81fe00b10a99b4b44cb84479cbe.tar.bz2 |
- Add method in MediaPlayerService to collect and pull
codec usage (duration) for the battery app
- Collect MediaPlayer decoding usage data
Change-Id: I0ef4e32b6a041ba1fe73c19f9c67185c61d03965
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; }; // ---------------------------------------------------------------------------- |