INSUFFICIENT_RESOURCE errors are mapped consistently.
[ Merge of http://go/wvgerrit/102109 ] The CDM was using unique CDM error codes for the various cases where OEMCrypto would return INSUFFICIENT_RESOURCE. However, these error codes were being incorrectly mapped at the Android level, resulting in incorrect errors in the MediaDRM layer. At no point does the CDM handle different INSUFFICIENT_RESOURCE_x within the same case, as such the use of unique codes are limited. This CL removes the unique codes, and unifies them under the same CDM error code. This CL also extends SelectKey to handle error codes returned by LoadEntitledContentKeys. Bug: 154682842 Test: Unit tests Change-Id: I319fabf6cac60b0dc19ea891609689daeeaeb435
This commit is contained in:
@@ -212,16 +212,6 @@ static android::status_t mapCdmResponseType(wvcdm::CdmResponseType res) {
|
||||
return kIncorrectUsageSupportType2;
|
||||
case wvcdm::INIT_DATA_NOT_FOUND:
|
||||
return kInitDataNotFound;
|
||||
case wvcdm::INSUFFICIENT_CRYPTO_RESOURCES_2:
|
||||
return kInsufficientCryptoResources2;
|
||||
case wvcdm::INSUFFICIENT_CRYPTO_RESOURCES_3:
|
||||
return kInsufficientCryptoResources3;
|
||||
case wvcdm::INSUFFICIENT_CRYPTO_RESOURCES_4:
|
||||
return kInsufficientCryptoResources4;
|
||||
case wvcdm::INSUFFICIENT_CRYPTO_RESOURCES_5:
|
||||
return kInsufficientCryptoResources5;
|
||||
case wvcdm::INSUFFICIENT_CRYPTO_RESOURCES_6:
|
||||
return kInsufficientCryptoResources6;
|
||||
case wvcdm::INVALID_DECRYPT_HASH_FORMAT:
|
||||
return kInvalidDecryptHashFormat;
|
||||
case wvcdm::INVALID_DECRYPT_PARAMETERS_ENG_1:
|
||||
|
||||
Reference in New Issue
Block a user