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:
@@ -70,8 +70,7 @@ bool Properties::GetModelName(std::string* model_name) {
|
|||||||
LOGW("Properties::GetModelName: Invalid parameter");
|
LOGW("Properties::GetModelName: Invalid parameter");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (GetAndroidProperty("ro.product.cdm.model", model_name))
|
if (GetAndroidProperty("ro.product.cdm.model", model_name)) return true;
|
||||||
return true;
|
|
||||||
return GetAndroidProperty("ro.product.model", model_name);
|
return GetAndroidProperty("ro.product.model", model_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -92,8 +91,7 @@ bool Properties::GetDeviceName(std::string* device_name) {
|
|||||||
LOGW("Properties::GetDeviceName: Invalid parameter");
|
LOGW("Properties::GetDeviceName: Invalid parameter");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (GetAndroidProperty("ro.product.cdm.device", device_name))
|
if (GetAndroidProperty("ro.product.cdm.device", device_name)) return true;
|
||||||
return true;
|
|
||||||
return GetAndroidProperty("ro.product.device", device_name);
|
return GetAndroidProperty("ro.product.device", device_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user