[VD] Add FMS key_touch to support smart monitor product of 25y. 15/323115/2
authorfr.fang <fr.fang@samsung.com>
Wed, 23 Apr 2025 06:40:57 +0000 (14:40 +0800)
committerBot Blink <blinkbot@samsung.com>
Thu, 24 Apr 2025 02:41:02 +0000 (02:41 +0000)
smart monitor product of 25y use a new FMS key for touch feature.
"com.samsung/featureconf/touch_module_support"

Add FMS key_touch to support smart monitor product of 25y

Change-Id: Ic88ec6b0dc0731fccbff982b4ce31d6e92508bc6
Signed-off-by: fr.fang <fr.fang@samsung.com>
tizen_src/chromium_impl/tizen/tizen_tv_platform.h

index 57eaa7514b0ad9b1efbd2ddcd3fb7ba0e9d52fd8..c447aaeb8d0132810f34ee984d61d5eb5e742d67 100644 (file)
@@ -16,6 +16,8 @@
 #define FEATURE_KEY_SMART_MONITOR \
   "com.samsung/featureconf/product.smart_monitor_feature_support"
 
+#define FMS_KEY_TOUCH "com.samsung/featureconf/touch_module_support"
+
 // RM index is not available at public include. It had to be copied from
 // Resource-mgr/resource-info/include_internal/parser/CResourceTableProvider.h
 enum class ResourceTableIndex {
@@ -244,8 +246,22 @@ inline bool IsIRTouchSupported() {
   return support;
 }
 
+inline bool IsKEYTouchSupported() {
+  bool support = false;
+  const int info_ret = system_info_get_custom_bool(FMS_KEY_TOUCH, &support);
+  if (info_ret != SYSTEM_INFO_ERROR_NONE) {
+    LOG(WARNING) << "(System info error:" << info_ret
+                 << ") Fail to get key_touch support!!";
+    return false;
+  }
+
+  LOG(INFO) << "KEY touch is supported : " << support;
+  return support;
+}
+
 inline bool IsTouchSupported() {
-  bool support = IsLFDTouchSupported() || IsIRTouchSupported();
+  bool support =
+      IsLFDTouchSupported() || IsIRTouchSupported() || IsKEYTouchSupported();
   LOG(INFO) << "touch is supported : " << support;
   return support;
 }