return is_ir_touch_support.value();
}
+bool IsTouchModuleSupported() {
+ static absl::optional<bool> touch_module_support;
+ if (touch_module_support.has_value())
+ return touch_module_support.value();
+
+ bool is_supported = false;
+ if (SYSTEM_INFO_ERROR_NONE !=
+ system_info_get_custom_bool(
+ "com.samsung/featureconf/touch_module_support", &is_supported)) {
+ LOG(ERROR) << "Fail to get system info: touch_module_support";
+ }
+ LOG(INFO) << "touch_module_support : " << is_supported;
+ touch_module_support = is_supported;
+
+ return touch_module_support.value();
+}
+
bool IsTouchSupported() {
static absl::optional<bool> is_touch_support;
if (is_touch_support.has_value())
return is_touch_support.value();
- is_touch_support = IsLFDTouchSupported() || IsIRTouchSupported();
+ is_touch_support =
+ IsLFDTouchSupported() || IsIRTouchSupported() || IsTouchModuleSupported();
return is_touch_support.value();
}
bool HasLimitQuotaPermission();
bool IsIRTouchSupported();
bool IsLFDTouchSupported();
+bool IsTouchModuleSupported();
bool IsTouchSupported();
bool IsVisualControllerSupported();
bool IsMouseCursorSupportedModel();