diff --git a/build-tools/capi_parser/.gitignore b/build-tools/capi_parser/.gitignore
index 05d3619486129b5ef047908b00945f70eda13d97..4ca112d82a0e5c37b7aea7e7b19bfe0e07135c53 100644
--- a/build-tools/capi_parser/.gitignore
+++ b/build-tools/capi_parser/.gitignore
@@ -1,2 +1,4 @@
/**/__pycache__/*
-.idea/
\ No newline at end of file
+.idea/
+test/ut/check/*.h.gch
+test/output
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/check/ut_check_doc_addgroup_001.json b/build-tools/capi_parser/test/expect/check/ut_check_doc_addgroup_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..1c9960926508a98426afb39335e2a6bffcc1698d
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/check/ut_check_doc_addgroup_001.json
@@ -0,0 +1,3 @@
+[
+ "api_check: false"
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/check/ut_check_doc_addgroup_002.json b/build-tools/capi_parser/test/expect/check/ut_check_doc_addgroup_002.json
new file mode 100644
index 0000000000000000000000000000000000000000..1c67ddebc5823ef0223efb8edf2c895b7d69b7eb
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/check/ut_check_doc_addgroup_002.json
@@ -0,0 +1,10 @@
+[
+ {
+ "id": 0,
+ "level": 2,
+ "location": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_addgroup_002.h(line:0, col:0)",
+ "file_path": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_addgroup_002.h",
+ "message": "API check error of [miss tag value]:the [addtogroup] tag value is empty. Please supplement the default value"
+ },
+ "api_check: false"
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/check/ut_check_doc_addgroup_003.json b/build-tools/capi_parser/test/expect/check/ut_check_doc_addgroup_003.json
new file mode 100644
index 0000000000000000000000000000000000000000..e40df08d9a09f11ba179e0d3e29185e86fc282c9
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/check/ut_check_doc_addgroup_003.json
@@ -0,0 +1,10 @@
+[
+ {
+ "id": 8,
+ "level": 2,
+ "location": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_addgroup_003.h(line:0, col:0)",
+ "file_path": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_addgroup_003.h",
+ "message": "API check error of [wrong scene]:the file missing group doc"
+ },
+ "api_check: false"
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/check/ut_check_doc_addgroup_004.json b/build-tools/capi_parser/test/expect/check/ut_check_doc_addgroup_004.json
new file mode 100644
index 0000000000000000000000000000000000000000..c47be77c4f63016d1534773a235e4edfa1f101da
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/check/ut_check_doc_addgroup_004.json
@@ -0,0 +1,17 @@
+[
+ {
+ "id": 8,
+ "level": 2,
+ "location": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_addgroup_004.h(line:0, col:0)",
+ "file_path": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_addgroup_004.h",
+ "message": "API check error of [wrong scene]:the [addtogroup] tag is repeat. Please check the tag in file"
+ },
+ {
+ "id": 8,
+ "level": 2,
+ "location": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_addgroup_004.h(line:0, col:0)",
+ "file_path": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_addgroup_004.h",
+ "message": "API check error of [wrong scene]:the validity verification of the Doc tag failed. The [{] tag is not allowed to used in Doc which not has addtogroup tag, or used in the wrong place."
+ },
+ "api_check: false"
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/check/ut_check_doc_description_001.json b/build-tools/capi_parser/test/expect/check/ut_check_doc_description_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..1c9960926508a98426afb39335e2a6bffcc1698d
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/check/ut_check_doc_description_001.json
@@ -0,0 +1,3 @@
+[
+ "api_check: false"
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/check/ut_check_doc_description_002.json b/build-tools/capi_parser/test/expect/check/ut_check_doc_description_002.json
new file mode 100644
index 0000000000000000000000000000000000000000..b9e6a319deccc7a2426b4e74ebd9138925b48c23
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/check/ut_check_doc_description_002.json
@@ -0,0 +1,10 @@
+[
+ {
+ "id": 5,
+ "level": 2,
+ "location": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_description_002.h(line:51, col:12)",
+ "file_path": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_description_002.h",
+ "message": "API check error of [unknow deprecated]:the [deprecated] tag value is incorrect. Please check the usage method"
+ },
+ "api_check: false"
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/check/ut_check_doc_description_003.json b/build-tools/capi_parser/test/expect/check/ut_check_doc_description_003.json
new file mode 100644
index 0000000000000000000000000000000000000000..fc34c77692e2fbd543e9cc8ad150be14b1ce2049
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/check/ut_check_doc_description_003.json
@@ -0,0 +1,10 @@
+[
+ {
+ "id": 5,
+ "level": 2,
+ "location": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_description_003.h(line:51, col:12)",
+ "file_path": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_description_003.h",
+ "message": "API check error of [unknow deprecated]:the [deprecated] tag value is incorrect. Please check the usage method"
+ },
+ "api_check: false"
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/check/ut_check_doc_description_004.json b/build-tools/capi_parser/test/expect/check/ut_check_doc_description_004.json
new file mode 100644
index 0000000000000000000000000000000000000000..8a98da6921bbcf42ac7bd3818d79fe3e3e587667
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/check/ut_check_doc_description_004.json
@@ -0,0 +1,10 @@
+[
+ {
+ "id": 5,
+ "level": 2,
+ "location": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_description_004.h(line:51, col:12)",
+ "file_path": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_description_004.h",
+ "message": "API check error of [unknow deprecated]:the [deprecated] tag value is incorrect. Please check the usage method"
+ },
+ "api_check: false"
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/check/ut_check_doc_description_005.json b/build-tools/capi_parser/test/expect/check/ut_check_doc_description_005.json
new file mode 100644
index 0000000000000000000000000000000000000000..892c0e2961bcffd3e8df3978ad8de3df168388c4
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/check/ut_check_doc_description_005.json
@@ -0,0 +1,10 @@
+[
+ {
+ "id": 5,
+ "level": 2,
+ "location": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_description_005.h(line:51, col:12)",
+ "file_path": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_description_005.h",
+ "message": "API check error of [unknow deprecated]:the [deprecated] tag value is incorrect. Please check the usage method"
+ },
+ "api_check: false"
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/check/ut_check_doc_file_001.json b/build-tools/capi_parser/test/expect/check/ut_check_doc_file_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..1c9960926508a98426afb39335e2a6bffcc1698d
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/check/ut_check_doc_file_001.json
@@ -0,0 +1,3 @@
+[
+ "api_check: false"
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/check/ut_check_doc_file_002.json b/build-tools/capi_parser/test/expect/check/ut_check_doc_file_002.json
new file mode 100644
index 0000000000000000000000000000000000000000..f59d43ee597c0e76d75c9530c93eee30a8a40b53
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/check/ut_check_doc_file_002.json
@@ -0,0 +1,10 @@
+[
+ {
+ "id": 0,
+ "level": 2,
+ "location": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_file_002.h(line:0, col:0)",
+ "file_path": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_file_002.h",
+ "message": "API check error of [miss tag value]:the [file] tag value is empty. Please supplement the default value"
+ },
+ "api_check: false"
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/check/ut_check_doc_file_003.json b/build-tools/capi_parser/test/expect/check/ut_check_doc_file_003.json
new file mode 100644
index 0000000000000000000000000000000000000000..77db95eea5d37c414641a351ce307392968e927f
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/check/ut_check_doc_file_003.json
@@ -0,0 +1,10 @@
+[
+ {
+ "id": 8,
+ "level": 2,
+ "location": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_file_003.h(line:0, col:0)",
+ "file_path": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_file_003.h",
+ "message": "API check error of [wrong scene]:the file has the file tag, but do not has the brief tag."
+ },
+ "api_check: false"
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/check/ut_check_doc_file_004.json b/build-tools/capi_parser/test/expect/check/ut_check_doc_file_004.json
new file mode 100644
index 0000000000000000000000000000000000000000..6f36802782381c2ed921facfe178faefd8d7054c
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/check/ut_check_doc_file_004.json
@@ -0,0 +1,10 @@
+[
+ {
+ "id": 8,
+ "level": 2,
+ "location": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_file_004.h(line:0, col:0)",
+ "file_path": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_file_004.h",
+ "message": "API check error of [wrong scene]:the file has the file tag, but do not has the library tag."
+ },
+ "api_check: false"
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/check/ut_check_doc_file_005.json b/build-tools/capi_parser/test/expect/check/ut_check_doc_file_005.json
new file mode 100644
index 0000000000000000000000000000000000000000..e9bea356ea83e524687222e0a88bd467d0d0ec8c
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/check/ut_check_doc_file_005.json
@@ -0,0 +1,10 @@
+[
+ {
+ "id": 8,
+ "level": 2,
+ "location": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_file_005.h(line:0, col:0)",
+ "file_path": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_file_005.h",
+ "message": "API check error of [wrong scene]:the file has the file tag, but do not has the syscap tag."
+ },
+ "api_check: false"
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/check/ut_check_doc_file_006.json b/build-tools/capi_parser/test/expect/check/ut_check_doc_file_006.json
new file mode 100644
index 0000000000000000000000000000000000000000..28622941bf9f39215d953f61127282429e32fa77
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/check/ut_check_doc_file_006.json
@@ -0,0 +1,10 @@
+[
+ {
+ "id": 8,
+ "level": 2,
+ "location": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_file_006.h(line:0, col:0)",
+ "file_path": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_file_006.h",
+ "message": "API check error of [wrong scene]:the file missing file doc"
+ },
+ "api_check: false"
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/check/ut_check_doc_file_007.json b/build-tools/capi_parser/test/expect/check/ut_check_doc_file_007.json
new file mode 100644
index 0000000000000000000000000000000000000000..5b6a1e0a1581a5c0907398ba5520a0ae6a22c260
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/check/ut_check_doc_file_007.json
@@ -0,0 +1,10 @@
+[
+ {
+ "id": 8,
+ "level": 2,
+ "location": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_file_007.h(line:0, col:0)",
+ "file_path": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_file_007.h",
+ "message": "API check error of [wrong scene]:the [file] tag is repeat. Please check the tag in file"
+ },
+ "api_check: false"
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/check/ut_check_doc_left_001.json b/build-tools/capi_parser/test/expect/check/ut_check_doc_left_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..21578b325d053e4ddd52c4061ae54bf4d8568b2a
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/check/ut_check_doc_left_001.json
@@ -0,0 +1,10 @@
+[
+ {
+ "id": 8,
+ "level": 2,
+ "location": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_left_001.h(line:0, col:0)",
+ "file_path": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_left_001.h",
+ "message": "API check error of [wrong scene]:the [file] tag is repeat. Please check the tag in file"
+ },
+ "api_check: false"
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/check/ut_check_doc_left_002.json b/build-tools/capi_parser/test/expect/check/ut_check_doc_left_002.json
new file mode 100644
index 0000000000000000000000000000000000000000..ebcbe873a4e1156632b2d7a8c0d9acdfdc2d8a3c
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/check/ut_check_doc_left_002.json
@@ -0,0 +1,17 @@
+[
+ {
+ "id": 8,
+ "level": 2,
+ "location": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_left_002.h(line:0, col:0)",
+ "file_path": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_left_002.h",
+ "message": "API check error of [wrong scene]:the file has the group tag, but do not has the start tag {."
+ },
+ {
+ "id": 8,
+ "level": 2,
+ "location": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_left_002.h(line:0, col:0)",
+ "file_path": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_left_002.h",
+ "message": "API check error of [wrong scene]:the [file] tag is repeat. Please check the tag in file"
+ },
+ "api_check: false"
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/check/ut_check_doc_left_003.json b/build-tools/capi_parser/test/expect/check/ut_check_doc_left_003.json
new file mode 100644
index 0000000000000000000000000000000000000000..ea41bb3bd5ea7fc7b4c1e085ab462506791dd9ca
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/check/ut_check_doc_left_003.json
@@ -0,0 +1,24 @@
+[
+ {
+ "id": 8,
+ "level": 2,
+ "location": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_left_003.h(line:0, col:0)",
+ "file_path": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_left_003.h",
+ "message": "API check error of [wrong scene]:the validity verification of the Doc tag failed. The [{] tag is not allowed to used in Doc which not has addtogroup tag, or used in the wrong place."
+ },
+ {
+ "id": 8,
+ "level": 2,
+ "location": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_left_003.h(line:0, col:0)",
+ "file_path": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_left_003.h",
+ "message": "API check error of [wrong scene]:the file has the group tag, but do not has the start tag {."
+ },
+ {
+ "id": 8,
+ "level": 2,
+ "location": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_left_003.h(line:0, col:0)",
+ "file_path": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_left_003.h",
+ "message": "API check error of [wrong scene]:the [file] tag is repeat. Please check the tag in file"
+ },
+ "api_check: false"
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/check/ut_check_doc_left_004.json b/build-tools/capi_parser/test/expect/check/ut_check_doc_left_004.json
new file mode 100644
index 0000000000000000000000000000000000000000..fa236217c4936c58463e90f2876faaac7d356957
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/check/ut_check_doc_left_004.json
@@ -0,0 +1,17 @@
+[
+ {
+ "id": 8,
+ "level": 2,
+ "location": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_left_004.h(line:0, col:0)",
+ "file_path": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_left_004.h",
+ "message": "API check error of [wrong scene]:the validity verification of the Doc tag failed. The [{] tag is not allowed to reuse in Doc which has addtogroup tag."
+ },
+ {
+ "id": 8,
+ "level": 2,
+ "location": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_left_004.h(line:0, col:0)",
+ "file_path": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_left_004.h",
+ "message": "API check error of [wrong scene]:the [file] tag is repeat. Please check the tag in file"
+ },
+ "api_check: false"
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/check/ut_check_doc_left_005.json b/build-tools/capi_parser/test/expect/check/ut_check_doc_left_005.json
new file mode 100644
index 0000000000000000000000000000000000000000..176b0a4f5f9ef555069bf10ee58761dc92d64fd3
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/check/ut_check_doc_left_005.json
@@ -0,0 +1,24 @@
+[
+ {
+ "id": 8,
+ "level": 2,
+ "location": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_left_005.h(line:0, col:0)",
+ "file_path": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_left_005.h",
+ "message": "API check error of [wrong scene]:the file has the group tag, but do not has the start tag {."
+ },
+ {
+ "id": 8,
+ "level": 2,
+ "location": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_left_005.h(line:0, col:0)",
+ "file_path": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_left_005.h",
+ "message": "API check error of [wrong scene]:the validity verification of the Doc tag failed. The [{] tag is not allowed to used in Doc which not has addtogroup tag, or used in the wrong place."
+ },
+ {
+ "id": 8,
+ "level": 2,
+ "location": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_left_005.h(line:0, col:0)",
+ "file_path": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_left_005.h",
+ "message": "API check error of [wrong scene]:the [file] tag is repeat. Please check the tag in file"
+ },
+ "api_check: false"
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/check/ut_check_doc_library_001.json b/build-tools/capi_parser/test/expect/check/ut_check_doc_library_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..1c9960926508a98426afb39335e2a6bffcc1698d
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/check/ut_check_doc_library_001.json
@@ -0,0 +1,3 @@
+[
+ "api_check: false"
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/check/ut_check_doc_library_002.json b/build-tools/capi_parser/test/expect/check/ut_check_doc_library_002.json
new file mode 100644
index 0000000000000000000000000000000000000000..d489d6562bed480784e19e162aff8edd793b8649
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/check/ut_check_doc_library_002.json
@@ -0,0 +1,10 @@
+[
+ {
+ "id": 7,
+ "level": 2,
+ "location": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_library_002.h(line:0, col:0)",
+ "file_path": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_library_002.h",
+ "message": "API check error of [wrong value]:the [library] tag value is incorrect. This tag must be end with .so or .a, or is NA. Please check the usage method"
+ },
+ "api_check: false"
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/check/ut_check_doc_library_003.json b/build-tools/capi_parser/test/expect/check/ut_check_doc_library_003.json
new file mode 100644
index 0000000000000000000000000000000000000000..1c9960926508a98426afb39335e2a6bffcc1698d
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/check/ut_check_doc_library_003.json
@@ -0,0 +1,3 @@
+[
+ "api_check: false"
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/check/ut_check_doc_library_004.json b/build-tools/capi_parser/test/expect/check/ut_check_doc_library_004.json
new file mode 100644
index 0000000000000000000000000000000000000000..1c9960926508a98426afb39335e2a6bffcc1698d
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/check/ut_check_doc_library_004.json
@@ -0,0 +1,3 @@
+[
+ "api_check: false"
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/check/ut_check_doc_library_005.json b/build-tools/capi_parser/test/expect/check/ut_check_doc_library_005.json
new file mode 100644
index 0000000000000000000000000000000000000000..1c9960926508a98426afb39335e2a6bffcc1698d
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/check/ut_check_doc_library_005.json
@@ -0,0 +1,3 @@
+[
+ "api_check: false"
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/check/ut_check_doc_library_006.json b/build-tools/capi_parser/test/expect/check/ut_check_doc_library_006.json
new file mode 100644
index 0000000000000000000000000000000000000000..b9b72881406ef085a8a2563aed2c55bd56925b8d
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/check/ut_check_doc_library_006.json
@@ -0,0 +1,10 @@
+[
+ {
+ "id": 7,
+ "level": 2,
+ "location": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_library_006.h(line:0, col:0)",
+ "file_path": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_library_006.h",
+ "message": "API check error of [wrong value]:the [library] tag value is incorrect. This tag must be end with .so or .a, or is NA. Please check the usage method"
+ },
+ "api_check: false"
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/check/ut_check_doc_param_001.json b/build-tools/capi_parser/test/expect/check/ut_check_doc_param_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..1c9960926508a98426afb39335e2a6bffcc1698d
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/check/ut_check_doc_param_001.json
@@ -0,0 +1,3 @@
+[
+ "api_check: false"
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/check/ut_check_doc_param_002.json b/build-tools/capi_parser/test/expect/check/ut_check_doc_param_002.json
new file mode 100644
index 0000000000000000000000000000000000000000..52075f30a2e8ded1e0c21a345d27673745752217
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/check/ut_check_doc_param_002.json
@@ -0,0 +1,17 @@
+[
+ {
+ "id": 7,
+ "level": 2,
+ "location": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_param_002.h(line:53, col:9)",
+ "file_path": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_param_002.h",
+ "message": "API check error of [wrong value]:the value of the [1] [param] tag is incorrect. Please check if it matches the [1] parameter name"
+ },
+ {
+ "id": 7,
+ "level": 2,
+ "location": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_param_002.h(line:53, col:9)",
+ "file_path": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_param_002.h",
+ "message": "API check error of [wrong value]:the value of the [2] [param] tag is incorrect. Please check if it matches the [2] parameter name"
+ },
+ "api_check: false"
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/check/ut_check_doc_param_003.json b/build-tools/capi_parser/test/expect/check/ut_check_doc_param_003.json
new file mode 100644
index 0000000000000000000000000000000000000000..957699e5541e959f3492ce808e3e83c4558f1d10
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/check/ut_check_doc_param_003.json
@@ -0,0 +1,17 @@
+[
+ {
+ "id": 7,
+ "level": 2,
+ "location": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_param_003.h(line:53, col:9)",
+ "file_path": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_param_003.h",
+ "message": "API check error of [wrong value]:the value of the [1] [param] tag is incorrect. Please check if it matches the [1] parameter name"
+ },
+ {
+ "id": 7,
+ "level": 2,
+ "location": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_param_003.h(line:53, col:9)",
+ "file_path": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_param_003.h",
+ "message": "API check error of [wrong value]:the value of the [2] [param] tag is incorrect. Please check if it matches the [2] parameter name"
+ },
+ "api_check: false"
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/check/ut_check_doc_param_004.json b/build-tools/capi_parser/test/expect/check/ut_check_doc_param_004.json
new file mode 100644
index 0000000000000000000000000000000000000000..6cc402633e14580b53f7807234ddc8f873994c36
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/check/ut_check_doc_param_004.json
@@ -0,0 +1,10 @@
+[
+ {
+ "id": 8,
+ "level": 2,
+ "location": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_param_004.h(line:62, col:9)",
+ "file_path": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_param_004.h",
+ "message": "API check error of [wrong scene]:the count of the [param] tag is wrong. Please check the parameters and Doc"
+ },
+ "api_check: false"
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/check/ut_check_doc_param_005.json b/build-tools/capi_parser/test/expect/check/ut_check_doc_param_005.json
new file mode 100644
index 0000000000000000000000000000000000000000..68123f680d7ad6c5a731e284483a4e461f9409f3
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/check/ut_check_doc_param_005.json
@@ -0,0 +1,24 @@
+[
+ {
+ "id": 7,
+ "level": 2,
+ "location": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_param_005.h(line:54, col:9)",
+ "file_path": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_param_005.h",
+ "message": "API check error of [wrong value]:the value of the [1] [param] tag is incorrect. Please check if it matches the [1] parameter name"
+ },
+ {
+ "id": 7,
+ "level": 2,
+ "location": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_param_005.h(line:54, col:9)",
+ "file_path": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_param_005.h",
+ "message": "API check error of [wrong value]:the value of the [2] [param] tag is incorrect. Please check if it matches the [2] parameter name"
+ },
+ {
+ "id": 8,
+ "level": 2,
+ "location": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_param_005.h(line:54, col:9)",
+ "file_path": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_param_005.h",
+ "message": "API check error of [wrong scene]:the count of the [param] tag is wrong. Please check the parameters and Doc"
+ },
+ "api_check: false"
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/check/ut_check_doc_permission_001.json b/build-tools/capi_parser/test/expect/check/ut_check_doc_permission_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..1c9960926508a98426afb39335e2a6bffcc1698d
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/check/ut_check_doc_permission_001.json
@@ -0,0 +1,3 @@
+[
+ "api_check: false"
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/check/ut_check_doc_permission_002.json b/build-tools/capi_parser/test/expect/check/ut_check_doc_permission_002.json
new file mode 100644
index 0000000000000000000000000000000000000000..174c0036128705c5a95f6820979d83f2e9070f99
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/check/ut_check_doc_permission_002.json
@@ -0,0 +1,10 @@
+[
+ {
+ "id": 7,
+ "level": 2,
+ "location": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_permission_002.h(line:52, col:9)",
+ "file_path": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_permission_002.h",
+ "message": "API check error of [wrong value]:the [permission] tag value is incorrect. Please check if the permission field has been configured or update the configuration file"
+ },
+ "api_check: false"
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/check/ut_check_doc_permission_003.json b/build-tools/capi_parser/test/expect/check/ut_check_doc_permission_003.json
new file mode 100644
index 0000000000000000000000000000000000000000..aeac0b3fea377571908cc658ddfc9b6870fc8527
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/check/ut_check_doc_permission_003.json
@@ -0,0 +1,10 @@
+[
+ {
+ "id": 7,
+ "level": 2,
+ "location": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_permission_003.h(line:53, col:9)",
+ "file_path": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_permission_003.h",
+ "message": "API check error of [wrong value]:the [permission] tag value is incorrect. Please check if the permission field has been configured or update the configuration file"
+ },
+ "api_check: false"
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/check/ut_check_doc_permission_004.json b/build-tools/capi_parser/test/expect/check/ut_check_doc_permission_004.json
new file mode 100644
index 0000000000000000000000000000000000000000..1c9960926508a98426afb39335e2a6bffcc1698d
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/check/ut_check_doc_permission_004.json
@@ -0,0 +1,3 @@
+[
+ "api_check: false"
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/check/ut_check_doc_permission_005.json b/build-tools/capi_parser/test/expect/check/ut_check_doc_permission_005.json
new file mode 100644
index 0000000000000000000000000000000000000000..1c9960926508a98426afb39335e2a6bffcc1698d
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/check/ut_check_doc_permission_005.json
@@ -0,0 +1,3 @@
+[
+ "api_check: false"
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/check/ut_check_doc_permission_006.json b/build-tools/capi_parser/test/expect/check/ut_check_doc_permission_006.json
new file mode 100644
index 0000000000000000000000000000000000000000..0bf106577d04bd496b7534a1374cf66f2deb5de9
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/check/ut_check_doc_permission_006.json
@@ -0,0 +1,10 @@
+[
+ {
+ "id": 7,
+ "level": 2,
+ "location": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_permission_006.h(line:52, col:9)",
+ "file_path": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_permission_006.h",
+ "message": "API check error of [wrong value]:the [permission] tag value is incorrect. Please check if the permission field has been configured or update the configuration file"
+ },
+ "api_check: false"
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/check/ut_check_doc_permission_007.json b/build-tools/capi_parser/test/expect/check/ut_check_doc_permission_007.json
new file mode 100644
index 0000000000000000000000000000000000000000..02c9350c95cce1b9728ab855cbf7c91776e70da1
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/check/ut_check_doc_permission_007.json
@@ -0,0 +1,10 @@
+[
+ {
+ "id": 7,
+ "level": 2,
+ "location": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_permission_007.h(line:53, col:9)",
+ "file_path": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_permission_007.h",
+ "message": "API check error of [wrong value]:the [permission] tag value is incorrect. Please check if the permission field has been configured or update the configuration file"
+ },
+ "api_check: false"
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/check/ut_check_doc_right_001.json b/build-tools/capi_parser/test/expect/check/ut_check_doc_right_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..1c9960926508a98426afb39335e2a6bffcc1698d
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/check/ut_check_doc_right_001.json
@@ -0,0 +1,3 @@
+[
+ "api_check: false"
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/check/ut_check_doc_right_002.json b/build-tools/capi_parser/test/expect/check/ut_check_doc_right_002.json
new file mode 100644
index 0000000000000000000000000000000000000000..7d4b4203b60d795c52bcd0e0c9c26c41f78e0e04
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/check/ut_check_doc_right_002.json
@@ -0,0 +1,17 @@
+[
+ {
+ "id": 8,
+ "level": 2,
+ "location": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_right_002.h(line:0, col:0)",
+ "file_path": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_right_002.h",
+ "message": "API check error of [wrong scene]:the [file] tag is repeat. Please check the tag in file"
+ },
+ {
+ "id": 8,
+ "level": 2,
+ "location": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_right_002.h(line:0, col:0)",
+ "file_path": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_right_002.h",
+ "message": "API check error of [wrong scene]:the validity verification of the JSDoc tag failed. The [}] tag is not allowed to be reused please delete the extra tags."
+ },
+ "api_check: false"
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/check/ut_check_doc_right_003.json b/build-tools/capi_parser/test/expect/check/ut_check_doc_right_003.json
new file mode 100644
index 0000000000000000000000000000000000000000..6f50f5f71bcf8596ba1eb39cbec01302dd5d83e9
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/check/ut_check_doc_right_003.json
@@ -0,0 +1,17 @@
+[
+ {
+ "id": 8,
+ "level": 2,
+ "location": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_right_003.h(line:0, col:0)",
+ "file_path": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_right_003.h",
+ "message": "API check error of [wrong scene]:the [file] tag is repeat. Please check the tag in file"
+ },
+ {
+ "id": 8,
+ "level": 2,
+ "location": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_right_003.h(line:0, col:0)",
+ "file_path": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_right_003.h",
+ "message": "API check error of [wrong scene]:the file has the group tag, but do not has the end tag }."
+ },
+ "api_check: false"
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/check/ut_check_doc_right_004.json b/build-tools/capi_parser/test/expect/check/ut_check_doc_right_004.json
new file mode 100644
index 0000000000000000000000000000000000000000..ff733cbb0ba0b6304dab262ae56654ccb8c7a3d4
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/check/ut_check_doc_right_004.json
@@ -0,0 +1,17 @@
+[
+ {
+ "id": 8,
+ "level": 2,
+ "location": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_right_004.h(line:0, col:0)",
+ "file_path": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_right_004.h",
+ "message": "API check error of [wrong scene]:the [file] tag is repeat. Please check the tag in file"
+ },
+ {
+ "id": 8,
+ "level": 2,
+ "location": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_right_004.h(line:0, col:0)",
+ "file_path": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_right_004.h",
+ "message": "API check error of [wrong scene]:the validity verification of the JSDoc tag failed. The [}] tag is not allowed to be reused please delete the extra tags."
+ },
+ "api_check: false"
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/check/ut_check_doc_since_001.json b/build-tools/capi_parser/test/expect/check/ut_check_doc_since_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..1c9960926508a98426afb39335e2a6bffcc1698d
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/check/ut_check_doc_since_001.json
@@ -0,0 +1,3 @@
+[
+ "api_check: false"
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/check/ut_check_doc_since_002.json b/build-tools/capi_parser/test/expect/check/ut_check_doc_since_002.json
new file mode 100644
index 0000000000000000000000000000000000000000..6a1091f7460b1868c4566b000a0dbca984be3ca4
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/check/ut_check_doc_since_002.json
@@ -0,0 +1,10 @@
+[
+ {
+ "id": 0,
+ "level": 2,
+ "location": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_since_002.h(line:0, col:0)",
+ "file_path": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_since_002.h",
+ "message": "API check error of [miss tag value]:the [since] tag value is empty. Please supplement the default value"
+ },
+ "api_check: false"
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/check/ut_check_doc_since_003.json b/build-tools/capi_parser/test/expect/check/ut_check_doc_since_003.json
new file mode 100644
index 0000000000000000000000000000000000000000..9ed1a07f10f85aed0d2f7a885bb68a2517e2083f
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/check/ut_check_doc_since_003.json
@@ -0,0 +1,10 @@
+[
+ {
+ "id": 7,
+ "level": 2,
+ "location": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_since_003.h(line:0, col:0)",
+ "file_path": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_since_003.h",
+ "message": "API check error of [wrong value]:the [since] tag value is incorrect. Please check if the tag value is a numerical value"
+ },
+ "api_check: false"
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/check/ut_check_doc_syscap_001.json b/build-tools/capi_parser/test/expect/check/ut_check_doc_syscap_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..1c9960926508a98426afb39335e2a6bffcc1698d
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/check/ut_check_doc_syscap_001.json
@@ -0,0 +1,3 @@
+[
+ "api_check: false"
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/check/ut_check_doc_syscap_002.json b/build-tools/capi_parser/test/expect/check/ut_check_doc_syscap_002.json
new file mode 100644
index 0000000000000000000000000000000000000000..9d1700acbf67320ef317272232e57a1975665e3e
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/check/ut_check_doc_syscap_002.json
@@ -0,0 +1,17 @@
+[
+ {
+ "id": 0,
+ "level": 2,
+ "location": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_syscap_002.h(line:0, col:0)",
+ "file_path": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_syscap_002.h",
+ "message": "API check error of [miss tag value]:the [syscap] tag value is empty. Please supplement the default value"
+ },
+ {
+ "id": 7,
+ "level": 2,
+ "location": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_syscap_002.h(line:0, col:0)",
+ "file_path": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_syscap_002.h",
+ "message": "API check error of [wrong value]:the [syscap] tag value is incorrect. Please check if the syscap field is configured"
+ },
+ "api_check: false"
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/check/ut_check_doc_syscap_003.json b/build-tools/capi_parser/test/expect/check/ut_check_doc_syscap_003.json
new file mode 100644
index 0000000000000000000000000000000000000000..1983257fdd8e08d7daec5d50f5376b5e2513943d
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/check/ut_check_doc_syscap_003.json
@@ -0,0 +1,10 @@
+[
+ {
+ "id": 7,
+ "level": 2,
+ "location": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_syscap_003.h(line:0, col:0)",
+ "file_path": "build-tools\\capi_parser\\test\\ut\\check\\ut_check_doc_syscap_003.h",
+ "message": "API check error of [wrong value]:the [syscap] tag value is incorrect. Please check if the syscap field is configured"
+ },
+ "api_check: false"
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/.gitkeep b/build-tools/capi_parser/test/expect/diff/.gitkeep
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_api_add_001.json b/build-tools/capi_parser/test/expect/diff/ut_diff_api_add_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..0571009c416b85fa24b26f1b021e65b6e445c213
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_api_add_001.json
@@ -0,0 +1,11 @@
+[
+ {
+ "api_name": "OH_NativeXComponent_GetKeyEventDeviceId2",
+ "api_type": "FUNCTION_DECL",
+ "diff_type": "ADD_API",
+ "diff_message": "add api",
+ "old_api_full_text": "",
+ "new_api_full_text": "int OH_NativeXComponent_GetKeyEventDeviceId2(int *keyEvent, int *deviceId)",
+ "is_compatible": true
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_api_delete_001.json b/build-tools/capi_parser/test/expect/diff/ut_diff_api_delete_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..17e0506ae3bbdbee082e58afaf282bef0cc24230
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_api_delete_001.json
@@ -0,0 +1,11 @@
+[
+ {
+ "api_name": "OH_NativeXComponent_GetKeyEventDeviceId2",
+ "api_type": "FUNCTION_DECL",
+ "diff_type": "REDUCE_API",
+ "diff_message": "delete api",
+ "old_api_full_text": "int OH_NativeXComponent_GetKeyEventDeviceId2(int *keyEvent, int *deviceId)",
+ "new_api_full_text": "",
+ "is_compatible": false
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_dir_add_001.json b/build-tools/capi_parser/test/expect/diff/ut_diff_dir_add_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..4f58c6be308164307a3e550e685e1cf9d26e9f9b
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_dir_add_001.json
@@ -0,0 +1,29 @@
+[
+ {
+ "api_name": "NEURAL_NETWORK_RUNTIME_H",
+ "api_type": "MACRO_DEFINITION",
+ "diff_type": "ADD_API",
+ "diff_message": "add api",
+ "old_api_full_text": "",
+ "new_api_full_text": "NEURAL_NETWORK_RUNTIME_H",
+ "is_compatible": true
+ },
+ {
+ "api_name": "OH_NativeXComponent_GetKeyEventDeviceId",
+ "api_type": "FUNCTION_DECL",
+ "diff_type": "ADD_API",
+ "diff_message": "add api",
+ "old_api_full_text": "",
+ "new_api_full_text": "int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId)",
+ "is_compatible": true
+ },
+ {
+ "api_name": "file2\\ut_diff_case_001.h",
+ "api_type": "TRANSLATION_UNIT",
+ "diff_type": "ADD_API",
+ "diff_message": "add api",
+ "old_api_full_text": "",
+ "new_api_full_text": "",
+ "is_compatible": true
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_dir_delete_001.json b/build-tools/capi_parser/test/expect/diff/ut_diff_dir_delete_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..deb3629bf65e0ffcca0bdef09900b28b0ad0fd0e
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_dir_delete_001.json
@@ -0,0 +1,29 @@
+[
+ {
+ "api_name": "NEURAL_NETWORK_RUNTIME_H",
+ "api_type": "MACRO_DEFINITION",
+ "diff_type": "REDUCE_API",
+ "diff_message": "delete api",
+ "old_api_full_text": "NEURAL_NETWORK_RUNTIME_H",
+ "new_api_full_text": "",
+ "is_compatible": false
+ },
+ {
+ "api_name": "OH_NativeXComponent_GetKeyEventDeviceId",
+ "api_type": "FUNCTION_DECL",
+ "diff_type": "REDUCE_API",
+ "diff_message": "delete api",
+ "old_api_full_text": "int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId)",
+ "new_api_full_text": "",
+ "is_compatible": false
+ },
+ {
+ "api_name": "file2\\ut_diff_case_001.h",
+ "api_type": "TRANSLATION_UNIT",
+ "diff_type": "REDUCE_API",
+ "diff_message": "delete api",
+ "old_api_full_text": "",
+ "new_api_full_text": "",
+ "is_compatible": false
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_doc_addtogroup_add_001.json b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_addtogroup_add_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..8853beeaa21cb29684cb2f849ae3ce2d707d29bb
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_addtogroup_add_001.json
@@ -0,0 +1,11 @@
+[
+ {
+ "api_name": "ut_diff_case_001.h",
+ "api_type": "TRANSLATION_UNIT",
+ "diff_type": "DOC_TAG_ADDTOGROUP_NA_TO_HAVE",
+ "diff_message": "add addtogroup tag",
+ "old_api_full_text": "",
+ "new_api_full_text": "",
+ "is_compatible": true
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_doc_addtogroup_change_001.json b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_addtogroup_change_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..0866a4aa6fd3f28ba52c0ba6b935647ef37a3b8c
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_addtogroup_change_001.json
@@ -0,0 +1,11 @@
+[
+ {
+ "api_name": "ut_diff_case_001.h",
+ "api_type": "TRANSLATION_UNIT",
+ "diff_type": "DOC_TAG_ADDTOGROUP_A_TO_B",
+ "diff_message": "change addtogroup tag",
+ "old_api_full_text": "",
+ "new_api_full_text": "",
+ "is_compatible": true
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_doc_addtogroup_delete_001.json b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_addtogroup_delete_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..0cdabd0fd07ac75728d0a4dd43fb496bf6aae678
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_addtogroup_delete_001.json
@@ -0,0 +1,11 @@
+[
+ {
+ "api_name": "ut_diff_case_001.h",
+ "api_type": "TRANSLATION_UNIT",
+ "diff_type": "DOC_TAG_ADDTOGROUP_HAVE_TO_NA",
+ "diff_message": "delete addtogroup tag",
+ "old_api_full_text": "",
+ "new_api_full_text": "",
+ "is_compatible": true
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_doc_brief_add_001.json b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_brief_add_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..5fe8bf226784b5ab56fbf1e6e4b96b6039cc4479
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_brief_add_001.json
@@ -0,0 +1,11 @@
+[
+ {
+ "api_name": "ut_diff_case_001.h",
+ "api_type": "TRANSLATION_UNIT",
+ "diff_type": "DOC_TAG_BRIEF_NA_TO_HAVE",
+ "diff_message": "add brief tag",
+ "old_api_full_text": "",
+ "new_api_full_text": "",
+ "is_compatible": true
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_doc_brief_change_001.json b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_brief_change_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..71e1fede39160eaf8a5f9c323020eaaf35f2a2a6
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_brief_change_001.json
@@ -0,0 +1,11 @@
+[
+ {
+ "api_name": "ut_diff_case_001.h",
+ "api_type": "TRANSLATION_UNIT",
+ "diff_type": "DOC_TAG_BRIEF_A_TO_B",
+ "diff_message": "change brief tag",
+ "old_api_full_text": "",
+ "new_api_full_text": "",
+ "is_compatible": true
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_doc_brief_delete_001.json b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_brief_delete_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..7af9f3e91e27189a445d359978e300dfb76b9e7f
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_brief_delete_001.json
@@ -0,0 +1,11 @@
+[
+ {
+ "api_name": "ut_diff_case_001.h",
+ "api_type": "TRANSLATION_UNIT",
+ "diff_type": "DOC_TAG_BRIEF_HAVE_TO_NA",
+ "diff_message": "delete brief tag",
+ "old_api_full_text": "",
+ "new_api_full_text": "",
+ "is_compatible": true
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_doc_deprecated_add_001.json b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_deprecated_add_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..ce61fc7279249e69e9c4eb822d0990a770e86428
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_deprecated_add_001.json
@@ -0,0 +1,11 @@
+[
+ {
+ "api_name": "OH_NativeXComponent_GetKeyEventDeviceId",
+ "api_type": "FUNCTION_DECL",
+ "diff_type": "DOC_TAG_DEPRECATED_NA_TO_HAVE",
+ "diff_message": "add deprecated tag",
+ "old_api_full_text": "int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId)",
+ "new_api_full_text": "int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId)",
+ "is_compatible": true
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_doc_deprecated_change_001.json b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_deprecated_change_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..bf85bb6606f8497464a8759852cb0669af5486f9
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_deprecated_change_001.json
@@ -0,0 +1,11 @@
+[
+ {
+ "api_name": "OH_NativeXComponent_GetKeyEventDeviceId",
+ "api_type": "FUNCTION_DECL",
+ "diff_type": "DOC_TAG_DEPRECATED_A_TO_B",
+ "diff_message": "change deprecated tag",
+ "old_api_full_text": "int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId)",
+ "new_api_full_text": "int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId)",
+ "is_compatible": true
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_doc_deprecated_change_002.json b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_deprecated_change_002.json
new file mode 100644
index 0000000000000000000000000000000000000000..bf85bb6606f8497464a8759852cb0669af5486f9
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_deprecated_change_002.json
@@ -0,0 +1,11 @@
+[
+ {
+ "api_name": "OH_NativeXComponent_GetKeyEventDeviceId",
+ "api_type": "FUNCTION_DECL",
+ "diff_type": "DOC_TAG_DEPRECATED_A_TO_B",
+ "diff_message": "change deprecated tag",
+ "old_api_full_text": "int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId)",
+ "new_api_full_text": "int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId)",
+ "is_compatible": true
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_doc_deprecated_delete_001.json b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_deprecated_delete_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..5e05054b0c7ac3195fc43d55ed61ff55783757f4
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_deprecated_delete_001.json
@@ -0,0 +1,11 @@
+[
+ {
+ "api_name": "OH_NativeXComponent_GetKeyEventDeviceId",
+ "api_type": "FUNCTION_DECL",
+ "diff_type": "DOC_TAG_DEPRECATED_HAVE_TO_NA",
+ "diff_message": "delete deprecated tag",
+ "old_api_full_text": "int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId)",
+ "new_api_full_text": "int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId)",
+ "is_compatible": true
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_doc_file_add_001.json b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_file_add_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..f2a3dc6ea6c91be17162e00bd4207e6aec3b73ca
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_file_add_001.json
@@ -0,0 +1,11 @@
+[
+ {
+ "api_name": "ut_diff_case_001.h",
+ "api_type": "TRANSLATION_UNIT",
+ "diff_type": "DOC_TAG_FILE_NA_TO_HAVE",
+ "diff_message": "add file tag",
+ "old_api_full_text": "",
+ "new_api_full_text": "",
+ "is_compatible": true
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_doc_file_change_001.json b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_file_change_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..33039056e91e1da8a4ed4fd837653803a7fdd6a3
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_file_change_001.json
@@ -0,0 +1,11 @@
+[
+ {
+ "api_name": "ut_diff_case_001.h",
+ "api_type": "TRANSLATION_UNIT",
+ "diff_type": "DOC_TAG_FILE_A_TO_B",
+ "diff_message": "change file tag",
+ "old_api_full_text": "",
+ "new_api_full_text": "",
+ "is_compatible": true
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_doc_file_delete_001.json b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_file_delete_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..fa4c05e850618641010b9a1920c9953e5116a1dd
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_file_delete_001.json
@@ -0,0 +1,11 @@
+[
+ {
+ "api_name": "ut_diff_case_001.h",
+ "api_type": "TRANSLATION_UNIT",
+ "diff_type": "DOC_TAG_FILE_HAVE_TO_NA",
+ "diff_message": "delete file tag",
+ "old_api_full_text": "",
+ "new_api_full_text": "",
+ "is_compatible": true
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_doc_library_add_001.json b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_library_add_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..276cbec80320d717e794f61eeac726bc80255e8d
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_library_add_001.json
@@ -0,0 +1,11 @@
+[
+ {
+ "api_name": "ut_diff_case_001.h",
+ "api_type": "TRANSLATION_UNIT",
+ "diff_type": "DOC_TAG_LIBRARY_NA_TO_HAVE",
+ "diff_message": "add library tag",
+ "old_api_full_text": "",
+ "new_api_full_text": "",
+ "is_compatible": false
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_doc_library_change_001.json b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_library_change_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..4ca6495bf7e9128bc18d7e1e3e367beebde9ef8b
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_library_change_001.json
@@ -0,0 +1,11 @@
+[
+ {
+ "api_name": "ut_diff_case_001.h",
+ "api_type": "TRANSLATION_UNIT",
+ "diff_type": "DOC_TAG_LIBRARY_A_TO_B",
+ "diff_message": "change library tag",
+ "old_api_full_text": "",
+ "new_api_full_text": "",
+ "is_compatible": false
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_doc_library_delete_001.json b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_library_delete_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..e1db2c43febed2cc9adf83d99eee516d7dbf5db2
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_library_delete_001.json
@@ -0,0 +1,11 @@
+[
+ {
+ "api_name": "ut_diff_case_001.h",
+ "api_type": "TRANSLATION_UNIT",
+ "diff_type": "DOC_TAG_LIBRARY_HAVE_TO_NA",
+ "diff_message": "delete library tag",
+ "old_api_full_text": "",
+ "new_api_full_text": "",
+ "is_compatible": false
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_doc_permission_add_001.json b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_permission_add_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..c861acd5dc18b0d88e7e5d1f4c53126b27f49a59
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_permission_add_001.json
@@ -0,0 +1,11 @@
+[
+ {
+ "api_name": "OH_NativeXComponent_GetKeyEventDeviceId",
+ "api_type": "FUNCTION_DECL",
+ "diff_type": "DOC_TAG_PERMISSION_NA_TO_HAVE",
+ "diff_message": "add permission tag",
+ "old_api_full_text": "int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId)",
+ "new_api_full_text": "int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId)",
+ "is_compatible": false
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_doc_permission_add_002.json b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_permission_add_002.json
new file mode 100644
index 0000000000000000000000000000000000000000..523773f8d45b3a453ef9c9f0a33d4439b81dad1e
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_permission_add_002.json
@@ -0,0 +1,11 @@
+[
+ {
+ "api_name": "OH_NativeXComponent_GetKeyEventDeviceId",
+ "api_type": "FUNCTION_DECL",
+ "diff_type": "DOC_TAG_PERMISSION_RANGE_BIGGER",
+ "diff_message": "increased permissions, ex: add \"or\" or remove \"and\"",
+ "old_api_full_text": "int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId)",
+ "new_api_full_text": "int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId)",
+ "is_compatible": true
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_doc_permission_add_003.json b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_permission_add_003.json
new file mode 100644
index 0000000000000000000000000000000000000000..523773f8d45b3a453ef9c9f0a33d4439b81dad1e
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_permission_add_003.json
@@ -0,0 +1,11 @@
+[
+ {
+ "api_name": "OH_NativeXComponent_GetKeyEventDeviceId",
+ "api_type": "FUNCTION_DECL",
+ "diff_type": "DOC_TAG_PERMISSION_RANGE_BIGGER",
+ "diff_message": "increased permissions, ex: add \"or\" or remove \"and\"",
+ "old_api_full_text": "int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId)",
+ "new_api_full_text": "int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId)",
+ "is_compatible": true
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_doc_permission_change_001.json b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_permission_change_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..05a05f40fa484ca4013c3ab77591ba6bff9b2336
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_permission_change_001.json
@@ -0,0 +1,11 @@
+[
+ {
+ "api_name": "OH_NativeXComponent_GetKeyEventDeviceId",
+ "api_type": "FUNCTION_DECL",
+ "diff_type": "DOC_TAG_PERMISSION_RANGE_CHANGE",
+ "diff_message": "change permissions, before not included after and after not included before",
+ "old_api_full_text": "int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId)",
+ "new_api_full_text": "int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId)",
+ "is_compatible": false
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_doc_permission_delete_001.json b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_permission_delete_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..5c6698817a4b64439b32a2818e293988075565fb
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_permission_delete_001.json
@@ -0,0 +1,11 @@
+[
+ {
+ "api_name": "OH_NativeXComponent_GetKeyEventDeviceId",
+ "api_type": "FUNCTION_DECL",
+ "diff_type": "DOC_TAG_PERMISSION_HAVE_TO_NA",
+ "diff_message": "delete permission tag",
+ "old_api_full_text": "int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId)",
+ "new_api_full_text": "int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId)",
+ "is_compatible": true
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_doc_permission_delete_002.json b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_permission_delete_002.json
new file mode 100644
index 0000000000000000000000000000000000000000..be830f70c61cfbb1559bb8f47a023aa793493c5f
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_permission_delete_002.json
@@ -0,0 +1,11 @@
+[
+ {
+ "api_name": "OH_NativeXComponent_GetKeyEventDeviceId",
+ "api_type": "FUNCTION_DECL",
+ "diff_type": "DOC_TAG_PERMISSION_RANGE_SMALLER",
+ "diff_message": "reduced permissions, ex: add \"and\" or remove \"or\"",
+ "old_api_full_text": "int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId)",
+ "new_api_full_text": "int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId)",
+ "is_compatible": false
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_doc_permission_delete_003.json b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_permission_delete_003.json
new file mode 100644
index 0000000000000000000000000000000000000000..be830f70c61cfbb1559bb8f47a023aa793493c5f
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_permission_delete_003.json
@@ -0,0 +1,11 @@
+[
+ {
+ "api_name": "OH_NativeXComponent_GetKeyEventDeviceId",
+ "api_type": "FUNCTION_DECL",
+ "diff_type": "DOC_TAG_PERMISSION_RANGE_SMALLER",
+ "diff_message": "reduced permissions, ex: add \"and\" or remove \"or\"",
+ "old_api_full_text": "int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId)",
+ "new_api_full_text": "int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId)",
+ "is_compatible": false
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_doc_since_add_001.json b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_since_add_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..c8d4bacc0b2c19355f9713219f8613879f3be5a2
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_since_add_001.json
@@ -0,0 +1,11 @@
+[
+ {
+ "api_name": "ut_diff_case_001.h",
+ "api_type": "TRANSLATION_UNIT",
+ "diff_type": "DOC_TAG_SINCE_NA_TO_HAVE",
+ "diff_message": "add since tag",
+ "old_api_full_text": "",
+ "new_api_full_text": "",
+ "is_compatible": true
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_doc_since_change_001.json b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_since_change_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..07940485d16b3bf9b2e068a3c273c89c9e0b6368
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_since_change_001.json
@@ -0,0 +1,11 @@
+[
+ {
+ "api_name": "ut_diff_case_001.h",
+ "api_type": "TRANSLATION_UNIT",
+ "diff_type": "DOC_TAG_SINCE_A_TO_B",
+ "diff_message": "change since tag",
+ "old_api_full_text": "",
+ "new_api_full_text": "",
+ "is_compatible": true
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_doc_since_delete_001.json b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_since_delete_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..4ed582bcf85d33ffb2c18b9218e2c4d6c3c851e8
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_since_delete_001.json
@@ -0,0 +1,11 @@
+[
+ {
+ "api_name": "ut_diff_case_001.h",
+ "api_type": "TRANSLATION_UNIT",
+ "diff_type": "DOC_TAG_SINCE_HAVE_TO_NA",
+ "diff_message": "delete since tag",
+ "old_api_full_text": "",
+ "new_api_full_text": "",
+ "is_compatible": false
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_doc_syscap_add_001.json b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_syscap_add_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..6d6a1fff78a633d0a000c181a1a3c05344726fe3
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_syscap_add_001.json
@@ -0,0 +1,11 @@
+[
+ {
+ "api_name": "ut_diff_case_001.h",
+ "api_type": "TRANSLATION_UNIT",
+ "diff_type": "DOC_TAG_SYSCAP_NA_TO_HAVE",
+ "diff_message": "add syscap tag",
+ "old_api_full_text": "",
+ "new_api_full_text": "",
+ "is_compatible": false
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_doc_syscap_change_001.json b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_syscap_change_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..9b206d1756df1c01096ed060d472b585d38757bb
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_syscap_change_001.json
@@ -0,0 +1,11 @@
+[
+ {
+ "api_name": "ut_diff_case_001.h",
+ "api_type": "TRANSLATION_UNIT",
+ "diff_type": "DOC_TAG_SYSCAP_A_TO_B",
+ "diff_message": "change syscap tag",
+ "old_api_full_text": "",
+ "new_api_full_text": "",
+ "is_compatible": false
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_doc_syscap_delete_001.json b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_syscap_delete_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..c27adf4be98693325fefdf288eb88cff26de8d25
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_doc_syscap_delete_001.json
@@ -0,0 +1,11 @@
+[
+ {
+ "api_name": "ut_diff_case_001.h",
+ "api_type": "TRANSLATION_UNIT",
+ "diff_type": "DOC_TAG_SYSCAP_HAVE_TO_NA",
+ "diff_message": "delete syscap tag",
+ "old_api_full_text": "",
+ "new_api_full_text": "",
+ "is_compatible": false
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_file_add_001.json b/build-tools/capi_parser/test/expect/diff/ut_diff_file_add_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..27d7041f8ed346d64cda34c076e5c568e7f8f812
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_file_add_001.json
@@ -0,0 +1,29 @@
+[
+ {
+ "api_name": "NEURAL_NETWORK_RUNTIME_H",
+ "api_type": "MACRO_DEFINITION",
+ "diff_type": "ADD_API",
+ "diff_message": "add api",
+ "old_api_full_text": "",
+ "new_api_full_text": "NEURAL_NETWORK_RUNTIME_H",
+ "is_compatible": true
+ },
+ {
+ "api_name": "OH_NativeXComponent_GetKeyEventDeviceId",
+ "api_type": "FUNCTION_DECL",
+ "diff_type": "ADD_API",
+ "diff_message": "add api",
+ "old_api_full_text": "",
+ "new_api_full_text": "int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId)",
+ "is_compatible": true
+ },
+ {
+ "api_name": "ut_diff_case_001.h",
+ "api_type": "TRANSLATION_UNIT",
+ "diff_type": "ADD_API",
+ "diff_message": "add api",
+ "old_api_full_text": "",
+ "new_api_full_text": "",
+ "is_compatible": true
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_file_add_002.json b/build-tools/capi_parser/test/expect/diff/ut_diff_file_add_002.json
new file mode 100644
index 0000000000000000000000000000000000000000..182f47099ed986308053c21333f58a3aeba169ff
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_file_add_002.json
@@ -0,0 +1,29 @@
+[
+ {
+ "api_name": "NEURAL_NETWORK_RUNTIME_H",
+ "api_type": "MACRO_DEFINITION",
+ "diff_type": "ADD_API",
+ "diff_message": "add api",
+ "old_api_full_text": "",
+ "new_api_full_text": "NEURAL_NETWORK_RUNTIME_H",
+ "is_compatible": true
+ },
+ {
+ "api_name": "OH_NativeXComponent_GetKeyEventDeviceId",
+ "api_type": "FUNCTION_DECL",
+ "diff_type": "ADD_API",
+ "diff_message": "add api",
+ "old_api_full_text": "",
+ "new_api_full_text": "int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId)",
+ "is_compatible": true
+ },
+ {
+ "api_name": "ut_diff_case_002.h",
+ "api_type": "TRANSLATION_UNIT",
+ "diff_type": "ADD_API",
+ "diff_message": "add api",
+ "old_api_full_text": "",
+ "new_api_full_text": "",
+ "is_compatible": true
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_file_delete_001.json b/build-tools/capi_parser/test/expect/diff/ut_diff_file_delete_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..edd36c7a681cd2506e4973e703e57b860b3ec13a
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_file_delete_001.json
@@ -0,0 +1,29 @@
+[
+ {
+ "api_name": "NEURAL_NETWORK_RUNTIME_H",
+ "api_type": "MACRO_DEFINITION",
+ "diff_type": "REDUCE_API",
+ "diff_message": "delete api",
+ "old_api_full_text": "NEURAL_NETWORK_RUNTIME_H",
+ "new_api_full_text": "",
+ "is_compatible": false
+ },
+ {
+ "api_name": "OH_NativeXComponent_GetKeyEventDeviceId",
+ "api_type": "FUNCTION_DECL",
+ "diff_type": "REDUCE_API",
+ "diff_message": "delete api",
+ "old_api_full_text": "int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId)",
+ "new_api_full_text": "",
+ "is_compatible": false
+ },
+ {
+ "api_name": "ut_diff_case_001.h",
+ "api_type": "TRANSLATION_UNIT",
+ "diff_type": "REDUCE_API",
+ "diff_message": "delete api",
+ "old_api_full_text": "",
+ "new_api_full_text": "",
+ "is_compatible": false
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_file_delete_002.json b/build-tools/capi_parser/test/expect/diff/ut_diff_file_delete_002.json
new file mode 100644
index 0000000000000000000000000000000000000000..668883257307e657879e12c5a3d1c01fd0c44496
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_file_delete_002.json
@@ -0,0 +1,29 @@
+[
+ {
+ "api_name": "NEURAL_NETWORK_RUNTIME_H",
+ "api_type": "MACRO_DEFINITION",
+ "diff_type": "REDUCE_API",
+ "diff_message": "delete api",
+ "old_api_full_text": "NEURAL_NETWORK_RUNTIME_H",
+ "new_api_full_text": "",
+ "is_compatible": false
+ },
+ {
+ "api_name": "OH_NativeXComponent_GetKeyEventDeviceId",
+ "api_type": "FUNCTION_DECL",
+ "diff_type": "REDUCE_API",
+ "diff_message": "delete api",
+ "old_api_full_text": "int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId)",
+ "new_api_full_text": "",
+ "is_compatible": false
+ },
+ {
+ "api_name": "ut_diff_case_002.h",
+ "api_type": "TRANSLATION_UNIT",
+ "diff_type": "REDUCE_API",
+ "diff_message": "delete api",
+ "old_api_full_text": "",
+ "new_api_full_text": "",
+ "is_compatible": false
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_node_enum_member_add_001.json b/build-tools/capi_parser/test/expect/diff/ut_diff_node_enum_member_add_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..0f84d5cd168150907db8c0a8835c9212f5c606e3
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_node_enum_member_add_001.json
@@ -0,0 +1,11 @@
+[
+ {
+ "api_name": "OH_NN_FORMAT_NHWC",
+ "api_type": "ENUM_CONSTANT_DECL",
+ "diff_type": "ENUM_MEMBER_ADD",
+ "diff_message": "add member in enum",
+ "old_api_full_text": "enum Network {\n /** The tensor does not have a specific layout type (such as scalar or vector). */\n OH_NN_FORMAT_NONE = 0,\n /** The tensor arranges data in NCHW format.*/\n OH_NN_FORMAT_NCHW = 1\n};\n\n#i",
+ "new_api_full_text": "OH_NN_FORMAT_NHWC = 2",
+ "is_compatible": false
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_node_enum_member_name_change_001.json b/build-tools/capi_parser/test/expect/diff/ut_diff_node_enum_member_name_change_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..4b79b4778121578c1c8dc10571e4ec92b1050d91
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_node_enum_member_name_change_001.json
@@ -0,0 +1,11 @@
+[
+ {
+ "api_name": "OH_NN_FORMAT",
+ "api_type": "ENUM_CONSTANT_DECL",
+ "diff_type": "ENUM_MEMBER_NAME_CHANGE",
+ "diff_message": "change member name in enum",
+ "old_api_full_text": "OH_NN_FORMAT_NONE = 0",
+ "new_api_full_text": "OH_NN_FORMAT = 0",
+ "is_compatible": false
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_node_enum_member_reduce_001.json b/build-tools/capi_parser/test/expect/diff/ut_diff_node_enum_member_reduce_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..fca452782076c03a695b23dc7ea8bc9864180608
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_node_enum_member_reduce_001.json
@@ -0,0 +1,11 @@
+[
+ {
+ "api_name": "Network",
+ "api_type": "ENUM_DECL",
+ "diff_type": "ENUM_MEMBER_REDUCE",
+ "diff_message": "delete member in enum",
+ "old_api_full_text": "OH_NN_FORMAT_NCHW = 1",
+ "new_api_full_text": "enum Network {\n /** The tensor does not have a specific layout type (such as scalar or vector). */\n OH_NN_FORMAT_NONE = 0\n};\n\n",
+ "is_compatible": false
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_node_enum_member_value_change_001.json b/build-tools/capi_parser/test/expect/diff/ut_diff_node_enum_member_value_change_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..1dff2ffa88bc2a5c049113753096ad3d1cd0f881
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_node_enum_member_value_change_001.json
@@ -0,0 +1,11 @@
+[
+ {
+ "api_name": "OH_NN_FORMAT_NHWC",
+ "api_type": "ENUM_CONSTANT_DECL",
+ "diff_type": "ENUM_MEMBER_VALUE_CHANGE",
+ "diff_message": "change member value in enum",
+ "old_api_full_text": "OH_NN_FORMAT_NHWC = 2",
+ "new_api_full_text": "OH_NN_FORMAT_NHWC = 5",
+ "is_compatible": false
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_node_function_param_add_001.json b/build-tools/capi_parser/test/expect/diff/ut_diff_node_function_param_add_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..eeebbde77d8d2d6af603ab4f67c8bb10b262d1b7
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_node_function_param_add_001.json
@@ -0,0 +1,11 @@
+[
+ {
+ "api_name": "outputShape",
+ "api_type": "PARM_DECL",
+ "diff_type": "FUNCTION_PARAM_ADD",
+ "diff_message": "add param in function",
+ "old_api_full_text": "int OH_NNExecutor_GetOutputShape(int *executor, int *shapeLength)",
+ "new_api_full_text": "int *outputShape",
+ "is_compatible": false
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_node_function_param_reduce_001.json b/build-tools/capi_parser/test/expect/diff/ut_diff_node_function_param_reduce_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..569e6fe339da5adb67426b4b37407e0b68d4eea8
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_node_function_param_reduce_001.json
@@ -0,0 +1,11 @@
+[
+ {
+ "api_name": "OH_NNExecutor_GetOutputShape",
+ "api_type": "FUNCTION_DECL",
+ "diff_type": "FUNCTION_PARAM_REDUCE",
+ "diff_message": "delete param in function",
+ "old_api_full_text": "int *shapeLength",
+ "new_api_full_text": "int OH_NNExecutor_GetOutputShape(int *executor)",
+ "is_compatible": false
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_node_function_param_type_change_001.json b/build-tools/capi_parser/test/expect/diff/ut_diff_node_function_param_type_change_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..440bffebd25709481a464e4a9ccb0b0c4f9cfa69
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_node_function_param_type_change_001.json
@@ -0,0 +1,20 @@
+[
+ {
+ "api_name": "executor",
+ "api_type": "PARM_DECL",
+ "diff_type": "FUNCTION_PARAM_TYPE_CHANGE",
+ "diff_message": "change param type in function",
+ "old_api_full_text": "int *executor",
+ "new_api_full_text": "char executor",
+ "is_compatible": false
+ },
+ {
+ "api_name": "shapeLength",
+ "api_type": "PARM_DECL",
+ "diff_type": "FUNCTION_PARAM_TYPE_CHANGE",
+ "diff_message": "change param type in function",
+ "old_api_full_text": "int *shapeLength",
+ "new_api_full_text": "int shapeLength",
+ "is_compatible": false
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_node_function_return_001.json b/build-tools/capi_parser/test/expect/diff/ut_diff_node_function_return_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..c796f54f06a2afddb308a23b62751930f8ed6a58
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_node_function_return_001.json
@@ -0,0 +1,11 @@
+[
+ {
+ "api_name": "OH_NNExecutor_GetOutputShape",
+ "api_type": "FUNCTION_DECL",
+ "diff_type": "FUNCTION_RETURN_CHANGE",
+ "diff_message": "change function return value",
+ "old_api_full_text": "int OH_NNExecutor_GetOutputShape(int *executor, int *shapeLength)",
+ "new_api_full_text": "int *OH_NNExecutor_GetOutputShape(int *executor, int *shapeLength)",
+ "is_compatible": false
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_node_mar_define_add_001.json b/build-tools/capi_parser/test/expect/diff/ut_diff_node_mar_define_add_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..7c530d2ef4c1b7097f569727caa00c2971b206d2
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_node_mar_define_add_001.json
@@ -0,0 +1,11 @@
+[
+ {
+ "api_name": "MAX(a,b)",
+ "api_type": "MACRO_DEFINITION",
+ "diff_type": "ADD_API",
+ "diff_message": "add api",
+ "old_api_full_text": "",
+ "new_api_full_text": "MAX(a,b) (a > b?a:b)",
+ "is_compatible": true
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_node_mar_define_name_001.json b/build-tools/capi_parser/test/expect/diff/ut_diff_node_mar_define_name_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..8deed7976553c0d3ca47d5556fa9e343355ebfec
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_node_mar_define_name_001.json
@@ -0,0 +1,38 @@
+[
+ {
+ "api_name": "NEURAL_AST",
+ "api_type": "MACRO_DEFINITION",
+ "diff_type": "REDUCE_API",
+ "diff_message": "delete api",
+ "old_api_full_text": "NEURAL_AST",
+ "new_api_full_text": "",
+ "is_compatible": false
+ },
+ {
+ "api_name": "KHRONOS_APICALL_AST",
+ "api_type": "MACRO_DEFINITION",
+ "diff_type": "REDUCE_API",
+ "diff_message": "delete api",
+ "old_api_full_text": "KHRONOS_APICALL_AST __declspec(dllimport)",
+ "new_api_full_text": "",
+ "is_compatible": false
+ },
+ {
+ "api_name": "NEURAL",
+ "api_type": "MACRO_DEFINITION",
+ "diff_type": "ADD_API",
+ "diff_message": "add api",
+ "old_api_full_text": "",
+ "new_api_full_text": "NEURAL",
+ "is_compatible": true
+ },
+ {
+ "api_name": "KHRONOS_APICALL",
+ "api_type": "MACRO_DEFINITION",
+ "diff_type": "ADD_API",
+ "diff_message": "add api",
+ "old_api_full_text": "",
+ "new_api_full_text": "KHRONOS_APICALL __declspec(dllimport)",
+ "is_compatible": true
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_node_mar_define_reduce_001.json b/build-tools/capi_parser/test/expect/diff/ut_diff_node_mar_define_reduce_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..2377d5afff455779bcea7f72ae9cc30215ce881d
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_node_mar_define_reduce_001.json
@@ -0,0 +1,11 @@
+[
+ {
+ "api_name": "KHRONOS_APICALL",
+ "api_type": "MACRO_DEFINITION",
+ "diff_type": "REDUCE_API",
+ "diff_message": "delete api",
+ "old_api_full_text": "KHRONOS_APICALL __declspec(dllimport)",
+ "new_api_full_text": "",
+ "is_compatible": false
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_node_mar_define_text_001.json b/build-tools/capi_parser/test/expect/diff/ut_diff_node_mar_define_text_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..d7316f31f41462346a4d28eff2841db1467c0055
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_node_mar_define_text_001.json
@@ -0,0 +1,11 @@
+[
+ {
+ "api_name": "NEURAL",
+ "api_type": "MACRO_DEFINITION",
+ "diff_type": "DEFINE_TEXT_CHANGE",
+ "diff_message": "change define text",
+ "old_api_full_text": "NEURAL 50",
+ "new_api_full_text": "NEURAL",
+ "is_compatible": false
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_node_struct_member_add_001.json b/build-tools/capi_parser/test/expect/diff/ut_diff_node_struct_member_add_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..088bcb7e34ad9e1004d427e41b0345ddd914ebd6
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_node_struct_member_add_001.json
@@ -0,0 +1,92 @@
+[
+ {
+ "api_name": "NEURAL_NETWORK_H",
+ "api_type": "MACRO_DEFINITION",
+ "diff_type": "REDUCE_API",
+ "diff_message": "delete api",
+ "old_api_full_text": "NEURAL_NETWORK_H",
+ "new_api_full_text": "",
+ "is_compatible": false
+ },
+ {
+ "api_name": "std",
+ "api_type": "STRUCT_DECL",
+ "diff_type": "REDUCE_API",
+ "diff_message": "delete api",
+ "old_api_full_text": "struct std{\n char ch;\n int len;\n};\n\n",
+ "new_api_full_text": "",
+ "is_compatible": false
+ },
+ {
+ "api_name": "ut_diff_node_struct_member_type_change_001\\ut_diff_node_case1.h",
+ "api_type": "TRANSLATION_UNIT",
+ "diff_type": "REDUCE_API",
+ "diff_message": "delete api",
+ "old_api_full_text": "",
+ "new_api_full_text": "",
+ "is_compatible": false
+ },
+ {
+ "api_name": "NEURAL_NETWORK_H",
+ "api_type": "MACRO_DEFINITION",
+ "diff_type": "REDUCE_API",
+ "diff_message": "delete api",
+ "old_api_full_text": "NEURAL_NETWORK_H",
+ "new_api_full_text": "",
+ "is_compatible": false
+ },
+ {
+ "api_name": "std",
+ "api_type": "STRUCT_DECL",
+ "diff_type": "REDUCE_API",
+ "diff_message": "delete api",
+ "old_api_full_text": "struct std{\n char ch;\n int len;\n};\n\n",
+ "new_api_full_text": "",
+ "is_compatible": false
+ },
+ {
+ "api_name": "ut_diff_node_struct_member_reduce_001\\ut_diff_node_case1.h",
+ "api_type": "TRANSLATION_UNIT",
+ "diff_type": "REDUCE_API",
+ "diff_message": "delete api",
+ "old_api_full_text": "",
+ "new_api_full_text": "",
+ "is_compatible": false
+ },
+ {
+ "api_name": "id",
+ "api_type": "FIELD_DECL",
+ "diff_type": "STRUCT_MEMBER_ADD",
+ "diff_message": "add member in struct",
+ "old_api_full_text": "struct std{\n char ch;\n};\n",
+ "new_api_full_text": "int id",
+ "is_compatible": false
+ },
+ {
+ "api_name": "NEURAL_NETWORK_H",
+ "api_type": "MACRO_DEFINITION",
+ "diff_type": "REDUCE_API",
+ "diff_message": "delete api",
+ "old_api_full_text": "NEURAL_NETWORK_H",
+ "new_api_full_text": "",
+ "is_compatible": false
+ },
+ {
+ "api_name": "std",
+ "api_type": "STRUCT_DECL",
+ "diff_type": "REDUCE_API",
+ "diff_message": "delete api",
+ "old_api_full_text": "struct std{\n char ch;\n int len;\n};\n\n",
+ "new_api_full_text": "",
+ "is_compatible": false
+ },
+ {
+ "api_name": "ut_diff_node_struct_member_name_change_001\\ut_diff_node_case1.h",
+ "api_type": "TRANSLATION_UNIT",
+ "diff_type": "REDUCE_API",
+ "diff_message": "delete api",
+ "old_api_full_text": "",
+ "new_api_full_text": "",
+ "is_compatible": false
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_node_struct_member_name_change_001.json b/build-tools/capi_parser/test/expect/diff/ut_diff_node_struct_member_name_change_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..e027f251eae4330654b8fe6d1e508c66720b6b43
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_node_struct_member_name_change_001.json
@@ -0,0 +1,11 @@
+[
+ {
+ "api_name": "character",
+ "api_type": "FIELD_DECL",
+ "diff_type": "STRUCT_MEMBER_NAME_CHANGE",
+ "diff_message": "change member name in struct",
+ "old_api_full_text": "char ch",
+ "new_api_full_text": "char character",
+ "is_compatible": false
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_node_struct_member_reduce_001.json b/build-tools/capi_parser/test/expect/diff/ut_diff_node_struct_member_reduce_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..b00d7e660efc52ef62df1693275e9fe82bc68cb5
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_node_struct_member_reduce_001.json
@@ -0,0 +1,11 @@
+[
+ {
+ "api_name": "std",
+ "api_type": "STRUCT_DECL",
+ "diff_type": "STRUCT_MEMBER_REDUCE",
+ "diff_message": "delete member in struct",
+ "old_api_full_text": "int len",
+ "new_api_full_text": "struct std{\n char ch;\n};\n",
+ "is_compatible": false
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_node_struct_member_type_change_001.json b/build-tools/capi_parser/test/expect/diff/ut_diff_node_struct_member_type_change_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..ac9f71b44a8fa84268af3ed5bfc396a666305dcc
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_node_struct_member_type_change_001.json
@@ -0,0 +1,11 @@
+[
+ {
+ "api_name": "len",
+ "api_type": "FIELD_DECL",
+ "diff_type": "STRUCT_MEMBER_TYPE_CHANGE",
+ "diff_message": "change member type in struct",
+ "old_api_full_text": "int len",
+ "new_api_full_text": "char len",
+ "is_compatible": false
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_node_typedef_name_change_001.json b/build-tools/capi_parser/test/expect/diff/ut_diff_node_typedef_name_change_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..2398b915a73ace8e1dedb19873024cb0afd4a9fc
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_node_typedef_name_change_001.json
@@ -0,0 +1,20 @@
+[
+ {
+ "api_name": "Network",
+ "api_type": "TYPEDEF_DECL",
+ "diff_type": "REDUCE_API",
+ "diff_message": "delete api",
+ "old_api_full_text": "typedef enum {\n /** The tensor does not have a specific layout type (such as scalar or vector). */\n OH_NN_FORMAT_NONE = 0,\n /** The tensor arranges data in NCHW format.*/\n OH_NN_FORMAT_NCHW = 1\n} Network;\n\n#i",
+ "new_api_full_text": "",
+ "is_compatible": false
+ },
+ {
+ "api_name": "Network_New",
+ "api_type": "TYPEDEF_DECL",
+ "diff_type": "ADD_API",
+ "diff_message": "add api",
+ "old_api_full_text": "",
+ "new_api_full_text": "typedef enum {\n /** The tensor does not have a specific layout type (such as scalar or vector). */\n OH_NN_FORMAT_NONE = 0,\n /** The tensor arranges data in NCHW format.*/\n OH_NN_FORMAT_NCHW = 1\n} Network_New;\n\n#i",
+ "is_compatible": true
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_node_union_member_add_001.json b/build-tools/capi_parser/test/expect/diff/ut_diff_node_union_member_add_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..61eece1c3125580a66349ad281d995326024afd9
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_node_union_member_add_001.json
@@ -0,0 +1,11 @@
+[
+ {
+ "api_name": "na",
+ "api_type": "FIELD_DECL",
+ "diff_type": "UNION_MEMBER_ADD",
+ "diff_message": "add member in union",
+ "old_api_full_text": "union std{\n char ch;\n};\n",
+ "new_api_full_text": "char na",
+ "is_compatible": false
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_node_union_member_name_change_001.json b/build-tools/capi_parser/test/expect/diff/ut_diff_node_union_member_name_change_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..13b6bb525100493e3ae81a752aba0f35a3c8f442
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_node_union_member_name_change_001.json
@@ -0,0 +1,11 @@
+[
+ {
+ "api_name": "key",
+ "api_type": "FIELD_DECL",
+ "diff_type": "UNION_MEMBER_NAME_CHANGE",
+ "diff_message": "change member name in union",
+ "old_api_full_text": "int count",
+ "new_api_full_text": "int key",
+ "is_compatible": false
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_node_union_member_reduce_001.json b/build-tools/capi_parser/test/expect/diff/ut_diff_node_union_member_reduce_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..217bb24dbb3d6e47a7fd0b95087059685299fea6
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_node_union_member_reduce_001.json
@@ -0,0 +1,29 @@
+[
+ {
+ "api_name": "count",
+ "api_type": "FIELD_DECL",
+ "diff_type": "UNION_MEMBER_TYPE_CHANGE",
+ "diff_message": "change member type in union",
+ "old_api_full_text": "char ch",
+ "new_api_full_text": "int count",
+ "is_compatible": false
+ },
+ {
+ "api_name": "count",
+ "api_type": "FIELD_DECL",
+ "diff_type": "UNION_MEMBER_NAME_CHANGE",
+ "diff_message": "change member name in union",
+ "old_api_full_text": "char ch",
+ "new_api_full_text": "int count",
+ "is_compatible": false
+ },
+ {
+ "api_name": "std",
+ "api_type": "UNION_DECL",
+ "diff_type": "UNION_MEMBER_REDUCE",
+ "diff_message": "delete member in union",
+ "old_api_full_text": "int count",
+ "new_api_full_text": "union std{\n int count;\n};\n",
+ "is_compatible": false
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/expect/diff/ut_diff_node_union_member_type_change_001.json b/build-tools/capi_parser/test/expect/diff/ut_diff_node_union_member_type_change_001.json
new file mode 100644
index 0000000000000000000000000000000000000000..228dfeb849e2185b61553da04217a6e481994913
--- /dev/null
+++ b/build-tools/capi_parser/test/expect/diff/ut_diff_node_union_member_type_change_001.json
@@ -0,0 +1,11 @@
+[
+ {
+ "api_name": "ch",
+ "api_type": "FIELD_DECL",
+ "diff_type": "UNION_MEMBER_TYPE_CHANGE",
+ "diff_message": "change member type in union",
+ "old_api_full_text": "char ch",
+ "new_api_full_text": "unsigned int ch",
+ "is_compatible": false
+ }
+]
\ No newline at end of file
diff --git a/build-tools/capi_parser/test/output/diff/.gitkeep b/build-tools/capi_parser/test/output/diff/.gitkeep
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/build-tools/capi_parser/test/testCase/run_main.py b/build-tools/capi_parser/test/testCase/run_main.py
index 9c08227582ce634588713e9880a8b85bcdd9c058..f4c403b35d1b00b06700546a5c64aca884773d8d 100644
--- a/build-tools/capi_parser/test/testCase/run_main.py
+++ b/build-tools/capi_parser/test/testCase/run_main.py
@@ -19,7 +19,8 @@ import os
import json
import unittest
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "../../src")))
-from coreImpl.check.check import get_check_result_list, write_in_txt
+from coreImpl.check import check
+from coreImpl.diff import diff_file
class TestMethods(unittest.TestCase):
@@ -30,13 +31,51 @@ class TestMethods(unittest.TestCase):
expect_path = os.path.join(test_path, "expect\\check")
for dirpath, dirnames, filenames in os.walk(test_case_path):
for item in filenames:
+ if not item.endswith(".h"):
+ continue
file_name = item.split('.')[0]
- check_result = get_check_result_list([os.path.join(dirpath, item)])
- write_in_txt(check_result, os.path.join(output_path, "{}.txt".format(file_name)))
- with open(os.path.join(expect_path, "{}.txt".format(file_name))) as json_file:
- permission_file_content = json.load(json_file)
- result_json = json.dumps(permission_file_content, default=lambda obj: obj.__dict__, indent=4)
- self.assertEqual(result_json, "result_json", "{} case is error".format(os.path.join(dirpath, item)))
+ test_case_file_name = os.path.join(dirpath, item)
+ check_result = check.get_check_result_list([test_case_file_name])
+ output_file_name = os.path.join(output_path, "{}.json".format(file_name))
+ check.write_in_txt(check_result, output_file_name)
+ expect_file_name = os.path.join(expect_path, "{}.json".format(file_name))
+ if not os.path.exists(expect_file_name):
+ continue
+ expect_file = open(expect_file_name)
+ expect_file_content = expect_file.read()
+ expect_file.close()
+ out_json = check.result_to_json(check_result)
+ self.assertEqual(out_json, expect_file_content,
+ f"\n{test_case_file_name} case is error.\n" +
+ f"{output_file_name} is out file.\n" +
+ f"{expect_file_name} is expect out file")
+
+ def test_diff(self):
+ test_path = os.path.abspath(os.path.join(os.path.dirname(__file__), "..\\"))
+ test_case_old_path = os.path.join(test_path, "ut\\diff\\old")
+ test_case_new_path = os.path.join(test_path, "ut\\diff\\new")
+ output_path = os.path.join(test_path, "output\\diff")
+ expect_path = os.path.join(test_path, "expect\\diff")
+ old_file_list = os.listdir(test_case_old_path)
+ for case_name in old_file_list:
+ output_file_name = os.path.join(output_path, "{}.json".format(case_name))
+ test_case_old_dir = os.path.join(test_case_old_path, case_name)
+ test_case_new_dir = os.path.join(test_case_new_path, case_name)
+ diff_result = diff_file.global_assignment(test_case_old_dir, test_case_new_dir)
+ diff_json = diff_file.result_to_json(diff_result)
+ diff_file.write_in_txt(diff_json, output_file_name)
+ expect_file_name = os.path.join(expect_path, "{}.json".format(case_name))
+ if not os.path.exists(expect_file_name):
+ continue
+ expect_file = open(expect_file_name)
+ expect_file_content = expect_file.read()
+ expect_file.close()
+ self.assertEqual(diff_json, expect_file_content,
+ f"\n{case_name} case is error.\n" +
+ f"\n{test_case_old_dir} is old case dir.\n" +
+ f"\n{test_case_new_dir} is new case dir.\n" +
+ f"{output_file_name} is out file.\n" +
+ f"{expect_file_name} is expect out file")
if __name__ == '__main__':
diff --git a/build-tools/capi_parser/test/ut/check/ut_check_doc_addgroup_001.h b/build-tools/capi_parser/test/ut/check/ut_check_doc_addgroup_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..922093bacb011df37d68ba71ac9c293ab384531b
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/check/ut_check_doc_addgroup_001.h
@@ -0,0 +1,48 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/check/ut_check_doc_addgroup_002.h b/build-tools/capi_parser/test/ut/check/ut_check_doc_addgroup_002.h
new file mode 100644
index 0000000000000000000000000000000000000000..14511ce51576c179b672d8d94e423bb2ec626c76
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/check/ut_check_doc_addgroup_002.h
@@ -0,0 +1,48 @@
+/*
+ * Copyright (c) 2021-2023 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.
+ */
+
+/**
+ * @addtogroup
+ * @{
+ *
+ * @brief Describes the surface and touch event held by the ArkUI XComponent, which can be used for the EGL
+ *
+ * @since 8
+ * @version 1.0
+ */
+
+/**
+ * @file native_interface_xcomponent.h
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @library libneural_network_runtime.so
+ * @syscap SystemCapability.Applications.CalendarData
+ * @since 8
+ * @version 1.0
+ */
+
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+/** @} */
+#endif // _NATIVE_INTERFACE_XCOMPONENT_H_
diff --git a/build-tools/capi_parser/test/ut/check/ut_check_doc_addgroup_003.h b/build-tools/capi_parser/test/ut/check/ut_check_doc_addgroup_003.h
new file mode 100644
index 0000000000000000000000000000000000000000..4950cec4c22bab8a199816c8d6340263c736f702
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/check/ut_check_doc_addgroup_003.h
@@ -0,0 +1,37 @@
+/*
+ * Copyright (c) 2021-2023 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.
+ */
+
+/**
+ * @file native_interface_xcomponent.h
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @library libneural_network_runtime.so
+ * @syscap SystemCapability.Applications.CalendarData
+ * @since 8
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef __cplusplus
+};
+#endif
+/** @} */
+#endif // _NATIVE_INTERFACE_XCOMPONENT_H_
diff --git a/build-tools/capi_parser/test/ut/check/ut_check_doc_addgroup_004.h b/build-tools/capi_parser/test/ut/check/ut_check_doc_addgroup_004.h
new file mode 100644
index 0000000000000000000000000000000000000000..89513142fd3c0b0bff1798a575946727052f735e
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/check/ut_check_doc_addgroup_004.h
@@ -0,0 +1,58 @@
+/*
+ * Copyright (c) 2021-2023 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.
+ */
+
+/**
+ * @addtogroup OH_NativeXComponent Native XComponent
+ * @{
+ *
+ * @brief Describes the surface and touch event held by the ArkUI XComponent, which can be used for the EGLOpenGL ES\n
+ * and media data input and displayed on the ArkUI XComponent.
+ *
+ * @since 8
+ * @version 1.0
+ */
+/**
+ * @addtogroup OH_NativeXComponent2 Native XComponent
+ * @{
+ *
+ * @brief Describes the surface and touch event held by the ArkUI XComponent, which can be used for the EGLOpenGL ES\n
+ * and media data input and displayed on the ArkUI XComponent.
+ *
+ * @since 8
+ * @version 1.0
+ */
+
+/**
+ * @file native_interface_xcomponent.h
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @library libneural_network_runtime.so
+ * @syscap SystemCapability.Applications.CalendarData
+ * @since 8
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef __cplusplus
+};
+#endif
+/** @} */
+#endif // _NATIVE_INTERFACE_XCOMPONENT_H_
diff --git a/build-tools/capi_parser/test/ut/check/ut_check_doc_description_001.h b/build-tools/capi_parser/test/ut/check/ut_check_doc_description_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..55f65b5de939644320d1377f756a7a13284092c0
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/check/ut_check_doc_description_001.h
@@ -0,0 +1,65 @@
+/*
+ * Copyright (c) 2021-2023 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.
+ */
+
+/**
+ * @addtogroup OH_NativeXComponent Native XComponent
+ * @{
+ *
+ * @brief Describes the surface and touch event held by the ArkUI XComponent, which can be used for the EGLOpenGL ES\n
+ * and media data input and displayed on the ArkUI XComponent.
+ *
+ * @since 8
+ * @version 1.0
+ */
+
+/**
+ * @file native_interface_xcomponent.h
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @library libneural_network_runtime.so
+ * @syscap SystemCapability.Applications.CalendarData
+ * @since 8
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Defines the pixel map information.
+ *
+ * @deprecated since 10
+ * @since 8
+ * @version 1.0
+ */
+ struct OhosPixelMapInfo {
+ /** Image width, in pixels. */
+ int width;
+ /** Image height, in pixels. */
+ int height;
+ /** Number of bytes per row. */
+ int rowSize;
+ /** Pixel format. */
+ int pixelFormat;
+ };
+#ifdef __cplusplus
+};
+#endif
+/** @} */
+#endif // _NATIVE_INTERFACE_XCOMPONENT_H_
diff --git a/build-tools/capi_parser/test/ut/check/ut_check_doc_description_002.h b/build-tools/capi_parser/test/ut/check/ut_check_doc_description_002.h
new file mode 100644
index 0000000000000000000000000000000000000000..40a73b5c7487a795200f9d05b37a43697034eef1
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/check/ut_check_doc_description_002.h
@@ -0,0 +1,65 @@
+/*
+ * Copyright (c) 2021-2023 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.
+ */
+
+/**
+ * @addtogroup OH_NativeXComponent Native XComponent
+ * @{
+ *
+ * @brief Describes the surface and touch event held by the ArkUI XComponent, which can be used for the EGLOpenGL ES\n
+ * and media data input and displayed on the ArkUI XComponent.
+ *
+ * @since 8
+ * @version 1.0
+ */
+
+/**
+ * @file native_interface_xcomponent.h
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @library libneural_network_runtime.so
+ * @syscap SystemCapability.Applications.CalendarData
+ * @since 8
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Defines the pixel map information.
+ *
+ * @deprecated
+ * @since 8
+ * @version 1.0
+ */
+ struct OhosPixelMapInfo {
+ /** Image width, in pixels. */
+ int width;
+ /** Image height, in pixels. */
+ int height;
+ /** Number of bytes per row. */
+ int rowSize;
+ /** Pixel format. */
+ int pixelFormat;
+ };
+#ifdef __cplusplus
+};
+#endif
+/** @} */
+#endif // _NATIVE_INTERFACE_XCOMPONENT_H_
diff --git a/build-tools/capi_parser/test/ut/check/ut_check_doc_description_003.h b/build-tools/capi_parser/test/ut/check/ut_check_doc_description_003.h
new file mode 100644
index 0000000000000000000000000000000000000000..75683ebed05991e518836a9baad9b9f767479efc
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/check/ut_check_doc_description_003.h
@@ -0,0 +1,65 @@
+/*
+ * Copyright (c) 2021-2023 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.
+ */
+
+/**
+ * @addtogroup OH_NativeXComponent Native XComponent
+ * @{
+ *
+ * @brief Describes the surface and touch event held by the ArkUI XComponent, which can be used for the EGLOpenGL ES\n
+ * and media data input and displayed on the ArkUI XComponent.
+ *
+ * @since 8
+ * @version 1.0
+ */
+
+/**
+ * @file native_interface_xcomponent.h
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @library libneural_network_runtime.so
+ * @syscap SystemCapability.Applications.CalendarData
+ * @since 8
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Defines the pixel map information.
+ *
+ * @deprecated 10
+ * @since 8
+ * @version 1.0
+ */
+ struct OhosPixelMapInfo {
+ /** Image width, in pixels. */
+ int width;
+ /** Image height, in pixels. */
+ int height;
+ /** Number of bytes per row. */
+ int rowSize;
+ /** Pixel format. */
+ int pixelFormat;
+ };
+#ifdef __cplusplus
+};
+#endif
+/** @} */
+#endif // _NATIVE_INTERFACE_XCOMPONENT_H_
diff --git a/build-tools/capi_parser/test/ut/check/ut_check_doc_description_004.h b/build-tools/capi_parser/test/ut/check/ut_check_doc_description_004.h
new file mode 100644
index 0000000000000000000000000000000000000000..b049e8335f89116678d873ba28a764e70d94e419
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/check/ut_check_doc_description_004.h
@@ -0,0 +1,65 @@
+/*
+ * Copyright (c) 2021-2023 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.
+ */
+
+/**
+ * @addtogroup OH_NativeXComponent Native XComponent
+ * @{
+ *
+ * @brief Describes the surface and touch event held by the ArkUI XComponent, which can be used for the EGLOpenGL ES\n
+ * and media data input and displayed on the ArkUI XComponent.
+ *
+ * @since 8
+ * @version 1.0
+ */
+
+/**
+ * @file native_interface_xcomponent.h
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @library libneural_network_runtime.so
+ * @syscap SystemCapability.Applications.CalendarData
+ * @since 8
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Defines the pixel map information.
+ *
+ * @deprecated since
+ * @since 8
+ * @version 1.0
+ */
+ struct OhosPixelMapInfo {
+ /** Image width, in pixels. */
+ int width;
+ /** Image height, in pixels. */
+ int height;
+ /** Number of bytes per row. */
+ int rowSize;
+ /** Pixel format. */
+ int pixelFormat;
+ };
+#ifdef __cplusplus
+};
+#endif
+/** @} */
+#endif // _NATIVE_INTERFACE_XCOMPONENT_H_
diff --git a/build-tools/capi_parser/test/ut/check/ut_check_doc_description_005.h b/build-tools/capi_parser/test/ut/check/ut_check_doc_description_005.h
new file mode 100644
index 0000000000000000000000000000000000000000..36637612423f57f859899b2550b9e3cc040c8991
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/check/ut_check_doc_description_005.h
@@ -0,0 +1,65 @@
+/*
+ * Copyright (c) 2021-2023 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.
+ */
+
+/**
+ * @addtogroup OH_NativeXComponent Native XComponent
+ * @{
+ *
+ * @brief Describes the surface and touch event held by the ArkUI XComponent, which can be used for the EGLOpenGL ES\n
+ * and media data input and displayed on the ArkUI XComponent.
+ *
+ * @since 8
+ * @version 1.0
+ */
+
+/**
+ * @file native_interface_xcomponent.h
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @library libneural_network_runtime.so
+ * @syscap SystemCapability.Applications.CalendarData
+ * @since 8
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Defines the pixel map information.
+ *
+ * @deprecated since aa
+ * @since 8
+ * @version 1.0
+ */
+ struct OhosPixelMapInfo {
+ /** Image width, in pixels. */
+ int width;
+ /** Image height, in pixels. */
+ int height;
+ /** Number of bytes per row. */
+ int rowSize;
+ /** Pixel format. */
+ int pixelFormat;
+ };
+#ifdef __cplusplus
+};
+#endif
+/** @} */
+#endif // _NATIVE_INTERFACE_XCOMPONENT_H_
diff --git a/build-tools/capi_parser/test/ut/check/ut_check_doc_file_001.h b/build-tools/capi_parser/test/ut/check/ut_check_doc_file_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..805a9cf6ff77c004f6f58ffdb7f5a25f90d254c3
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/check/ut_check_doc_file_001.h
@@ -0,0 +1,48 @@
+/*
+ * Copyright (c) 2021-2023 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.
+ */
+
+/**
+ * @addtogroup OH_NativeXComponent Native XComponent
+ * @{
+ *
+ * @brief Describes the surface and touch event held by the ArkUI XComponent, which can be used for the EGLOpenGL ES\n
+ * and media data input and displayed on the ArkUI XComponent.
+ *
+ * @since 8
+ * @version 1.0
+ */
+
+/**
+ * @file native_interface_xcomponent.h
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @library libneural_network_runtime.so
+ * @syscap SystemCapability.Applications.CalendarData
+ * @since 8
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef __cplusplus
+};
+#endif
+/** @} */
+#endif // _NATIVE_INTERFACE_XCOMPONENT_H_
diff --git a/build-tools/capi_parser/test/ut/check/ut_check_doc_file_002.h b/build-tools/capi_parser/test/ut/check/ut_check_doc_file_002.h
new file mode 100644
index 0000000000000000000000000000000000000000..aefff55e3d3efefa49235a203bb80fb1ea1888f5
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/check/ut_check_doc_file_002.h
@@ -0,0 +1,48 @@
+/*
+ * Copyright (c) 2021-2023 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.
+ */
+
+/**
+ * @addtogroup OH_NativeXComponent Native XComponent
+ * @{
+ *
+ * @brief Describes the surface and touch event held by the ArkUI XComponent, which can be used for the EGLOpenGL ES\n
+ * and media data input and displayed on the ArkUI XComponent.
+ *
+ * @since 8
+ * @version 1.0
+ */
+
+/**
+ * @file
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @library libneural_network_runtime.so
+ * @syscap SystemCapability.Applications.CalendarData
+ * @since 8
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef __cplusplus
+};
+#endif
+/** @} */
+#endif // _NATIVE_INTERFACE_XCOMPONENT_H_
diff --git a/build-tools/capi_parser/test/ut/check/ut_check_doc_file_003.h b/build-tools/capi_parser/test/ut/check/ut_check_doc_file_003.h
new file mode 100644
index 0000000000000000000000000000000000000000..321d5c210734a756b7e73e7356a8e8bc1c7e4554
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/check/ut_check_doc_file_003.h
@@ -0,0 +1,47 @@
+/*
+ * Copyright (c) 2021-2023 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.
+ */
+
+/**
+ * @addtogroup OH_NativeXComponent Native XComponent
+ * @{
+ *
+ * @brief Describes the surface and touch event held by the ArkUI XComponent, which can be used for the EGLOpenGL ES\n
+ * and media data input and displayed on the ArkUI XComponent.
+ *
+ * @since 8
+ * @version 1.0
+ */
+
+/**
+ * @file native_interface_xcomponent.h
+ *
+ *
+ * @library libneural_network_runtime.so
+ * @syscap SystemCapability.Applications.CalendarData
+ * @since 8
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef __cplusplus
+};
+#endif
+/** @} */
+#endif // _NATIVE_INTERFACE_XCOMPONENT_H_
diff --git a/build-tools/capi_parser/test/ut/check/ut_check_doc_file_004.h b/build-tools/capi_parser/test/ut/check/ut_check_doc_file_004.h
new file mode 100644
index 0000000000000000000000000000000000000000..d9a4af47c919d37c6df420cd6f4fe095c6a5d2fe
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/check/ut_check_doc_file_004.h
@@ -0,0 +1,47 @@
+/*
+ * Copyright (c) 2021-2023 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.
+ */
+
+/**
+ * @addtogroup OH_NativeXComponent Native XComponent
+ * @{
+ *
+ * @brief Describes the surface and touch event held by the ArkUI XComponent, which can be used for the EGLOpenGL ES\n
+ * and media data input and displayed on the ArkUI XComponent.
+ *
+ * @since 8
+ * @version 1.0
+ */
+
+/**
+ * @file native_interface_xcomponent.h
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @since 8
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef __cplusplus
+};
+#endif
+/** @} */
+#endif // _NATIVE_INTERFACE_XCOMPONENT_H_
diff --git a/build-tools/capi_parser/test/ut/check/ut_check_doc_file_005.h b/build-tools/capi_parser/test/ut/check/ut_check_doc_file_005.h
new file mode 100644
index 0000000000000000000000000000000000000000..ad79e6443aa9662d97c804efc8b11c26edaaa9bf
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/check/ut_check_doc_file_005.h
@@ -0,0 +1,47 @@
+/*
+ * Copyright (c) 2021-2023 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.
+ */
+
+/**
+ * @addtogroup OH_NativeXComponent Native XComponent
+ * @{
+ *
+ * @brief Describes the surface and touch event held by the ArkUI XComponent, which can be used for the EGLOpenGL ES\n
+ * and media data input and displayed on the ArkUI XComponent.
+ *
+ * @since 8
+ * @version 1.0
+ */
+
+/**
+ * @file native_interface_xcomponent.h
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @library libneural_network_runtime.so
+ * @since 8
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef __cplusplus
+};
+#endif
+/** @} */
+#endif // _NATIVE_INTERFACE_XCOMPONENT_H_
diff --git a/build-tools/capi_parser/test/ut/check/ut_check_doc_file_006.h b/build-tools/capi_parser/test/ut/check/ut_check_doc_file_006.h
new file mode 100644
index 0000000000000000000000000000000000000000..364371360142fc68b83675863fb4eb6a0134e11d
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/check/ut_check_doc_file_006.h
@@ -0,0 +1,37 @@
+/*
+ * Copyright (c) 2021-2023 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.
+ */
+
+/**
+ * @addtogroup OH_NativeXComponent Native XComponent
+ * @{
+ *
+ * @brief Describes the surface and touch event held by the ArkUI XComponent, which can be used for the EGLOpenGL ES\n
+ * and media data input and displayed on the ArkUI XComponent.
+ *
+ * @since 8
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef __cplusplus
+};
+#endif
+/** @} */
+#endif // _NATIVE_INTERFACE_XCOMPONENT_H_
diff --git a/build-tools/capi_parser/test/ut/check/ut_check_doc_file_007.h b/build-tools/capi_parser/test/ut/check/ut_check_doc_file_007.h
new file mode 100644
index 0000000000000000000000000000000000000000..7093771d48d449fe3c89bb99b81d0598df87e99c
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/check/ut_check_doc_file_007.h
@@ -0,0 +1,58 @@
+/*
+ * Copyright (c) 2021-2023 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.
+ */
+
+/**
+ * @addtogroup OH_NativeXComponent Native XComponent
+ * @{
+ *
+ * @brief Describes the surface and touch event held by the ArkUI XComponent, which can be used for the EGLOpenGL ES\n
+ * and media data input and displayed on the ArkUI XComponent.
+ *
+ * @since 8
+ * @version 1.0
+ */
+
+/**
+ * @file native_interface_xcomponent.h
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @library libneural_network_runtime.so
+ * @syscap SystemCapability.Applications.CalendarData
+ * @since 8
+ * @version 1.0
+ */
+/**
+ * @file native_interface_xcomponent2.h
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @library libneural_network_runtime.so
+ * @syscap SystemCapability.Applications.CalendarData
+ * @since 8
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef __cplusplus
+};
+#endif
+/** @} */
+#endif // _NATIVE_INTERFACE_XCOMPONENT_H_
diff --git a/build-tools/capi_parser/test/ut/check/ut_check_doc_left_001.h b/build-tools/capi_parser/test/ut/check/ut_check_doc_left_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..7093771d48d449fe3c89bb99b81d0598df87e99c
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/check/ut_check_doc_left_001.h
@@ -0,0 +1,58 @@
+/*
+ * Copyright (c) 2021-2023 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.
+ */
+
+/**
+ * @addtogroup OH_NativeXComponent Native XComponent
+ * @{
+ *
+ * @brief Describes the surface and touch event held by the ArkUI XComponent, which can be used for the EGLOpenGL ES\n
+ * and media data input and displayed on the ArkUI XComponent.
+ *
+ * @since 8
+ * @version 1.0
+ */
+
+/**
+ * @file native_interface_xcomponent.h
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @library libneural_network_runtime.so
+ * @syscap SystemCapability.Applications.CalendarData
+ * @since 8
+ * @version 1.0
+ */
+/**
+ * @file native_interface_xcomponent2.h
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @library libneural_network_runtime.so
+ * @syscap SystemCapability.Applications.CalendarData
+ * @since 8
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef __cplusplus
+};
+#endif
+/** @} */
+#endif // _NATIVE_INTERFACE_XCOMPONENT_H_
diff --git a/build-tools/capi_parser/test/ut/check/ut_check_doc_left_002.h b/build-tools/capi_parser/test/ut/check/ut_check_doc_left_002.h
new file mode 100644
index 0000000000000000000000000000000000000000..1d66eaee79bfcd3ee8a930833c96c048dacac902
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/check/ut_check_doc_left_002.h
@@ -0,0 +1,57 @@
+/*
+ * Copyright (c) 2021-2023 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.
+ */
+
+/**
+ * @addtogroup OH_NativeXComponent Native XComponent
+ *
+ * @brief Describes the surface and touch event held by the ArkUI XComponent, which can be used for the EGLOpenGL ES\n
+ * and media data input and displayed on the ArkUI XComponent.
+ *
+ * @since 8
+ * @version 1.0
+ */
+
+/**
+ * @file native_interface_xcomponent.h
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @library libneural_network_runtime.so
+ * @syscap SystemCapability.Applications.CalendarData
+ * @since 8
+ * @version 1.0
+ */
+/**
+ * @file native_interface_xcomponent2.h
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @library libneural_network_runtime.so
+ * @syscap SystemCapability.Applications.CalendarData
+ * @since 8
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef __cplusplus
+};
+#endif
+/** @} */
+#endif // _NATIVE_INTERFACE_XCOMPONENT_H_
diff --git a/build-tools/capi_parser/test/ut/check/ut_check_doc_left_003.h b/build-tools/capi_parser/test/ut/check/ut_check_doc_left_003.h
new file mode 100644
index 0000000000000000000000000000000000000000..f5e60f46ea476b9e742dbcf0e8e22e945e24e263
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/check/ut_check_doc_left_003.h
@@ -0,0 +1,58 @@
+/*
+ * Copyright (c) 2021-2023 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.
+ */
+
+/**
+ * @{
+ * @addtogroup OH_NativeXComponent Native XComponent
+ *
+ * @brief Describes the surface and touch event held by the ArkUI XComponent, which can be used for the EGLOpenGL ES\n
+ * and media data input and displayed on the ArkUI XComponent.
+ *
+ * @since 8
+ * @version 1.0
+ */
+
+/**
+ * @file native_interface_xcomponent.h
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @library libneural_network_runtime.so
+ * @syscap SystemCapability.Applications.CalendarData
+ * @since 8
+ * @version 1.0
+ */
+/**
+ * @file native_interface_xcomponent2.h
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @library libneural_network_runtime.so
+ * @syscap SystemCapability.Applications.CalendarData
+ * @since 8
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef __cplusplus
+};
+#endif
+/** @} */
+#endif // _NATIVE_INTERFACE_XCOMPONENT_H_
diff --git a/build-tools/capi_parser/test/ut/check/ut_check_doc_left_004.h b/build-tools/capi_parser/test/ut/check/ut_check_doc_left_004.h
new file mode 100644
index 0000000000000000000000000000000000000000..d1039f8a8add781956f77864409464d688850002
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/check/ut_check_doc_left_004.h
@@ -0,0 +1,59 @@
+/*
+ * Copyright (c) 2021-2023 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.
+ */
+
+/**
+ * @addtogroup OH_NativeXComponent Native XComponent
+ * @{
+ *
+ * @{
+ * @brief Describes the surface and touch event held by the ArkUI XComponent, which can be used for the EGLOpenGL ES\n
+ * and media data input and displayed on the ArkUI XComponent.
+ *
+ * @since 8
+ * @version 1.0
+ */
+
+/**
+ * @file native_interface_xcomponent.h
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @library libneural_network_runtime.so
+ * @syscap SystemCapability.Applications.CalendarData
+ * @since 8
+ * @version 1.0
+ */
+/**
+ * @file native_interface_xcomponent2.h
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @library libneural_network_runtime.so
+ * @syscap SystemCapability.Applications.CalendarData
+ * @since 8
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef __cplusplus
+};
+#endif
+/** @} */
+#endif // _NATIVE_INTERFACE_XCOMPONENT_H_
diff --git a/build-tools/capi_parser/test/ut/check/ut_check_doc_left_005.h b/build-tools/capi_parser/test/ut/check/ut_check_doc_left_005.h
new file mode 100644
index 0000000000000000000000000000000000000000..e3c824132c4f9c8132ae6e64108d6c7beb97ee68
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/check/ut_check_doc_left_005.h
@@ -0,0 +1,58 @@
+/*
+ * Copyright (c) 2021-2023 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.
+ */
+
+/**
+ * @addtogroup OH_NativeXComponent Native XComponent
+ *
+ * @brief Describes the surface and touch event held by the ArkUI XComponent, which can be used for the EGLOpenGL ES\n
+ * and media data input and displayed on the ArkUI XComponent.
+ *
+ * @since 8
+ * @version 1.0
+ */
+
+/**
+ * @file native_interface_xcomponent.h
+ * @{
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @library libneural_network_runtime.so
+ * @syscap SystemCapability.Applications.CalendarData
+ * @since 8
+ * @version 1.0
+ */
+/**
+ * @file native_interface_xcomponent2.h
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @library libneural_network_runtime.so
+ * @syscap SystemCapability.Applications.CalendarData
+ * @since 8
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef __cplusplus
+};
+#endif
+/** @} */
+#endif // _NATIVE_INTERFACE_XCOMPONENT_H_
diff --git a/build-tools/capi_parser/test/ut/check/ut_check_doc_library_001.h b/build-tools/capi_parser/test/ut/check/ut_check_doc_library_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..805a9cf6ff77c004f6f58ffdb7f5a25f90d254c3
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/check/ut_check_doc_library_001.h
@@ -0,0 +1,48 @@
+/*
+ * Copyright (c) 2021-2023 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.
+ */
+
+/**
+ * @addtogroup OH_NativeXComponent Native XComponent
+ * @{
+ *
+ * @brief Describes the surface and touch event held by the ArkUI XComponent, which can be used for the EGLOpenGL ES\n
+ * and media data input and displayed on the ArkUI XComponent.
+ *
+ * @since 8
+ * @version 1.0
+ */
+
+/**
+ * @file native_interface_xcomponent.h
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @library libneural_network_runtime.so
+ * @syscap SystemCapability.Applications.CalendarData
+ * @since 8
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef __cplusplus
+};
+#endif
+/** @} */
+#endif // _NATIVE_INTERFACE_XCOMPONENT_H_
diff --git a/build-tools/capi_parser/test/ut/check/ut_check_doc_library_002.h b/build-tools/capi_parser/test/ut/check/ut_check_doc_library_002.h
new file mode 100644
index 0000000000000000000000000000000000000000..07acfa000000032d213d463e0a1eeb136467fe6e
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/check/ut_check_doc_library_002.h
@@ -0,0 +1,48 @@
+/*
+ * Copyright (c) 2021-2023 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.
+ */
+
+/**
+ * @addtogroup OH_NativeXComponent Native XComponent
+ * @{
+ *
+ * @brief Describes the surface and touch event held by the ArkUI XComponent, which can be used for the EGLOpenGL ES\n
+ * and media data input and displayed on the ArkUI XComponent.
+ *
+ * @since 8
+ * @version 1.0
+ */
+
+/**
+ * @file native_interface_xcomponent.h
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @library
+ * @syscap SystemCapability.Applications.CalendarData
+ * @since 8
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef __cplusplus
+};
+#endif
+/** @} */
+#endif // _NATIVE_INTERFACE_XCOMPONENT_H_
diff --git a/build-tools/capi_parser/test/ut/check/ut_check_doc_library_003.h b/build-tools/capi_parser/test/ut/check/ut_check_doc_library_003.h
new file mode 100644
index 0000000000000000000000000000000000000000..27b9aea4ea6330e4d2945bdc2a01a68ba6e926f4
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/check/ut_check_doc_library_003.h
@@ -0,0 +1,48 @@
+/*
+ * Copyright (c) 2021-2023 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.
+ */
+
+/**
+ * @addtogroup OH_NativeXComponent Native XComponent
+ * @{
+ *
+ * @brief Describes the surface and touch event held by the ArkUI XComponent, which can be used for the EGLOpenGL ES\n
+ * and media data input and displayed on the ArkUI XComponent.
+ *
+ * @since 8
+ * @version 1.0
+ */
+
+/**
+ * @file native_interface_xcomponent.h
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @library NA
+ * @syscap SystemCapability.Applications.CalendarData
+ * @since 8
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef __cplusplus
+};
+#endif
+/** @} */
+#endif // _NATIVE_INTERFACE_XCOMPONENT_H_
diff --git a/build-tools/capi_parser/test/ut/check/ut_check_doc_library_004.h b/build-tools/capi_parser/test/ut/check/ut_check_doc_library_004.h
new file mode 100644
index 0000000000000000000000000000000000000000..805a9cf6ff77c004f6f58ffdb7f5a25f90d254c3
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/check/ut_check_doc_library_004.h
@@ -0,0 +1,48 @@
+/*
+ * Copyright (c) 2021-2023 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.
+ */
+
+/**
+ * @addtogroup OH_NativeXComponent Native XComponent
+ * @{
+ *
+ * @brief Describes the surface and touch event held by the ArkUI XComponent, which can be used for the EGLOpenGL ES\n
+ * and media data input and displayed on the ArkUI XComponent.
+ *
+ * @since 8
+ * @version 1.0
+ */
+
+/**
+ * @file native_interface_xcomponent.h
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @library libneural_network_runtime.so
+ * @syscap SystemCapability.Applications.CalendarData
+ * @since 8
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef __cplusplus
+};
+#endif
+/** @} */
+#endif // _NATIVE_INTERFACE_XCOMPONENT_H_
diff --git a/build-tools/capi_parser/test/ut/check/ut_check_doc_library_005.h b/build-tools/capi_parser/test/ut/check/ut_check_doc_library_005.h
new file mode 100644
index 0000000000000000000000000000000000000000..a4fefc63baa72fda82afcca1de0dbff4dc5e5a52
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/check/ut_check_doc_library_005.h
@@ -0,0 +1,48 @@
+/*
+ * Copyright (c) 2021-2023 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.
+ */
+
+/**
+ * @addtogroup OH_NativeXComponent Native XComponent
+ * @{
+ *
+ * @brief Describes the surface and touch event held by the ArkUI XComponent, which can be used for the EGLOpenGL ES\n
+ * and media data input and displayed on the ArkUI XComponent.
+ *
+ * @since 8
+ * @version 1.0
+ */
+
+/**
+ * @file native_interface_xcomponent.h
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @library libneural_network_runtime.a
+ * @syscap SystemCapability.Applications.CalendarData
+ * @since 8
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef __cplusplus
+};
+#endif
+/** @} */
+#endif // _NATIVE_INTERFACE_XCOMPONENT_H_
diff --git a/build-tools/capi_parser/test/ut/check/ut_check_doc_library_006.h b/build-tools/capi_parser/test/ut/check/ut_check_doc_library_006.h
new file mode 100644
index 0000000000000000000000000000000000000000..1eab58535fd5012d5486ff584f721aefa934b3bc
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/check/ut_check_doc_library_006.h
@@ -0,0 +1,48 @@
+/*
+ * Copyright (c) 2021-2023 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.
+ */
+
+/**
+ * @addtogroup OH_NativeXComponent Native XComponent
+ * @{
+ *
+ * @brief Describes the surface and touch event held by the ArkUI XComponent, which can be used for the EGLOpenGL ES\n
+ * and media data input and displayed on the ArkUI XComponent.
+ *
+ * @since 8
+ * @version 1.0
+ */
+
+/**
+ * @file native_interface_xcomponent.h
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @library libneural_network_runtime.txt
+ * @syscap SystemCapability.Applications.CalendarData
+ * @since 8
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef __cplusplus
+};
+#endif
+/** @} */
+#endif // _NATIVE_INTERFACE_XCOMPONENT_H_
diff --git a/build-tools/capi_parser/test/ut/check/ut_check_doc_param_001.h b/build-tools/capi_parser/test/ut/check/ut_check_doc_param_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..110fabd2a7f62c1f1e88e704cad7f68bdb8bd7cf
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/check/ut_check_doc_param_001.h
@@ -0,0 +1,59 @@
+/*
+ * Copyright (c) 2021-2023 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.
+ */
+
+/**
+ * @addtogroup OH_NativeXComponent Native XComponent
+ * @{
+ *
+ * @brief Describes the surface and touch event held by the ArkUI XComponent, which can be used for the EGLOpenGL ES\n
+ * and media data input and displayed on the ArkUI XComponent.
+ *
+ * @since 8
+ * @version 1.0
+ */
+
+/**
+ * @file native_interface_xcomponent.h
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @library libneural_network_runtime.so
+ * @syscap SystemCapability.Applications.CalendarData
+ * @since 8
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent Indicates the pointer to this OH_NativeXComponent_KeyEvent instance.
+ * @param deviceId Indicates the deviceId of the OH_NativeXComponent_KeyEvent instance.
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+};
+#endif
+/** @} */
+#endif // _NATIVE_INTERFACE_XCOMPONENT_H_
diff --git a/build-tools/capi_parser/test/ut/check/ut_check_doc_param_002.h b/build-tools/capi_parser/test/ut/check/ut_check_doc_param_002.h
new file mode 100644
index 0000000000000000000000000000000000000000..37c74f771d36b8fee1346904210cf51129b69db9
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/check/ut_check_doc_param_002.h
@@ -0,0 +1,59 @@
+/*
+ * Copyright (c) 2021-2023 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.
+ */
+
+/**
+ * @addtogroup OH_NativeXComponent Native XComponent
+ * @{
+ *
+ * @brief Describes the surface and touch event held by the ArkUI XComponent, which can be used for the EGLOpenGL ES\n
+ * and media data input and displayed on the ArkUI XComponent.
+ *
+ * @since 8
+ * @version 1.0
+ */
+
+/**
+ * @file native_interface_xcomponent.h
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @library libneural_network_runtime.so
+ * @syscap SystemCapability.Applications.CalendarData
+ * @since 8
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param
+ * @param
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+};
+#endif
+/** @} */
+#endif // _NATIVE_INTERFACE_XCOMPONENT_H_
diff --git a/build-tools/capi_parser/test/ut/check/ut_check_doc_param_003.h b/build-tools/capi_parser/test/ut/check/ut_check_doc_param_003.h
new file mode 100644
index 0000000000000000000000000000000000000000..00f4e343b7631e6a8c2772dd6ee1681519d5f466
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/check/ut_check_doc_param_003.h
@@ -0,0 +1,59 @@
+/*
+ * Copyright (c) 2021-2023 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.
+ */
+
+/**
+ * @addtogroup OH_NativeXComponent Native XComponent
+ * @{
+ *
+ * @brief Describes the surface and touch event held by the ArkUI XComponent, which can be used for the EGLOpenGL ES\n
+ * and media data input and displayed on the ArkUI XComponent.
+ *
+ * @since 8
+ * @version 1.0
+ */
+
+/**
+ * @file native_interface_xcomponent.h
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @library libneural_network_runtime.so
+ * @syscap SystemCapability.Applications.CalendarData
+ * @since 8
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEventa Indicates the pointer to this OH_NativeXComponent_KeyEvent instance.
+ * @param deviceIdb Indicates the deviceId of the OH_NativeXComponent_KeyEvent instance.
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+};
+#endif
+/** @} */
+#endif // _NATIVE_INTERFACE_XCOMPONENT_H_
diff --git a/build-tools/capi_parser/test/ut/check/ut_check_doc_param_004.h b/build-tools/capi_parser/test/ut/check/ut_check_doc_param_004.h
new file mode 100644
index 0000000000000000000000000000000000000000..b6cdf91e0ea82a3474185a886d6d56c5610e0bb3
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/check/ut_check_doc_param_004.h
@@ -0,0 +1,68 @@
+/*
+ * Copyright (c) 2021-2023 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.
+ */
+
+/**
+ * @addtogroup OH_NativeXComponent Native XComponent
+ * @{
+ *
+ * @brief Describes the surface and touch event held by the ArkUI XComponent, which can be used for the EGLOpenGL ES\n
+ * and media data input and displayed on the ArkUI XComponent.
+ *
+ * @since 8
+ * @version 1.0
+ */
+
+/**
+ * @file native_interface_xcomponent.h
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @library libneural_network_runtime.so
+ * @syscap SystemCapability.Applications.CalendarData
+ * @since 8
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent Indicates the pointer to this OH_NativeXComponent_KeyEvent instance.
+ * @param deviceId Indicates the deviceId of the OH_NativeXComponent_KeyEvent instance.
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent Indicates the pointer to this OH_NativeXComponent_KeyEvent instance.
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId2(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+};
+#endif
+/** @} */
+#endif // _NATIVE_INTERFACE_XCOMPONENT_H_
diff --git a/build-tools/capi_parser/test/ut/check/ut_check_doc_param_005.h b/build-tools/capi_parser/test/ut/check/ut_check_doc_param_005.h
new file mode 100644
index 0000000000000000000000000000000000000000..1ca95f32ea8a18d160c4ea25d6d9d68c3d3f497d
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/check/ut_check_doc_param_005.h
@@ -0,0 +1,60 @@
+/*
+ * Copyright (c) 2021-2023 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.
+ */
+
+/**
+ * @addtogroup OH_NativeXComponent Native XComponent
+ * @{
+ *
+ * @brief Describes the surface and touch event held by the ArkUI XComponent, which can be used for the EGLOpenGL ES\n
+ * and media data input and displayed on the ArkUI XComponent.
+ *
+ * @since 8
+ * @version 1.0
+ */
+
+/**
+ * @file native_interface_xcomponent.h
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @library libneural_network_runtime.so
+ * @syscap SystemCapability.Applications.CalendarData
+ * @since 8
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEventb Indicates the pointer to this OH_NativeXComponent_KeyEvent instance.
+ * @param deviceIda Indicates the deviceId of the OH_NativeXComponent_KeyEvent instance.
+ * @param deviceId Indicates the deviceId of the OH_NativeXComponent_KeyEvent instance.
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+};
+#endif
+/** @} */
+#endif // _NATIVE_INTERFACE_XCOMPONENT_H_
diff --git a/build-tools/capi_parser/test/ut/check/ut_check_doc_permission_001.h b/build-tools/capi_parser/test/ut/check/ut_check_doc_permission_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..9f503d46ef4a8da4e0fba97e54ae4e4a4850489d
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/check/ut_check_doc_permission_001.h
@@ -0,0 +1,58 @@
+/*
+ * Copyright (c) 2021-2023 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.
+ */
+
+/**
+ * @addtogroup OH_NativeXComponent Native XComponent
+ * @{
+ *
+ * @brief Describes the surface and touch event held by the ArkUI XComponent, which can be used for the EGLOpenGL ES\n
+ * and media data input and displayed on the ArkUI XComponent.
+ *
+ * @since 8
+ * @version 1.0
+ */
+
+/**
+ * @file native_interface_xcomponent.h
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @library libneural_network_runtime.so
+ * @syscap SystemCapability.Applications.CalendarData
+ * @since 8
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Initializes the DDK.
+ *
+ * @permission ohos.permission.ANSWER_CALL
+ * @return 0 if the operation is successful; a negative value otherwise.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_Usb_Init(void);
+
+#ifdef __cplusplus
+};
+#endif
+/** @} */
+#endif // _NATIVE_INTERFACE_XCOMPONENT_H_
diff --git a/build-tools/capi_parser/test/ut/check/ut_check_doc_permission_002.h b/build-tools/capi_parser/test/ut/check/ut_check_doc_permission_002.h
new file mode 100644
index 0000000000000000000000000000000000000000..878443b0e6e93d74b744211f01ba641c3569fdb5
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/check/ut_check_doc_permission_002.h
@@ -0,0 +1,58 @@
+/*
+ * Copyright (c) 2021-2023 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.
+ */
+
+/**
+ * @addtogroup OH_NativeXComponent Native XComponent
+ * @{
+ *
+ * @brief Describes the surface and touch event held by the ArkUI XComponent, which can be used for the EGLOpenGL ES\n
+ * and media data input and displayed on the ArkUI XComponent.
+ *
+ * @since 8
+ * @version 1.0
+ */
+
+/**
+ * @file native_interface_xcomponent.h
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @library libneural_network_runtime.so
+ * @syscap SystemCapability.Applications.CalendarData
+ * @since 8
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Initializes the DDK.
+ *
+ * @permission
+ * @return 0 if the operation is successful; a negative value otherwise.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_Usb_Init(void);
+
+#ifdef __cplusplus
+};
+#endif
+/** @} */
+#endif // _NATIVE_INTERFACE_XCOMPONENT_H_
diff --git a/build-tools/capi_parser/test/ut/check/ut_check_doc_permission_003.h b/build-tools/capi_parser/test/ut/check/ut_check_doc_permission_003.h
new file mode 100644
index 0000000000000000000000000000000000000000..333ff61ad10e4509bc84e31bf8a98a9a9c269e7e
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/check/ut_check_doc_permission_003.h
@@ -0,0 +1,59 @@
+/*
+ * Copyright (c) 2021-2023 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.
+ */
+
+/**
+ * @addtogroup OH_NativeXComponent Native XComponent
+ * @{
+ *
+ * @brief Describes the surface and touch event held by the ArkUI XComponent, which can be used for the EGLOpenGL ES\n
+ * and media data input and displayed on the ArkUI XComponent.
+ *
+ * @since 8
+ * @version 1.0
+ */
+
+/**
+ * @file native_interface_xcomponent.h
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @library libneural_network_runtime.so
+ * @syscap SystemCapability.Applications.CalendarData
+ * @since 8
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Initializes the DDK.
+ *
+ * @permission ohos.permission.ANSWER_CALL1
+ * @param val kongzhi
+ * @return 0 if the operation is successful; a negative value otherwise.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_Usb_Init(int val);
+
+#ifdef __cplusplus
+};
+#endif
+/** @} */
+#endif // _NATIVE_INTERFACE_XCOMPONENT_H_
diff --git a/build-tools/capi_parser/test/ut/check/ut_check_doc_permission_004.h b/build-tools/capi_parser/test/ut/check/ut_check_doc_permission_004.h
new file mode 100644
index 0000000000000000000000000000000000000000..4b26c89e33834c357323cf457d4dab306413a9c4
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/check/ut_check_doc_permission_004.h
@@ -0,0 +1,58 @@
+/*
+ * Copyright (c) 2021-2023 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.
+ */
+
+/**
+ * @addtogroup OH_NativeXComponent Native XComponent
+ * @{
+ *
+ * @brief Describes the surface and touch event held by the ArkUI XComponent, which can be used for the EGLOpenGL ES\n
+ * and media data input and displayed on the ArkUI XComponent.
+ *
+ * @since 8
+ * @version 1.0
+ */
+
+/**
+ * @file native_interface_xcomponent.h
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @library libneural_network_runtime.so
+ * @syscap SystemCapability.Applications.CalendarData
+ * @since 8
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Initializes the DDK.
+ *
+ * @permission ohos.permission.ANSWER_CALL and ohos.permission.USE_BLUETOOTH
+ * @return 0 if the operation is successful; a negative value otherwise.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_Usb_Init(void);
+
+#ifdef __cplusplus
+};
+#endif
+/** @} */
+#endif // _NATIVE_INTERFACE_XCOMPONENT_H_
diff --git a/build-tools/capi_parser/test/ut/check/ut_check_doc_permission_005.h b/build-tools/capi_parser/test/ut/check/ut_check_doc_permission_005.h
new file mode 100644
index 0000000000000000000000000000000000000000..174293a50619d45f8504b5799416c55b5c46a024
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/check/ut_check_doc_permission_005.h
@@ -0,0 +1,58 @@
+/*
+ * Copyright (c) 2021-2023 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.
+ */
+
+/**
+ * @addtogroup OH_NativeXComponent Native XComponent
+ * @{
+ *
+ * @brief Describes the surface and touch event held by the ArkUI XComponent, which can be used for the EGLOpenGL ES\n
+ * and media data input and displayed on the ArkUI XComponent.
+ *
+ * @since 8
+ * @version 1.0
+ */
+
+/**
+ * @file native_interface_xcomponent.h
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @library libneural_network_runtime.so
+ * @syscap SystemCapability.Applications.CalendarData
+ * @since 8
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Initializes the DDK.
+ *
+ * @permission ohos.permission.ANSWER_CALL or ohos.permission.USE_BLUETOOTH
+ * @return 0 if the operation is successful; a negative value otherwise.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_Usb_Init(void);
+
+#ifdef __cplusplus
+};
+#endif
+/** @} */
+#endif // _NATIVE_INTERFACE_XCOMPONENT_H_
diff --git a/build-tools/capi_parser/test/ut/check/ut_check_doc_permission_006.h b/build-tools/capi_parser/test/ut/check/ut_check_doc_permission_006.h
new file mode 100644
index 0000000000000000000000000000000000000000..bf28851417670a95763e808f6970165b4c9c5e62
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/check/ut_check_doc_permission_006.h
@@ -0,0 +1,58 @@
+/*
+ * Copyright (c) 2021-2023 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.
+ */
+
+/**
+ * @addtogroup OH_NativeXComponent Native XComponent
+ * @{
+ *
+ * @brief Describes the surface and touch event held by the ArkUI XComponent, which can be used for the EGLOpenGL ES\n
+ * and media data input and displayed on the ArkUI XComponent.
+ *
+ * @since 8
+ * @version 1.0
+ */
+
+/**
+ * @file native_interface_xcomponent.h
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @library libneural_network_runtime.so
+ * @syscap SystemCapability.Applications.CalendarData
+ * @since 8
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Initializes the DDK.
+ *
+ * @permission ohos.permission.ANSWER_CALL and ohos.permission.USE_BLUETOOTH or ohos.permission.DISCOVER_BLUETOOTH
+ * @return 0 if the operation is successful; a negative value otherwise.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_Usb_Init(void);
+
+#ifdef __cplusplus
+};
+#endif
+/** @} */
+#endif // _NATIVE_INTERFACE_XCOMPONENT_H_
diff --git a/build-tools/capi_parser/test/ut/check/ut_check_doc_permission_007.h b/build-tools/capi_parser/test/ut/check/ut_check_doc_permission_007.h
new file mode 100644
index 0000000000000000000000000000000000000000..c2ea107ea3c9b5d413913ac2fc2c0c650401633b
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/check/ut_check_doc_permission_007.h
@@ -0,0 +1,59 @@
+/*
+ * Copyright (c) 2021-2023 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.
+ */
+
+/**
+ * @addtogroup OH_NativeXComponent Native XComponent
+ * @{
+ *
+ * @brief Describes the surface and touch event held by the ArkUI XComponent, which can be used for the EGLOpenGL ES\n
+ * and media data input and displayed on the ArkUI XComponent.
+ *
+ * @since 8
+ * @version 1.0
+ */
+
+/**
+ * @file native_interface_xcomponent.h
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @library libneural_network_runtime.so
+ * @syscap SystemCapability.Applications.CalendarData
+ * @since 8
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Initializes the DDK.
+ *
+ * @permission ohos.permission.ANSWER_CALL and
+ * (ohos.permission.USE_BLUETOOTH or ohos.permission.DISCOVER_BLUETOOTH)
+ * @return 0 if the operation is successful; a negative value otherwise.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_Usb_Init(void);
+
+#ifdef __cplusplus
+};
+#endif
+/** @} */
+#endif // _NATIVE_INTERFACE_XCOMPONENT_H_
diff --git a/build-tools/capi_parser/test/ut/check/ut_check_doc_right_001.h b/build-tools/capi_parser/test/ut/check/ut_check_doc_right_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..805a9cf6ff77c004f6f58ffdb7f5a25f90d254c3
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/check/ut_check_doc_right_001.h
@@ -0,0 +1,48 @@
+/*
+ * Copyright (c) 2021-2023 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.
+ */
+
+/**
+ * @addtogroup OH_NativeXComponent Native XComponent
+ * @{
+ *
+ * @brief Describes the surface and touch event held by the ArkUI XComponent, which can be used for the EGLOpenGL ES\n
+ * and media data input and displayed on the ArkUI XComponent.
+ *
+ * @since 8
+ * @version 1.0
+ */
+
+/**
+ * @file native_interface_xcomponent.h
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @library libneural_network_runtime.so
+ * @syscap SystemCapability.Applications.CalendarData
+ * @since 8
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef __cplusplus
+};
+#endif
+/** @} */
+#endif // _NATIVE_INTERFACE_XCOMPONENT_H_
diff --git a/build-tools/capi_parser/test/ut/check/ut_check_doc_right_002.h b/build-tools/capi_parser/test/ut/check/ut_check_doc_right_002.h
new file mode 100644
index 0000000000000000000000000000000000000000..abfbcf223867d7893d0b583abb1afeaa19c17e6a
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/check/ut_check_doc_right_002.h
@@ -0,0 +1,59 @@
+/*
+ * Copyright (c) 2021-2023 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.
+ */
+
+/**
+ * @addtogroup OH_NativeXComponent Native XComponent
+ * @{
+ *
+ * @brief Describes the surface and touch event held by the ArkUI XComponent, which can be used for the EGLOpenGL ES\n
+ * and media data input and displayed on the ArkUI XComponent.
+ *
+ * @since 8
+ * @version 1.0
+ */
+
+/**
+ * @file native_interface_xcomponent.h
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @library libneural_network_runtime.so
+ * @syscap SystemCapability.Applications.CalendarData
+ * @since 8
+ * @version 1.0
+ */
+/**
+ * @file native_interface_xcomponent2.h
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @library libneural_network_runtime.so
+ * @syscap SystemCapability.Applications.CalendarData
+ * @since 8
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef __cplusplus
+};
+/** @} */
+#endif
+/** @} */
+#endif // _NATIVE_INTERFACE_XCOMPONENT_H_
diff --git a/build-tools/capi_parser/test/ut/check/ut_check_doc_right_003.h b/build-tools/capi_parser/test/ut/check/ut_check_doc_right_003.h
new file mode 100644
index 0000000000000000000000000000000000000000..14e255bde826f8d4ce46b47c4cbd14abf5328a51
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/check/ut_check_doc_right_003.h
@@ -0,0 +1,57 @@
+/*
+ * Copyright (c) 2021-2023 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.
+ */
+
+/**
+ * @addtogroup OH_NativeXComponent Native XComponent
+ * @{
+ *
+ * @brief Describes the surface and touch event held by the ArkUI XComponent, which can be used for the EGLOpenGL ES\n
+ * and media data input and displayed on the ArkUI XComponent.
+ *
+ * @since 8
+ * @version 1.0
+ */
+
+/**
+ * @file native_interface_xcomponent.h
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @library libneural_network_runtime.so
+ * @syscap SystemCapability.Applications.CalendarData
+ * @since 8
+ * @version 1.0
+ */
+/**
+ * @file native_interface_xcomponent2.h
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @library libneural_network_runtime.so
+ * @syscap SystemCapability.Applications.CalendarData
+ * @since 8
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef __cplusplus
+};
+#endif
+#endif // _NATIVE_INTERFACE_XCOMPONENT_H_
diff --git a/build-tools/capi_parser/test/ut/check/ut_check_doc_right_004.h b/build-tools/capi_parser/test/ut/check/ut_check_doc_right_004.h
new file mode 100644
index 0000000000000000000000000000000000000000..bb8dd8bfdcbb8ae19edc18349444e88160f869b0
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/check/ut_check_doc_right_004.h
@@ -0,0 +1,58 @@
+/*
+ * Copyright (c) 2021-2023 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.
+ */
+
+/** @} */
+/**
+ * @addtogroup OH_NativeXComponent Native XComponent
+ * @{
+ *
+ * @brief Describes the surface and touch event held by the ArkUI XComponent, which can be used for the EGLOpenGL ES\n
+ * and media data input and displayed on the ArkUI XComponent.
+ *
+ * @since 8
+ * @version 1.0
+ */
+
+/**
+ * @file native_interface_xcomponent.h
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @library libneural_network_runtime.so
+ * @syscap SystemCapability.Applications.CalendarData
+ * @since 8
+ * @version 1.0
+ */
+/**
+ * @file native_interface_xcomponent2.h
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @library libneural_network_runtime.so
+ * @syscap SystemCapability.Applications.CalendarData
+ * @since 8
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef __cplusplus
+};
+#endif
+#endif // _NATIVE_INTERFACE_XCOMPONENT_H_
diff --git a/build-tools/capi_parser/test/ut/check/ut_check_doc_since_001.h b/build-tools/capi_parser/test/ut/check/ut_check_doc_since_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..805a9cf6ff77c004f6f58ffdb7f5a25f90d254c3
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/check/ut_check_doc_since_001.h
@@ -0,0 +1,48 @@
+/*
+ * Copyright (c) 2021-2023 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.
+ */
+
+/**
+ * @addtogroup OH_NativeXComponent Native XComponent
+ * @{
+ *
+ * @brief Describes the surface and touch event held by the ArkUI XComponent, which can be used for the EGLOpenGL ES\n
+ * and media data input and displayed on the ArkUI XComponent.
+ *
+ * @since 8
+ * @version 1.0
+ */
+
+/**
+ * @file native_interface_xcomponent.h
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @library libneural_network_runtime.so
+ * @syscap SystemCapability.Applications.CalendarData
+ * @since 8
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef __cplusplus
+};
+#endif
+/** @} */
+#endif // _NATIVE_INTERFACE_XCOMPONENT_H_
diff --git a/build-tools/capi_parser/test/ut/check/ut_check_doc_since_002.h b/build-tools/capi_parser/test/ut/check/ut_check_doc_since_002.h
new file mode 100644
index 0000000000000000000000000000000000000000..b130488d01e376644b83f0731540786e21cfb190
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/check/ut_check_doc_since_002.h
@@ -0,0 +1,48 @@
+/*
+ * Copyright (c) 2021-2023 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.
+ */
+
+/**
+ * @addtogroup OH_NativeXComponent Native XComponent
+ * @{
+ *
+ * @brief Describes the surface and touch event held by the ArkUI XComponent, which can be used for the EGLOpenGL ES\n
+ * and media data input and displayed on the ArkUI XComponent.
+ *
+ * @since
+ * @version 1.0
+ */
+
+/**
+ * @file native_interface_xcomponent.h
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @library libneural_network_runtime.so
+ * @syscap SystemCapability.Applications.CalendarData
+ * @since 8
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef __cplusplus
+};
+#endif
+/** @} */
+#endif // _NATIVE_INTERFACE_XCOMPONENT_H_
diff --git a/build-tools/capi_parser/test/ut/check/ut_check_doc_since_003.h b/build-tools/capi_parser/test/ut/check/ut_check_doc_since_003.h
new file mode 100644
index 0000000000000000000000000000000000000000..845c0784ce0646e6182279d2cc43775cd204deb1
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/check/ut_check_doc_since_003.h
@@ -0,0 +1,48 @@
+/*
+ * Copyright (c) 2021-2023 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.
+ */
+
+/**
+ * @addtogroup OH_NativeXComponent Native XComponent
+ * @{
+ *
+ * @brief Describes the surface and touch event held by the ArkUI XComponent, which can be used for the EGLOpenGL ES\n
+ * and media data input and displayed on the ArkUI XComponent.
+ *
+ * @since aa
+ * @version 1.0
+ */
+
+/**
+ * @file native_interface_xcomponent.h
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @library libneural_network_runtime.so
+ * @syscap SystemCapability.Applications.CalendarData
+ * @since 8
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef __cplusplus
+};
+#endif
+/** @} */
+#endif // _NATIVE_INTERFACE_XCOMPONENT_H_
diff --git a/build-tools/capi_parser/test/ut/check/ut_check_doc_syscap_001.h b/build-tools/capi_parser/test/ut/check/ut_check_doc_syscap_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..805a9cf6ff77c004f6f58ffdb7f5a25f90d254c3
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/check/ut_check_doc_syscap_001.h
@@ -0,0 +1,48 @@
+/*
+ * Copyright (c) 2021-2023 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.
+ */
+
+/**
+ * @addtogroup OH_NativeXComponent Native XComponent
+ * @{
+ *
+ * @brief Describes the surface and touch event held by the ArkUI XComponent, which can be used for the EGLOpenGL ES\n
+ * and media data input and displayed on the ArkUI XComponent.
+ *
+ * @since 8
+ * @version 1.0
+ */
+
+/**
+ * @file native_interface_xcomponent.h
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @library libneural_network_runtime.so
+ * @syscap SystemCapability.Applications.CalendarData
+ * @since 8
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef __cplusplus
+};
+#endif
+/** @} */
+#endif // _NATIVE_INTERFACE_XCOMPONENT_H_
diff --git a/build-tools/capi_parser/test/ut/check/ut_check_doc_syscap_002.h b/build-tools/capi_parser/test/ut/check/ut_check_doc_syscap_002.h
new file mode 100644
index 0000000000000000000000000000000000000000..6eb3e80d252be20ae00bddf3058939d7964257b8
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/check/ut_check_doc_syscap_002.h
@@ -0,0 +1,48 @@
+/*
+ * Copyright (c) 2021-2023 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.
+ */
+
+/**
+ * @addtogroup OH_NativeXComponent Native XComponent
+ * @{
+ *
+ * @brief Describes the surface and touch event held by the ArkUI XComponent, which can be used for the EGLOpenGL ES\n
+ * and media data input and displayed on the ArkUI XComponent.
+ *
+ * @since 8
+ * @version 1.0
+ */
+
+/**
+ * @file native_interface_xcomponent.h
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @library libneural_network_runtime.so
+ * @syscap
+ * @since 8
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef __cplusplus
+};
+#endif
+/** @} */
+#endif // _NATIVE_INTERFACE_XCOMPONENT_H_
diff --git a/build-tools/capi_parser/test/ut/check/ut_check_doc_syscap_003.h b/build-tools/capi_parser/test/ut/check/ut_check_doc_syscap_003.h
new file mode 100644
index 0000000000000000000000000000000000000000..6210da56915c54195cd43bc7211ccb518ab96748
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/check/ut_check_doc_syscap_003.h
@@ -0,0 +1,48 @@
+/*
+ * Copyright (c) 2021-2023 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.
+ */
+
+/**
+ * @addtogroup OH_NativeXComponent Native XComponent
+ * @{
+ *
+ * @brief Describes the surface and touch event held by the ArkUI XComponent, which can be used for the EGLOpenGL ES\n
+ * and media data input and displayed on the ArkUI XComponent.
+ *
+ * @since 8
+ * @version 1.0
+ */
+
+/**
+ * @file native_interface_xcomponent.h
+ *
+ * @brief Declares APIs for accessing a Native XComponent.
+ *
+ * @library libneural_network_runtime.so
+ * @syscap SystemCapability.Applications.CalendarData11
+ * @since 8
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef __cplusplus
+};
+#endif
+/** @} */
+#endif // _NATIVE_INTERFACE_XCOMPONENT_H_
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_api_add_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_api_add_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..9985af9969734f63e9ae818275e4adce8fab0be1
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_api_add_001/ut_diff_case_001.h
@@ -0,0 +1,73 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId2(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_api_delete_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_api_delete_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..9c8d137ce6c5c2236b2d24d12babac81a372d182
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_api_delete_001/ut_diff_case_001.h
@@ -0,0 +1,62 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_dir_add_001/file1/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_dir_add_001/file1/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..9c8d137ce6c5c2236b2d24d12babac81a372d182
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_dir_add_001/file1/ut_diff_case_001.h
@@ -0,0 +1,62 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_dir_add_001/file2/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_dir_add_001/file2/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..9c8d137ce6c5c2236b2d24d12babac81a372d182
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_dir_add_001/file2/ut_diff_case_001.h
@@ -0,0 +1,62 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_dir_add_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_dir_add_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..9c8d137ce6c5c2236b2d24d12babac81a372d182
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_dir_add_001/ut_diff_case_001.h
@@ -0,0 +1,62 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_dir_delete_001/file1/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_dir_delete_001/file1/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..9c8d137ce6c5c2236b2d24d12babac81a372d182
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_dir_delete_001/file1/ut_diff_case_001.h
@@ -0,0 +1,62 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_dir_delete_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_dir_delete_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..9c8d137ce6c5c2236b2d24d12babac81a372d182
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_dir_delete_001/ut_diff_case_001.h
@@ -0,0 +1,62 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_addtogroup_add_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_addtogroup_add_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..9c8d137ce6c5c2236b2d24d12babac81a372d182
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_addtogroup_add_001/ut_diff_case_001.h
@@ -0,0 +1,62 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_addtogroup_change_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_addtogroup_change_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..9c8d137ce6c5c2236b2d24d12babac81a372d182
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_addtogroup_change_001/ut_diff_case_001.h
@@ -0,0 +1,62 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_addtogroup_delete_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_addtogroup_delete_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..ed6838add9c03ee1a327a2609744d37d11687f6a
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_addtogroup_delete_001/ut_diff_case_001.h
@@ -0,0 +1,61 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_brief_add_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_brief_add_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..9c8d137ce6c5c2236b2d24d12babac81a372d182
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_brief_add_001/ut_diff_case_001.h
@@ -0,0 +1,62 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_brief_change_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_brief_change_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..9c8d137ce6c5c2236b2d24d12babac81a372d182
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_brief_change_001/ut_diff_case_001.h
@@ -0,0 +1,62 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_brief_delete_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_brief_delete_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..fe4761642a6bcc8b172df49da3cb2545438f057f
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_brief_delete_001/ut_diff_case_001.h
@@ -0,0 +1,58 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_deprecated_add_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_deprecated_add_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..67e5912d9ab4ace4bdb75c04d57649904aa050d3
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_deprecated_add_001/ut_diff_case_001.h
@@ -0,0 +1,63 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ * @deprecated since 10
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_deprecated_change_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_deprecated_change_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..fa8ad247fd0e6637cef0c5028180ee02ac43ff5c
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_deprecated_change_001/ut_diff_case_001.h
@@ -0,0 +1,63 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ * @deprecated since 11
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_deprecated_change_002/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_deprecated_change_002/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..67e5912d9ab4ace4bdb75c04d57649904aa050d3
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_deprecated_change_002/ut_diff_case_001.h
@@ -0,0 +1,63 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ * @deprecated since 10
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_deprecated_delete_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_deprecated_delete_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..9c8d137ce6c5c2236b2d24d12babac81a372d182
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_deprecated_delete_001/ut_diff_case_001.h
@@ -0,0 +1,62 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_file_add_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_file_add_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..9c8d137ce6c5c2236b2d24d12babac81a372d182
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_file_add_001/ut_diff_case_001.h
@@ -0,0 +1,62 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_file_change_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_file_change_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..9c8d137ce6c5c2236b2d24d12babac81a372d182
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_file_change_001/ut_diff_case_001.h
@@ -0,0 +1,62 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_file_delete_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_file_delete_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..9beb2e9e6138b0b2c572107b1b0748bf49bcb06c
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_file_delete_001/ut_diff_case_001.h
@@ -0,0 +1,61 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_library_add_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_library_add_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..9c8d137ce6c5c2236b2d24d12babac81a372d182
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_library_add_001/ut_diff_case_001.h
@@ -0,0 +1,62 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_library_change_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_library_change_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..9c8d137ce6c5c2236b2d24d12babac81a372d182
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_library_change_001/ut_diff_case_001.h
@@ -0,0 +1,62 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_library_delete_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_library_delete_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..008e0fa591cfefbbab3a3c4cf918bd2e579ae529
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_library_delete_001/ut_diff_case_001.h
@@ -0,0 +1,61 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_permission_add_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_permission_add_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..a117bfafe9a556cdc93dedefb430c25e43b682f2
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_permission_add_001/ut_diff_case_001.h
@@ -0,0 +1,63 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @permission ohos.permission.ANSWER_CALL
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_permission_add_002/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_permission_add_002/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..db41a3b658aed49ea917ceeeb84052b6d6d075c3
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_permission_add_002/ut_diff_case_001.h
@@ -0,0 +1,63 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @permission ohos.permission.ANSWER_CALL or ohos.permission.USE_BLUETOOTH
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_permission_add_003/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_permission_add_003/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..a117bfafe9a556cdc93dedefb430c25e43b682f2
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_permission_add_003/ut_diff_case_001.h
@@ -0,0 +1,63 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @permission ohos.permission.ANSWER_CALL
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_permission_change_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_permission_change_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..47ed99e41a7286a5fed56d4e63e5132e7e1df750
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_permission_change_001/ut_diff_case_001.h
@@ -0,0 +1,63 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @permission ohos.permission.USE_BLUETOOTH
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_permission_delete_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_permission_delete_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..9c8d137ce6c5c2236b2d24d12babac81a372d182
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_permission_delete_001/ut_diff_case_001.h
@@ -0,0 +1,62 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_permission_delete_002/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_permission_delete_002/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..a117bfafe9a556cdc93dedefb430c25e43b682f2
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_permission_delete_002/ut_diff_case_001.h
@@ -0,0 +1,63 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @permission ohos.permission.ANSWER_CALL
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_permission_delete_003/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_permission_delete_003/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..d9385c6dce795d260a148b9f7a8db0ab5f3e80ac
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_permission_delete_003/ut_diff_case_001.h
@@ -0,0 +1,63 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @permission ohos.permission.ANSWER_CALL and ohos.permission.USE_BLUETOOTH
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_since_add_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_since_add_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..9c8d137ce6c5c2236b2d24d12babac81a372d182
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_since_add_001/ut_diff_case_001.h
@@ -0,0 +1,62 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_since_change_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_since_change_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..9c8d137ce6c5c2236b2d24d12babac81a372d182
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_since_change_001/ut_diff_case_001.h
@@ -0,0 +1,62 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_since_delete_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_since_delete_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..0f9b91f4894c344875580074559f9dd13fdb78af
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_since_delete_001/ut_diff_case_001.h
@@ -0,0 +1,61 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_syscap_add_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_syscap_add_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..9c8d137ce6c5c2236b2d24d12babac81a372d182
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_syscap_add_001/ut_diff_case_001.h
@@ -0,0 +1,62 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_syscap_change_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_syscap_change_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..9c8d137ce6c5c2236b2d24d12babac81a372d182
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_syscap_change_001/ut_diff_case_001.h
@@ -0,0 +1,62 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_syscap_delete_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_syscap_delete_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..e90a40ca002b13232519db624db2f8e16ef842d8
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_syscap_delete_001/ut_diff_case_001.h
@@ -0,0 +1,61 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_file_add_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_file_add_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..9c8d137ce6c5c2236b2d24d12babac81a372d182
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_file_add_001/ut_diff_case_001.h
@@ -0,0 +1,62 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_file_add_002/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_file_add_002/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..9c8d137ce6c5c2236b2d24d12babac81a372d182
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_file_add_002/ut_diff_case_001.h
@@ -0,0 +1,62 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_file_add_002/ut_diff_case_002.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_file_add_002/ut_diff_case_002.h
new file mode 100644
index 0000000000000000000000000000000000000000..9c8d137ce6c5c2236b2d24d12babac81a372d182
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_file_add_002/ut_diff_case_002.h
@@ -0,0 +1,62 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_file_delete_001/.gitkeep b/build-tools/capi_parser/test/ut/diff/new/ut_diff_file_delete_001/.gitkeep
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_file_delete_002/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_file_delete_002/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..9c8d137ce6c5c2236b2d24d12babac81a372d182
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_file_delete_002/ut_diff_case_001.h
@@ -0,0 +1,62 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_enum_member_add_001/ut_diff_node_case1.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_enum_member_add_001/ut_diff_node_case1.h
new file mode 100644
index 0000000000000000000000000000000000000000..b25c7cfb13d47f231a678a1a20bace7602c69d41
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_enum_member_add_001/ut_diff_node_case1.h
@@ -0,0 +1,60 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_H
+#define NEURAL_NETWORK_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ enum Network {
+ /** The tensor does not have a specific layout type (such as scalar or vector). */
+ OH_NN_FORMAT_NONE = 0,
+ /** The tensor arranges data in NCHW format.*/
+ OH_NN_FORMAT_NCHW = 1,
+
+ OH_NN_FORMAT_NHWC = 2
+ };
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_enum_member_name_change_001/ut_diff_node_case1.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_enum_member_name_change_001/ut_diff_node_case1.h
new file mode 100644
index 0000000000000000000000000000000000000000..1d1a1023075010c3eb2409ecb32d30b401446179
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_enum_member_name_change_001/ut_diff_node_case1.h
@@ -0,0 +1,60 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_H
+#define NEURAL_NETWORK_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ enum Network {
+ /** The tensor does not have a specific layout type (such as scalar or vector). */
+ OH_NN_FORMAT = 0,
+ /** The tensor arranges data in NCHW format.*/
+ OH_NN_FORMAT_NCHW = 1,
+ /** The tensor arranges data in NHWC format.*/
+ OH_NN_FORMAT_NHWC = 2
+ };
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_enum_member_reduce_001/ut_diff_node_case1.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_enum_member_reduce_001/ut_diff_node_case1.h
new file mode 100644
index 0000000000000000000000000000000000000000..91994482f3d33bc506d10fbbe343cc744ffbb318
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_enum_member_reduce_001/ut_diff_node_case1.h
@@ -0,0 +1,56 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_H
+#define NEURAL_NETWORK_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ enum Network {
+ /** The tensor does not have a specific layout type (such as scalar or vector). */
+ OH_NN_FORMAT_NONE = 0
+ };
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_enum_member_value_change_001/ut_diff_node_case1.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_enum_member_value_change_001/ut_diff_node_case1.h
new file mode 100644
index 0000000000000000000000000000000000000000..ca93d11862f9514b09b797c3f99d3ee9ded6e7ed
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_enum_member_value_change_001/ut_diff_node_case1.h
@@ -0,0 +1,60 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_H
+#define NEURAL_NETWORK_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ enum Network {
+ /** The tensor does not have a specific layout type (such as scalar or vector). */
+ OH_NN_FORMAT_NONE = 0,
+ /** The tensor arranges data in NCHW format.*/
+ OH_NN_FORMAT_NCHW = 1,
+ /** The tensor arranges data in NHWC format.*/
+ OH_NN_FORMAT_NHWC = 5
+ };
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_function_param_add_001/ut_diff_node_case1.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_function_param_add_001/ut_diff_node_case1.h
new file mode 100644
index 0000000000000000000000000000000000000000..9dc9ee6b2b24a3f5741d410a81581482d92c7149
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_function_param_add_001/ut_diff_node_case1.h
@@ -0,0 +1,53 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_H
+#define NEURAL_NETWORK_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ int OH_NNExecutor_GetOutputShape(int *executor, int *shapeLength, int *outputShape);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_function_param_reduce_001/ut_diff_node_case1.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_function_param_reduce_001/ut_diff_node_case1.h
new file mode 100644
index 0000000000000000000000000000000000000000..907213ec4337b751f31747e197b18682980fb8bd
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_function_param_reduce_001/ut_diff_node_case1.h
@@ -0,0 +1,53 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_H
+#define NEURAL_NETWORK_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ int OH_NNExecutor_GetOutputShape(int *executor);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_function_param_type_change_001/ut_diff_node_case1.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_function_param_type_change_001/ut_diff_node_case1.h
new file mode 100644
index 0000000000000000000000000000000000000000..02021580bbb033cb30712bb704aac82aea6e9c01
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_function_param_type_change_001/ut_diff_node_case1.h
@@ -0,0 +1,53 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_H
+#define NEURAL_NETWORK_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ int OH_NNExecutor_GetOutputShape(char executor, int shapeLength);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_function_return_001/ut_diff_node_case1.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_function_return_001/ut_diff_node_case1.h
new file mode 100644
index 0000000000000000000000000000000000000000..ce7287a39b37ec6962d003ae7f73a0257c4642dd
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_function_return_001/ut_diff_node_case1.h
@@ -0,0 +1,53 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_H
+#define NEURAL_NETWORK_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ int *OH_NNExecutor_GetOutputShape(int *executor, int *shapeLength);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_mar_define_add_001/ut_diff_node_case1.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_mar_define_add_001/ut_diff_node_case1.h
new file mode 100644
index 0000000000000000000000000000000000000000..841eb3708bbcbf6fec16d16152855d695c3c7655
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_mar_define_add_001/ut_diff_node_case1.h
@@ -0,0 +1,55 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define NEURAL
+#define MAX(a, b) (a > b ? a : b)
+#define KHRONOS_APICALL __declspec(dllimport)
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_mar_define_name_001/ut_diff_node_case1.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_mar_define_name_001/ut_diff_node_case1.h
new file mode 100644
index 0000000000000000000000000000000000000000..25ca21ff32d2d5cb2f1f8bd4ba5edfc92cc9039f
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_mar_define_name_001/ut_diff_node_case1.h
@@ -0,0 +1,55 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define NEURAL
+
+#define KHRONOS_APICALL __declspec(dllimport)
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_mar_define_reduce_001/ut_diff_node_case1.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_mar_define_reduce_001/ut_diff_node_case1.h
new file mode 100644
index 0000000000000000000000000000000000000000..cd9db12623e9aef1fdaec669597b930b68a893e0
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_mar_define_reduce_001/ut_diff_node_case1.h
@@ -0,0 +1,53 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define NEURAL
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_mar_define_text_001/ut_diff_node_case1.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_mar_define_text_001/ut_diff_node_case1.h
new file mode 100644
index 0000000000000000000000000000000000000000..5720c7e21a866ea7600cc76872a1ac560406cbb7
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_mar_define_text_001/ut_diff_node_case1.h
@@ -0,0 +1,55 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_H
+#define NEURAL_NETWORK_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define NEURAL
+
+#define KHRONOS_APICALL __declspec
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_struct_member_add_001/ut_diff_node_case1.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_struct_member_add_001/ut_diff_node_case1.h
new file mode 100644
index 0000000000000000000000000000000000000000..24da11f28439027f6af6a973981e4672252786de
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_struct_member_add_001/ut_diff_node_case1.h
@@ -0,0 +1,56 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_H
+#define NEURAL_NETWORK_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ struct std {
+ char ch;
+ int id;
+ };
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_struct_member_name_change_001/ut_diff_node_case1.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_struct_member_name_change_001/ut_diff_node_case1.h
new file mode 100644
index 0000000000000000000000000000000000000000..cb1e5e6ec2ad97bdd8e6f04e3d6f15437d879828
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_struct_member_name_change_001/ut_diff_node_case1.h
@@ -0,0 +1,56 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_H
+#define NEURAL_NETWORK_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ struct std {
+ char character;
+ int len;
+ };
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_struct_member_reduce_001/ut_diff_node_case1.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_struct_member_reduce_001/ut_diff_node_case1.h
new file mode 100644
index 0000000000000000000000000000000000000000..6943a0c8f6e4876c65fbcaa4dc5379e68c497ab0
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_struct_member_reduce_001/ut_diff_node_case1.h
@@ -0,0 +1,55 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_H
+#define NEURAL_NETWORK_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ struct std {
+ char ch;
+ };
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_struct_member_type_change_001/ut_diff_node_case1.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_struct_member_type_change_001/ut_diff_node_case1.h
new file mode 100644
index 0000000000000000000000000000000000000000..133f67157ae17c818273bdfa4cd0ce5830930796
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_struct_member_type_change_001/ut_diff_node_case1.h
@@ -0,0 +1,56 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_H
+#define NEURAL_NETWORK_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ struct std {
+ char ch;
+ char len;
+ };
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_typedef_name_change_001/ut_diff_node_case1.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_typedef_name_change_001/ut_diff_node_case1.h
new file mode 100644
index 0000000000000000000000000000000000000000..0795fdc594d68e8d68005157022f8e75f8691bf4
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_typedef_name_change_001/ut_diff_node_case1.h
@@ -0,0 +1,58 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_H
+#define NEURAL_NETWORK_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ typedef enum {
+ /** The tensor does not have a specific layout type (such as scalar or vector). */
+ OH_NN_FORMAT_NONE = 0,
+ /** The tensor arranges data in NCHW format.*/
+ OH_NN_FORMAT_NCHW = 1
+ } Network_New;
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_union_member_add_001/ut_diff_node_case1.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_union_member_add_001/ut_diff_node_case1.h
new file mode 100644
index 0000000000000000000000000000000000000000..395d0687131c521c61690fdcff27b66d874e0dc5
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_union_member_add_001/ut_diff_node_case1.h
@@ -0,0 +1,56 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_H
+#define NEURAL_NETWORK_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ union std {
+ char ch;
+ char na;
+ };
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_union_member_name_change_001/ut_diff_node_case1.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_union_member_name_change_001/ut_diff_node_case1.h
new file mode 100644
index 0000000000000000000000000000000000000000..472c05cd97ce0ae669381f7a159a71a6f649ab2f
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_union_member_name_change_001/ut_diff_node_case1.h
@@ -0,0 +1,56 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_H
+#define NEURAL_NETWORK_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ union std {
+ char ch;
+ int key;
+ };
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_union_member_reduce_001/ut_diff_node_case1.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_union_member_reduce_001/ut_diff_node_case1.h
new file mode 100644
index 0000000000000000000000000000000000000000..5f5619c4eec32d783a10b33e3406256e63965619
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_union_member_reduce_001/ut_diff_node_case1.h
@@ -0,0 +1,55 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_H
+#define NEURAL_NETWORK_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ union std {
+ int count;
+ };
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_H
diff --git a/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_union_member_type_change_001/ut_diff_node_case1.h b/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_union_member_type_change_001/ut_diff_node_case1.h
new file mode 100644
index 0000000000000000000000000000000000000000..b34b0e0e2a9428555d3620738a7c6f95c7bd14fc
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/new/ut_diff_node_union_member_type_change_001/ut_diff_node_case1.h
@@ -0,0 +1,56 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_H
+#define NEURAL_NETWORK_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ union std {
+ unsigned int ch;
+ int count;
+ };
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_api_add_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_api_add_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..9c8d137ce6c5c2236b2d24d12babac81a372d182
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_api_add_001/ut_diff_case_001.h
@@ -0,0 +1,62 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_api_delete_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_api_delete_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..9985af9969734f63e9ae818275e4adce8fab0be1
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_api_delete_001/ut_diff_case_001.h
@@ -0,0 +1,73 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId2(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_dir_add_001/file1/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_dir_add_001/file1/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..9c8d137ce6c5c2236b2d24d12babac81a372d182
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_dir_add_001/file1/ut_diff_case_001.h
@@ -0,0 +1,62 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_dir_add_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_dir_add_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..9c8d137ce6c5c2236b2d24d12babac81a372d182
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_dir_add_001/ut_diff_case_001.h
@@ -0,0 +1,62 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_dir_delete_001/file1/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_dir_delete_001/file1/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..9c8d137ce6c5c2236b2d24d12babac81a372d182
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_dir_delete_001/file1/ut_diff_case_001.h
@@ -0,0 +1,62 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_dir_delete_001/file2/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_dir_delete_001/file2/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..9c8d137ce6c5c2236b2d24d12babac81a372d182
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_dir_delete_001/file2/ut_diff_case_001.h
@@ -0,0 +1,62 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_dir_delete_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_dir_delete_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..9c8d137ce6c5c2236b2d24d12babac81a372d182
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_dir_delete_001/ut_diff_case_001.h
@@ -0,0 +1,62 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_addtogroup_add_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_addtogroup_add_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..ed6838add9c03ee1a327a2609744d37d11687f6a
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_addtogroup_add_001/ut_diff_case_001.h
@@ -0,0 +1,61 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_addtogroup_change_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_addtogroup_change_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..3e2dfeab2746f2e7136cfb6a280c19ea81724900
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_addtogroup_change_001/ut_diff_case_001.h
@@ -0,0 +1,62 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime1
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_addtogroup_delete_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_addtogroup_delete_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..9c8d137ce6c5c2236b2d24d12babac81a372d182
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_addtogroup_delete_001/ut_diff_case_001.h
@@ -0,0 +1,62 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_brief_add_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_brief_add_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..fe4761642a6bcc8b172df49da3cb2545438f057f
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_brief_add_001/ut_diff_case_001.h
@@ -0,0 +1,58 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_brief_change_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_brief_change_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..f7a65078dd58f33ef2a15089d5656f86a5c5335f
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_brief_change_001/ut_diff_case_001.h
@@ -0,0 +1,62 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines123123 the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_brief_delete_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_brief_delete_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..9c8d137ce6c5c2236b2d24d12babac81a372d182
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_brief_delete_001/ut_diff_case_001.h
@@ -0,0 +1,62 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_deprecated_add_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_deprecated_add_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..9c8d137ce6c5c2236b2d24d12babac81a372d182
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_deprecated_add_001/ut_diff_case_001.h
@@ -0,0 +1,62 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_deprecated_change_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_deprecated_change_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..67e5912d9ab4ace4bdb75c04d57649904aa050d3
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_deprecated_change_001/ut_diff_case_001.h
@@ -0,0 +1,63 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ * @deprecated since 10
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_deprecated_change_002/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_deprecated_change_002/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..c8a47618b4d06d203e807ab7f21e6749159df5a6
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_deprecated_change_002/ut_diff_case_001.h
@@ -0,0 +1,63 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ * @deprecated 10
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_deprecated_delete_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_deprecated_delete_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..67e5912d9ab4ace4bdb75c04d57649904aa050d3
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_deprecated_delete_001/ut_diff_case_001.h
@@ -0,0 +1,63 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ * @deprecated since 10
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_file_add_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_file_add_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..9beb2e9e6138b0b2c572107b1b0748bf49bcb06c
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_file_add_001/ut_diff_case_001.h
@@ -0,0 +1,61 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_file_change_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_file_change_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..95b4c350a2ddb706b31a266275eb03dae1cf533d
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_file_change_001/ut_diff_case_001.h
@@ -0,0 +1,62 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime1.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_file_delete_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_file_delete_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..9c8d137ce6c5c2236b2d24d12babac81a372d182
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_file_delete_001/ut_diff_case_001.h
@@ -0,0 +1,62 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_library_add_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_library_add_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..008e0fa591cfefbbab3a3c4cf918bd2e579ae529
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_library_add_001/ut_diff_case_001.h
@@ -0,0 +1,61 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_library_change_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_library_change_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..2cd98520a9fd26f98e73ae2b06a610e9f1fc953f
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_library_change_001/ut_diff_case_001.h
@@ -0,0 +1,62 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime1.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_library_delete_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_library_delete_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..9c8d137ce6c5c2236b2d24d12babac81a372d182
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_library_delete_001/ut_diff_case_001.h
@@ -0,0 +1,62 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_permission_add_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_permission_add_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..9c8d137ce6c5c2236b2d24d12babac81a372d182
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_permission_add_001/ut_diff_case_001.h
@@ -0,0 +1,62 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_permission_add_002/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_permission_add_002/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..a117bfafe9a556cdc93dedefb430c25e43b682f2
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_permission_add_002/ut_diff_case_001.h
@@ -0,0 +1,63 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @permission ohos.permission.ANSWER_CALL
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_permission_add_003/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_permission_add_003/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..d9385c6dce795d260a148b9f7a8db0ab5f3e80ac
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_permission_add_003/ut_diff_case_001.h
@@ -0,0 +1,63 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @permission ohos.permission.ANSWER_CALL and ohos.permission.USE_BLUETOOTH
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_permission_change_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_permission_change_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..a117bfafe9a556cdc93dedefb430c25e43b682f2
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_permission_change_001/ut_diff_case_001.h
@@ -0,0 +1,63 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @permission ohos.permission.ANSWER_CALL
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_permission_delete_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_permission_delete_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..a117bfafe9a556cdc93dedefb430c25e43b682f2
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_permission_delete_001/ut_diff_case_001.h
@@ -0,0 +1,63 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @permission ohos.permission.ANSWER_CALL
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_permission_delete_002/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_permission_delete_002/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..db41a3b658aed49ea917ceeeb84052b6d6d075c3
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_permission_delete_002/ut_diff_case_001.h
@@ -0,0 +1,63 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @permission ohos.permission.ANSWER_CALL or ohos.permission.USE_BLUETOOTH
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_permission_delete_003/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_permission_delete_003/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..a117bfafe9a556cdc93dedefb430c25e43b682f2
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_permission_delete_003/ut_diff_case_001.h
@@ -0,0 +1,63 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @permission ohos.permission.ANSWER_CALL
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_since_add_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_since_add_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..0f9b91f4894c344875580074559f9dd13fdb78af
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_since_add_001/ut_diff_case_001.h
@@ -0,0 +1,61 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_since_change_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_since_change_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..fb7da4fa7d7fad57a8660d75e5d7d2cdf278765e
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_since_change_001/ut_diff_case_001.h
@@ -0,0 +1,62 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 8
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_since_delete_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_since_delete_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..9c8d137ce6c5c2236b2d24d12babac81a372d182
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_since_delete_001/ut_diff_case_001.h
@@ -0,0 +1,62 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_syscap_add_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_syscap_add_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..e90a40ca002b13232519db624db2f8e16ef842d8
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_syscap_add_001/ut_diff_case_001.h
@@ -0,0 +1,61 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_syscap_change_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_syscap_change_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..b55f7ebf0bc6a7fce48adcc5b48fa217f54d6539
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_syscap_change_001/ut_diff_case_001.h
@@ -0,0 +1,62 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData1
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_syscap_delete_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_syscap_delete_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..9c8d137ce6c5c2236b2d24d12babac81a372d182
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_syscap_delete_001/ut_diff_case_001.h
@@ -0,0 +1,62 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_file_add_001/.gitkeep b/build-tools/capi_parser/test/ut/diff/old/ut_diff_file_add_001/.gitkeep
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_file_add_002/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_file_add_002/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..9c8d137ce6c5c2236b2d24d12babac81a372d182
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_file_add_002/ut_diff_case_001.h
@@ -0,0 +1,62 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_file_delete_001/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_file_delete_001/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..9c8d137ce6c5c2236b2d24d12babac81a372d182
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_file_delete_001/ut_diff_case_001.h
@@ -0,0 +1,62 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_file_delete_002/ut_diff_case_001.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_file_delete_002/ut_diff_case_001.h
new file mode 100644
index 0000000000000000000000000000000000000000..9c8d137ce6c5c2236b2d24d12babac81a372d182
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_file_delete_002/ut_diff_case_001.h
@@ -0,0 +1,62 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_file_delete_002/ut_diff_case_002.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_file_delete_002/ut_diff_case_002.h
new file mode 100644
index 0000000000000000000000000000000000000000..9c8d137ce6c5c2236b2d24d12babac81a372d182
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_file_delete_002/ut_diff_case_002.h
@@ -0,0 +1,62 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * @brief Obtains the deviceId of the key event.
+ *
+ * @param keyEvent keyEvent value
+ * @param deviceId deviceId value
+ * @return Returns the status code of the execution.
+ * @since 10
+ * @version 1.0
+ */
+ int OH_NativeXComponent_GetKeyEventDeviceId(int *keyEvent, int *deviceId);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_enum_member_add_001/ut_diff_node_case1.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_enum_member_add_001/ut_diff_node_case1.h
new file mode 100644
index 0000000000000000000000000000000000000000..62b6b9bf1a82a1f35220568b8c0b00f5af3b7920
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_enum_member_add_001/ut_diff_node_case1.h
@@ -0,0 +1,58 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_H
+#define NEURAL_NETWORK_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ enum Network {
+ /** The tensor does not have a specific layout type (such as scalar or vector). */
+ OH_NN_FORMAT_NONE = 0,
+ /** The tensor arranges data in NCHW format.*/
+ OH_NN_FORMAT_NCHW = 1
+ };
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_enum_member_name_change_001/ut_diff_node_case1.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_enum_member_name_change_001/ut_diff_node_case1.h
new file mode 100644
index 0000000000000000000000000000000000000000..0ddd2b796e8ceebb924f5889d27480d09197add5
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_enum_member_name_change_001/ut_diff_node_case1.h
@@ -0,0 +1,60 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_H
+#define NEURAL_NETWORK_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ enum Network {
+ /** The tensor does not have a specific layout type (such as scalar or vector). */
+ OH_NN_FORMAT_NONE = 0,
+ /** The tensor arranges data in NCHW format.*/
+ OH_NN_FORMAT_NCHW = 1,
+ /** The tensor arranges data in NHWC format.*/
+ OH_NN_FORMAT_NHWC = 2
+ };
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_enum_member_reduce_001/ut_diff_node_case1.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_enum_member_reduce_001/ut_diff_node_case1.h
new file mode 100644
index 0000000000000000000000000000000000000000..62b6b9bf1a82a1f35220568b8c0b00f5af3b7920
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_enum_member_reduce_001/ut_diff_node_case1.h
@@ -0,0 +1,58 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_H
+#define NEURAL_NETWORK_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ enum Network {
+ /** The tensor does not have a specific layout type (such as scalar or vector). */
+ OH_NN_FORMAT_NONE = 0,
+ /** The tensor arranges data in NCHW format.*/
+ OH_NN_FORMAT_NCHW = 1
+ };
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_enum_member_value_change_001/ut_diff_node_case1.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_enum_member_value_change_001/ut_diff_node_case1.h
new file mode 100644
index 0000000000000000000000000000000000000000..0ddd2b796e8ceebb924f5889d27480d09197add5
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_enum_member_value_change_001/ut_diff_node_case1.h
@@ -0,0 +1,60 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_H
+#define NEURAL_NETWORK_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ enum Network {
+ /** The tensor does not have a specific layout type (such as scalar or vector). */
+ OH_NN_FORMAT_NONE = 0,
+ /** The tensor arranges data in NCHW format.*/
+ OH_NN_FORMAT_NCHW = 1,
+ /** The tensor arranges data in NHWC format.*/
+ OH_NN_FORMAT_NHWC = 2
+ };
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_function_param_add_001/ut_diff_node_case1.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_function_param_add_001/ut_diff_node_case1.h
new file mode 100644
index 0000000000000000000000000000000000000000..2236a3e8577b309a4bfdcf0c38be7dd98c40a414
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_function_param_add_001/ut_diff_node_case1.h
@@ -0,0 +1,53 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_H
+#define NEURAL_NETWORK_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ int OH_NNExecutor_GetOutputShape(int *executor, int *shapeLength);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_function_param_reduce_001/ut_diff_node_case1.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_function_param_reduce_001/ut_diff_node_case1.h
new file mode 100644
index 0000000000000000000000000000000000000000..2236a3e8577b309a4bfdcf0c38be7dd98c40a414
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_function_param_reduce_001/ut_diff_node_case1.h
@@ -0,0 +1,53 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_H
+#define NEURAL_NETWORK_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ int OH_NNExecutor_GetOutputShape(int *executor, int *shapeLength);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_function_param_type_change_001/ut_diff_node_case1.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_function_param_type_change_001/ut_diff_node_case1.h
new file mode 100644
index 0000000000000000000000000000000000000000..2236a3e8577b309a4bfdcf0c38be7dd98c40a414
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_function_param_type_change_001/ut_diff_node_case1.h
@@ -0,0 +1,53 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_H
+#define NEURAL_NETWORK_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ int OH_NNExecutor_GetOutputShape(int *executor, int *shapeLength);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_function_return_001/ut_diff_node_case1.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_function_return_001/ut_diff_node_case1.h
new file mode 100644
index 0000000000000000000000000000000000000000..2236a3e8577b309a4bfdcf0c38be7dd98c40a414
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_function_return_001/ut_diff_node_case1.h
@@ -0,0 +1,53 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_H
+#define NEURAL_NETWORK_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ int OH_NNExecutor_GetOutputShape(int *executor, int *shapeLength);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_mar_define_add_001/ut_diff_node_case1.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_mar_define_add_001/ut_diff_node_case1.h
new file mode 100644
index 0000000000000000000000000000000000000000..25ca21ff32d2d5cb2f1f8bd4ba5edfc92cc9039f
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_mar_define_add_001/ut_diff_node_case1.h
@@ -0,0 +1,55 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define NEURAL
+
+#define KHRONOS_APICALL __declspec(dllimport)
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_mar_define_name_001/ut_diff_node_case1.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_mar_define_name_001/ut_diff_node_case1.h
new file mode 100644
index 0000000000000000000000000000000000000000..a6b37362ea9e80c1694863d27025b12b8f5e2aaf
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_mar_define_name_001/ut_diff_node_case1.h
@@ -0,0 +1,55 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define NEURAL_AST
+
+#define KHRONOS_APICALL_AST __declspec(dllimport)
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_mar_define_reduce_001/ut_diff_node_case1.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_mar_define_reduce_001/ut_diff_node_case1.h
new file mode 100644
index 0000000000000000000000000000000000000000..25ca21ff32d2d5cb2f1f8bd4ba5edfc92cc9039f
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_mar_define_reduce_001/ut_diff_node_case1.h
@@ -0,0 +1,55 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_RUNTIME_H
+#define NEURAL_NETWORK_RUNTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define NEURAL
+
+#define KHRONOS_APICALL __declspec(dllimport)
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_RUNTIME_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_mar_define_text_001/ut_diff_node_case1.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_mar_define_text_001/ut_diff_node_case1.h
new file mode 100644
index 0000000000000000000000000000000000000000..193241f7548a9c05e8ac3373e24c276ec8af8f67
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_mar_define_text_001/ut_diff_node_case1.h
@@ -0,0 +1,55 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_H
+#define NEURAL_NETWORK_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define NEURAL 50
+
+#define KHRONOS_APICALL __declspec
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_struct_member_add_001/ut_diff_node_case1.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_struct_member_add_001/ut_diff_node_case1.h
new file mode 100644
index 0000000000000000000000000000000000000000..6943a0c8f6e4876c65fbcaa4dc5379e68c497ab0
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_struct_member_add_001/ut_diff_node_case1.h
@@ -0,0 +1,55 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_H
+#define NEURAL_NETWORK_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ struct std {
+ char ch;
+ };
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_struct_member_name_change_001/ut_diff_node_case1.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_struct_member_name_change_001/ut_diff_node_case1.h
new file mode 100644
index 0000000000000000000000000000000000000000..919963d4bdad9accbab81d21a41753f423add9ed
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_struct_member_name_change_001/ut_diff_node_case1.h
@@ -0,0 +1,56 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_H
+#define NEURAL_NETWORK_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ struct std {
+ char ch;
+ int len;
+ };
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_struct_member_reduce_001/ut_diff_node_case1.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_struct_member_reduce_001/ut_diff_node_case1.h
new file mode 100644
index 0000000000000000000000000000000000000000..919963d4bdad9accbab81d21a41753f423add9ed
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_struct_member_reduce_001/ut_diff_node_case1.h
@@ -0,0 +1,56 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_H
+#define NEURAL_NETWORK_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ struct std {
+ char ch;
+ int len;
+ };
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_struct_member_type_change_001/ut_diff_node_case1.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_struct_member_type_change_001/ut_diff_node_case1.h
new file mode 100644
index 0000000000000000000000000000000000000000..919963d4bdad9accbab81d21a41753f423add9ed
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_struct_member_type_change_001/ut_diff_node_case1.h
@@ -0,0 +1,56 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_H
+#define NEURAL_NETWORK_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ struct std {
+ char ch;
+ int len;
+ };
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_typedef_name_change_001/ut_diff_node_case1.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_typedef_name_change_001/ut_diff_node_case1.h
new file mode 100644
index 0000000000000000000000000000000000000000..6f182b010d187a8f79032a6f9d099f6b58e2a1fd
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_typedef_name_change_001/ut_diff_node_case1.h
@@ -0,0 +1,58 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_H
+#define NEURAL_NETWORK_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ typedef enum {
+ /** The tensor does not have a specific layout type (such as scalar or vector). */
+ OH_NN_FORMAT_NONE = 0,
+ /** The tensor arranges data in NCHW format.*/
+ OH_NN_FORMAT_NCHW = 1
+ } Network;
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_union_member_add_001/ut_diff_node_case1.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_union_member_add_001/ut_diff_node_case1.h
new file mode 100644
index 0000000000000000000000000000000000000000..7f0612a6f92a612cd5e62bdfad409f4a2bc9b330
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_union_member_add_001/ut_diff_node_case1.h
@@ -0,0 +1,55 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_H
+#define NEURAL_NETWORK_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ union std {
+ char ch;
+ };
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_union_member_name_change_001/ut_diff_node_case1.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_union_member_name_change_001/ut_diff_node_case1.h
new file mode 100644
index 0000000000000000000000000000000000000000..f41cb09f279b782b84c5e377540246a4ebb87b80
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_union_member_name_change_001/ut_diff_node_case1.h
@@ -0,0 +1,56 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_H
+#define NEURAL_NETWORK_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ union std {
+ char ch;
+ int count;
+ };
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_union_member_reduce_001/ut_diff_node_case1.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_union_member_reduce_001/ut_diff_node_case1.h
new file mode 100644
index 0000000000000000000000000000000000000000..f41cb09f279b782b84c5e377540246a4ebb87b80
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_union_member_reduce_001/ut_diff_node_case1.h
@@ -0,0 +1,56 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_H
+#define NEURAL_NETWORK_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ union std {
+ char ch;
+ int count;
+ };
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_H
diff --git a/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_union_member_type_change_001/ut_diff_node_case1.h b/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_union_member_type_change_001/ut_diff_node_case1.h
new file mode 100644
index 0000000000000000000000000000000000000000..f41cb09f279b782b84c5e377540246a4ebb87b80
--- /dev/null
+++ b/build-tools/capi_parser/test/ut/diff/old/ut_diff_node_union_member_type_change_001/ut_diff_node_case1.h
@@ -0,0 +1,56 @@
+/*
+ * Copyright (c) 2022 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.
+ */
+
+/**
+ * @addtogroup NeuralNeworkRuntime
+ * @{
+ *
+ * @brief Provides APIs of Neural Network Runtime for accelerating the model inference.
+ *
+ * @since 9
+ * @version 1.0
+ */
+
+/**
+ * @file neural_network_runtime.h
+ *
+ * @brief Defines the Neural Network Runtime APIs. The AI inference framework uses the Native APIs
+ * provided by Neural Network Runtime to construct and compile models
+ * and perform inference and computing on acceleration hardware.
+ * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n
+ *
+ * @syscap SystemCapability.Applications.CalendarData
+ * @library libneural_network_runtime.so
+ * @since 9
+ * @version 1.0
+ */
+#ifndef NEURAL_NETWORK_H
+#define NEURAL_NETWORK_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ union std {
+ char ch;
+ int count;
+ };
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+/** @} */
+#endif // NEURAL_NETWORK_H