部件依赖

Signed-off-by: lpf <liaopengfei@h-partners.com>
This commit is contained in:
lpf 2024-10-30 09:28:07 +08:00
parent b2a72db4fd
commit 9c1b353ba6
3 changed files with 8 additions and 6 deletions

View File

@ -85,11 +85,14 @@ if (!ispreview) {
]
external_deps = [
"ace_engine:ace_uicontent",
"graphic_2d:librender_service_client",
"hilog:libhilog",
]
if (!build_ohos_sdk && !is_mingw) {
external_deps += [ "ace_engine:ace_uicontent" ]
}
cflags = [ "-std=c++11" ]
part_name = "window_manager"
subsystem_name = "window"

View File

@ -30,9 +30,9 @@ namespace Rosen {
namespace {
constexpr HiviewDFX::HiLogLabel LABEL = { LOG_CORE, HILOG_DOMAIN_WINDOW, "IntentionEventManager" };
constexpr int32_t TRANSPARENT_FINGER_ID = 10000;
[[maybe_unused]] constexpr int32_t DELAY_TIME = 15;
[[maybe_unused]] constexpr unsigned int FREQUENT_CLICK_TIME_LIMIT = 3;
[[maybe_unused]] constexpr int FREQUENT_CLICK_COUNT_LIMIT = 8;
constexpr int32_t DELAY_TIME = 15;
constexpr unsigned int FREQUENT_CLICK_TIME_LIMIT = 3;
constexpr int FREQUENT_CLICK_COUNT_LIMIT = 8;
static const bool IS_BETA = OHOS::system::GetParameter("const.logsystem.versiontype", "").find("beta") !=
std::string::npos;
@ -95,7 +95,7 @@ bool IntentionEventManager::EnableInputEventListener(Ace::UIContent* uiContent,
TLOGI(WmsLogTag::WMS_EVENT, "SetWindowInputEventConsumer success");
if (IS_BETA) {
// Xcollie's SetTimerCounter task is set with the params to record count and time of the input down event
[[maybe_unused]] int id = HiviewDFX::XCollie::GetInstance().SetTimerCount("FREQUENT_CLICK_WARNING", FREQUENT_CLICK_TIME_LIMIT,
int id = HiviewDFX::XCollie::GetInstance().SetTimerCount("FREQUENT_CLICK_WARNING", FREQUENT_CLICK_TIME_LIMIT,
FREQUENT_CLICK_COUNT_LIMIT);
}
return true;

View File

@ -121,7 +121,6 @@ ohos_shared_library("scene_session_manager") {
"eventhandler:libeventhandler",
"ffrt:libffrt",
"graphic_2d:librender_service_base",
"graphic_2d:librender_service_base",
"graphic_2d:librender_service_client",
"hicollie:libhicollie",
"hilog:libhilog",