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

Commit 72126de9 authored by Vasily Tarasov's avatar Vasily Tarasov Committed by android-build-merger
Browse files

Merge "Update comment to use CAS-specific error codes" am: cc5daca6

am: a9d0f6a3

Change-Id: I46da9183a1c45ea567fc83a3db6f0fd08b3bb7ca
parents a6eefe2e a9d0f6a3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -72,12 +72,12 @@ struct DescramblerPlugin {
    // associated MediaCas session is used to load decryption keys
    // into the crypto/cas plugin.  The keys are then referenced by key-id
    // in the 'key' parameter to the decrypt() method.
    // Should return NO_ERROR on success, ERROR_DRM_SESSION_NOT_OPENED if
    // Should return NO_ERROR on success, ERROR_CAS_SESSION_NOT_OPENED if
    // the session is not opened and a code from MediaErrors.h otherwise.
    virtual status_t setMediaCasSession(const CasSessionId& sessionId) = 0;

    // If the error returned falls into the range
    // ERROR_DRM_VENDOR_MIN..ERROR_DRM_VENDOR_MAX, errorDetailMsg should be
    // ERROR_CAS_VENDOR_MIN..ERROR_CAS_VENDOR_MAX, errorDetailMsg should be
    // filled in with an appropriate string.
    // At the java level these special errors will then trigger a
    // MediaCodec.CryptoException that gives clients access to both