Use aidl interface for Widevine service.

The interface is defined in
hardware/interfaces/drm/aidl(http://go/ag/15329852).

Test: build
  m android.hardware.drm-service.widevine -j128

Test: build_and_run_all_unit_tests.sh
  for hidl tests

Test: atest VtsAidlHalDrmTargetTest

Test:   atest vts_treble_vintf_vendor_test:vts_treble_vintf_vendor_test.DeviceManifest/SingleManifestTest#ManifestAidlHalsServed/0 -- --abi x86_64

Bug: 200055138
Bug: 170964303
Change-Id: I5654d90d8a4b0bae4b4a78e79b27c1cafec36be7
This commit is contained in:
Edwin
2021-12-30 11:39:14 -08:00
parent 627c8d6855
commit 3c3da01d58
75 changed files with 7071 additions and 1480 deletions

View File

@@ -72605,7 +72605,7 @@ OEMCryptoResult wvoec3::Level3_Initialize() {
pcjvysqq(12) = wssbanwq;
if (!pcjvysqq(12)) goto pfszseio;
{
wvutil::Log("", "", 0, wvutil::LOG_ERROR,
wvutil::Log("", "", 0, wvutil::CDM_LOG_ERROR,
"Initialize without previous terminate.");
delete wssbanwq;
}
@@ -72617,7 +72617,7 @@ OEMCryptoResult wvoec3::Level3_Initialize() {
pcjvysqq(13) = !wssbanwq;
if (!pcjvysqq(13)) goto eukkunjy;
{
wvutil::Log("", "", 0, wvutil::LOG_ERROR,
wvutil::Log("", "", 0, wvutil::CDM_LOG_ERROR,
"Memory Full. Cannot initialize.");
return OEMCrypto_ERROR_INIT_FAILED;
}
@@ -72626,7 +72626,7 @@ OEMCryptoResult wvoec3::Level3_Initialize() {
}
wssbanwq->valdayag();
wssbanwq->qkinveng(false);
wvutil::Log("", "", 0, wvutil::LOG_INFO,
wvutil::Log("", "", 0, wvutil::CDM_LOG_INFO,
"Level3 Library "
"22593"
" "
@@ -77757,7 +77757,7 @@ OEMCryptoResult wvoec3::Level3_Terminate(void) {
{
pcjvysqq(13) = nfftdizt(1) != OEMCrypto_SUCCESS;
if (!pcjvysqq(13)) goto qmmpauwe;
{ wvutil::Log("", "", 0, wvutil::LOG_INFO, "L3 has leaked memory."); }
{ wvutil::Log("", "", 0, wvutil::CDM_LOG_INFO, "L3 has leaked memory."); }
qmmpauwe:;
}
@@ -77770,12 +77770,12 @@ OEMCryptoResult wvoec3::Level3_Terminate(void) {
wssbanwq->qkinveng(false);
delete wssbanwq;
wssbanwq = nullptr;
wvutil::Log("", "", 0, wvutil::LOG_INFO, "L3 Terminate.");
wvutil::Log("", "", 0, wvutil::CDM_LOG_INFO, "L3 Terminate.");
}
goto rdgvmkty;
jnutneqm:;
{
wvutil::Log("", "", 0, wvutil::LOG_INFO,
wvutil::Log("", "", 0, wvutil::CDM_LOG_INFO,
"L3 Terminate without initialize.");
}
rdgvmkty:;
@@ -77959,7 +77959,7 @@ OEMCryptoResult wvoec3::Level3_DecryptCENC(
(*qpevmftl(0)).buffers.input_data_length == 0;
if (!pcjvysqq(15)) goto ujqsidfb;
{
wvutil::Log("", "", 0, wvutil::LOG_INFO,
wvutil::Log("", "", 0, wvutil::CDM_LOG_INFO,
"Level3_DecryptCENC(): OEMCrypto_ERROR_INVALID_CONTEXT.");
return OEMCrypto_ERROR_INVALID_CONTEXT;
}
@@ -78012,7 +78012,7 @@ OEMCryptoResult wvoec3::Level3_DecryptCENC(
pcjvysqq(7) = mjitdsat(22) != (*qpevmftl(0)).buffers.input_data_length;
if (!pcjvysqq(7)) goto nkdoymam;
{
wvutil::Log("", "", 0, wvutil::LOG_INFO,
wvutil::Log("", "", 0, wvutil::CDM_LOG_INFO,
"Level3_DecryptCENC(): Sample and subsample lengths do "
"not match.");
return OEMCrypto_ERROR_INVALID_CONTEXT;
@@ -78970,12 +78970,12 @@ OEMCryptoResult wvoec3::Level3_LoadCasECMKeys(
OEMCryptoResult wvoec3::Level3_ProductionReady() { return OEMCrypto_SUCCESS; }
OEMCryptoResult wvoec3::Level3_Idle(OEMCrypto_IdleState amndrbyt,
uint32_t tuwbdepq) {
wvutil::Log("", "", 0, wvutil::LOG_INFO,
wvutil::Log("", "", 0, wvutil::CDM_LOG_INFO,
"no OEMCrypto activity for some time so entering idle state");
return OEMCrypto_SUCCESS;
}
OEMCryptoResult wvoec3::Level3_Wake() {
wvutil::Log("", "", 0, wvutil::LOG_INFO, "OEMCrypto operations resuming");
wvutil::Log("", "", 0, wvutil::CDM_LOG_INFO, "OEMCrypto operations resuming");
return OEMCrypto_SUCCESS;
}
OEMCryptoResult wvoec3::Level3_ReuseUsageEntry(OEMCrypto_SESSION hiafcijl,