Merge "Dump error_detail in dumpsys"

This commit is contained in:
TreeHugger Robot
2022-12-13 01:32:30 +00:00
committed by Android (Google) Code Review
2 changed files with 10 additions and 0 deletions

View File

@@ -33,6 +33,7 @@ const char kAttributeKeyStatusType[] = "key_status_type";
const char kAttributeEventType[] = "event_type";
const char kAttributeKeyRequestType[] = "key_request_type";
const char kAttributeLicenseType[] = "license_type";
const char kAttributeErrorDetail[] = "error_detail";
template <typename T>
void SetValue(const T& value, DrmMetricNamedValue* attribute);
@@ -239,6 +240,10 @@ void WvMetricsGroupBuilder::AddAttributes(
AddAttribute(kAttributeLicenseType, attributes_proto.license_type(),
&attribute_vector);
}
if (attributes_proto.has_error_detail()) {
AddAttribute(kAttributeErrorDetail, attributes_proto.error_detail(),
&attribute_vector);
}
*attributes = attribute_vector;
}