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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user