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:
@@ -253,7 +253,7 @@ enum CdmResponseType {
|
||||
INVALID_SESSION_1 = 199,
|
||||
NO_DEVICE_KEY_1 = 200,
|
||||
NO_CONTENT_KEY_2 = 201,
|
||||
INSUFFICIENT_CRYPTO_RESOURCES_2 = 202,
|
||||
/* previously INSUFFICIENT_CRYPTO_RESOURCES_2 = 202, */
|
||||
INVALID_PARAMETERS_ENG_13 = 203,
|
||||
INVALID_PARAMETERS_ENG_14 = 204,
|
||||
INVALID_PARAMETERS_ENG_15 = 205,
|
||||
@@ -272,7 +272,7 @@ enum CdmResponseType {
|
||||
LOAD_USAGE_HEADER_UNKNOWN_ERROR = 218,
|
||||
/* previously INVALID_PARAMETERS_ENG_17 = 219, */
|
||||
/* preivously INVALID_PARAMETERS_ENG_18 = 220, */
|
||||
INSUFFICIENT_CRYPTO_RESOURCES_3 = 221,
|
||||
/* previously INSUFFICIENT_CRYPTO_RESOURCES_3 = 221, */
|
||||
CREATE_USAGE_ENTRY_UNKNOWN_ERROR = 222,
|
||||
LOAD_USAGE_ENTRY_GENERATION_SKEW = 223,
|
||||
LOAD_USAGE_ENTRY_SIGNATURE_FAILURE = 224,
|
||||
@@ -331,12 +331,12 @@ enum CdmResponseType {
|
||||
/* previously LICENSE_REQUEST_INVALID_SUBLICENSE = 277, */
|
||||
CERT_PROVISIONING_EMPTY_SERVICE_CERTIFICATE = 278,
|
||||
LOAD_SYSTEM_ID_ERROR = 279,
|
||||
INSUFFICIENT_CRYPTO_RESOURCES_4 = 280,
|
||||
INSUFFICIENT_CRYPTO_RESOURCES_5 = 281,
|
||||
/* previously INSUFFICIENT_CRYPTO_RESOURCES_4 = 280, */
|
||||
/* previously INSUFFICIENT_CRYPTO_RESOURCES_5 = 281, */
|
||||
REMOVE_USAGE_INFO_ERROR_1 = 282,
|
||||
REMOVE_USAGE_INFO_ERROR_2 = 283,
|
||||
REMOVE_USAGE_INFO_ERROR_3 = 284,
|
||||
INSUFFICIENT_CRYPTO_RESOURCES_6 = 285,
|
||||
/* previously INSUFFICIENT_CRYPTO_RESOURCES_6 = 285, */
|
||||
NOT_AN_ENTITLEMENT_SESSION = 286,
|
||||
NO_MATCHING_ENTITLEMENT_KEY = 287,
|
||||
LOAD_ENTITLED_CONTENT_KEYS_ERROR = 288,
|
||||
|
||||
Reference in New Issue
Block a user