diff --git a/BUILD.gn b/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..11f42d3ff1ec757dbc52931be4f008c9d7dd43c2
--- /dev/null
+++ b/BUILD.gn
@@ -0,0 +1,14 @@
+# Copyright (c) 2021 Huawei Device Co., Ltd.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import("//build/ohos.gni")
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..4947287f7b5ccb5d1e8b7b2d3aa5d89f322c160d
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,177 @@
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
\ No newline at end of file
diff --git a/OAT.xml b/OAT.xml
new file mode 100644
index 0000000000000000000000000000000000000000..aa01ceabe357535c840cb743727fb16106185a8e
--- /dev/null
+++ b/OAT.xml
@@ -0,0 +1,70 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/README.en.md b/README.en.md
deleted file mode 100644
index 3c3ffbaf083adaffe73bd2b045ca60ab0717370e..0000000000000000000000000000000000000000
--- a/README.en.md
+++ /dev/null
@@ -1,36 +0,0 @@
-# notification_ans_standard
-
-#### Description
-{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**}
-
-#### Software Architecture
-Software architecture description
-
-#### Installation
-
-1. xxxx
-2. xxxx
-3. xxxx
-
-#### Instructions
-
-1. xxxx
-2. xxxx
-3. xxxx
-
-#### Contribution
-
-1. Fork the repository
-2. Create Feat_xxx branch
-3. Commit your code
-4. Create Pull Request
-
-
-#### Gitee Feature
-
-1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
-2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
-3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
-4. The most valuable open source project [GVP](https://gitee.com/gvp)
-5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
-6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
diff --git a/README.md b/README.md
deleted file mode 100644
index 64250220e40a9a00fe729d7988520185319517dc..0000000000000000000000000000000000000000
--- a/README.md
+++ /dev/null
@@ -1,39 +0,0 @@
-# notification_ans_standard
-
-#### 介绍
-{**以下是 Gitee 平台说明,您可以替换此简介**
-Gitee 是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台
-无论是个人、团队、或是企业,都能够用 Gitee 实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)}
-
-#### 软件架构
-软件架构说明
-
-
-#### 安装教程
-
-1. xxxx
-2. xxxx
-3. xxxx
-
-#### 使用说明
-
-1. xxxx
-2. xxxx
-3. xxxx
-
-#### 参与贡献
-
-1. Fork 本仓库
-2. 新建 Feat_xxx 分支
-3. 提交代码
-4. 新建 Pull Request
-
-
-#### 特技
-
-1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
-2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com)
-3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目
-4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目
-5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
-6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
diff --git a/README_zh.md b/README_zh.md
new file mode 100644
index 0000000000000000000000000000000000000000..740832be15e7eab30d5093100e201cd8af2c5ca8
--- /dev/null
+++ b/README_zh.md
@@ -0,0 +1,48 @@
+# 事件通知子系统
+
+## 简介
+
+OpenHarmony通过ANS(Advanced Notification Service,通知系统服务)对通知类型的消息进行管理,支持多种通知类型,包括文本,长文本,多文本,图片,社交,媒体等。所有系统服务以及应用都可以通过通知接口发送通知消息,用户可以通过SystemUI系统APP查看所有通知消息。 为应用程序提供订阅、发布、取消订阅的能力。
+
+通知常见的使用场景:
+
+- 显示接收到短消息、即时消息等。
+- 显示应用的推送消息,如广告、版本更新等。
+- 显示当前正在进行的事件,如播放音乐、导航、下载等。
+
+### 架构图
+
+
+
+## 目录
+
+```
+/base/notification/ans_standard/
+├── innerkits # 对内接口目录
+├── kits # 对外接口目录
+├── sa_profile # 组件服务配置
+├── services # 组件服务实现
+├── tools # 组件工具实现
+│── ohos.build # 组件编译脚本
+
+```
+
+## 使用说明
+
+以下模块的JS接口为非正式API,仅供SystemUI等系统应用使用,不排除对这些接口进行变更的可能性,后续版本将提供正式API。
+
+- notificationSlot.d.ts
+- notificationRequest.d.ts
+- notificationContent.d.ts
+- notificationActionButton.ts
+- triggerInfo.d.ts
+- wantAgentInfo.d.ts
+- @ohos.notification.d.ts
+- @ohos.wantAgent.d.ts
+
+## 相关仓
+
+事件通知子系统
+
+**notification_ans_standard**
+
diff --git a/figures/ans_logical_architecture_diagram.png b/figures/ans_logical_architecture_diagram.png
new file mode 100644
index 0000000000000000000000000000000000000000..6f2161e3203602b66578e78d67d8731098ee4d45
Binary files /dev/null and b/figures/ans_logical_architecture_diagram.png differ
diff --git a/innerkits/BUILD.gn b/innerkits/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..72b56403ec9bcbedef396ef9f13bfe4882851082
--- /dev/null
+++ b/innerkits/BUILD.gn
@@ -0,0 +1,89 @@
+# Copyright (c) 2021 Huawei Device Co., Ltd.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+import("//base/notification/ans_standard/notification.gni")
+import("//build/ohos.gni")
+
+ANS_STANDARD_INNERKITS_CORE_PATH = "${innerkits_path}/core"
+ANS_STANDARD_INNERKITS_BASE_PATH = "${innerkits_path}/base"
+
+group("innerkits_target") {
+ deps = [ ":ans_innerkits" ]
+}
+
+config("private_config") {
+ include_dirs = [ "//utils/system/safwk/native/include" ]
+}
+
+config("public_ans_innerkits_config") {
+ include_dirs = [
+ "${ANS_STANDARD_INNERKITS_CORE_PATH}/include",
+ "${ANS_STANDARD_INNERKITS_BASE_PATH}/include",
+ "//foundation/aafwk/standard/interfaces/innerkits/base/include",
+ "${kits_path}/native/include",
+ "//utils/native/base/include",
+ ]
+}
+
+ohos_shared_library("ans_innerkits") {
+ sources = [
+ "${ANS_STANDARD_INNERKITS_BASE_PATH}/src/ans_log_wrapper.cpp",
+ "${ANS_STANDARD_INNERKITS_CORE_PATH}/src/ans_manager_death_recipient.cpp",
+ "${ANS_STANDARD_INNERKITS_CORE_PATH}/src/ans_manager_proxy.cpp",
+ "${ANS_STANDARD_INNERKITS_CORE_PATH}/src/ans_manager_stub.cpp",
+ "${ANS_STANDARD_INNERKITS_CORE_PATH}/src/ans_notification.cpp",
+ "${ANS_STANDARD_INNERKITS_CORE_PATH}/src/ans_subscriber_proxy.cpp",
+ "${ANS_STANDARD_INNERKITS_CORE_PATH}/src/ans_subscriber_stub.cpp",
+ "${kits_path}/native/src/message_user.cpp",
+ "${kits_path}/native/src/notification.cpp",
+ "${kits_path}/native/src/notification_action_button.cpp",
+ "${kits_path}/native/src/notification_basic_content.cpp",
+ "${kits_path}/native/src/notification_constant.cpp",
+ "${kits_path}/native/src/notification_content.cpp",
+ "${kits_path}/native/src/notification_conversational_content.cpp",
+ "${kits_path}/native/src/notification_conversational_message.cpp",
+ "${kits_path}/native/src/notification_helper.cpp",
+ "${kits_path}/native/src/notification_long_text_content.cpp",
+ "${kits_path}/native/src/notification_media_content.cpp",
+ "${kits_path}/native/src/notification_multiline_content.cpp",
+ "${kits_path}/native/src/notification_normal_content.cpp",
+ "${kits_path}/native/src/notification_picture_content.cpp",
+ "${kits_path}/native/src/notification_request.cpp",
+ "${kits_path}/native/src/notification_slot.cpp",
+ "${kits_path}/native/src/notification_slot_group.cpp",
+ "${kits_path}/native/src/notification_sorting.cpp",
+ "${kits_path}/native/src/notification_sorting_map.cpp",
+ "${kits_path}/native/src/notification_subscribe_info.cpp",
+ "${kits_path}/native/src/notification_subscriber.cpp",
+ "${kits_path}/native/src/notification_user_input.cpp",
+ ]
+
+ configs = [ ":private_config" ]
+
+ public_configs = [ ":public_ans_innerkits_config" ]
+
+ deps = [
+ "${kits_path}/native/wantagent:wantagent_kits",
+ "//foundation/aafwk/standard/interfaces/innerkits/want:want",
+ "//foundation/distributedschedule/dmsfwk/interfaces/innerkits/uri:zuri",
+ "//utils/native/base:utils",
+ ]
+
+ external_deps = [
+ "hiviewdfx_hilog_native:libhilog",
+ "ipc:ipc_core",
+ "samgr_L2:samgr_proxy",
+ ]
+
+ part_name = "ans_standard"
+ subsystem_name = "notification"
+}
diff --git a/innerkits/base/include/ans_const_define.h b/innerkits/base/include/ans_const_define.h
new file mode 100644
index 0000000000000000000000000000000000000000..016adbf38d702fef188e4ac8186a17f056270a0e
--- /dev/null
+++ b/innerkits/base/include/ans_const_define.h
@@ -0,0 +1,32 @@
+/*
+ * Copyright (c) 2021 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef BASE_NOTIFICATION_ANS_STANDARD_INNERKITS_BASE_INCLUDE_ANS_CONST_DEFINE_H
+#define BASE_NOTIFICATION_ANS_STANDARD_INNERKITS_BASE_INCLUDE_ANS_CONST_DEFINE_H
+
+namespace OHOS {
+namespace Notification {
+
+// Max active notification number
+constexpr uint32_t MAX_ACTIVE_NUM = 1024 * 1024;
+constexpr uint32_t MAX_SLOT_NUM = 5;
+constexpr uint32_t MAX_SLOT_GROUP_NUM = 4;
+constexpr int32_t ANS_UID = 1000;
+constexpr int32_t ANS_GID = 1000;
+
+} // namespace Notification
+} // namespace OHOS
+
+#endif // BASE_NOTIFICATION_ANS_STANDARD_INNERKITS_BASE_INCLUDE_ANS_CONST_DEFINE_H
\ No newline at end of file
diff --git a/innerkits/base/include/ans_inner_errors.h b/innerkits/base/include/ans_inner_errors.h
new file mode 100644
index 0000000000000000000000000000000000000000..1a43e7103c36f37b604c861871cf0526c9a64635
--- /dev/null
+++ b/innerkits/base/include/ans_inner_errors.h
@@ -0,0 +1,76 @@
+/*
+ * Copyright (c) 2021 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef BASE_NOTIFICATION_ANS_STANDARD_INNERKITS_BASE_INCLUDE_ANS_INNER_ERRORS_H
+#define BASE_NOTIFICATION_ANS_STANDARD_INNERKITS_BASE_INCLUDE_ANS_INNER_ERRORS_H
+
+#include "errors.h"
+
+namespace OHOS {
+namespace Notification {
+/**
+ * ErrCode layout
+ *
+ * +-----+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
+ * | Bit |31|30|29|28|27|26|25|24|23|22|21|20|19|18|17|16|15|14|13|12|11|10|09|08|07|06|05|04|03|02|01|00|
+ * +-----+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
+ * |Field|Reserved| Subsystem | Module | Code |
+ * +-----+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
+ */
+
+constexpr uint32_t EVENT_SUB_MODULE_OFFSET = 8; // sub-module offset value
+
+// ANS's module const defined.
+enum AnsModule : uint32_t {
+ ANS_MODULE_COMMON = 0x00,
+};
+
+// Offset of common event sub-system's errcode base.
+constexpr ErrCode ANS_COMMON_ERR_OFFSET = ErrCodeOffset(SUBSYS_NOTIFICATION, ANS_MODULE_COMMON);
+
+// Error code defined.
+enum ErrorCode : uint32_t {
+ ERR_ANS_SERVICE_NOT_READY = ANS_COMMON_ERR_OFFSET + 1,
+ ERR_ANS_SERVICE_NOT_CONNECTED,
+ ERR_ANS_INVALID_PARAM,
+ ERR_ANS_INVALID_UID,
+ ERR_ANS_INVALID_PID,
+ ERR_ANS_NOT_ALLOWED,
+ ERR_ANS_PARCELABLE_FAILED,
+ ERR_ANS_TRANSACT_FAILED,
+ ERR_ANS_REMOTE_DEAD,
+ ERR_ANS_NO_MEMORY,
+ ERR_ANS_TASK_ERR,
+ ERR_ANS_NON_SYSTEM_APP,
+ ERR_ANS_NOTIFICATION_NOT_EXISTS,
+ ERR_ANS_NOTIFICATION_IS_UNREMOVABLE,
+
+ ERR_ANS_PREFERENCES_FILE_IS_NULL,
+ ERR_ANS_PREFERENCES_FILE_DOES_NOT_OPEN,
+ ERR_ANS_PREFERENCES_FILE_EXCEPTION,
+ ERR_ANS_PREFERENCES_NOTIFICATION_SLOT_NOT_EXIST,
+ ERR_ANS_PREFERENCES_NOTIFICATION_BUNDLE_NOT_EXIST,
+ ERR_ANS_PREFERENCES_NOTIFICATION_SLOT_ID_INVALID,
+ ERR_ANS_PREFERENCES_NOTIFICATION_SLOT_TYPE_NOT_EXIST,
+ ERR_ANS_PREFERENCES_NOTIFICATION_SLOT_EXCEED_MAX_NUM,
+ ERR_ANS_PREFERENCES_NOTIFICATION_SLOTGROUP_NOT_EXIST,
+ ERR_ANS_PREFERENCES_NOTIFICATION_SLOTGROUP_HAS_EXISTED,
+ ERR_ANS_PREFERENCES_NOTIFICATION_SLOTGROUP_ID_INVALID,
+ ERR_ANS_PREFERENCES_NOTIFICATION_SLOTGROUP_EXCEED_MAX_NUM,
+};
+} // namespace Notification
+} // namespace OHOS
+
+#endif // BASE_NOTIFICATION_ANS_STANDARD_INNERKITS_BASE_INCLUDE_ANS_INNER_ERRORS_H
\ No newline at end of file
diff --git a/innerkits/base/include/ans_log_wrapper.h b/innerkits/base/include/ans_log_wrapper.h
new file mode 100644
index 0000000000000000000000000000000000000000..3f03294f465bd7eceec7d115770979fada7ad473
--- /dev/null
+++ b/innerkits/base/include/ans_log_wrapper.h
@@ -0,0 +1,78 @@
+/*
+ * Copyright (c) 2021 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#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 "hilog/log.h"
+
+namespace OHOS {
+namespace Notification {
+
+#ifndef LOG_DOMAIN
+#define LOG_DOMAIN 0xD001800
+#endif
+
+#ifndef ANS_LOG_TAG
+#define ANS_LOG_TAG NULL
+#endif
+
+enum class AnsLogLevel : uint8_t { DEBUG = 0, INFO, WARN, ERROR, FATAL };
+
+static constexpr OHOS::HiviewDFX::HiLogLabel ANS_LABEL = {LOG_CORE, LOG_DOMAIN, "ANS_STANDARD"};
+
+class AnsLogWrapper {
+public:
+ AnsLogWrapper() = delete;
+ ~AnsLogWrapper() = delete;
+
+ static bool JudgeLevel(const AnsLogLevel &level);
+
+ static void SetLogLevel(const AnsLogLevel &level)
+ {
+ level_ = level;
+ }
+
+ static const AnsLogLevel &GetLogLevel()
+ {
+ return level_;
+ }
+
+ static std::string GetBriefFileName(const char *str);
+
+private:
+ static AnsLogLevel level_;
+};
+
+#define PRINT_LOG(LEVEL, Level, fmt, ...) \
+ if (AnsLogWrapper::JudgeLevel(AnsLogLevel::LEVEL)) \
+ OHOS::HiviewDFX::HiLog::Level(ANS_LABEL, \
+ "[%{public}s(%{public}s):%{public}d] " fmt, \
+ AnsLogWrapper::GetBriefFileName(__FILE__).c_str(), \
+ __FUNCTION__, \
+ __LINE__, \
+ ##__VA_ARGS__)
+
+#define ANS_LOGD(fmt, ...) PRINT_LOG(DEBUG, Debug, fmt, ##__VA_ARGS__)
+#define ANS_LOGI(fmt, ...) PRINT_LOG(INFO, Info, fmt, ##__VA_ARGS__)
+#define ANS_LOGW(fmt, ...) PRINT_LOG(WARN, Warn, fmt, ##__VA_ARGS__)
+#define ANS_LOGE(fmt, ...) PRINT_LOG(ERROR, Error, fmt, ##__VA_ARGS__)
+#define ANS_LOGF(fmt, ...) PRINT_LOG(FATAL, Fatal, fmt, ##__VA_ARGS__)
+} // namespace Notification
+} // namespace OHOS
+
+#endif // BASE_NOTIFICATION_ANS_STANDARD_INNERKITS_BASE_INCLUDE_ANS_LOG_HELPER_H
\ No newline at end of file
diff --git a/innerkits/base/src/ans_log_wrapper.cpp b/innerkits/base/src/ans_log_wrapper.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..dc568d4005ac30066cdc6317981af881c4d78b0e
--- /dev/null
+++ b/innerkits/base/src/ans_log_wrapper.cpp
@@ -0,0 +1,43 @@
+/*
+ * Copyright (c) 2021 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "ans_log_wrapper.h"
+
+namespace OHOS {
+namespace Notification {
+AnsLogLevel AnsLogWrapper::level_ = {AnsLogLevel::DEBUG};
+bool AnsLogWrapper::JudgeLevel(const AnsLogLevel &level)
+{
+ const AnsLogLevel &curLevel = AnsLogWrapper::GetLogLevel();
+ if (level < curLevel) {
+ return false;
+ }
+ return true;
+}
+
+std::string AnsLogWrapper::GetBriefFileName(const char *str)
+{
+ if (!str) {
+ return std::string();
+ }
+ std::string fullPath(str);
+ size_t pos = fullPath.find_last_of("/");
+ if (pos == std::string::npos) {
+ return std::string();
+ }
+ return fullPath.substr(pos + 1);
+}
+} // namespace Notification
+} // namespace OHOS
diff --git a/innerkits/core/include/ans_manager_death_recipient.h b/innerkits/core/include/ans_manager_death_recipient.h
new file mode 100644
index 0000000000000000000000000000000000000000..acf6b93728fb1b0aca7312b788d0e860b291e0f8
--- /dev/null
+++ b/innerkits/core/include/ans_manager_death_recipient.h
@@ -0,0 +1,34 @@
+/*
+ * Copyright (c); 2021 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");;
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+#ifndef BASE_NOTIFICATION_ANS_STANDARD_KITS_NATIVE_INCLUDE_NOTIFICATION_DEATH_RECIPIENT_H
+#define BASE_NOTIFICATION_ANS_STANDARD_KITS_NATIVE_INCLUDE_NOTIFICATION_DEATH_RECIPIENT_H
+
+#include "iremote_object.h"
+
+namespace OHOS {
+namespace Notification {
+class AnsManagerDeathRecipient : public IRemoteObject::DeathRecipient {
+public:
+ AnsManagerDeathRecipient() = default;
+
+ virtual ~AnsManagerDeathRecipient() = default;
+
+ virtual void OnRemoteDied(const wptr &object) override;
+};
+
+} // namespace Notification
+} // namespace OHOS
+
+#endif
diff --git a/innerkits/core/include/ans_manager_interface.h b/innerkits/core/include/ans_manager_interface.h
new file mode 100644
index 0000000000000000000000000000000000000000..ad843cdd10947ff271f253196bc173bf849a0133
--- /dev/null
+++ b/innerkits/core/include/ans_manager_interface.h
@@ -0,0 +1,146 @@
+/*
+ * Copyright (c) 2021 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef BASE_NOTIFICATION_ANS_STANDARD_INNERKITS_CORE_INCLUDE_ANS_MANAGER_INTERFACE_H
+#define BASE_NOTIFICATION_ANS_STANDARD_INNERKITS_CORE_INCLUDE_ANS_MANAGER_INTERFACE_H
+
+#include
+#include
+
+#include "ans_subscriber_interface.h"
+#include "iremote_broker.h"
+#include "notification_constant.h"
+#include "notification_request.h"
+#include "notification_slot.h"
+#include "notification_slot_group.h"
+#include "notification_sorting.h"
+#include "notification_subscribe_info.h"
+
+namespace OHOS {
+namespace Notification {
+class IAnsManager : public IRemoteBroker {
+public:
+ IAnsManager() = default;
+ virtual ~IAnsManager() override = default;
+ DISALLOW_COPY_AND_MOVE(IAnsManager);
+
+ DECLARE_INTERFACE_DESCRIPTOR(u"OHOS.Notification.IAnsManager");
+
+ virtual ErrCode Publish(const std::string &label, const sptr ¬ification) = 0;
+ virtual ErrCode PublishToDevice(const sptr ¬ification, const std::string &deviceId) = 0;
+ virtual ErrCode Cancel(int notificationId, const std::string &label) = 0;
+ virtual ErrCode CancelAll() = 0;
+ virtual ErrCode AddSlots(const std::vector> &slots) = 0;
+ virtual ErrCode RemoveSlots(const std::vector &slotIds) = 0;
+ virtual ErrCode RemoveSlotByType(const NotificationConstant::SlotType slotType) = 0;
+ virtual ErrCode AddSlotGroups(std::vector> groups) = 0;
+ virtual ErrCode GetSlot(const std::string &slotId, sptr &slot) = 0;
+ virtual ErrCode GetSlotByType(const NotificationConstant::SlotType slotType, sptr &slot) = 0;
+ virtual ErrCode GetSlots(std::vector> &slots) = 0;
+ virtual ErrCode GetSlotGroup(const std::string &groupId, sptr &group) = 0;
+ virtual ErrCode GetSlotGroups(std::vector> &groups) = 0;
+ virtual ErrCode RemoveSlotGroups(const std::vector &groupIds) = 0;
+ virtual ErrCode GetActiveNotifications(std::vector> ¬ifications) = 0;
+ virtual ErrCode GetActiveNotificationNums(int &num) = 0;
+ virtual ErrCode GetAllActiveNotifications(std::vector> ¬ifications) = 0;
+ virtual ErrCode GetSpecialActiveNotifications(
+ const std::vector &key, std::vector> ¬ifications) = 0;
+ virtual ErrCode SetNotificationAgent(const std::string &agent) = 0;
+ virtual ErrCode GetNotificationAgent(std::string &agent) = 0;
+ virtual ErrCode CanPublishAsBundle(const std::string &representativeBundle, bool &canPublish) = 0;
+ virtual ErrCode PublishAsBundle(
+ const sptr notification, const std::string &representativeBundle) = 0;
+ virtual ErrCode SetNotificationBadgeNum(int num) = 0;
+ virtual ErrCode GetBundleImportance(int &importance) = 0;
+ virtual ErrCode SetDisturbMode(NotificationConstant::DisturbMode mode) = 0;
+ virtual ErrCode GetDisturbMode(NotificationConstant::DisturbMode &mode) = 0;
+ virtual ErrCode HasNotificationPolicyAccessPermission(bool &granted) = 0;
+ virtual ErrCode SetPrivateNotificationsAllowed(bool allow) = 0;
+ virtual ErrCode GetPrivateNotificationsAllowed(bool &allow) = 0;
+ virtual ErrCode Delete(const std::string &key) = 0;
+ virtual ErrCode DeleteByBundle(const std::string &bundle) = 0;
+ virtual ErrCode DeleteAll() = 0;
+ virtual ErrCode GetSlotsByBundle(const std::string &bundle, std::vector> &slots) = 0;
+ virtual ErrCode UpdateSlots(const std::string &bundle, const std::vector> &slots) = 0;
+ virtual ErrCode UpdateSlotGroups(
+ const std::string &bundle, const std::vector> &groups) = 0;
+ virtual ErrCode SetNotificationsEnabledForBundle(const std::string &deviceId, bool enabled) = 0;
+ virtual ErrCode SetNotificationsEnabledForAllBundles(const std::string &deviceId, bool enabled) = 0;
+ virtual ErrCode SetNotificationsEnabledForSpecialBundle(
+ const std::string &deviceId, const std::string &bundleName, bool enabled) = 0;
+ virtual ErrCode SetShowBadgeEnabledForBundle(const std::string &bundle, bool enabled) = 0;
+ virtual ErrCode GetShowBadgeEnabledForBundle(const std::string &bundle, bool &enabled) = 0;
+ virtual ErrCode Subscribe(const sptr &subscriber, const sptr &info) = 0;
+ virtual ErrCode Unsubscribe(
+ const sptr &subscriber, const sptr &info) = 0;
+ virtual ErrCode AreNotificationsSuspended(bool &suspended) = 0;
+ virtual ErrCode GetCurrentAppSorting(sptr &sortingMap) = 0;
+ virtual ErrCode IsAllowedNotify(bool &allowed) = 0;
+ virtual ErrCode IsSpecialBundleAllowedNotify(const std::string &bundle, bool &allowed) = 0;
+
+protected:
+ enum TransactId : uint32_t {
+ PUBLISH_NOTIFICATION = FIRST_CALL_TRANSACTION,
+ PUBLISH_NOTIFICATION_TO_DEVICE,
+ CANCEL_NOTIFICATION,
+ CANCEL_ALL_NOTIFICATIONS,
+ ADD_SLOTS,
+ REMOVE_SLOTS,
+ REMOVE_SLOT_BY_TYPE,
+ ADD_SLOT_GROUPS,
+ GET_SLOT,
+ GET_SLOT_BY_TYPE,
+ GET_SLOTS,
+ GET_SLOT_GROUP,
+ GET_SLOT_GROUPS,
+ REMOVE_SLOT_GROUPS,
+ GET_ACTIVE_NOTIFICATIONS,
+ GET_ACTIVE_NOTIFICATION_NUMS,
+ GET_ALL_ACTIVE_NOTIFICATIONS,
+ GET_SPECIAL_ACTIVE_NOTIFICATIONS,
+ SET_NOTIFICATION_AGENT,
+ GET_NOTIFICATION_AGENT,
+ CAN_PUBLISH_AS_BUNDLE,
+ PUBLISH_AS_BUNDLE,
+ SET_NOTIFICATION_BADGE_NUM,
+ GET_BUNDLE_IMPORTANCE,
+ SET_DISTURB_MODE,
+ GET_DISTURB_MODE,
+ IS_NOTIFICATION_POLICY_ACCESS_GRANTED,
+ SET_PRIVATIVE_NOTIFICATIONS_ALLOWED,
+ GET_PRIVATIVE_NOTIFICATIONS_ALLOWED,
+ DELETE_NOTIFICATION,
+ DELETE_NOTIFICATION_BY_BUNDLE,
+ DELETE_ALL_NOTIFICATIONS,
+ GET_SLOTS_BY_BUNDLE,
+ UPDATE_SLOTS,
+ UPDATE_SLOT_GROUPS,
+ SET_NOTIFICATION_ENABLED_FOR_BUNDLE,
+ SET_NOTIFICATION_ENABLED_FOR_ALL_BUNDLE,
+ SET_NOTIFICATION_ENABLED_FOR_SPECIAL_BUNDLE,
+ SET_SHOW_BADGE_ENABLED_FOR_BUNDLE,
+ GET_SHOW_BADGE_ENABLED_FOR_BUNDLE,
+ SUBSCRIBE_NOTIFICATION,
+ UNSUBSCRIBE_NOTIFICATION,
+ ARE_NOTIFICATION_SUSPENDED,
+ GET_CURRENT_APP_SORTING,
+ IS_ALLOWED_NOTIFY,
+ IS_SPECIAL_BUNDLE_ALLOWED_NOTIFY,
+ };
+};
+} // namespace Notification
+} // namespace OHOS
+
+#endif // BASE_NOTIFICATION_ANS_STANDARD_INNERKITS_CORE_INCLUDE_ANS_MANAGER_INTERFACE_H
diff --git a/innerkits/core/include/ans_manager_proxy.h b/innerkits/core/include/ans_manager_proxy.h
new file mode 100644
index 0000000000000000000000000000000000000000..c9e9e8e173ba2bba09307b8e63fda425f0c98b0c
--- /dev/null
+++ b/innerkits/core/include/ans_manager_proxy.h
@@ -0,0 +1,95 @@
+/*
+ * Copyright (c) 2021 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef BASE_NOTIFICATION_ANS_STANDARD_INNERKITS_CORE_INCLUDE_ANS_MANAGER_PROXY_H
+#define BASE_NOTIFICATION_ANS_STANDARD_INNERKITS_CORE_INCLUDE_ANS_MANAGER_PROXY_H
+
+#include "ans_manager_interface.h"
+#include "iremote_proxy.h"
+
+namespace OHOS {
+namespace Notification {
+class AnsManagerProxy : public IRemoteProxy {
+public:
+ AnsManagerProxy() = delete;
+ explicit AnsManagerProxy(const sptr &impl);
+ ~AnsManagerProxy() override;
+ DISALLOW_COPY_AND_MOVE(AnsManagerProxy);
+
+ ErrCode Publish(const std::string &label, const sptr ¬ification) override;
+ ErrCode PublishToDevice(const sptr ¬ification, const std::string &deviceId) override;
+ ErrCode Cancel(int notificationId, const std::string &label) override;
+ ErrCode CancelAll() override;
+ ErrCode AddSlots(const std::vector> &slots) override;
+ ErrCode RemoveSlots(const std::vector &slotIds) override;
+ ErrCode RemoveSlotByType(const NotificationConstant::SlotType slotType) override;
+ ErrCode AddSlotGroups(std::vector> groups) override;
+ ErrCode GetSlot(const std::string &slotId, sptr &slot) override;
+ ErrCode GetSlotByType(const NotificationConstant::SlotType slotType, sptr &slot) override;
+ ErrCode GetSlots(std::vector> &slots) override;
+ ErrCode GetSlotGroup(const std::string &groupId, sptr &group) override;
+ ErrCode GetSlotGroups(std::vector> &groups) override;
+ ErrCode RemoveSlotGroups(const std::vector &groupIds) override;
+ ErrCode GetActiveNotifications(std::vector> ¬ifications) override;
+ ErrCode GetActiveNotificationNums(int &num) override;
+ ErrCode GetAllActiveNotifications(std::vector> ¬ifications) override;
+ ErrCode GetSpecialActiveNotifications(
+ const std::vector &key, std::vector> ¬ifications) override;
+ ErrCode SetNotificationAgent(const std::string &agent) override;
+ ErrCode GetNotificationAgent(std::string &agent) override;
+ ErrCode CanPublishAsBundle(const std::string &representativeBundle, bool &canPublish) override;
+ ErrCode PublishAsBundle(
+ const sptr notification, const std::string &representativeBundle) override;
+ ErrCode SetNotificationBadgeNum(int num) override;
+ ErrCode GetBundleImportance(int &importance) override;
+ ErrCode SetDisturbMode(NotificationConstant::DisturbMode mode) override;
+ ErrCode GetDisturbMode(NotificationConstant::DisturbMode &mode) override;
+ ErrCode HasNotificationPolicyAccessPermission(bool &granted) override;
+ ErrCode SetPrivateNotificationsAllowed(bool allow) override;
+ ErrCode GetPrivateNotificationsAllowed(bool &allow) override;
+ ErrCode Delete(const std::string &key) override;
+ ErrCode DeleteByBundle(const std::string &bundle) override;
+ ErrCode DeleteAll() override;
+ ErrCode GetSlotsByBundle(const std::string &bundle, std::vector> &slots) override;
+ ErrCode UpdateSlots(const std::string &bundle, const std::vector> &slots) override;
+ ErrCode UpdateSlotGroups(
+ const std::string &bundle, const std::vector> &groups) override;
+ ErrCode SetNotificationsEnabledForBundle(const std::string &deviceId, bool enabled) override;
+ ErrCode SetNotificationsEnabledForAllBundles(const std::string &deviceId, bool enabled) override;
+ ErrCode SetNotificationsEnabledForSpecialBundle(
+ const std::string &deviceId, const std::string &bundleName, bool enabled) override;
+ ErrCode SetShowBadgeEnabledForBundle(const std::string &bundle, bool enabled) override;
+ ErrCode GetShowBadgeEnabledForBundle(const std::string &bundle, bool &enabled) override;
+ ErrCode Subscribe(const sptr &subscriber, const sptr &info) override;
+ ErrCode Unsubscribe(const sptr &subscriber, const sptr &info) override;
+ ErrCode AreNotificationsSuspended(bool &suspended) override;
+ ErrCode GetCurrentAppSorting(sptr &sortingMap) override;
+ ErrCode IsAllowedNotify(bool &allowed) override;
+ ErrCode IsSpecialBundleAllowedNotify(const std::string &bundle, bool &allowed) override;
+
+private:
+ ErrCode InnerTransact(uint32_t code, MessageOption &flags, MessageParcel &data, MessageParcel &reply);
+
+ template
+ bool WriteParcelableVector(const std::vector> &parcelableVector, MessageParcel &data);
+
+ template
+ bool ReadParcelableVector(std::vector> &parcelableInfos, MessageParcel &reply, ErrCode &result);
+ static inline BrokerDelegator delegator_;
+};
+} // namespace Notification
+} // namespace OHOS
+
+#endif // BASE_NOTIFICATION_ANS_STANDARD_INNERKITS_CORE_INCLUDE_ANS_MANAGER_PROXY_H
diff --git a/innerkits/core/include/ans_manager_stub.h b/innerkits/core/include/ans_manager_stub.h
new file mode 100644
index 0000000000000000000000000000000000000000..ec967f40f278c86d71f9329eaccc0ebb2047b0b5
--- /dev/null
+++ b/innerkits/core/include/ans_manager_stub.h
@@ -0,0 +1,149 @@
+/*
+ * Copyright (c) 2021 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef BASE_NOTIFICATION_ANS_STANDARD_INNERKITS_CORE_INCLUDE_ANS_MANAGER_STUB_H
+#define BASE_NOTIFICATION_ANS_STANDARD_INNERKITS_CORE_INCLUDE_ANS_MANAGER_STUB_H
+
+#include
+#include