From 18c68d0203e1fd69b670ce4e018f9055df66a8b5 Mon Sep 17 00:00:00 2001 From: wangfan Date: Mon, 25 Aug 2025 15:39:13 +0800 Subject: [PATCH] exit str when cancel before alerting Signed-off-by: wangfan --- frameworks/native/src/common_event_support.cpp | 13 +++++++++++++ interfaces/inner_api/common_event_support.h | 6 ++++++ 2 files changed, 19 insertions(+) diff --git a/frameworks/native/src/common_event_support.cpp b/frameworks/native/src/common_event_support.cpp index bf513bd7..2b23611c 100644 --- a/frameworks/native/src/common_event_support.cpp +++ b/frameworks/native/src/common_event_support.cpp @@ -1594,6 +1594,13 @@ const std::string CommonEventSupport::COMMON_EVENT_CUSTOM_ROAMING_REGION_UPDATED */ const std::string CommonEventSupport::COMMON_EVENT_SCREEN_SHARE = "usual.event.SCREEN_SHARE"; +/** + * Indicates that exit str when cancel before alerting. + * This is a protected common event that can only be sent by system. + */ +const std::string CommonEventSupport::COMMON_EVENT_CANCEL_BEFORE_ALERTING = + "usual.event.CANCEL_BEFORE_ALERTING"; + CommonEventSupport::CommonEventSupport() { Init(); @@ -3027,6 +3034,12 @@ void CommonEventSupport::Init() * This is a protected common event that can only be sent by system. */ commonEventSupport_.emplace_back(CommonEventSupport::COMMON_EVENT_SCREEN_SHARE); + + /** + * Indicates that exit str when cancel before alerting. + * This is a protected common event that can only be sent by system. + */ + commonEventSupport_.emplace_back(CommonEventSupport::COMMON_EVENT_CANCEL_BEFORE_ALERTING); return; } diff --git a/interfaces/inner_api/common_event_support.h b/interfaces/inner_api/common_event_support.h index 5fb0581f..54431b05 100644 --- a/interfaces/inner_api/common_event_support.h +++ b/interfaces/inner_api/common_event_support.h @@ -1445,6 +1445,12 @@ public: */ static const std::string COMMON_EVENT_SCREEN_SHARE; + /** + * Indicates that exit str when cancel before alerting. + * This is a protected common event that can only be sent by system. + */ + static const std::string COMMON_EVENT_CANCEL_BEFORE_ALERTING; + public: CommonEventSupport(); -- Gitee