summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJeff Tinker <jtinker@google.com>2015-04-10 21:03:23 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-04-10 21:03:24 +0000
commit4c1efbc76f1dfeb9427617e451042a12bfb59ad3 (patch)
tree43c39c7172b3cfbbc26678a5233702a011ef27b3 /include
parentc255757c795e5db87bafa6609c4ae052cf38b45b (diff)
parent1849570240443d1f75775c205fa658f7070849c6 (diff)
downloadframeworks_av-4c1efbc76f1dfeb9427617e451042a12bfb59ad3.zip
frameworks_av-4c1efbc76f1dfeb9427617e451042a12bfb59ad3.tar.gz
frameworks_av-4c1efbc76f1dfeb9427617e451042a12bfb59ad3.tar.bz2
Merge "Add a method to associate MediaDrm session with MediaCrypto"
Diffstat (limited to 'include')
-rw-r--r--include/media/ICrypto.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/media/ICrypto.h b/include/media/ICrypto.h
index ac2b3ba..aa04dbe 100644
--- a/include/media/ICrypto.h
+++ b/include/media/ICrypto.h
@@ -44,6 +44,8 @@ struct ICrypto : public IInterface {
virtual void notifyResolution(uint32_t width, uint32_t height) = 0;
+ virtual status_t setMediaDrmSession(const Vector<uint8_t> &sessionId) = 0;
+
virtual ssize_t decrypt(
bool secure,
const uint8_t key[16],
@@ -62,6 +64,9 @@ struct BnCrypto : public BnInterface<ICrypto> {
virtual status_t onTransact(
uint32_t code, const Parcel &data, Parcel *reply,
uint32_t flags = 0);
+private:
+ void readVector(const Parcel &data, Vector<uint8_t> &vector) const;
+ void writeVector(Parcel *reply, Vector<uint8_t> const &vector) const;
};
} // namespace android