From 3bef0c1e2d9d1e171cca13eff38d291f083f4d90 Mon Sep 17 00:00:00 2001 From: "bg.chun" Date: Wed, 4 May 2016 17:05:59 +0900 Subject: [PATCH] [systeminfo] add kPlatformTv, kProfileTv for tv profile [Verification] sysinfo TCT 100% pass 248/248/0/0/0 Change-Id: I3608f46a58d7448a4e57bb106e6dcf29d69b2b7c Signed-off-by: bg.chun --- src/systeminfo/systeminfo_device_capability.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/systeminfo/systeminfo_device_capability.cc b/src/systeminfo/systeminfo_device_capability.cc index d2295b1..2032ca8 100644 --- a/src/systeminfo/systeminfo_device_capability.cc +++ b/src/systeminfo/systeminfo_device_capability.cc @@ -35,10 +35,12 @@ namespace { const char* kPlatformFull = "mobile-full"; const char* kPlatformMobile = "mobile-web"; const char* kPlatformWearable = "wearable"; +const char* kPlatformTv = "tv"; const char* kProfileFull = "MOBILE_FULL"; const char* kProfileMobile = "MOBILE_WEB"; const char* kProfileWearable = "WEARABLE"; +const char* kProfileTv = "TV"; //opengles const char* kOpenglesTextureDelimiter = "/"; const char* kOpenglesTextureUtc = "utc"; @@ -516,7 +518,12 @@ PlatformResult SystemInfoDeviceCapability::GetProfile(std::string* return_value) *return_value = kProfileMobile; } else if ( kPlatformWearable == profile ) { *return_value = kProfileWearable; + } else if ( kPlatformTv == profile ) { + *return_value = kProfileTv; + } else { + LoggerE("Profile is Unknown return MOBILE_FULL"); } + return PlatformResult(ErrorCode::NO_ERROR); } -- 2.7.4