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

Bug: 200055138
Bug: 170964303
Change-Id: If2f2a129914436ba5cef1c46f6cb9415e12c3d1c
This commit is contained in:
Edwin
2021-12-30 11:39:14 -08:00
parent 642965c678
commit 96a8ccd4a1
75 changed files with 7077 additions and 1479 deletions

View File

@@ -72595,7 +72595,7 @@ OEMCryptoResult wvoec3::Level3_Initialize() {
xrgxvare(13) = evxhbbos;
if (!xrgxvare(13)) goto fibxerat;
{
wvutil::Log("", "", 0, wvutil::LOG_ERROR,
wvutil::Log("", "", 0, wvutil::CDM_LOG_ERROR,
"Initialize without previous terminate.");
delete evxhbbos;
}
@@ -72607,7 +72607,7 @@ OEMCryptoResult wvoec3::Level3_Initialize() {
xrgxvare(12) = !evxhbbos;
if (!xrgxvare(12)) goto ppgvdvfm;
{
wvutil::Log("", "", 0, wvutil::LOG_ERROR,
wvutil::Log("", "", 0, wvutil::CDM_LOG_ERROR,
"Memory Full. Cannot initialize.");
return OEMCrypto_ERROR_INIT_FAILED;
}
@@ -72616,7 +72616,7 @@ OEMCryptoResult wvoec3::Level3_Initialize() {
}
evxhbbos->kmaibvqt();
evxhbbos->kqpwykfh(false);
wvutil::Log("", "", 0, wvutil::LOG_INFO,
wvutil::Log("", "", 0, wvutil::CDM_LOG_INFO,
"Level3 Library "
"22593"
" "
@@ -77747,7 +77747,7 @@ OEMCryptoResult wvoec3::Level3_Terminate(void) {
{
xrgxvare(12) = ewwjqjme(1) != OEMCrypto_SUCCESS;
if (!xrgxvare(12)) goto djhfqfxp;
{ wvutil::Log("", "", 0, wvutil::LOG_INFO, "L3 has leaked memory."); }
{ wvutil::Log("", "", 0, wvutil::CDM_LOG_INFO, "L3 has leaked memory."); }
djhfqfxp:;
}
@@ -77760,12 +77760,12 @@ OEMCryptoResult wvoec3::Level3_Terminate(void) {
evxhbbos->kqpwykfh(false);
delete evxhbbos;
evxhbbos = nullptr;
wvutil::Log("", "", 0, wvutil::LOG_INFO, "L3 Terminate.");
wvutil::Log("", "", 0, wvutil::CDM_LOG_INFO, "L3 Terminate.");
}
goto qdcypvbj;
wfvnghij:;
{
wvutil::Log("", "", 0, wvutil::LOG_INFO,
wvutil::Log("", "", 0, wvutil::CDM_LOG_INFO,
"L3 Terminate without initialize.");
}
qdcypvbj:;
@@ -77949,7 +77949,7 @@ OEMCryptoResult wvoec3::Level3_DecryptCENC(
(*ugqnlazh(0)).buffers.input_data_length == 0;
if (!xrgxvare(7)) goto tjmfvaju;
{
wvutil::Log("", "", 0, wvutil::LOG_INFO,
wvutil::Log("", "", 0, wvutil::CDM_LOG_INFO,
"Level3_DecryptCENC(): OEMCrypto_ERROR_INVALID_CONTEXT.");
return OEMCrypto_ERROR_INVALID_CONTEXT;
}
@@ -78002,7 +78002,7 @@ OEMCryptoResult wvoec3::Level3_DecryptCENC(
xrgxvare(5) = tjhqotav(22) != (*ugqnlazh(0)).buffers.input_data_length;
if (!xrgxvare(5)) goto uezzvian;
{
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;
@@ -78960,12 +78960,12 @@ OEMCryptoResult wvoec3::Level3_LoadCasECMKeys(
OEMCryptoResult wvoec3::Level3_ProductionReady() { return OEMCrypto_SUCCESS; }
OEMCryptoResult wvoec3::Level3_Idle(OEMCrypto_IdleState gkteiphb,
uint32_t qpqkutxg) {
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 rqogldqg,

View File

@@ -71024,7 +71024,7 @@ OEMCryptoResult wvoec3::Level3_Initialize() {
qlscvvsy(8) = yzptesnp;
if (!qlscvvsy(8)) goto xetkaqla;
{
wvutil::Log("", "", 0, wvutil::LOG_ERROR,
wvutil::Log("", "", 0, wvutil::CDM_LOG_ERROR,
"Initialize without previous terminate.");
delete yzptesnp;
}
@@ -71036,7 +71036,7 @@ OEMCryptoResult wvoec3::Level3_Initialize() {
qlscvvsy(12) = !yzptesnp;
if (!qlscvvsy(12)) goto bgfsoqfi;
{
wvutil::Log("", "", 0, wvutil::LOG_ERROR,
wvutil::Log("", "", 0, wvutil::CDM_LOG_ERROR,
"Memory Full. Cannot initialize.");
return OEMCrypto_ERROR_INIT_FAILED;
}
@@ -71045,7 +71045,7 @@ OEMCryptoResult wvoec3::Level3_Initialize() {
}
yzptesnp->mgkgwobq();
yzptesnp->gmsqfhfr(false);
wvutil::Log("", "", 0, wvutil::LOG_INFO,
wvutil::Log("", "", 0, wvutil::CDM_LOG_INFO,
"Level3 Library "
"22594"
" "
@@ -76176,7 +76176,7 @@ OEMCryptoResult wvoec3::Level3_Terminate(void) {
{
qlscvvsy(12) = flvmdtdo(1) != OEMCrypto_SUCCESS;
if (!qlscvvsy(12)) goto utzlmpcp;
{ wvutil::Log("", "", 0, wvutil::LOG_INFO, "L3 has leaked memory."); }
{ wvutil::Log("", "", 0, wvutil::CDM_LOG_INFO, "L3 has leaked memory."); }
utzlmpcp:;
}
@@ -76189,12 +76189,12 @@ OEMCryptoResult wvoec3::Level3_Terminate(void) {
yzptesnp->gmsqfhfr(false);
delete yzptesnp;
yzptesnp = nullptr;
wvutil::Log("", "", 0, wvutil::LOG_INFO, "L3 Terminate.");
wvutil::Log("", "", 0, wvutil::CDM_LOG_INFO, "L3 Terminate.");
}
goto fbybkfkx;
fxgirgih:;
{
wvutil::Log("", "", 0, wvutil::LOG_INFO,
wvutil::Log("", "", 0, wvutil::CDM_LOG_INFO,
"L3 Terminate without initialize.");
}
fbybkfkx:;
@@ -76378,7 +76378,7 @@ OEMCryptoResult wvoec3::Level3_DecryptCENC(
(*oeqqdljw(0)).buffers.input_data_length == 0;
if (!qlscvvsy(3)) goto teicxqfs;
{
wvutil::Log("", "", 0, wvutil::LOG_INFO,
wvutil::Log("", "", 0, wvutil::CDM_LOG_INFO,
"Level3_DecryptCENC(): OEMCrypto_ERROR_INVALID_CONTEXT.");
return OEMCrypto_ERROR_INVALID_CONTEXT;
}
@@ -76431,7 +76431,7 @@ OEMCryptoResult wvoec3::Level3_DecryptCENC(
qlscvvsy(11) = dhsbvoaf(21) != (*oeqqdljw(0)).buffers.input_data_length;
if (!qlscvvsy(11)) goto dkbtwtbj;
{
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;
@@ -77389,12 +77389,12 @@ OEMCryptoResult wvoec3::Level3_LoadCasECMKeys(
OEMCryptoResult wvoec3::Level3_ProductionReady() { return OEMCrypto_SUCCESS; }
OEMCryptoResult wvoec3::Level3_Idle(OEMCrypto_IdleState ourzdbeb,
uint32_t fqhsafms) {
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 eqqptknq,

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

@@ -66730,7 +66730,7 @@ OEMCryptoResult wvoec3::Level3_Initialize() {
szfrtdzv(12) = nmvfyrzi;
if (!szfrtdzv(12)) goto ooscusvc;
{
wvutil::Log("", "", 0, wvutil::LOG_ERROR,
wvutil::Log("", "", 0, wvutil::CDM_LOG_ERROR,
"Initialize without previous terminate.");
delete nmvfyrzi;
}
@@ -66742,7 +66742,7 @@ OEMCryptoResult wvoec3::Level3_Initialize() {
szfrtdzv(11) = !nmvfyrzi;
if (!szfrtdzv(11)) goto rguuqwia;
{
wvutil::Log("", "", 0, wvutil::LOG_ERROR,
wvutil::Log("", "", 0, wvutil::CDM_LOG_ERROR,
"Memory Full. Cannot initialize.");
return OEMCrypto_ERROR_INIT_FAILED;
}
@@ -66751,7 +66751,7 @@ OEMCryptoResult wvoec3::Level3_Initialize() {
}
nmvfyrzi->saafjqyv();
nmvfyrzi->vsooeshx(false);
wvutil::Log("", "", 0, wvutil::LOG_INFO,
wvutil::Log("", "", 0, wvutil::CDM_LOG_INFO,
"Level3 Library "
"22595"
" "
@@ -71882,7 +71882,7 @@ OEMCryptoResult wvoec3::Level3_Terminate(void) {
{
szfrtdzv(11) = gwajusko(1) != OEMCrypto_SUCCESS;
if (!szfrtdzv(11)) goto movuujnv;
{ wvutil::Log("", "", 0, wvutil::LOG_INFO, "L3 has leaked memory."); }
{ wvutil::Log("", "", 0, wvutil::CDM_LOG_INFO, "L3 has leaked memory."); }
movuujnv:;
}
@@ -71895,12 +71895,12 @@ OEMCryptoResult wvoec3::Level3_Terminate(void) {
nmvfyrzi->vsooeshx(false);
delete nmvfyrzi;
nmvfyrzi = nullptr;
wvutil::Log("", "", 0, wvutil::LOG_INFO, "L3 Terminate.");
wvutil::Log("", "", 0, wvutil::CDM_LOG_INFO, "L3 Terminate.");
}
goto ofvfedfj;
hiohtepc:;
{
wvutil::Log("", "", 0, wvutil::LOG_INFO,
wvutil::Log("", "", 0, wvutil::CDM_LOG_INFO,
"L3 Terminate without initialize.");
}
ofvfedfj:;
@@ -72084,7 +72084,7 @@ OEMCryptoResult wvoec3::Level3_DecryptCENC(
(*urhzeplu(0)).buffers.input_data_length == 0;
if (!szfrtdzv(4)) goto mvrppfig;
{
wvutil::Log("", "", 0, wvutil::LOG_INFO,
wvutil::Log("", "", 0, wvutil::CDM_LOG_INFO,
"Level3_DecryptCENC(): OEMCrypto_ERROR_INVALID_CONTEXT.");
return OEMCrypto_ERROR_INVALID_CONTEXT;
}
@@ -72137,7 +72137,7 @@ OEMCryptoResult wvoec3::Level3_DecryptCENC(
szfrtdzv(13) = dhbggeeb(22) != (*urhzeplu(0)).buffers.input_data_length;
if (!szfrtdzv(13)) goto sbiqucjq;
{
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;
@@ -73095,12 +73095,12 @@ OEMCryptoResult wvoec3::Level3_LoadCasECMKeys(
OEMCryptoResult wvoec3::Level3_ProductionReady() { return OEMCrypto_SUCCESS; }
OEMCryptoResult wvoec3::Level3_Idle(OEMCrypto_IdleState lohuxnvn,
uint32_t ioulgnsj) {
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 pzfszjmn,

View File

@@ -62865,7 +62865,7 @@ OEMCryptoResult wvoec3::Level3_Initialize() {
yajyytmy(13) = ovbbknls;
if (!yajyytmy(13)) goto hqlrxfcz;
{
wvutil::Log("", "", 0, wvutil::LOG_ERROR,
wvutil::Log("", "", 0, wvutil::CDM_LOG_ERROR,
"Initialize without previous terminate.");
delete ovbbknls;
}
@@ -62877,7 +62877,7 @@ OEMCryptoResult wvoec3::Level3_Initialize() {
yajyytmy(5) = !ovbbknls;
if (!yajyytmy(5)) goto xwhrnftd;
{
wvutil::Log("", "", 0, wvutil::LOG_ERROR,
wvutil::Log("", "", 0, wvutil::CDM_LOG_ERROR,
"Memory Full. Cannot initialize.");
return OEMCrypto_ERROR_INIT_FAILED;
}
@@ -62886,7 +62886,7 @@ OEMCryptoResult wvoec3::Level3_Initialize() {
}
ovbbknls->nwclxxvj();
ovbbknls->mnbuaxel(false);
wvutil::Log("", "", 0, wvutil::LOG_INFO,
wvutil::Log("", "", 0, wvutil::CDM_LOG_INFO,
"Level3 Library "
"22596"
" "
@@ -68017,7 +68017,7 @@ OEMCryptoResult wvoec3::Level3_Terminate(void) {
{
yajyytmy(5) = rkajjimp(1) != OEMCrypto_SUCCESS;
if (!yajyytmy(5)) goto lvsgahqs;
{ wvutil::Log("", "", 0, wvutil::LOG_INFO, "L3 has leaked memory."); }
{ wvutil::Log("", "", 0, wvutil::CDM_LOG_INFO, "L3 has leaked memory."); }
lvsgahqs:;
}
@@ -68030,12 +68030,12 @@ OEMCryptoResult wvoec3::Level3_Terminate(void) {
ovbbknls->mnbuaxel(false);
delete ovbbknls;
ovbbknls = nullptr;
wvutil::Log("", "", 0, wvutil::LOG_INFO, "L3 Terminate.");
wvutil::Log("", "", 0, wvutil::CDM_LOG_INFO, "L3 Terminate.");
}
goto ckgpauch;
qhvcurpv:;
{
wvutil::Log("", "", 0, wvutil::LOG_INFO,
wvutil::Log("", "", 0, wvutil::CDM_LOG_INFO,
"L3 Terminate without initialize.");
}
ckgpauch:;
@@ -68219,7 +68219,7 @@ OEMCryptoResult wvoec3::Level3_DecryptCENC(
(*mpivwsum(0)).buffers.input_data_length == 0;
if (!yajyytmy(9)) goto cfwrzsev;
{
wvutil::Log("", "", 0, wvutil::LOG_INFO,
wvutil::Log("", "", 0, wvutil::CDM_LOG_INFO,
"Level3_DecryptCENC(): OEMCrypto_ERROR_INVALID_CONTEXT.");
return OEMCrypto_ERROR_INVALID_CONTEXT;
}
@@ -68272,7 +68272,7 @@ OEMCryptoResult wvoec3::Level3_DecryptCENC(
yajyytmy(7) = thhxkhfm(21) != (*mpivwsum(0)).buffers.input_data_length;
if (!yajyytmy(7)) goto sdxbdfdf;
{
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;
@@ -69230,12 +69230,12 @@ OEMCryptoResult wvoec3::Level3_LoadCasECMKeys(
OEMCryptoResult wvoec3::Level3_ProductionReady() { return OEMCrypto_SUCCESS; }
OEMCryptoResult wvoec3::Level3_Idle(OEMCrypto_IdleState djppgavo,
uint32_t xyxxpcdk) {
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 ufkscvvu,