023b06ededad50d2bb31aee7ed84b825ce4623a3
[ Merge of http://go/wvgerrit/122984 ] There was an issue encountered by some vendors with how the usage table was initialized on some devices. Previously, the CDM would open an OEMCrypto session first, then initialize the usage table (loading existing or creating a new one). On these devices, OEMCrypto_CreateUsageTableHeader() and OEMCrypto_LoadUsageTableHeader() would fail if there were any open sessions. This CL changes the initialization process to create/load the usage table before opening an OEMCrypto session. This change also lays the ground work for another usage table fix to address GTS tests failure. In the process, several of the functions for the usage table have been split up into smaller chunks of code. This required additional changes to the usage table unittest to keep them up to date. Bug: 169195093 Bug: 180639135 Test: Linux unittests and MediaDrmTest Change-Id: Ifbf35f5d8cff5b89fea9b16edb998c84803f4fbe
Description
No description provided