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

@@ -62874,7 +62874,7 @@ OEMCryptoResult wvoec3::Level3_Initialize() {
nipzhrzp(8) = oxnltpjo;
if (!nipzhrzp(8)) goto hxvhrouu;
{
wvutil::Log("", "", 0, wvutil::LOG_ERROR,
wvutil::Log("", "", 0, wvutil::CDM_LOG_ERROR,
"Initialize without previous terminate.");
delete oxnltpjo;
}
@@ -62886,7 +62886,7 @@ OEMCryptoResult wvoec3::Level3_Initialize() {
nipzhrzp(13) = !oxnltpjo;
if (!nipzhrzp(13)) goto qposqnst;
{
wvutil::Log("", "", 0, wvutil::LOG_ERROR,
wvutil::Log("", "", 0, wvutil::CDM_LOG_ERROR,
"Memory Full. Cannot initialize.");
return OEMCrypto_ERROR_INIT_FAILED;
}
@@ -62895,7 +62895,7 @@ OEMCryptoResult wvoec3::Level3_Initialize() {
}
oxnltpjo->mjliflra();
oxnltpjo->cgyzlfok(false);
wvutil::Log("", "", 0, wvutil::LOG_INFO,
wvutil::Log("", "", 0, wvutil::CDM_LOG_INFO,
"Level3 Library "
"22596"
" "
@@ -68026,7 +68026,7 @@ OEMCryptoResult wvoec3::Level3_Terminate(void) {
{
nipzhrzp(13) = mpyitnut(1) != OEMCrypto_SUCCESS;
if (!nipzhrzp(13)) goto yakxyukj;
{ wvutil::Log("", "", 0, wvutil::LOG_INFO, "L3 has leaked memory."); }
{ wvutil::Log("", "", 0, wvutil::CDM_LOG_INFO, "L3 has leaked memory."); }
yakxyukj:;
}
@@ -68039,12 +68039,12 @@ OEMCryptoResult wvoec3::Level3_Terminate(void) {
oxnltpjo->cgyzlfok(false);
delete oxnltpjo;
oxnltpjo = nullptr;
wvutil::Log("", "", 0, wvutil::LOG_INFO, "L3 Terminate.");
wvutil::Log("", "", 0, wvutil::CDM_LOG_INFO, "L3 Terminate.");
}
goto idyrdqke;
qeycvpqm:;
{
wvutil::Log("", "", 0, wvutil::LOG_INFO,
wvutil::Log("", "", 0, wvutil::CDM_LOG_INFO,
"L3 Terminate without initialize.");
}
idyrdqke:;
@@ -68228,7 +68228,7 @@ OEMCryptoResult wvoec3::Level3_DecryptCENC(
(*xumlwwbg(0)).buffers.input_data_length == 0;
if (!nipzhrzp(9)) goto vpeijjhx;
{
wvutil::Log("", "", 0, wvutil::LOG_INFO,
wvutil::Log("", "", 0, wvutil::CDM_LOG_INFO,
"Level3_DecryptCENC(): OEMCrypto_ERROR_INVALID_CONTEXT.");
return OEMCrypto_ERROR_INVALID_CONTEXT;
}
@@ -68281,7 +68281,7 @@ OEMCryptoResult wvoec3::Level3_DecryptCENC(
nipzhrzp(12) = uqtvdcwf(21) != (*xumlwwbg(0)).buffers.input_data_length;
if (!nipzhrzp(12)) goto urzhgrgw;
{
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;
@@ -69239,12 +69239,12 @@ OEMCryptoResult wvoec3::Level3_LoadCasECMKeys(
OEMCryptoResult wvoec3::Level3_ProductionReady() { return OEMCrypto_SUCCESS; }
OEMCryptoResult wvoec3::Level3_Idle(OEMCrypto_IdleState uhqndanx,
uint32_t xepyuhtd) {
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 bripfgai,