Update dump() for Aidl HALs.

Merged from http://go/wvgerrit/146589

lshal is for hidl HALs only, dumpsys is for aidl HALs.
Add option "-a" to dump both CDM metrics and properties
because adb bugreport calls dump() with option "-a".

Test: adb bugreport

Bug: 220996660
Change-Id: Ib2a73f3f9f353b8435735dd019a547b62b066725
This commit is contained in:
Edwin
2022-02-23 17:45:44 -08:00
parent 3fa23b250b
commit b5284c5376
2 changed files with 24 additions and 13 deletions

View File

@@ -56,6 +56,7 @@ struct WVDrmFactory : public ::aidl::android::hardware::drm::BnDrmFactory {
static std::string stringToHex(const std::string& input);
static void printCdmMetrics(int fd);
static void printCdmProperties(int fd);
static void printUsage(int fd);
friend class WVDrmFactoryTestPeer;
};