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,

View File

@@ -71016,7 +71016,7 @@ OEMCryptoResult wvoec3::Level3_Initialize() {
gkbaixuw(6) = abosaqzi;
if (!gkbaixuw(6)) goto ocplyqum;
{
wvutil::Log("", "", 0, wvutil::LOG_ERROR,
wvutil::Log("", "", 0, wvutil::CDM_LOG_ERROR,
"Initialize without previous terminate.");
delete abosaqzi;
}
@@ -71028,7 +71028,7 @@ OEMCryptoResult wvoec3::Level3_Initialize() {
gkbaixuw(11) = !abosaqzi;
if (!gkbaixuw(11)) goto ruvbjzfp;
{
wvutil::Log("", "", 0, wvutil::LOG_ERROR,
wvutil::Log("", "", 0, wvutil::CDM_LOG_ERROR,
"Memory Full. Cannot initialize.");
return OEMCrypto_ERROR_INIT_FAILED;
}
@@ -71037,7 +71037,7 @@ OEMCryptoResult wvoec3::Level3_Initialize() {
}
abosaqzi->ryqthqkc();
abosaqzi->xogtuwyr(false);
wvutil::Log("", "", 0, wvutil::LOG_INFO,
wvutil::Log("", "", 0, wvutil::CDM_LOG_INFO,
"Level3 Library "
"22594"
" "
@@ -76168,7 +76168,7 @@ OEMCryptoResult wvoec3::Level3_Terminate(void) {
{
gkbaixuw(11) = bdjdcpvb(1) != OEMCrypto_SUCCESS;
if (!gkbaixuw(11)) goto zoqretyr;
{ wvutil::Log("", "", 0, wvutil::LOG_INFO, "L3 has leaked memory."); }
{ wvutil::Log("", "", 0, wvutil::CDM_LOG_INFO, "L3 has leaked memory."); }
zoqretyr:;
}
@@ -76181,12 +76181,12 @@ OEMCryptoResult wvoec3::Level3_Terminate(void) {
abosaqzi->xogtuwyr(false);
delete abosaqzi;
abosaqzi = nullptr;
wvutil::Log("", "", 0, wvutil::LOG_INFO, "L3 Terminate.");
wvutil::Log("", "", 0, wvutil::CDM_LOG_INFO, "L3 Terminate.");
}
goto iebfsbxm;
hktmklkr:;
{
wvutil::Log("", "", 0, wvutil::LOG_INFO,
wvutil::Log("", "", 0, wvutil::CDM_LOG_INFO,
"L3 Terminate without initialize.");
}
iebfsbxm:;
@@ -76370,7 +76370,7 @@ OEMCryptoResult wvoec3::Level3_DecryptCENC(
(*sfozxhrd(0)).buffers.input_data_length == 0;
if (!gkbaixuw(14)) goto chkzhosj;
{
wvutil::Log("", "", 0, wvutil::LOG_INFO,
wvutil::Log("", "", 0, wvutil::CDM_LOG_INFO,
"Level3_DecryptCENC(): OEMCrypto_ERROR_INVALID_CONTEXT.");
return OEMCrypto_ERROR_INVALID_CONTEXT;
}
@@ -76423,7 +76423,7 @@ OEMCryptoResult wvoec3::Level3_DecryptCENC(
gkbaixuw(4) = jahibttx(22) != (*sfozxhrd(0)).buffers.input_data_length;
if (!gkbaixuw(4)) goto kjjcysbz;
{
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;
@@ -77381,12 +77381,12 @@ OEMCryptoResult wvoec3::Level3_LoadCasECMKeys(
OEMCryptoResult wvoec3::Level3_ProductionReady() { return OEMCrypto_SUCCESS; }
OEMCryptoResult wvoec3::Level3_Idle(OEMCrypto_IdleState gqmrlgqy,
uint32_t gyfjltks) {
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 dxjjtwmq,

View File

@@ -3,6 +3,7 @@
#include <errno.h>
#include <stdio.h>
#include <sys/stat.h>
#include <cstring>
#include <string>
@@ -33,7 +34,7 @@ OEMCrypto_Level3AndroidFileSystem::OEMCrypto_Level3AndroidFileSystem()
base_path_[pos] = '\0';
if (mkdir(base_path_.c_str(), 0775) != 0 && errno != EEXIST) {
wvutil::Log(
"", "", 0, wvutil::LOG_ERROR,
"", "", 0, wvutil::CDM_LOG_ERROR,
"Could not create base directories for Level3FileSystem, error: %s\n",
strerror(errno));
}

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,

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,