Add arguments to Widevine lshal debug hook.
Add options to dump Widevine Cdm properties, Widevine Cdm metrics, or both. The valid arguments are Cdm Metrics (m|M) or Cdm Properties (p|P). If no arguments are provided, both Cdm properties and Cdm metrics will be displayed. Test: adb shell lshal debug [drm service] [m/p] adb shell lshal debug android.hardware.drm@1.3::IDrmFactory/widevine Bug: 154027349 Change-Id: I95c10dd7d4274226936295c73be4eb1612c2ef6a
This commit is contained in:
@@ -149,6 +149,13 @@ class WvContentDecryptionModule : public android::RefBase, public TimerHandler {
|
||||
virtual CdmResponseType GetMetrics(const CdmIdentifier& identifier,
|
||||
drm_metrics::WvCdmMetrics* metrics);
|
||||
|
||||
// Fill the metrics parameter with the metrics data for all the CdmEngine
|
||||
// associated with the given CdmIdentifiers. If there are no CdmEngine
|
||||
// instances, this will return an error.
|
||||
virtual CdmResponseType GetMetrics(
|
||||
std::vector<drm_metrics::WvCdmMetrics>* metrics,
|
||||
bool* full_list_returned);
|
||||
|
||||
// Closes the CdmEngine and sessions associated with the given CdmIdentifier.
|
||||
virtual CdmResponseType CloseCdm(const CdmIdentifier& identifier);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user