Report specific exception type on decrypt with invalid session
bug: 22235465 Change-Id: Ic1e1a86529d4f2246b9768799aacde5cd1070d04
This commit is contained in:
@@ -2029,12 +2029,21 @@ final public class MediaCodec {
|
||||
*/
|
||||
public static final int ERROR_INSUFFICIENT_OUTPUT_PROTECTION = 4;
|
||||
|
||||
/**
|
||||
* This indicates that decryption was attempted on a session that is
|
||||
* not opened, which could be due to a failure to open the session,
|
||||
* closing the session prematurely, or the session being reclaimed
|
||||
* by the resource manager.
|
||||
*/
|
||||
public static final int ERROR_SESSION_NOT_OPENED = 5;
|
||||
|
||||
/** @hide */
|
||||
@IntDef({
|
||||
ERROR_NO_KEY,
|
||||
ERROR_KEY_EXPIRED,
|
||||
ERROR_RESOURCE_BUSY,
|
||||
ERROR_INSUFFICIENT_OUTPUT_PROTECTION,
|
||||
ERROR_SESSION_NOT_OPENED,
|
||||
})
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
public @interface CryptoErrorCode {}
|
||||
|
||||
Reference in New Issue
Block a user