Declare class for drmFactory, crypto/drmPlugins
[ Merged from http://go/wvgerrit/152493 ] Replace struct with class for WVDrmFactory, WVCryptoPlugin and WVDrmPlugin. Also fix build_all_unit_tests.sh, hidl_metrics_adapter_unittest has been renamed to hal_metrics_adapter_unittest. Test: unit tests Test: Google TV and Netflix Test: atest GtsMediaTestCases Bug: 216717460 Change-Id: I92b15510267e8f37058845be760a6ec6241bc5d7
This commit is contained in:
@@ -23,14 +23,21 @@ namespace hardware {
|
||||
namespace drm {
|
||||
namespace widevine {
|
||||
|
||||
struct SharedBufferBase {
|
||||
uint8_t* mBase;
|
||||
int64_t mSize;
|
||||
class SharedBufferBase {
|
||||
public:
|
||||
SharedBufferBase(const ::aidl::android::hardware::drm::SharedBuffer& mem);
|
||||
~SharedBufferBase();
|
||||
uint8_t* base() const { return mBase; }
|
||||
int64_t size() const { return mSize; }
|
||||
void set_base(uint8_t* base) { mBase = base; }
|
||||
void set_size(uint64_t size) { mSize = size; }
|
||||
private:
|
||||
uint8_t* mBase;
|
||||
int64_t mSize;
|
||||
};
|
||||
|
||||
struct WVCryptoPlugin : public ::aidl::android::hardware::drm::BnCryptoPlugin {
|
||||
class WVCryptoPlugin : public ::aidl::android::hardware::drm::BnCryptoPlugin {
|
||||
public:
|
||||
WVCryptoPlugin(const void* data, size_t size,
|
||||
const ::android::sp<wvcdm::WvContentDecryptionModule>& cdm);
|
||||
virtual ~WVCryptoPlugin();
|
||||
|
||||
Reference in New Issue
Block a user