diff options
author | Jeff Tinker <jtinker@google.com> | 2019-01-17 17:24:50 -0800 |
---|---|---|
committer | Jeff Tinker <jtinker@google.com> | 2019-01-22 23:27:26 +0000 |
commit | 08ff314594235ad32967cacf7336d2da90f29df5 (patch) | |
tree | 8d51e63d76944d852e80496ceb62590371ef77d9 /drm | |
parent | f1edd06918ea0694a18cc53f6b34806c0b0a4f05 (diff) | |
download | platform_hardware_interfaces-08ff314594235ad32967cacf7336d2da90f29df5.tar.gz platform_hardware_interfaces-08ff314594235ad32967cacf7336d2da90f29df5.tar.bz2 platform_hardware_interfaces-08ff314594235ad32967cacf7336d2da90f29df5.zip |
Add securityLevel to MediaDrm isCryptoSchemeSupported API
bug:110701831
test: cts media test cases, widevine integration tests
Change-Id: I9e4679ee63b3997f7141c9b81fd6f375e862862d
Diffstat (limited to 'drm')
-rw-r--r-- | drm/1.2/IDrmFactory.hal | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drm/1.2/IDrmFactory.hal b/drm/1.2/IDrmFactory.hal index c94e4bbcd3..682889c22a 100644 --- a/drm/1.2/IDrmFactory.hal +++ b/drm/1.2/IDrmFactory.hal @@ -17,6 +17,7 @@ package android.hardware.drm@1.2; import @1.1::IDrmFactory; import @1.1::IDrmPlugin; +import @1.1::SecurityLevel; /** * IDrmFactory is the main entry point for interacting with a vendor's @@ -35,4 +36,16 @@ import @1.1::IDrmPlugin; */ interface IDrmFactory extends @1.1::IDrmFactory { + /** + * Determine if a specific security level is supported by the device. + * This method only differs from @1.0 isCryptoSchemeSupported + * by the addition of a security level. + * + * @param uuid identifies the crypto scheme in question + * @param mimeType identifies the mime type in question + * @param securityLevel specifies the security level required + * @return isSupported must be true only if the scheme is supported + */ + isCryptoSchemeSupported_1_2(uint8_t[16] uuid, string mimeType, + @1.1::SecurityLevel securityLevel) generates(bool isSupported); }; |