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

@@ -66739,7 +66739,7 @@ OEMCryptoResult wvoec3::Level3_Initialize() {
wjefhnew(5) = yfvdrlzm;
if (!wjefhnew(5)) goto drsqaxuq;
{
wvutil::Log("", "", 0, wvutil::LOG_ERROR,
wvutil::Log("", "", 0, wvutil::CDM_LOG_ERROR,
"Initialize without previous terminate.");
delete yfvdrlzm;
}
@@ -66751,7 +66751,7 @@ OEMCryptoResult wvoec3::Level3_Initialize() {
wjefhnew(3) = !yfvdrlzm;
if (!wjefhnew(3)) goto amidxzlx;
{
wvutil::Log("", "", 0, wvutil::LOG_ERROR,
wvutil::Log("", "", 0, wvutil::CDM_LOG_ERROR,
"Memory Full. Cannot initialize.");
return OEMCrypto_ERROR_INIT_FAILED;
}
@@ -66760,7 +66760,7 @@ OEMCryptoResult wvoec3::Level3_Initialize() {
}
yfvdrlzm->eudrzjws();
yfvdrlzm->yuisicqx(false);
wvutil::Log("", "", 0, wvutil::LOG_INFO,
wvutil::Log("", "", 0, wvutil::CDM_LOG_INFO,
"Level3 Library "
"22595"
" "
@@ -71891,7 +71891,7 @@ OEMCryptoResult wvoec3::Level3_Terminate(void) {
{
wjefhnew(3) = oqlkuqrv(1) != OEMCrypto_SUCCESS;
if (!wjefhnew(3)) goto daviuyli;
{ wvutil::Log("", "", 0, wvutil::LOG_INFO, "L3 has leaked memory."); }
{ wvutil::Log("", "", 0, wvutil::CDM_LOG_INFO, "L3 has leaked memory."); }
daviuyli:;
}
@@ -71904,12 +71904,12 @@ OEMCryptoResult wvoec3::Level3_Terminate(void) {
yfvdrlzm->yuisicqx(false);
delete yfvdrlzm;
yfvdrlzm = nullptr;
wvutil::Log("", "", 0, wvutil::LOG_INFO, "L3 Terminate.");
wvutil::Log("", "", 0, wvutil::CDM_LOG_INFO, "L3 Terminate.");
}
goto iehvrxmr;
wuuqxvbz:;
{
wvutil::Log("", "", 0, wvutil::LOG_INFO,
wvutil::Log("", "", 0, wvutil::CDM_LOG_INFO,
"L3 Terminate without initialize.");
}
iehvrxmr:;
@@ -72093,7 +72093,7 @@ OEMCryptoResult wvoec3::Level3_DecryptCENC(
(*jvztisel(0)).buffers.input_data_length == 0;
if (!wjefhnew(7)) goto fvhtpexx;
{
wvutil::Log("", "", 0, wvutil::LOG_INFO,
wvutil::Log("", "", 0, wvutil::CDM_LOG_INFO,
"Level3_DecryptCENC(): OEMCrypto_ERROR_INVALID_CONTEXT.");
return OEMCrypto_ERROR_INVALID_CONTEXT;
}
@@ -72146,7 +72146,7 @@ OEMCryptoResult wvoec3::Level3_DecryptCENC(
wjefhnew(14) = qxolabjj(22) != (*jvztisel(0)).buffers.input_data_length;
if (!wjefhnew(14)) goto zteseqlz;
{
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;
@@ -73104,12 +73104,12 @@ OEMCryptoResult wvoec3::Level3_LoadCasECMKeys(
OEMCryptoResult wvoec3::Level3_ProductionReady() { return OEMCrypto_SUCCESS; }
OEMCryptoResult wvoec3::Level3_Idle(OEMCrypto_IdleState chwhlfvb,
uint32_t fqntjcao) {
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 umxxtuqq,