diff options
author | Jeff Tinker <jtinker@google.com> | 2018-11-05 15:25:06 -0800 |
---|---|---|
committer | Jeff Tinker <jtinker@google.com> | 2018-11-07 21:50:09 -0800 |
commit | 50c6ff2e35cfd28937dbfa17adb349f6fd51a449 (patch) | |
tree | 97daf3b433a38c87c650bbc780ea820cc0794636 /headers | |
parent | f593018a8f51a22e3da46c1ae84559c127104288 (diff) |
Update the DRM API to support new offline methods
bug:117570956
bug:110838441
bug:116252891
test: android.media.cts.MediaDrmClearkeyTest#testOfflineKeyManagement
Change-Id: Idcff348de2af22868e56d707c04b67197fc2d17d
Diffstat (limited to 'headers')
-rw-r--r-- | headers/media_plugin/media/drm/DrmAPI.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/headers/media_plugin/media/drm/DrmAPI.h b/headers/media_plugin/media/drm/DrmAPI.h index c44a1f6152..aa8bd3d06c 100644 --- a/headers/media_plugin/media/drm/DrmAPI.h +++ b/headers/media_plugin/media/drm/DrmAPI.h @@ -167,6 +167,25 @@ namespace android { kSecurityLevelHwSecureAll }; + // An offline license may be usable or inactive. The keys in a + // usable offline license are available for decryption. When + // the offline license state is inactive, the keys have been + // marked for release using getKeyRequest with + // kKeyType_Release but the key response has not been + // received. The keys in an inactive offline license are not + // usable for decryption. + + enum OfflineLicenseState { + // The offline license state is unknown due to an error + kOfflineLicenseStateUnknown, + // Offline license state is usable, the keys may be used for decryption. + kOfflineLicenseStateUsable, + // Offline license state is inactive, the keys have been marked for + // release using getKeyRequest() with kKeyType_Release but the + // key response has not been received. + kOfflineLicenseStateInactive + }; + DrmPlugin() {} virtual ~DrmPlugin() {} |