Rename aidl_ include and src directories.
Test: unit tests Test: Google TV and Netflix Test: atest GtsMediaTestCases Bug: 216527109 Change-Id: I3fd02c2c60da588dba3db27cea3593de25a7180f
This commit is contained in:
68
libwvdrmengine/include_hidl/HidlWVDrmFactory.h
Normal file
68
libwvdrmengine/include_hidl/HidlWVDrmFactory.h
Normal file
@@ -0,0 +1,68 @@
|
||||
//
|
||||
// Copyright 2018 Google LLC. All Rights Reserved. This file and proprietary
|
||||
// source code may only be used and distributed under the Widevine License
|
||||
// Agreement.
|
||||
//
|
||||
|
||||
#ifndef WV_DRM_FACTORY_H_
|
||||
#define WV_DRM_FACTORY_H_
|
||||
|
||||
#include "HidlTypes.h"
|
||||
#include "HidlWVTypes.h"
|
||||
#include "WVGenericCryptoInterface.h"
|
||||
|
||||
namespace wvdrm {
|
||||
namespace hardware {
|
||||
namespace drm {
|
||||
namespace V1_4 {
|
||||
namespace widevine {
|
||||
|
||||
using ::android::hardware::hidl_handle;
|
||||
using ::android::hardware::hidl_vec;
|
||||
|
||||
struct WVDrmFactory : public ::drm::V1_4::IDrmFactory {
|
||||
WVDrmFactory() {}
|
||||
virtual ~WVDrmFactory() {}
|
||||
|
||||
Return<bool> isCryptoSchemeSupported(
|
||||
const hidl_array<uint8_t, 16>& uuid) override;
|
||||
|
||||
Return<bool> isCryptoSchemeSupported_1_2(const hidl_array<uint8_t, 16>& uuid,
|
||||
const hidl_string& mimeType,
|
||||
SecurityLevel level) override;
|
||||
|
||||
Return<bool> isContentTypeSupported(const hidl_string& mimeType) override;
|
||||
|
||||
Return<void> createPlugin(const hidl_array<uint8_t, 16>& uuid,
|
||||
const hidl_string& appPackageName,
|
||||
createPlugin_cb _hidl_cb) override;
|
||||
|
||||
Return<void> getSupportedCryptoSchemes(
|
||||
getSupportedCryptoSchemes_cb _hidl_cb) override;
|
||||
|
||||
Return<void> debug(const hidl_handle& fd, const hidl_vec<hidl_string>& args);
|
||||
|
||||
private:
|
||||
WVDRM_DISALLOW_COPY_AND_ASSIGN(WVDrmFactory);
|
||||
|
||||
static WVGenericCryptoInterface sOemCryptoInterface;
|
||||
|
||||
static bool areSpoidsEnabled();
|
||||
static bool isBlankAppPackageNameAllowed();
|
||||
static int32_t firstApiLevel();
|
||||
static std::string stringToHex(const std::string& input);
|
||||
static void printCdmMetrics(FILE* out);
|
||||
static void printCdmProperties(FILE* out);
|
||||
|
||||
friend class WVDrmFactoryTestPeer;
|
||||
};
|
||||
|
||||
extern "C" IDrmFactory* HIDL_FETCH_IDrmFactory(const char* name);
|
||||
|
||||
} // namespace widevine
|
||||
} // namespace V1_4
|
||||
} // namespace drm
|
||||
} // namespace hardware
|
||||
} // namespace wvdrm
|
||||
|
||||
#endif // WV_DRM_FACTORY_H_
|
||||
Reference in New Issue
Block a user