Enforce OEMCrypto insufficient resources error reporting

[ Merge of http://go/wvgerrit/59720 and http://go/ag/4977904 ]

Enforce OEMCrypto insufficient resources error reporting in CDM tests.
In addition, when CreateNew/LoadUsageEntry fails with OEMCrypto
insufficient resources error, delete a random usage entry
and retry. The current behavior evicts low index entries
from the usage table, which was a crude attempt to emulate a LRU.
This was deficient as, on occasion, it will result in the deletion
of a recently added usage entry.

Bug: 111260263
Bug: 113828866

Test: WV unit/integration tests, GtsMediaTestCases.
      Netflix and Play movies playback tests.

Change-Id: I63340f76d1e2af3c6834b98ad816e11eea18fc7f
This commit is contained in:
Rahul Frias
2018-09-09 02:45:19 -07:00
parent 75dedd20bd
commit b58a743018
5 changed files with 376 additions and 1114 deletions

File diff suppressed because it is too large Load Diff