hidl: return BAD_VALUE from RemoveOfflineLicense when keyset is not found

[ Merge from http://go/wvgerrit/75623 ]

This addresses code-review comments during the merge to the wv repo.

Bug: 127828539
Test: WV unit/integration tests
Change-Id: I12abe3eb0767bb9ccb76940dcca12c17d32e8e53
This commit is contained in:
Rahul Frias
2019-04-01 20:10:25 -07:00
parent dcfe0f3690
commit 1aed4dc670
2 changed files with 4 additions and 3 deletions

View File

@@ -103,6 +103,7 @@ static android::status_t mapCdmResponseType(wvcdm::CdmResponseType res) {
return kLicenseRenewalNonceGenerationError;
case wvcdm::GENERATE_USAGE_REPORT_ERROR:
return kGenerateUsageReportError;
case wvcdm::KEYSET_ID_NOT_FOUND_4:
case wvcdm::GET_LICENSE_ERROR:
return kGetLicenseError;
case wvcdm::GET_RELEASED_LICENSE_ERROR: