Add Detail Error Messages
Reworks the error message reporting that was just added to WVCryptoPlugin so that it reports detailed error messages to the app (because the error codes cannot be relied upon to reach the app intact) and so that it always reports custom errors so that the detailed error message is passed to the app. Bug: 8621516 Merge of https://widevine-internal-review.googlesource.com/#/c/5031/ from widevine git to android git. Change-Id: Id7a517fb6e4e772ffea4c779a8ee52b357345a08
This commit is contained in:
@@ -10,12 +10,19 @@
|
||||
namespace wvdrm {
|
||||
|
||||
using android::ERROR_DRM_VENDOR_MIN;
|
||||
using android::ERROR_DRM_VENDOR_MAX;
|
||||
|
||||
enum {
|
||||
kErrorNeedProvisioning = ERROR_DRM_VENDOR_MIN,
|
||||
kErrorDeviceRevoked = ERROR_DRM_VENDOR_MIN + 1,
|
||||
kErrorIncorrectBufferSize = ERROR_DRM_VENDOR_MIN + 2,
|
||||
kErrorCDMGeneric = ERROR_DRM_VENDOR_MIN + 3,
|
||||
kErrorNeedProvisioning = ERROR_DRM_VENDOR_MIN,
|
||||
kErrorDeviceRevoked = ERROR_DRM_VENDOR_MIN + 1,
|
||||
kErrorIncorrectBufferSize = ERROR_DRM_VENDOR_MIN + 2,
|
||||
kErrorCDMGeneric = ERROR_DRM_VENDOR_MIN + 3,
|
||||
kErrorUnsupportedCrypto = ERROR_DRM_VENDOR_MIN + 4,
|
||||
kErrorCannotGuaranteeSecurity = ERROR_DRM_VENDOR_MIN + 5,
|
||||
kErrorExpectedUnencrypted = ERROR_DRM_VENDOR_MIN + 6,
|
||||
|
||||
// Used by crypto test mode
|
||||
kErrorTestMode = ERROR_DRM_VENDOR_MAX,
|
||||
};
|
||||
|
||||
} // namespace wvdrm
|
||||
|
||||
Reference in New Issue
Block a user