am cd304b1c: Use Standard Errors in DrmPlugin
* commit 'cd304b1c4687d7bdebadfd994383ff99c812d58c': Use Standard Errors in DrmPlugin
This commit is contained in:
@@ -13,13 +13,11 @@ 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,
|
||||
kErrorUnsupportedCrypto = ERROR_DRM_VENDOR_MIN + 4,
|
||||
kErrorCannotGuaranteeSecurity = ERROR_DRM_VENDOR_MIN + 5,
|
||||
kErrorExpectedUnencrypted = ERROR_DRM_VENDOR_MIN + 6,
|
||||
kErrorIncorrectBufferSize = ERROR_DRM_VENDOR_MIN,
|
||||
kErrorCDMGeneric = ERROR_DRM_VENDOR_MIN + 1,
|
||||
kErrorUnsupportedCrypto = ERROR_DRM_VENDOR_MIN + 2,
|
||||
kErrorCannotGuaranteeSecurity = ERROR_DRM_VENDOR_MIN + 3,
|
||||
kErrorExpectedUnencrypted = ERROR_DRM_VENDOR_MIN + 4,
|
||||
|
||||
// Used by crypto test mode
|
||||
kErrorTestMode = ERROR_DRM_VENDOR_MAX,
|
||||
|
||||
@@ -24,9 +24,9 @@ static android::status_t mapCdmResponseType(wvcdm::CdmResponseType res) {
|
||||
case wvcdm::NEED_KEY:
|
||||
return android::ERROR_DRM_NO_LICENSE;
|
||||
case wvcdm::NEED_PROVISIONING:
|
||||
return kErrorNeedProvisioning;
|
||||
return android::ERROR_DRM_NOT_PROVISIONED;
|
||||
case wvcdm::DEVICE_REVOKED:
|
||||
return kErrorDeviceRevoked;
|
||||
return android::ERROR_DRM_DEVICE_REVOKED;
|
||||
case wvcdm::KEY_ERROR:
|
||||
// KEY_ERROR is used by the CDM to mean just about any kind of error, not
|
||||
// just license errors, so it is mapped to the generic response.
|
||||
|
||||
@@ -597,7 +597,7 @@ status_t WVDrmPlugin::mapOEMCryptoResult(OEMCryptoResult res) {
|
||||
case OEMCrypto_ERROR_SHORT_BUFFER:
|
||||
return kErrorIncorrectBufferSize;
|
||||
case OEMCrypto_ERROR_NO_DEVICE_KEY:
|
||||
return kErrorNeedProvisioning;
|
||||
return android::ERROR_DRM_NOT_PROVISIONED;
|
||||
case OEMCrypto_ERROR_INVALID_SESSION:
|
||||
return android::ERROR_DRM_SESSION_NOT_OPENED;
|
||||
case OEMCrypto_ERROR_UNKNOWN_FAILURE:
|
||||
|
||||
Reference in New Issue
Block a user