From dce4161f7d4d39498f69591e876f5fecdde95833 Mon Sep 17 00:00:00 2001 From: Jeff Tinker Date: Tue, 14 Feb 2012 14:54:01 -0800 Subject: Fix videos app bandwidth accounting for 4G streaming Register the app uid with the WV extractor so it can attribute bandwidth usage to the proper process. Multi-repository commit, also changes in vendor/widevine Change-Id: I42395fd08bf0bfc7e224745f820a714400066456 related-to-bug: 5434244 --- media/libstagefright/include/WVMExtractor.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'media/libstagefright/include/WVMExtractor.h') diff --git a/media/libstagefright/include/WVMExtractor.h b/media/libstagefright/include/WVMExtractor.h index 9f763f9..3c3ca89 100644 --- a/media/libstagefright/include/WVMExtractor.h +++ b/media/libstagefright/include/WVMExtractor.h @@ -34,6 +34,7 @@ public: virtual int64_t getCachedDurationUs(status_t *finalStatus) = 0; virtual void setAdaptiveStreamingMode(bool adaptive) = 0; + virtual void setUID(uid_t uid) = 0; }; class WVMExtractor : public MediaExtractor { @@ -60,6 +61,8 @@ public: // is used. void setAdaptiveStreamingMode(bool adaptive); + void setUID(uid_t uid); + static bool getVendorLibHandle(); protected: -- cgit v1.1