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:
@@ -4,7 +4,10 @@
|
||||
|
||||
#include <errno.h>
|
||||
#include <getopt.h>
|
||||
#include <gmock/gmock.h>
|
||||
#include <gtest/gtest.h>
|
||||
#include <limits.h>
|
||||
#include <utils/Thread.h>
|
||||
|
||||
#include <sstream>
|
||||
|
||||
@@ -284,7 +287,7 @@ class WvCdmExtendedDurationTest : public WvCdmTestBase {
|
||||
CdmAppParameterMap app_parameters;
|
||||
CdmKeyRequest key_request;
|
||||
const std::string init_data_type = "video/mp4";
|
||||
if (wvutil::g_cutoff >= wvutil::LOG_DEBUG) {
|
||||
if (wvutil::g_cutoff >= wvutil::CDM_LOG_DEBUG) {
|
||||
InitializationData parsed_init_data(init_data_type, init_data);
|
||||
parsed_init_data.DumpToLogs();
|
||||
}
|
||||
@@ -681,7 +684,7 @@ class WvCdmExtendedDurationTest : public WvCdmTestBase {
|
||||
EXPECT_TRUE(StringToInt64(query_info[key], playback_duration_remaining));
|
||||
}
|
||||
|
||||
uint32_t QueryStatus(SecurityLevel security_level, const std::string& key) {
|
||||
uint32_t QueryStatus(RequestedSecurityLevel security_level, const std::string& key) {
|
||||
std::string str;
|
||||
EXPECT_EQ(wvcdm::NO_ERROR,
|
||||
decryptor_->QueryStatus(security_level, key, &str));
|
||||
|
||||
@@ -17,14 +17,14 @@
|
||||
// CDM functionality across a broad range of OEMCrypto implementations
|
||||
// and are not intended to be run by partners.
|
||||
|
||||
#include <cutils/properties.h>
|
||||
#include <errno.h>
|
||||
#include <getopt.h>
|
||||
#include <sstream>
|
||||
|
||||
#include <cutils/properties.h>
|
||||
#include <gmock/gmock.h>
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include <sstream>
|
||||
|
||||
#include "OEMCryptoCENC.h"
|
||||
#include "arraysize.h"
|
||||
#include "config_test_env.h"
|
||||
@@ -338,7 +338,7 @@ class WvCdmFeatureTest : public WvCdmTestBase {
|
||||
CdmKeyRequest key_request;
|
||||
std::string key_set_id;
|
||||
license_type_ = license_type;
|
||||
if (wvutil::g_cutoff >= wvutil::LOG_DEBUG) {
|
||||
if (wvutil::g_cutoff >= wvutil::CDM_LOG_DEBUG) {
|
||||
InitializationData parsed_init_data(init_data_type, init_data);
|
||||
parsed_init_data.DumpToLogs();
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ LOCAL_C_INCLUDES += external/protobuf/src
|
||||
LOCAL_STATIC_LIBRARIES := \
|
||||
libcdm \
|
||||
libcdm_protos \
|
||||
libcdm_utils \
|
||||
libcdm_utils_hidl \
|
||||
libjsmn \
|
||||
libgmock \
|
||||
libgtest \
|
||||
|
||||
@@ -45,7 +45,7 @@ LOCAL_C_INCLUDES += external/protobuf/src
|
||||
LOCAL_STATIC_LIBRARIES := \
|
||||
libcdm \
|
||||
libcdm_protos \
|
||||
libcdm_utils \
|
||||
libcdm_utils_hidl \
|
||||
libjsmn \
|
||||
libgmock \
|
||||
libgtest \
|
||||
|
||||
@@ -603,7 +603,7 @@ SessionSharingSubSampleInfo session_sharing_sub_samples[] = {
|
||||
struct UsageInfoSubSampleInfo {
|
||||
SubSampleInfo* sub_sample;
|
||||
uint32_t usage_info;
|
||||
wvcdm::SecurityLevel security_level;
|
||||
wvcdm::RequestedSecurityLevel security_level;
|
||||
std::string app_id;
|
||||
};
|
||||
|
||||
@@ -1757,7 +1757,7 @@ class WvCdmRequestLicenseTest : public WvCdmTestBase {
|
||||
CdmKeyRequest key_request;
|
||||
std::string key_set_id;
|
||||
license_type_ = license_type;
|
||||
if (wvutil::g_cutoff >= wvutil::LOG_DEBUG) {
|
||||
if (wvutil::g_cutoff >= wvutil::CDM_LOG_DEBUG) {
|
||||
InitializationData parsed_init_data(init_data_type, init_data);
|
||||
parsed_init_data.DumpToLogs();
|
||||
}
|
||||
@@ -1982,7 +1982,7 @@ class WvCdmRequestLicenseTest : public WvCdmTestBase {
|
||||
}
|
||||
|
||||
bool IsProvisioned(const CdmIdentifier& identifier,
|
||||
SecurityLevel requested_security_level) {
|
||||
RequestedSecurityLevel requested_security_level) {
|
||||
TestWvCdmClientPropertySet property_set_L3;
|
||||
TestWvCdmClientPropertySet* property_set = nullptr;
|
||||
|
||||
@@ -2018,7 +2018,7 @@ class WvCdmRequestLicenseTest : public WvCdmTestBase {
|
||||
void Provision() { Provision(kDefaultCdmIdentifier, kLevelDefault); }
|
||||
|
||||
void Provision(const CdmIdentifier& identifier,
|
||||
SecurityLevel requested_security_level,
|
||||
RequestedSecurityLevel requested_security_level,
|
||||
CdmProvisioningResponse* provisioning_response = nullptr) {
|
||||
TestWvCdmClientPropertySet property_set_L3;
|
||||
TestWvCdmClientPropertySet* property_set = nullptr;
|
||||
@@ -2086,7 +2086,8 @@ class WvCdmRequestLicenseTest : public WvCdmTestBase {
|
||||
return security_level;
|
||||
}
|
||||
|
||||
uint32_t QueryStatus(SecurityLevel security_level, const std::string& key) {
|
||||
uint32_t QueryStatus(RequestedSecurityLevel security_level,
|
||||
const std::string& key) {
|
||||
std::string str;
|
||||
EXPECT_EQ(wvcdm::NO_ERROR,
|
||||
decryptor_->QueryStatus(security_level, key, &str));
|
||||
|
||||
@@ -42,7 +42,7 @@ LOCAL_C_INCLUDES += external/protobuf/src
|
||||
LOCAL_STATIC_LIBRARIES := \
|
||||
libcdm \
|
||||
libcdm_protos \
|
||||
libcdm_utils \
|
||||
libcdm_utils_hidl \
|
||||
libjsmn \
|
||||
libgmock \
|
||||
libgtest \
|
||||
|
||||
Reference in New Issue
Block a user