ScopeLogger();
picojson::object& result_obj = result->get<picojson::object>();
- std::string type = "";
+ std::string type;
bool bool_value = false;
int int_value = 0;
- std::string string_value = "";
+ std::string string_value;
system_info_type_e capability_type = SYSTEM_INFO_BOOL;
PlatformResult SystemInfoDeviceCapability::IsInputKeyboardLayout(bool* result) {
ScopeLogger();
- std::string input_keyboard_layout = "";
+ std::string input_keyboard_layout;
PlatformResult ret =
GetValueStringNative("tizen.org/feature/input.keyboard.layout", &input_keyboard_layout);
if (ret.IsError()) {
std::string log_msg = "OpenGL-ES is not supported";
return LogAndCreateResult(ErrorCode::NOT_SUPPORTED_ERR, log_msg);
}
- std::string texture_format = "";
+ std::string texture_format;
ret = GetValueBoolNative("tizen.org/feature/opengles.texture_format.utc", &bool_result);
if (ret.IsError()) {
ScopeLogger();
std::string result;
bool bool_result = false;
- std::string arch = "";
+ std::string arch;
PlatformResult ret = GetValueBoolNative("tizen.org/feature/platform.core.cpu.arch.riscv64", &bool_result);
if (ret.IsError()) {
}
}
+ if (result.empty() && !arch.empty()) {
+ result = arch;
+ }
+
if (result.empty()) {
return LogAndCreateResult(ErrorCode::UNKNOWN_ERR, "platformCoreCpuArch result is empty");
}
ScopeLogger();
std::string result;
bool bool_result = false;
+ std::string fpu_arch;
+
PlatformResult ret =
GetValueBoolNative("tizen.org/feature/platform.core.fpu.arch.sse2", &bool_result);
if (ret.IsError()) {
result = kPlatformCoreSse2;
}
+ ret = GetValueStringNative("tizen.org/feature/platform.core.fpu.arch", &fpu_arch);
+ if (ret.IsError()) {
+ LoggerE("GetValueStringNative Error");
+ }
+
ret = GetValueBoolNative("tizen.org/feature/platform.core.fpu.arch.sse3", &bool_result);
if (ret.IsError()) {
return ret;
}
result += kPlatformCoreVfpv4;
}
+
+ if (result.empty() && !fpu_arch.empty()) {
+ result = fpu_arch;
+ }
+
if (result.empty()) {
return LogAndCreateResult(ErrorCode::UNKNOWN_ERR, "platformCoreFpuArch result is empty");
}
PlatformResult SystemInfoDeviceCapability::GetProfile(std::string* return_value) {
ScopeLogger();
- std::string profile = "";
+ std::string profile;
PlatformResult ret = GetValueStringNative("tizen.org/feature/profile", &profile);
if (ret.IsError()) {
return ret;