From c13a1981c4bd53f2623937173777e2a239083f0d Mon Sep 17 00:00:00 2001 From: Edwin Wong Date: Thu, 17 Nov 2022 01:51:33 +0000 Subject: [PATCH] Fix FormatAttributes Merged from http://go/wvgerrit/161639 This CL addresses the review comment in http://go/ag/20205433 so that attributes.error_code should be using CdmResponseTypeToString(). Test: Netflix, Play TV and Movies, Youtube Test: adb shell dumpsys android.hardware.drm.IDrmFactory/widevine Test: ./build_and_run_all_unit_tests.sh Bug: 239462891 Change-Id: Iaa96423044d53a83406807b3db90e394fdda2803 --- libwvdrmengine/src/wv_metrics.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libwvdrmengine/src/wv_metrics.cpp b/libwvdrmengine/src/wv_metrics.cpp index 8bbf240d..8cacddaa 100644 --- a/libwvdrmengine/src/wv_metrics.cpp +++ b/libwvdrmengine/src/wv_metrics.cpp @@ -162,7 +162,8 @@ string FormatAttributes(const string& indent, const Attributes& attributes) { result.append("error_code:\n"); string next_indent = indent + kIndentSpaces; result.append(next_indent + "name: "); - result.append(DrmHalStatusToString(static_cast(attributes.error_code()))); + result.append(CdmResponseTypeToString(static_cast( + attributes.error_code()))); result.append("\n" + next_indent + "value: "); result.append(to_string(attributes.error_code())); }