MCPcopy Create free account
hub / github.com/Xtra-Computing/thundersvm / getDeviceName

Method getDeviceName

src/thundersvm/util/log.cpp:975–984  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

973}
974
975std::string OS::getDeviceName(void) {
976 std::stringstream ss;
977 std::string manufacturer = getProperty("ro.product.manufacturer");
978 std::string model = getProperty("ro.product.model");
979 if (manufacturer.empty() || model.empty()) {
980 return std::string();
981 }
982 ss << manufacturer << "-" << model;
983 return ss.str();
984}
985#endif // ELPP_OS_ANDROID
986
987 const std::string OS::getBashOutput(const char* command) {

Callers

nothing calls this directly

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected