Add lshal debug hook.
[Merge of http://go/wvgerrit/101804] Dump build info and Widevine DRM service properties. Test: adb shell lshal debug [drm service] adb shell lshal debug android.hardware.drm@1.3::IDrmFactory/widevine Bug: 154027349 Change-Id: Ide918d7bab7a59c1564ccec57cbfef1fff9e5f0b
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user