Clang-formatted properties_android.cpp with new CDM properties.

The CL http://ag/16988980 introduced new Adnroid property queries to
the CDM; however, the file was not of the correct format for the CDM
repo.  This CL simply ran clang-format on the file.

Bug: 197771575
Bug: 236317198
Test: none
Change-Id: I5293864f84d1297efb7aef2a96a71794217c5203
This commit is contained in:
Alex Dale
2022-06-17 19:57:43 -07:00
parent 68b5146a06
commit 6c35b9e67a

View File

@@ -70,8 +70,7 @@ bool Properties::GetModelName(std::string* model_name) {
LOGW("Properties::GetModelName: Invalid parameter");
return false;
}
if (GetAndroidProperty("ro.product.cdm.model", model_name))
return true;
if (GetAndroidProperty("ro.product.cdm.model", model_name)) return true;
return GetAndroidProperty("ro.product.model", model_name);
}
@@ -92,8 +91,7 @@ bool Properties::GetDeviceName(std::string* device_name) {
LOGW("Properties::GetDeviceName: Invalid parameter");
return false;
}
if (GetAndroidProperty("ro.product.cdm.device", device_name))
return true;
if (GetAndroidProperty("ro.product.cdm.device", device_name)) return true;
return GetAndroidProperty("ro.product.device", device_name);
}