dumpsys properties: fix indent & quotation am: 5036a0fc07
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/22822564 Change-Id: Id25f8e04e88f9df0a69ca03d6e1b332f0be34b89 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -204,13 +204,13 @@ void WVDrmFactory::printCdmMetrics(int fd) {
|
||||
}
|
||||
|
||||
void WVDrmFactory::printCdmProperties(int fd) {
|
||||
dprintf(fd, " - widevine_cdm_properties:\n");
|
||||
dprintf(fd, "widevine_cdm_properties:\n");
|
||||
|
||||
android::sp<wvcdm::WvContentDecryptionModule> cdm(getCDM());
|
||||
|
||||
const bool isLevel1 =
|
||||
cdm->IsSecurityLevelSupported(wvcdm::CdmSecurityLevel::kSecurityLevelL1);
|
||||
dprintf(fd, " default_security_level: \"%s\"\n", isLevel1 ? "L1" : "L3");
|
||||
dprintf(fd, " default_security_level: %s\n", isLevel1 ? "L1" : "L3");
|
||||
|
||||
const std::map<string, string> cdmProperties = {
|
||||
{"version_widevine_cdm", wvcdm::QUERY_KEY_WVCDM_VERSION},
|
||||
@@ -249,7 +249,7 @@ void WVDrmFactory::printCdmProperties(int fd) {
|
||||
cdm->QueryStatus(wvcdm::RequestedSecurityLevel::kLevelDefault,
|
||||
property.second, &value);
|
||||
string outString = stringToHex(value);
|
||||
dprintf(fd, " %s: \"%s\"\n", property.first.c_str(), outString.c_str());
|
||||
dprintf(fd, " %s: %s\n", property.first.c_str(), outString.c_str());
|
||||
value.clear();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user