Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 50c6ff2e authored by Jeff Tinker's avatar Jeff Tinker
Browse files

Update the DRM API to support new offline methods

bug:117570956
bug:110838441
bug:116252891

test: android.media.cts.MediaDrmClearkeyTest#testOfflineKeyManagement

Change-Id: Idcff348de2af22868e56d707c04b67197fc2d17d
parent f593018a
Loading
Loading
Loading
Loading
+19 −0
Original line number Diff line number Diff line
@@ -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() {}