From: Lukasz Bardeli Date: Wed, 19 Jul 2017 06:39:23 +0000 (+0200) Subject: [SystemInfo] adding support vfpv4 X-Git-Tag: submit/tizen/20170719.080849~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=14e60fd52a8e8c5e8b6b4aba5d4bd5c2a4859a96;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [SystemInfo] adding support vfpv4 [Verification] Code compiles without error. TCT passrate 100% Change-Id: Ibdca896ec76ca69b0269285c1eb735e4b10a1064 Signed-off-by: Lukasz Bardeli --- diff --git a/src/systeminfo/systeminfo_device_capability.cc b/src/systeminfo/systeminfo_device_capability.cc index cec92def..c1976d26 100644 --- a/src/systeminfo/systeminfo_device_capability.cc +++ b/src/systeminfo/systeminfo_device_capability.cc @@ -62,6 +62,7 @@ const char* kPlatformCoreSse3 = "sse3"; const char* kPlatformCoreSsse3 = "ssse3"; const char* kPlatformCoreVfpv2 = "vfpv2"; const char* kPlatformCoreVfpv3 = "vfpv3"; +const char* kPlatformCoreVfpv4 = "vfpv4"; /*API feature*/ /*Network feature*/ @@ -518,6 +519,17 @@ PlatformResult SystemInfoDeviceCapability::GetPlatfomCoreFpuArch(std::string* re } result += kPlatformCoreVfpv3; } + + ret = GetValueBool("tizen.org/feature/platform.core.fpu.arch.vfpv4", &bool_result); + if (ret.IsError()) { + return ret; + } + if (bool_result) { + if (!result.empty()) { + result += kPlatformCoreDelimiter; + } + result += kPlatformCoreVfpv4; + } if (result.empty()) { return LogAndCreateResult(ErrorCode::UNKNOWN_ERR, "platformCoreFpuArch result is empty"); }