From 4a1650d388b40ca5cae38bf319a689278d4d510a Mon Sep 17 00:00:00 2001 From: zhuhan Date: Thu, 14 Jul 2022 21:10:17 +0800 Subject: [PATCH] Signed-off-by: zhuhan Change-Id: Id96806b644455b64d06185022d27219bd8814d01 Change-Id: Id79d6043dfd4a47f487bc78e065e65b8e849a647 --- .../ans/src/enabled_notification_callback_data.cpp | 4 ++++ frameworks/ans/src/message_user.cpp | 9 +++++++++ frameworks/ans/src/notification_bundle_option.cpp | 4 ++++ .../ans/src/notification_conversational_message.cpp | 6 ++++++ frameworks/ans/src/notification_do_not_disturb_date.cpp | 5 +++++ frameworks/ans/src/notification_flags.cpp | 6 ++++++ frameworks/ans/src/notification_long_text_content.cpp | 6 ++++++ frameworks/ans/src/notification_normal_content.cpp | 5 +++++ frameworks/ans/src/notification_subscribe_info.cpp | 4 ++++ frameworks/ans/src/notification_template.cpp | 3 +++ frameworks/core/common/include/ans_log_wrapper.h | 3 ++- 11 files changed, 54 insertions(+), 1 deletion(-) diff --git a/frameworks/ans/src/enabled_notification_callback_data.cpp b/frameworks/ans/src/enabled_notification_callback_data.cpp index 4346035d4..0b8646053 100644 --- a/frameworks/ans/src/enabled_notification_callback_data.cpp +++ b/frameworks/ans/src/enabled_notification_callback_data.cpp @@ -14,8 +14,12 @@ */ #include "enabled_notification_callback_data.h" + +#include // for operator+, basic_string + #include "ans_log_wrapper.h" #include "string_ex.h" +#include "parcel.h" // for Parcel namespace OHOS { namespace Notification { diff --git a/frameworks/ans/src/message_user.cpp b/frameworks/ans/src/message_user.cpp index ce57886a2..6f3953caf 100644 --- a/frameworks/ans/src/message_user.cpp +++ b/frameworks/ans/src/message_user.cpp @@ -14,8 +14,17 @@ */ #include "message_user.h" + +#include // for basic_string, operator+, basic_string<>... +#include // for shared_ptr, shared_ptr<>::element_type + + #include "ans_image_util.h" #include "ans_log_wrapper.h" +#include "nlohmann/json.hpp" // for json, basic_json<>::object_t, basic_json +#include "parcel.h" // for Parcel +#include "pixel_map.h" // for PixelMap +#include "uri.h" // for Uri namespace OHOS { namespace Notification { diff --git a/frameworks/ans/src/notification_bundle_option.cpp b/frameworks/ans/src/notification_bundle_option.cpp index cdc3c05cc..bf9770077 100644 --- a/frameworks/ans/src/notification_bundle_option.cpp +++ b/frameworks/ans/src/notification_bundle_option.cpp @@ -14,7 +14,11 @@ */ #include "notification_bundle_option.h" + +#include // for operator+, basic_string, to_... + #include "ans_log_wrapper.h" +#include "parcel.h" // for Parcel namespace OHOS { namespace Notification { diff --git a/frameworks/ans/src/notification_conversational_message.cpp b/frameworks/ans/src/notification_conversational_message.cpp index 51d33ed26..b439abab9 100644 --- a/frameworks/ans/src/notification_conversational_message.cpp +++ b/frameworks/ans/src/notification_conversational_message.cpp @@ -14,7 +14,13 @@ */ #include "notification_conversational_message.h" + #include "ans_log_wrapper.h" +#include "message_user.h" // for MessageUser +#include "nlohmann/json.hpp" // for json, basic_json<>:... +#include "notification_json_convert.h" // for NotificationJsonCon... +#include "parcel.h" // for Parcel +#include "uri.h" // for Uri namespace OHOS { namespace Notification { diff --git a/frameworks/ans/src/notification_do_not_disturb_date.cpp b/frameworks/ans/src/notification_do_not_disturb_date.cpp index 188018fd5..3ddae1ea1 100644 --- a/frameworks/ans/src/notification_do_not_disturb_date.cpp +++ b/frameworks/ans/src/notification_do_not_disturb_date.cpp @@ -14,7 +14,12 @@ */ #include "notification_do_not_disturb_date.h" + +#include // for operator+, to_string + #include "ans_log_wrapper.h" +#include "notification_constant.h" // for NotificationConstant +#include "parcel.h" // for Parcel namespace OHOS { namespace Notification { diff --git a/frameworks/ans/src/notification_flags.cpp b/frameworks/ans/src/notification_flags.cpp index dd6461767..e26f1339d 100644 --- a/frameworks/ans/src/notification_flags.cpp +++ b/frameworks/ans/src/notification_flags.cpp @@ -14,7 +14,13 @@ */ #include "notification_flags.h" + +#include // for operator+, to_string, basic_string + #include "ans_log_wrapper.h" +#include "nlohmann/json.hpp" // for json, basic_json<>::object_t, bas... +#include "notification_constant.h" // for NotificationConstant::FlagStatus +#include "parcel.h" // for Parcel namespace OHOS { namespace Notification { diff --git a/frameworks/ans/src/notification_long_text_content.cpp b/frameworks/ans/src/notification_long_text_content.cpp index 7abf07403..752d0ae79 100644 --- a/frameworks/ans/src/notification_long_text_content.cpp +++ b/frameworks/ans/src/notification_long_text_content.cpp @@ -15,7 +15,13 @@ #include "notification_long_text_content.h" +#include // for basic_string, operator+ +#include // for min + #include "ans_log_wrapper.h" +#include "nlohmann/json.hpp" // for json, basic_json<>::obje... +#include "notification_basic_content.h" // for NotificationBasicContent +#include "parcel.h" // for Parcel namespace OHOS { namespace Notification { diff --git a/frameworks/ans/src/notification_normal_content.cpp b/frameworks/ans/src/notification_normal_content.cpp index a65c13472..9bab465f3 100644 --- a/frameworks/ans/src/notification_normal_content.cpp +++ b/frameworks/ans/src/notification_normal_content.cpp @@ -14,7 +14,12 @@ */ #include "notification_normal_content.h" + +#include // for operator+, basic_string + #include "ans_log_wrapper.h" +#include "nlohmann/json.hpp" // for json +#include "notification_basic_content.h" // for NotificationBasicContent namespace OHOS { namespace Notification { diff --git a/frameworks/ans/src/notification_subscribe_info.cpp b/frameworks/ans/src/notification_subscribe_info.cpp index ae092ab08..210dee8c6 100644 --- a/frameworks/ans/src/notification_subscribe_info.cpp +++ b/frameworks/ans/src/notification_subscribe_info.cpp @@ -15,7 +15,11 @@ #include "notification_subscribe_info.h" +#include // for basic_string, operator+ +#include // for vector + #include "ans_log_wrapper.h" +#include "parcel.h" // for Parcel namespace OHOS { namespace Notification { diff --git a/frameworks/ans/src/notification_template.cpp b/frameworks/ans/src/notification_template.cpp index 894bd0e34..e359a01f2 100644 --- a/frameworks/ans/src/notification_template.cpp +++ b/frameworks/ans/src/notification_template.cpp @@ -14,7 +14,10 @@ */ #include "notification_template.h" + #include "ans_log_wrapper.h" +#include "parcel.h" // for Parcel +#include "want_params.h" // for WantParams namespace OHOS { namespace Notification { diff --git a/frameworks/core/common/include/ans_log_wrapper.h b/frameworks/core/common/include/ans_log_wrapper.h index 8449eda9d..05a493cd7 100644 --- a/frameworks/core/common/include/ans_log_wrapper.h +++ b/frameworks/core/common/include/ans_log_wrapper.h @@ -16,7 +16,8 @@ #ifndef BASE_NOTIFICATION_ANS_STANDARD_INNERKITS_BASE_INCLUDE_ANS_LOG_HELPER_H #define BASE_NOTIFICATION_ANS_STANDARD_INNERKITS_BASE_INCLUDE_ANS_LOG_HELPER_H -#include +#include // for uint8_t +#include // for basic_string #include "hilog/log.h" -- Gitee