Merge "Add lshal debug hook."

This commit is contained in:
Edwin Wong
2020-06-16 17:01:30 +00:00
committed by Android (Google) Code Review
3 changed files with 123 additions and 33 deletions

View File

@@ -17,6 +17,9 @@ namespace drm {
namespace V1_3 {
namespace widevine {
using ::android::hardware::hidl_handle;
using ::android::hardware::hidl_vec;
struct WVDrmFactory : public IDrmFactory {
WVDrmFactory() {}
virtual ~WVDrmFactory() {}
@@ -40,6 +43,8 @@ struct WVDrmFactory : public IDrmFactory {
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);
@@ -48,6 +53,8 @@ struct WVDrmFactory : public IDrmFactory {
static bool areSpoidsEnabled();
static bool isBlankAppPackageNameAllowed();
static int32_t firstApiLevel();
static std::string stringToHex(const std::string& input);
static void printCdmProperties(FILE* out);
friend class WVDrmFactoryTestPeer;
};