From 5cbf48a9122dd672de0e1d2260babbc622a43211 Mon Sep 17 00:00:00 2001 From: wangcaoyu Date: Wed, 6 Dec 2023 11:04:11 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=B7=BB=E5=8A=A0check=E5=B7=A5=E5=85=B7?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=8C=96=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wangcaoyu --- build-tools/capi_parser/.gitignore | 4 +- .../capi_parser/src/typedef/check/check.py | 18 ++--- .../check/ut_check_doc_addgroup_001.json | 3 + .../check/ut_check_doc_addgroup_002.json | 10 +++ .../check/ut_check_doc_addgroup_003.json | 10 +++ .../check/ut_check_doc_addgroup_004.json | 17 +++++ .../check/ut_check_doc_description_001.json | 3 + .../check/ut_check_doc_description_002.json | 10 +++ .../check/ut_check_doc_description_003.json | 10 +++ .../check/ut_check_doc_description_004.json | 10 +++ .../check/ut_check_doc_description_005.json | 10 +++ .../expect/check/ut_check_doc_file_001.json | 3 + .../expect/check/ut_check_doc_file_002.json | 10 +++ .../expect/check/ut_check_doc_file_003.json | 10 +++ .../expect/check/ut_check_doc_file_004.json | 10 +++ .../expect/check/ut_check_doc_file_005.json | 10 +++ .../expect/check/ut_check_doc_file_006.json | 10 +++ .../expect/check/ut_check_doc_file_007.json | 10 +++ .../expect/check/ut_check_doc_left_001.json | 10 +++ .../expect/check/ut_check_doc_left_002.json | 17 +++++ .../expect/check/ut_check_doc_left_003.json | 24 +++++++ .../expect/check/ut_check_doc_left_004.json | 17 +++++ .../expect/check/ut_check_doc_left_005.json | 24 +++++++ .../check/ut_check_doc_library_001.json | 3 + .../check/ut_check_doc_library_002.json | 10 +++ .../check/ut_check_doc_library_003.json | 3 + .../check/ut_check_doc_library_004.json | 3 + .../check/ut_check_doc_library_005.json | 3 + .../check/ut_check_doc_library_006.json | 10 +++ .../expect/check/ut_check_doc_param_001.json | 3 + .../expect/check/ut_check_doc_param_002.json | 17 +++++ .../expect/check/ut_check_doc_param_003.json | 17 +++++ .../expect/check/ut_check_doc_param_004.json | 10 +++ .../expect/check/ut_check_doc_param_005.json | 24 +++++++ .../check/ut_check_doc_permission_001.json | 3 + .../check/ut_check_doc_permission_002.json | 10 +++ .../check/ut_check_doc_permission_003.json | 10 +++ .../check/ut_check_doc_permission_004.json | 3 + .../check/ut_check_doc_permission_005.json | 3 + .../check/ut_check_doc_permission_006.json | 10 +++ .../check/ut_check_doc_permission_007.json | 10 +++ .../expect/check/ut_check_doc_right_001.json | 3 + .../expect/check/ut_check_doc_right_002.json | 17 +++++ .../expect/check/ut_check_doc_right_003.json | 17 +++++ .../expect/check/ut_check_doc_right_004.json | 17 +++++ .../expect/check/ut_check_doc_since_001.json | 3 + .../expect/check/ut_check_doc_since_002.json | 10 +++ .../expect/check/ut_check_doc_since_003.json | 10 +++ .../expect/check/ut_check_doc_syscap_001.json | 3 + .../expect/check/ut_check_doc_syscap_002.json | 17 +++++ .../expect/check/ut_check_doc_syscap_003.json | 10 +++ .../capi_parser/test/testCase/run_main.py | 25 +++++-- .../test/ut/check/ut_check_doc_addgroup_001.h | 48 +++++++++++++ .../test/ut/check/ut_check_doc_addgroup_002.h | 48 +++++++++++++ .../test/ut/check/ut_check_doc_addgroup_003.h | 37 ++++++++++ .../test/ut/check/ut_check_doc_addgroup_004.h | 58 ++++++++++++++++ .../ut/check/ut_check_doc_description_001.h | 65 ++++++++++++++++++ .../ut/check/ut_check_doc_description_002.h | 65 ++++++++++++++++++ .../ut/check/ut_check_doc_description_003.h | 65 ++++++++++++++++++ .../ut/check/ut_check_doc_description_004.h | 65 ++++++++++++++++++ .../ut/check/ut_check_doc_description_005.h | 65 ++++++++++++++++++ .../test/ut/check/ut_check_doc_file_001.h | 48 +++++++++++++ .../test/ut/check/ut_check_doc_file_002.h | 48 +++++++++++++ .../test/ut/check/ut_check_doc_file_003.h | 47 +++++++++++++ .../test/ut/check/ut_check_doc_file_004.h | 47 +++++++++++++ .../test/ut/check/ut_check_doc_file_005.h | 47 +++++++++++++ .../test/ut/check/ut_check_doc_file_006.h | 37 ++++++++++ .../test/ut/check/ut_check_doc_file_007.h | 58 ++++++++++++++++ .../test/ut/check/ut_check_doc_left_001.h | 58 ++++++++++++++++ .../test/ut/check/ut_check_doc_left_002.h | 57 ++++++++++++++++ .../test/ut/check/ut_check_doc_left_003.h | 58 ++++++++++++++++ .../test/ut/check/ut_check_doc_left_004.h | 59 ++++++++++++++++ .../test/ut/check/ut_check_doc_left_005.h | 58 ++++++++++++++++ .../test/ut/check/ut_check_doc_library_001.h | 48 +++++++++++++ .../test/ut/check/ut_check_doc_library_002.h | 48 +++++++++++++ .../test/ut/check/ut_check_doc_library_003.h | 48 +++++++++++++ .../test/ut/check/ut_check_doc_library_004.h | 48 +++++++++++++ .../test/ut/check/ut_check_doc_library_005.h | 48 +++++++++++++ .../test/ut/check/ut_check_doc_library_006.h | 48 +++++++++++++ .../test/ut/check/ut_check_doc_param_001.h | 59 ++++++++++++++++ .../test/ut/check/ut_check_doc_param_002.h | 59 ++++++++++++++++ .../test/ut/check/ut_check_doc_param_003.h | 59 ++++++++++++++++ .../test/ut/check/ut_check_doc_param_004.h | 68 +++++++++++++++++++ .../test/ut/check/ut_check_doc_param_005.h | 60 ++++++++++++++++ .../ut/check/ut_check_doc_permission_001.h | 58 ++++++++++++++++ .../ut/check/ut_check_doc_permission_002.h | 58 ++++++++++++++++ .../ut/check/ut_check_doc_permission_003.h | 59 ++++++++++++++++ .../ut/check/ut_check_doc_permission_004.h | 58 ++++++++++++++++ .../ut/check/ut_check_doc_permission_005.h | 58 ++++++++++++++++ .../ut/check/ut_check_doc_permission_006.h | 58 ++++++++++++++++ .../ut/check/ut_check_doc_permission_007.h | 59 ++++++++++++++++ .../test/ut/check/ut_check_doc_right_001.h | 48 +++++++++++++ .../test/ut/check/ut_check_doc_right_002.h | 59 ++++++++++++++++ .../test/ut/check/ut_check_doc_right_003.h | 57 ++++++++++++++++ .../test/ut/check/ut_check_doc_right_004.h | 58 ++++++++++++++++ .../test/ut/check/ut_check_doc_since_001.h | 48 +++++++++++++ .../test/ut/check/ut_check_doc_since_002.h | 48 +++++++++++++ .../test/ut/check/ut_check_doc_since_003.h | 48 +++++++++++++ .../test/ut/check/ut_check_doc_syscap_001.h | 48 +++++++++++++ .../test/ut/check/ut_check_doc_syscap_002.h | 48 +++++++++++++ .../test/ut/check/ut_check_doc_syscap_003.h | 48 +++++++++++++ 101 files changed, 3176 insertions(+), 17 deletions(-) create mode 100644 build-tools/capi_parser/test/expect/check/ut_check_doc_addgroup_001.json create mode 100644 build-tools/capi_parser/test/expect/check/ut_check_doc_addgroup_002.json create mode 100644 build-tools/capi_parser/test/expect/check/ut_check_doc_addgroup_003.json create mode 100644 build-tools/capi_parser/test/expect/check/ut_check_doc_addgroup_004.json create mode 100644 build-tools/capi_parser/test/expect/check/ut_check_doc_description_001.json create mode 100644 build-tools/capi_parser/test/expect/check/ut_check_doc_description_002.json create mode 100644 build-tools/capi_parser/test/expect/check/ut_check_doc_description_003.json create mode 100644 build-tools/capi_parser/test/expect/check/ut_check_doc_description_004.json create mode 100644 build-tools/capi_parser/test/expect/check/ut_check_doc_description_005.json create mode 100644 build-tools/capi_parser/test/expect/check/ut_check_doc_file_001.json create mode 100644 build-tools/capi_parser/test/expect/check/ut_check_doc_file_002.json create mode 100644 build-tools/capi_parser/test/expect/check/ut_check_doc_file_003.json create mode 100644 build-tools/capi_parser/test/expect/check/ut_check_doc_file_004.json create mode 100644 build-tools/capi_parser/test/expect/check/ut_check_doc_file_005.json create mode 100644 build-tools/capi_parser/test/expect/check/ut_check_doc_file_006.json create mode 100644 build-tools/capi_parser/test/expect/check/ut_check_doc_file_007.json create mode 100644 build-tools/capi_parser/test/expect/check/ut_check_doc_left_001.json create mode 100644 build-tools/capi_parser/test/expect/check/ut_check_doc_left_002.json create mode 100644 build-tools/capi_parser/test/expect/check/ut_check_doc_left_003.json create mode 100644 build-tools/capi_parser/test/expect/check/ut_check_doc_left_004.json create mode 100644 build-tools/capi_parser/test/expect/check/ut_check_doc_left_005.json create mode 100644 build-tools/capi_parser/test/expect/check/ut_check_doc_library_001.json create mode 100644 build-tools/capi_parser/test/expect/check/ut_check_doc_library_002.json create mode 100644 build-tools/capi_parser/test/expect/check/ut_check_doc_library_003.json create mode 100644 build-tools/capi_parser/test/expect/check/ut_check_doc_library_004.json create mode 100644 build-tools/capi_parser/test/expect/check/ut_check_doc_library_005.json create mode 100644 build-tools/capi_parser/test/expect/check/ut_check_doc_library_006.json create mode 100644 build-tools/capi_parser/test/expect/check/ut_check_doc_param_001.json create mode 100644 build-tools/capi_parser/test/expect/check/ut_check_doc_param_002.json create mode 100644 build-tools/capi_parser/test/expect/check/ut_check_doc_param_003.json create mode 100644 build-tools/capi_parser/test/expect/check/ut_check_doc_param_004.json create mode 100644 build-tools/capi_parser/test/expect/check/ut_check_doc_param_005.json create mode 100644 build-tools/capi_parser/test/expect/check/ut_check_doc_permission_001.json create mode 100644 build-tools/capi_parser/test/expect/check/ut_check_doc_permission_002.json create mode 100644 build-tools/capi_parser/test/expect/check/ut_check_doc_permission_003.json create mode 100644 build-tools/capi_parser/test/expect/check/ut_check_doc_permission_004.json create mode 100644 build-tools/capi_parser/test/expect/check/ut_check_doc_permission_005.json create mode 100644 build-tools/capi_parser/test/expect/check/ut_check_doc_permission_006.json create mode 100644 build-tools/capi_parser/test/expect/check/ut_check_doc_permission_007.json create mode 100644 build-tools/capi_parser/test/expect/check/ut_check_doc_right_001.json create mode 100644 build-tools/capi_parser/test/expect/check/ut_check_doc_right_002.json create mode 100644 build-tools/capi_parser/test/expect/check/ut_check_doc_right_003.json create mode 100644 build-tools/capi_parser/test/expect/check/ut_check_doc_right_004.json create mode 100644 build-tools/capi_parser/test/expect/check/ut_check_doc_since_001.json create mode 100644 build-tools/capi_parser/test/expect/check/ut_check_doc_since_002.json create mode 100644 build-tools/capi_parser/test/expect/check/ut_check_doc_since_003.json create mode 100644 build-tools/capi_parser/test/expect/check/ut_check_doc_syscap_001.json create mode 100644 build-tools/capi_parser/test/expect/check/ut_check_doc_syscap_002.json create mode 100644 build-tools/capi_parser/test/expect/check/ut_check_doc_syscap_003.json create mode 100644 build-tools/capi_parser/test/ut/check/ut_check_doc_addgroup_001.h create mode 100644 build-tools/capi_parser/test/ut/check/ut_check_doc_addgroup_002.h create mode 100644 build-tools/capi_parser/test/ut/check/ut_check_doc_addgroup_003.h create mode 100644 build-tools/capi_parser/test/ut/check/ut_check_doc_addgroup_004.h create mode 100644 build-tools/capi_parser/test/ut/check/ut_check_doc_description_001.h create mode 100644 build-tools/capi_parser/test/ut/check/ut_check_doc_description_002.h create mode 100644 build-tools/capi_parser/test/ut/check/ut_check_doc_description_003.h create mode 100644 build-tools/capi_parser/test/ut/check/ut_check_doc_description_004.h create mode 100644 build-tools/capi_parser/test/ut/check/ut_check_doc_description_005.h create mode 100644 build-tools/capi_parser/test/ut/check/ut_check_doc_file_001.h create mode 100644 build-tools/capi_parser/test/ut/check/ut_check_doc_file_002.h create mode 100644 build-tools/capi_parser/test/ut/check/ut_check_doc_file_003.h create mode 100644 build-tools/capi_parser/test/ut/check/ut_check_doc_file_004.h create mode 100644 build-tools/capi_parser/test/ut/check/ut_check_doc_file_005.h create mode 100644 build-tools/capi_parser/test/ut/check/ut_check_doc_file_006.h create mode 100644 build-tools/capi_parser/test/ut/check/ut_check_doc_file_007.h create mode 100644 build-tools/capi_parser/test/ut/check/ut_check_doc_left_001.h create mode 100644 build-tools/capi_parser/test/ut/check/ut_check_doc_left_002.h create mode 100644 build-tools/capi_parser/test/ut/check/ut_check_doc_left_003.h create mode 100644 build-tools/capi_parser/test/ut/check/ut_check_doc_left_004.h create mode 100644 build-tools/capi_parser/test/ut/check/ut_check_doc_left_005.h create mode 100644 build-tools/capi_parser/test/ut/check/ut_check_doc_library_001.h create mode 100644 build-tools/capi_parser/test/ut/check/ut_check_doc_library_002.h create mode 100644 build-tools/capi_parser/test/ut/check/ut_check_doc_library_003.h create mode 100644 build-tools/capi_parser/test/ut/check/ut_check_doc_library_004.h create mode 100644 build-tools/capi_parser/test/ut/check/ut_check_doc_library_005.h create mode 100644 build-tools/capi_parser/test/ut/check/ut_check_doc_library_006.h create mode 100644 build-tools/capi_parser/test/ut/check/ut_check_doc_param_001.h create mode 100644 build-tools/capi_parser/test/ut/check/ut_check_doc_param_002.h create mode 100644 build-tools/capi_parser/test/ut/check/ut_check_doc_param_003.h create mode 100644 build-tools/capi_parser/test/ut/check/ut_check_doc_param_004.h create mode 100644 build-tools/capi_parser/test/ut/check/ut_check_doc_param_005.h create mode 100644 build-tools/capi_parser/test/ut/check/ut_check_doc_permission_001.h create mode 100644 build-tools/capi_parser/test/ut/check/ut_check_doc_permission_002.h create mode 100644 build-tools/capi_parser/test/ut/check/ut_check_doc_permission_003.h create mode 100644 build-tools/capi_parser/test/ut/check/ut_check_doc_permission_004.h create mode 100644 build-tools/capi_parser/test/ut/check/ut_check_doc_permission_005.h create mode 100644 build-tools/capi_parser/test/ut/check/ut_check_doc_permission_006.h create mode 100644 build-tools/capi_parser/test/ut/check/ut_check_doc_permission_007.h create mode 100644 build-tools/capi_parser/test/ut/check/ut_check_doc_right_001.h create mode 100644 build-tools/capi_parser/test/ut/check/ut_check_doc_right_002.h create mode 100644 build-tools/capi_parser/test/ut/check/ut_check_doc_right_003.h create mode 100644 build-tools/capi_parser/test/ut/check/ut_check_doc_right_004.h create mode 100644 build-tools/capi_parser/test/ut/check/ut_check_doc_since_001.h create mode 100644 build-tools/capi_parser/test/ut/check/ut_check_doc_since_002.h create mode 100644 build-tools/capi_parser/test/ut/check/ut_check_doc_since_003.h create mode 100644 build-tools/capi_parser/test/ut/check/ut_check_doc_syscap_001.h create mode 100644 build-tools/capi_parser/test/ut/check/ut_check_doc_syscap_002.h create mode 100644 build-tools/capi_parser/test/ut/check/ut_check_doc_syscap_003.h diff --git a/build-tools/capi_parser/.gitignore b/build-tools/capi_parser/.gitignore index 05d3619486..4ca112d82a 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/src/typedef/check/check.py b/build-tools/capi_parser/src/typedef/check/check.py index 0f78875d37..834e31d4e3 100644 --- a/build-tools/capi_parser/src/typedef/check/check.py +++ b/build-tools/capi_parser/src/typedef/check/check.py @@ -89,24 +89,24 @@ class ErrorMessage(enum.Enum): REPEAT_FILE_TAG = 'the [$$] tag is repeat. Please check the tag in file' ERROR_INFO_VALUE_TAG = 'the [$$] tag value is incorrect. Please check the usage method' ERROR_INFO_VALUE_LIBRARY = 'the [library] tag value is incorrect. This tag must be end with .so or .a, \ - or is NA. Please check the usage method' +or is NA. Please check the usage method' ERROR_INFO_VALUE_PARAM = 'the value of the [$$] [param] tag is incorrect. Please check if it matches \ - the [$$] parameter name' +the [$$] parameter name' ERROR_INFO_COUNT_PARAM = 'the count of the [param] tag is wrong. Please check the parameters and Doc' ERROR_INFO_VALUE_PERMISSION = 'the [permission] tag value is incorrect. Please check if the permission \ - field has been configured or update the configuration file' +field has been configured or update the configuration file' ERROR_INFO_VALUE_SINCE = 'the [since] tag value is incorrect. Please check if the tag value is a numerical value' ERROR_INFO_VALUE_SYSCAP = 'the [syscap] tag value is incorrect. Please check if the syscap field is configured' ERROR_USE_LEFT_BRACE = '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.' +in Doc which not has addtogroup tag, or used in the wrong place.' ERROR_REPEAT_LEFT_BRACE = 'the validity verification of the Doc tag failed. The [{] tag is not allowed to \ - reuse in Doc which has addtogroup tag.' +reuse in Doc which has addtogroup tag.' ERROR_USE_RIGHT_BRACE = 'the validity verification of the JSDoc tag failed. The [}] tag is not allowed to \ - be reused please delete the extra tags.' +be reused please delete the extra tags.' ERROR_FILE_HAS_ONE_LOSE_OTHER = 'the file has the $$, but do not has the $$.' ERROR_FILE_LOSE_ONE = 'the file missing $$' FUNCTION_DECL = 'Function naming should use the big hump naming style or beginning with OH/OS,and \ - using "_" segmentation.' +using "_" segmentation.' STRUCT_DECL = 'Structure type naming should use the big hump naming style.' ENUM_DECL = 'Enum type naming should use the big hump naming style.' UNION_DECL = 'Consortium type naming should use the big hump naming style.' @@ -115,11 +115,11 @@ class ErrorMessage(enum.Enum): MACRO_PARAMETERS_TYPE_NAMING_ERROR = 'Macro parameters naming should use the small hump naming style.' FIELD_DECL = 'Fields in the structure naming should use the small hump naming style.' MEMBERS_OF_THE_CONSORTIUM_TYPE_NAMING_ERROR = 'Members of the consortium naming should use the \ - small hump naming style.' +small hump naming style.' MACRO_DEFINITION = 'Macro naming should use all uppercase, separated by underscores naming style.' ENUM_CONSTANT_DECL = 'Enum value naming should use all uppercase, separated by underscores naming style.' GOTO_LABEL_TYPE_NAMING_ERROR = 'Goto label value naming should use all uppercase, separated by \ - underscores naming style.' +underscores naming style.' GLOBAL_VARIABLE_TYPE_NAMING_ERROR = 'Global variable should increase "g_" prefix.' TRANSLATION_UNIT = 'File naming should be all lowercase, separated by underscores.' 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 0000000000..1c99609265 --- /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 0000000000..1c67ddebc5 --- /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 0000000000..e40df08d9a --- /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 0000000000..c47be77c4f --- /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 0000000000..1c99609265 --- /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 0000000000..b9e6a319de --- /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 0000000000..fc34c77692 --- /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 0000000000..8a98da6921 --- /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 0000000000..892c0e2961 --- /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 0000000000..1c99609265 --- /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 0000000000..f59d43ee59 --- /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 0000000000..77db95eea5 --- /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 0000000000..6f36802782 --- /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 0000000000..e9bea356ea --- /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 0000000000..28622941bf --- /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 0000000000..5b6a1e0a15 --- /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 0000000000..21578b325d --- /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 0000000000..ebcbe873a4 --- /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 0000000000..ea41bb3bd5 --- /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 0000000000..fa236217c4 --- /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 0000000000..176b0a4f5f --- /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 0000000000..1c99609265 --- /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 0000000000..d489d6562b --- /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 0000000000..1c99609265 --- /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 0000000000..1c99609265 --- /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 0000000000..1c99609265 --- /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 0000000000..b9b7288140 --- /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 0000000000..1c99609265 --- /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 0000000000..52075f30a2 --- /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 0000000000..957699e554 --- /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 0000000000..6cc402633e --- /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 0000000000..68123f680d --- /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 0000000000..1c99609265 --- /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 0000000000..174c003612 --- /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 0000000000..aeac0b3fea --- /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 0000000000..1c99609265 --- /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 0000000000..1c99609265 --- /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 0000000000..0bf106577d --- /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 0000000000..02c9350c95 --- /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 0000000000..1c99609265 --- /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 0000000000..7d4b4203b6 --- /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 0000000000..6f50f5f71b --- /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 0000000000..ff733cbb0b --- /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 0000000000..1c99609265 --- /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 0000000000..6a1091f746 --- /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 0000000000..9ed1a07f10 --- /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 0000000000..1c99609265 --- /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 0000000000..9d1700acbf --- /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 0000000000..1983257fdd --- /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/testCase/run_main.py b/build-tools/capi_parser/test/testCase/run_main.py index 9c08227582..58cce2d1d9 100644 --- a/build-tools/capi_parser/test/testCase/run_main.py +++ b/build-tools/capi_parser/test/testCase/run_main.py @@ -19,7 +19,7 @@ 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 class TestMethods(unittest.TestCase): @@ -30,13 +30,24 @@ 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") 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 0000000000..922093bacb --- /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 0000000000..14511ce515 --- /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 0000000000..4950cec4c2 --- /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 0000000000..89513142fd --- /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 0000000000..55f65b5de9 --- /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 0000000000..40a73b5c74 --- /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 0000000000..75683ebed0 --- /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 0000000000..b049e8335f --- /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 0000000000..3663761242 --- /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 0000000000..805a9cf6ff --- /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 0000000000..aefff55e3d --- /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 0000000000..321d5c2107 --- /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 0000000000..d9a4af47c9 --- /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 0000000000..ad79e6443a --- /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 0000000000..3643713601 --- /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 0000000000..7093771d48 --- /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 0000000000..7093771d48 --- /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 0000000000..1d66eaee79 --- /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 0000000000..f5e60f46ea --- /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 0000000000..d1039f8a8a --- /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 0000000000..e3c824132c --- /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 0000000000..805a9cf6ff --- /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 0000000000..07acfa0000 --- /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 0000000000..27b9aea4ea --- /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 0000000000..805a9cf6ff --- /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 0000000000..a4fefc63ba --- /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 0000000000..1eab58535f --- /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 0000000000..110fabd2a7 --- /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 0000000000..37c74f771d --- /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 0000000000..00f4e343b7 --- /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 0000000000..b6cdf91e0e --- /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 0000000000..1ca95f32ea --- /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 0000000000..9f503d46ef --- /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 0000000000..878443b0e6 --- /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 0000000000..333ff61ad1 --- /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 0000000000..4b26c89e33 --- /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 0000000000..174293a506 --- /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 0000000000..bf28851417 --- /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 0000000000..c2ea107ea3 --- /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 0000000000..805a9cf6ff --- /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 0000000000..abfbcf2238 --- /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 0000000000..14e255bde8 --- /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 0000000000..bb8dd8bfdc --- /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 0000000000..805a9cf6ff --- /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 0000000000..b130488d01 --- /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 0000000000..845c0784ce --- /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 0000000000..805a9cf6ff --- /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 0000000000..6eb3e80d25 --- /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 0000000000..6210da5691 --- /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_ -- Gitee From 38e9fe649b7e2520edf8bea44820eb77e0fc6b0a Mon Sep 17 00:00:00 2001 From: wangcaoyu Date: Wed, 6 Dec 2023 11:35:19 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=B7=BB=E5=8A=A0diff=E5=B7=A5=E5=85=B7?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=8C=96=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B?= =?UTF-8?q?=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wangcaoyu --- .../capi_parser/src/typedef/diff/diff.py | 192 ++++++++++-------- .../capi_parser/test/expect/diff/.gitkeep | 0 .../test/expect/diff/ut_diff_api_add_001.json | 11 + .../expect/diff/ut_diff_api_delete_001.json | 11 + .../test/expect/diff/ut_diff_dir_add_001.json | 29 +++ .../expect/diff/ut_diff_dir_delete_001.json | 29 +++ .../diff/ut_diff_doc_addtogroup_add_001.json | 11 + .../ut_diff_doc_addtogroup_change_001.json | 11 + .../ut_diff_doc_addtogroup_delete_001.json | 11 + .../diff/ut_diff_doc_brief_add_001.json | 11 + .../diff/ut_diff_doc_brief_change_001.json | 11 + .../diff/ut_diff_doc_brief_delete_001.json | 11 + .../diff/ut_diff_doc_deprecated_add_001.json | 11 + .../ut_diff_doc_deprecated_change_001.json | 11 + .../ut_diff_doc_deprecated_change_002.json | 11 + .../ut_diff_doc_deprecated_delete_001.json | 11 + .../expect/diff/ut_diff_doc_file_add_001.json | 11 + .../diff/ut_diff_doc_file_change_001.json | 11 + .../diff/ut_diff_doc_file_delete_001.json | 11 + .../diff/ut_diff_doc_library_add_001.json | 11 + .../diff/ut_diff_doc_library_change_001.json | 11 + .../diff/ut_diff_doc_library_delete_001.json | 11 + .../diff/ut_diff_doc_permission_add_001.json | 11 + .../diff/ut_diff_doc_permission_add_002.json | 11 + .../diff/ut_diff_doc_permission_add_003.json | 11 + .../ut_diff_doc_permission_change_001.json | 11 + .../ut_diff_doc_permission_delete_001.json | 11 + .../ut_diff_doc_permission_delete_002.json | 11 + .../ut_diff_doc_permission_delete_003.json | 11 + .../diff/ut_diff_doc_since_add_001.json | 11 + .../diff/ut_diff_doc_since_change_001.json | 11 + .../diff/ut_diff_doc_since_delete_001.json | 11 + .../diff/ut_diff_doc_syscap_add_001.json | 11 + .../diff/ut_diff_doc_syscap_change_001.json | 11 + .../diff/ut_diff_doc_syscap_delete_001.json | 11 + .../expect/diff/ut_diff_file_add_001.json | 29 +++ .../expect/diff/ut_diff_file_add_002.json | 29 +++ .../expect/diff/ut_diff_file_delete_001.json | 29 +++ .../expect/diff/ut_diff_file_delete_002.json | 29 +++ .../ut_diff_node_enum_member_add_001.json | 11 + ...diff_node_enum_member_name_change_001.json | 11 + .../ut_diff_node_enum_member_reduce_001.json | 11 + ...iff_node_enum_member_value_change_001.json | 11 + .../ut_diff_node_function_param_add_001.json | 11 + ...t_diff_node_function_param_reduce_001.json | 11 + ...f_node_function_param_type_change_001.json | 20 ++ .../ut_diff_node_function_return_001.json | 11 + .../diff/ut_diff_node_mar_define_add_001.json | 11 + .../ut_diff_node_mar_define_name_001.json | 38 ++++ .../ut_diff_node_mar_define_reduce_001.json | 11 + .../ut_diff_node_mar_define_text_001.json | 11 + .../ut_diff_node_struct_member_add_001.json | 92 +++++++++ ...ff_node_struct_member_name_change_001.json | 11 + ...ut_diff_node_struct_member_reduce_001.json | 11 + ...ff_node_struct_member_type_change_001.json | 11 + .../ut_diff_node_typedef_name_change_001.json | 20 ++ .../ut_diff_node_union_member_add_001.json | 11 + ...iff_node_union_member_name_change_001.json | 11 + .../ut_diff_node_union_member_reduce_001.json | 29 +++ ...iff_node_union_member_type_change_001.json | 11 + .../capi_parser/test/output/diff/.gitkeep | 0 .../capi_parser/test/testCase/run_main.py | 28 +++ .../ut_diff_api_add_001/ut_diff_case_001.h | 73 +++++++ .../ut_diff_api_delete_001/ut_diff_case_001.h | 62 ++++++ .../file1/ut_diff_case_001.h | 62 ++++++ .../file2/ut_diff_case_001.h | 62 ++++++ .../ut_diff_dir_add_001/ut_diff_case_001.h | 62 ++++++ .../file1/ut_diff_case_001.h | 62 ++++++ .../ut_diff_dir_delete_001/ut_diff_case_001.h | 62 ++++++ .../ut_diff_case_001.h | 62 ++++++ .../ut_diff_case_001.h | 62 ++++++ .../ut_diff_case_001.h | 61 ++++++ .../ut_diff_case_001.h | 62 ++++++ .../ut_diff_case_001.h | 62 ++++++ .../ut_diff_case_001.h | 58 ++++++ .../ut_diff_case_001.h | 63 ++++++ .../ut_diff_case_001.h | 63 ++++++ .../ut_diff_case_001.h | 63 ++++++ .../ut_diff_case_001.h | 62 ++++++ .../ut_diff_case_001.h | 62 ++++++ .../ut_diff_case_001.h | 62 ++++++ .../ut_diff_case_001.h | 61 ++++++ .../ut_diff_case_001.h | 62 ++++++ .../ut_diff_case_001.h | 62 ++++++ .../ut_diff_case_001.h | 61 ++++++ .../ut_diff_case_001.h | 63 ++++++ .../ut_diff_case_001.h | 63 ++++++ .../ut_diff_case_001.h | 63 ++++++ .../ut_diff_case_001.h | 63 ++++++ .../ut_diff_case_001.h | 62 ++++++ .../ut_diff_case_001.h | 63 ++++++ .../ut_diff_case_001.h | 63 ++++++ .../ut_diff_case_001.h | 62 ++++++ .../ut_diff_case_001.h | 62 ++++++ .../ut_diff_case_001.h | 61 ++++++ .../ut_diff_case_001.h | 62 ++++++ .../ut_diff_case_001.h | 62 ++++++ .../ut_diff_case_001.h | 61 ++++++ .../ut_diff_file_add_001/ut_diff_case_001.h | 62 ++++++ .../ut_diff_file_add_002/ut_diff_case_001.h | 62 ++++++ .../ut_diff_file_add_002/ut_diff_case_002.h | 62 ++++++ .../diff/new/ut_diff_file_delete_001/.gitkeep | 0 .../ut_diff_case_001.h | 62 ++++++ .../ut_diff_node_case1.h | 60 ++++++ .../ut_diff_node_case1.h | 60 ++++++ .../ut_diff_node_case1.h | 56 +++++ .../ut_diff_node_case1.h | 60 ++++++ .../ut_diff_node_case1.h | 53 +++++ .../ut_diff_node_case1.h | 53 +++++ .../ut_diff_node_case1.h | 53 +++++ .../ut_diff_node_case1.h | 53 +++++ .../ut_diff_node_case1.h | 55 +++++ .../ut_diff_node_case1.h | 55 +++++ .../ut_diff_node_case1.h | 53 +++++ .../ut_diff_node_case1.h | 55 +++++ .../ut_diff_node_case1.h | 56 +++++ .../ut_diff_node_case1.h | 56 +++++ .../ut_diff_node_case1.h | 55 +++++ .../ut_diff_node_case1.h | 56 +++++ .../ut_diff_node_case1.h | 58 ++++++ .../ut_diff_node_case1.h | 56 +++++ .../ut_diff_node_case1.h | 56 +++++ .../ut_diff_node_case1.h | 55 +++++ .../ut_diff_node_case1.h | 56 +++++ .../ut_diff_api_add_001/ut_diff_case_001.h | 62 ++++++ .../ut_diff_api_delete_001/ut_diff_case_001.h | 73 +++++++ .../file1/ut_diff_case_001.h | 62 ++++++ .../ut_diff_dir_add_001/ut_diff_case_001.h | 62 ++++++ .../file1/ut_diff_case_001.h | 62 ++++++ .../file2/ut_diff_case_001.h | 62 ++++++ .../ut_diff_dir_delete_001/ut_diff_case_001.h | 62 ++++++ .../ut_diff_case_001.h | 61 ++++++ .../ut_diff_case_001.h | 62 ++++++ .../ut_diff_case_001.h | 62 ++++++ .../ut_diff_case_001.h | 58 ++++++ .../ut_diff_case_001.h | 62 ++++++ .../ut_diff_case_001.h | 62 ++++++ .../ut_diff_case_001.h | 62 ++++++ .../ut_diff_case_001.h | 63 ++++++ .../ut_diff_case_001.h | 63 ++++++ .../ut_diff_case_001.h | 63 ++++++ .../ut_diff_case_001.h | 61 ++++++ .../ut_diff_case_001.h | 62 ++++++ .../ut_diff_case_001.h | 62 ++++++ .../ut_diff_case_001.h | 61 ++++++ .../ut_diff_case_001.h | 62 ++++++ .../ut_diff_case_001.h | 62 ++++++ .../ut_diff_case_001.h | 62 ++++++ .../ut_diff_case_001.h | 63 ++++++ .../ut_diff_case_001.h | 63 ++++++ .../ut_diff_case_001.h | 63 ++++++ .../ut_diff_case_001.h | 63 ++++++ .../ut_diff_case_001.h | 63 ++++++ .../ut_diff_case_001.h | 63 ++++++ .../ut_diff_case_001.h | 61 ++++++ .../ut_diff_case_001.h | 62 ++++++ .../ut_diff_case_001.h | 62 ++++++ .../ut_diff_case_001.h | 61 ++++++ .../ut_diff_case_001.h | 62 ++++++ .../ut_diff_case_001.h | 62 ++++++ .../ut/diff/old/ut_diff_file_add_001/.gitkeep | 0 .../ut_diff_file_add_002/ut_diff_case_001.h | 62 ++++++ .../ut_diff_case_001.h | 62 ++++++ .../ut_diff_case_001.h | 62 ++++++ .../ut_diff_case_002.h | 62 ++++++ .../ut_diff_node_case1.h | 58 ++++++ .../ut_diff_node_case1.h | 60 ++++++ .../ut_diff_node_case1.h | 58 ++++++ .../ut_diff_node_case1.h | 60 ++++++ .../ut_diff_node_case1.h | 53 +++++ .../ut_diff_node_case1.h | 53 +++++ .../ut_diff_node_case1.h | 53 +++++ .../ut_diff_node_case1.h | 53 +++++ .../ut_diff_node_case1.h | 55 +++++ .../ut_diff_node_case1.h | 55 +++++ .../ut_diff_node_case1.h | 55 +++++ .../ut_diff_node_case1.h | 55 +++++ .../ut_diff_node_case1.h | 55 +++++ .../ut_diff_node_case1.h | 56 +++++ .../ut_diff_node_case1.h | 56 +++++ .../ut_diff_node_case1.h | 56 +++++ .../ut_diff_node_case1.h | 58 ++++++ .../ut_diff_node_case1.h | 55 +++++ .../ut_diff_node_case1.h | 56 +++++ .../ut_diff_node_case1.h | 56 +++++ .../ut_diff_node_case1.h | 56 +++++ 186 files changed, 8351 insertions(+), 83 deletions(-) create mode 100644 build-tools/capi_parser/test/expect/diff/.gitkeep create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_api_add_001.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_api_delete_001.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_dir_add_001.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_dir_delete_001.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_doc_addtogroup_add_001.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_doc_addtogroup_change_001.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_doc_addtogroup_delete_001.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_doc_brief_add_001.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_doc_brief_change_001.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_doc_brief_delete_001.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_doc_deprecated_add_001.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_doc_deprecated_change_001.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_doc_deprecated_change_002.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_doc_deprecated_delete_001.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_doc_file_add_001.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_doc_file_change_001.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_doc_file_delete_001.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_doc_library_add_001.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_doc_library_change_001.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_doc_library_delete_001.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_doc_permission_add_001.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_doc_permission_add_002.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_doc_permission_add_003.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_doc_permission_change_001.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_doc_permission_delete_001.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_doc_permission_delete_002.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_doc_permission_delete_003.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_doc_since_add_001.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_doc_since_change_001.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_doc_since_delete_001.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_doc_syscap_add_001.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_doc_syscap_change_001.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_doc_syscap_delete_001.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_file_add_001.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_file_add_002.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_file_delete_001.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_file_delete_002.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_node_enum_member_add_001.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_node_enum_member_name_change_001.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_node_enum_member_reduce_001.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_node_enum_member_value_change_001.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_node_function_param_add_001.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_node_function_param_reduce_001.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_node_function_param_type_change_001.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_node_function_return_001.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_node_mar_define_add_001.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_node_mar_define_name_001.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_node_mar_define_reduce_001.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_node_mar_define_text_001.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_node_struct_member_add_001.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_node_struct_member_name_change_001.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_node_struct_member_reduce_001.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_node_struct_member_type_change_001.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_node_typedef_name_change_001.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_node_union_member_add_001.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_node_union_member_name_change_001.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_node_union_member_reduce_001.json create mode 100644 build-tools/capi_parser/test/expect/diff/ut_diff_node_union_member_type_change_001.json create mode 100644 build-tools/capi_parser/test/output/diff/.gitkeep create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_api_add_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_api_delete_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_dir_add_001/file1/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_dir_add_001/file2/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_dir_add_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_dir_delete_001/file1/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_dir_delete_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_addtogroup_add_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_addtogroup_change_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_addtogroup_delete_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_brief_add_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_brief_change_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_brief_delete_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_deprecated_add_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_deprecated_change_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_deprecated_change_002/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_deprecated_delete_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_file_add_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_file_change_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_file_delete_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_library_add_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_library_change_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_library_delete_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_permission_add_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_permission_add_002/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_permission_add_003/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_permission_change_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_permission_delete_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_permission_delete_002/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_permission_delete_003/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_since_add_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_since_change_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_since_delete_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_syscap_add_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_syscap_change_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_doc_syscap_delete_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_file_add_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_file_add_002/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_file_add_002/ut_diff_case_002.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_file_delete_001/.gitkeep create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_file_delete_002/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_node_enum_member_add_001/ut_diff_node_case1.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_node_enum_member_name_change_001/ut_diff_node_case1.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_node_enum_member_reduce_001/ut_diff_node_case1.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_node_enum_member_value_change_001/ut_diff_node_case1.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_node_function_param_add_001/ut_diff_node_case1.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_node_function_param_reduce_001/ut_diff_node_case1.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_node_function_param_type_change_001/ut_diff_node_case1.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_node_function_return_001/ut_diff_node_case1.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_node_mar_define_add_001/ut_diff_node_case1.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_node_mar_define_name_001/ut_diff_node_case1.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_node_mar_define_reduce_001/ut_diff_node_case1.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_node_mar_define_text_001/ut_diff_node_case1.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_node_struct_member_add_001/ut_diff_node_case1.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_node_struct_member_name_change_001/ut_diff_node_case1.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_node_struct_member_reduce_001/ut_diff_node_case1.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_node_struct_member_type_change_001/ut_diff_node_case1.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_node_typedef_name_change_001/ut_diff_node_case1.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_node_union_member_add_001/ut_diff_node_case1.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_node_union_member_name_change_001/ut_diff_node_case1.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_node_union_member_reduce_001/ut_diff_node_case1.h create mode 100644 build-tools/capi_parser/test/ut/diff/new/ut_diff_node_union_member_type_change_001/ut_diff_node_case1.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_api_add_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_api_delete_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_dir_add_001/file1/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_dir_add_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_dir_delete_001/file1/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_dir_delete_001/file2/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_dir_delete_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_addtogroup_add_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_addtogroup_change_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_addtogroup_delete_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_brief_add_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_brief_change_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_brief_delete_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_deprecated_add_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_deprecated_change_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_deprecated_change_002/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_deprecated_delete_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_file_add_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_file_change_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_file_delete_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_library_add_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_library_change_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_library_delete_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_permission_add_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_permission_add_002/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_permission_add_003/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_permission_change_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_permission_delete_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_permission_delete_002/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_permission_delete_003/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_since_add_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_since_change_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_since_delete_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_syscap_add_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_syscap_change_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_doc_syscap_delete_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_file_add_001/.gitkeep create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_file_add_002/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_file_delete_001/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_file_delete_002/ut_diff_case_001.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_file_delete_002/ut_diff_case_002.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_node_enum_member_add_001/ut_diff_node_case1.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_node_enum_member_name_change_001/ut_diff_node_case1.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_node_enum_member_reduce_001/ut_diff_node_case1.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_node_enum_member_value_change_001/ut_diff_node_case1.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_node_function_param_add_001/ut_diff_node_case1.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_node_function_param_reduce_001/ut_diff_node_case1.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_node_function_param_type_change_001/ut_diff_node_case1.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_node_function_return_001/ut_diff_node_case1.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_node_mar_define_add_001/ut_diff_node_case1.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_node_mar_define_name_001/ut_diff_node_case1.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_node_mar_define_reduce_001/ut_diff_node_case1.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_node_mar_define_text_001/ut_diff_node_case1.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_node_struct_member_add_001/ut_diff_node_case1.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_node_struct_member_name_change_001/ut_diff_node_case1.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_node_struct_member_reduce_001/ut_diff_node_case1.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_node_struct_member_type_change_001/ut_diff_node_case1.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_node_typedef_name_change_001/ut_diff_node_case1.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_node_union_member_add_001/ut_diff_node_case1.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_node_union_member_name_change_001/ut_diff_node_case1.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_node_union_member_reduce_001/ut_diff_node_case1.h create mode 100644 build-tools/capi_parser/test/ut/diff/old/ut_diff_node_union_member_type_change_001/ut_diff_node_case1.h diff --git a/build-tools/capi_parser/src/typedef/diff/diff.py b/build-tools/capi_parser/src/typedef/diff/diff.py index 8b94d8beb9..fa5bf48c69 100644 --- a/build-tools/capi_parser/src/typedef/diff/diff.py +++ b/build-tools/capi_parser/src/typedef/diff/diff.py @@ -43,89 +43,115 @@ class TAGS(enum.Enum): class DiffType(enum.Enum): DEFAULT = '' - ADD_API = '新增api' - REDUCE_API = '删除api' - ADD_DOC = '新增doc' - REDUCE_DOC = '删除doc' - ADD_DOC_TAG = '添加doc标签' - REDUCE_DOC_TAG = '删除doc标签' - FUNCTION_PARAM_POS_CHANGE = '修改函数参数位置' # 我觉得可以理解为函数参数类型改变 - - DEFINE_NAME_CHANGE = '宏名改变' - DEFINE_TEXT_CHANGE = '宏文本改变' - - FUNCTION_NAME_CHANGE = '函数名改变' - FUNCTION_RETURN_CHANGE = '函数返回类型改变' - FUNCTION_PARAM_NAME_CHANGE = '函数参数名改变' # 这个我觉得不考虑 - FUNCTION_PARAM_TYPE_CHANGE = '函数参数类型改变' - FUNCTION_PARAM_ADD = '添加函数参数' - FUNCTION_PARAM_REDUCE = '删除函数参数' - - STRUCT_NAME_CHANGE = '结构体名改变' - STRUCT_MEMBER_NAME_CHANGE = '结构体成员名改变' - STRUCT_MEMBER_TYPE_CHANGE = '结构体成员类型改变' - STRUCT_MEMBER_ADD = '添加结构体成员' - STRUCT_MEMBER_REDUCE = '删除结构体成员' - - UNION_NAME_CHANGE = '联合体名改变' - UNION_MEMBER_NAME_CHANGE = '联合体成员名改变' - UNION_MEMBER_TYPE_CHANGE = '联合体成员类型改变' - UNION_MEMBER_ADD = '添加联合体成员' - UNION_MEMBER_REDUCE = '删除联合体成员' - - ENUM_NAME_CHANGE = '枚举名改变' - ENUM_MEMBER_NAME_CHANGE = '枚举成员名改变' - ENUM_MEMBER_VALUE_CHANGE = '枚举成员值改变' - ENUM_MEMBER_ADD = '添加枚举成员' - ENUM_MEMBER_REDUCE = '删除枚举成员' - - VARIABLE_NAME_CHANGE = '变量名改变' - VARIABLE_TYPE_CHANGE = '变量类型改变' - VARIABLE_VALUE_CHANGE = '变量值的改变' - - CONSTANT_NAME_CHANGE = '常量名改变' - CONSTANT_TYPE_CHANGE = '常量类型改变' - CONSTANT_VALUE_CHANGE = '常量值的改变' - - TYPEDEF_NAME_TYPE_CHANGE = '重命名类型和命名改变' - - DOC_TAG_ADDTOGROUP_NA_TO_HAVE = '新增addtogroup标签' - DOC_TAG_ADDTOGROUP_HAVE_TO_NA = '删除addtogroup标签' - DOC_TAG_ADDTOGROUP_A_TO_B = '修改addtogroup标签' - DOC_TAG_BRIEF_NA_TO_HAVE = '新增brief标签' - DOC_TAG_BRIEF_HAVE_TO_NA = '删除brief标签' - DOC_TAG_BRIEF_A_TO_B = '修改brief标签' - DOC_TAG_DEPRECATED_NA_TO_HAVE = '接口变更为废弃' - DOC_TAG_DEPRECATED_HAVE_TO_NA = '废弃接口变更为不废弃' - DOC_TAG_DEPRECATED_A_TO_B = '接口废弃版本发生变化' - DOC_TAG_FILE_NA_TO_HAVE = '新增file标签' - DOC_TAG_FILE_HAVE_TO_NA = '删除file标签' - DOC_TAG_FILE_A_TO_B = '修改file标签' - DOC_TAG_LIBRARY_NA_TO_HAVE = '新增library' - DOC_TAG_LIBRARY_HAVE_TO_NA = '删除library' - DOC_TAG_LIBRARY_A_TO_B = '变更library' - DOC_TAG_PARAM_NA_TO_HAVE = '新增param标签' - DOC_TAG_PARAM_HAVE_TO_NA = '删除param标签' - DOC_TAG_PARAM_NAME_A_TO_B = '修改param标签描述信息' - DOC_TAG_PARAM_A_TO_B = '修改param标签描述信息' - DOC_TAG_PERMISSION_NA_TO_HAVE = '权限从无到有' - DOC_TAG_PERMISSION_HAVE_TO_NA = '权限从有到无' - DOC_TAG_PERMISSION_RANGE_BIGGER = '增加or或减少and权限' - DOC_TAG_PERMISSION_RANGE_SMALLER = '减少or或增加and权限' - DOC_TAG_PERMISSION_RANGE_CHANGE = '权限发送改变无法判断范围变化' - DOC_TAG_SINCE_NA_TO_HAVE = '新增since标签' - DOC_TAG_SINCE_HAVE_TO_NA = '删除since标签' - DOC_TAG_SINCE_A_TO_B = '修改since标签' - DOC_TAG_SYSCAP_NA_TO_HAVE = '从没有syscap到有syscap' - DOC_TAG_SYSCAP_HAVE_TO_NA = '从有syscap到没有syscap' - DOC_TAG_SYSCAP_A_TO_B = 'syscap发生改变' - DOC_TAG_LEFT_BRACE_NA_TO_HAVE = '新增左括号' - DOC_TAG_LEFT_BRACE_HAVE_TO_NA = '删除左括号' - DOC_TAG_RIGHT_BRACE_NA_TO_HAVE = '新增右括号' - DOC_TAG_RIGHT_BRACE_HAVE_TO_NA = '删除右括号' - - -compatible_list = [DiffType.FUNCTION_PARAM_NAME_CHANGE] + ADD_API = 'add api' + REDUCE_API = 'delete api' + ADD_DOC = 'add doc' + REDUCE_DOC = 'delete doc' + ADD_DOC_TAG = 'add doc tag' + REDUCE_DOC_TAG = 'delete doc tag' + FUNCTION_PARAM_POS_CHANGE = 'change param site in function' # 我觉得可以理解为函数参数类型改变 + + DEFINE_NAME_CHANGE = 'change define name' + DEFINE_TEXT_CHANGE = 'change define text' + + FUNCTION_NAME_CHANGE = 'change function name' + FUNCTION_RETURN_CHANGE = 'change function return value' + FUNCTION_PARAM_NAME_CHANGE = 'change param name in function' # 这个我觉得不考虑 + FUNCTION_PARAM_TYPE_CHANGE = 'change param type in function' + FUNCTION_PARAM_ADD = 'add param in function' + FUNCTION_PARAM_REDUCE = 'delete param in function' + + STRUCT_NAME_CHANGE = 'change struct name' + STRUCT_MEMBER_NAME_CHANGE = 'change member name in struct' + STRUCT_MEMBER_TYPE_CHANGE = 'change member type in struct' + STRUCT_MEMBER_ADD = 'add member in struct' + STRUCT_MEMBER_REDUCE = 'delete member in struct' + + UNION_NAME_CHANGE = 'change union name' + UNION_MEMBER_NAME_CHANGE = 'change member name in union' + UNION_MEMBER_TYPE_CHANGE = 'change member type in union' + UNION_MEMBER_ADD = 'add member in union' + UNION_MEMBER_REDUCE = 'delete member in union' + + ENUM_NAME_CHANGE = 'change enum name' + ENUM_MEMBER_NAME_CHANGE = 'change member name in enum' + ENUM_MEMBER_VALUE_CHANGE = 'change member value in enum' + ENUM_MEMBER_ADD = 'add member in enum' + ENUM_MEMBER_REDUCE = 'delete member in enum' + + VARIABLE_NAME_CHANGE = 'change variable name' + VARIABLE_TYPE_CHANGE = 'change variable type' + VARIABLE_VALUE_CHANGE = 'change variable value' + + CONSTANT_NAME_CHANGE = 'change constant name' + CONSTANT_TYPE_CHANGE = 'change constant type' + CONSTANT_VALUE_CHANGE = 'change constant value' + + TYPEDEF_NAME_TYPE_CHANGE = 'change typedef name type' + + DOC_TAG_ADDTOGROUP_NA_TO_HAVE = 'add addtogroup tag' + DOC_TAG_ADDTOGROUP_HAVE_TO_NA = 'delete addtogroup tag' + DOC_TAG_ADDTOGROUP_A_TO_B = 'change addtogroup tag' + DOC_TAG_BRIEF_NA_TO_HAVE = 'add brief tag' + DOC_TAG_BRIEF_HAVE_TO_NA = 'delete brief tag' + DOC_TAG_BRIEF_A_TO_B = 'change brief tag' + DOC_TAG_DEPRECATED_NA_TO_HAVE = 'add deprecated tag' + DOC_TAG_DEPRECATED_HAVE_TO_NA = 'delete deprecated tag' + DOC_TAG_DEPRECATED_A_TO_B = 'change deprecated tag' + DOC_TAG_FILE_NA_TO_HAVE = 'add file tag' + DOC_TAG_FILE_HAVE_TO_NA = 'delete file tag' + DOC_TAG_FILE_A_TO_B = 'change file tag' + DOC_TAG_LIBRARY_NA_TO_HAVE = 'add library tag' + DOC_TAG_LIBRARY_HAVE_TO_NA = 'delete library tag' + DOC_TAG_LIBRARY_A_TO_B = 'change library tag' + DOC_TAG_PARAM_NA_TO_HAVE = 'add param tag' + DOC_TAG_PARAM_HAVE_TO_NA = 'delete param tag' + DOC_TAG_PARAM_NAME_A_TO_B = 'change param tag name' + DOC_TAG_PARAM_A_TO_B = 'change param tag value' + DOC_TAG_PERMISSION_NA_TO_HAVE = 'add permission tag' + DOC_TAG_PERMISSION_HAVE_TO_NA = 'delete permission tag' + DOC_TAG_PERMISSION_RANGE_BIGGER = 'increased permissions, ex: add "or" or remove "and"' + DOC_TAG_PERMISSION_RANGE_SMALLER = 'reduced permissions, ex: add "and" or remove "or"' + DOC_TAG_PERMISSION_RANGE_CHANGE = 'change permissions, before not included after and after not included before' + DOC_TAG_SINCE_NA_TO_HAVE = 'add since tag' + DOC_TAG_SINCE_HAVE_TO_NA = 'delete since tag' + DOC_TAG_SINCE_A_TO_B = 'change since tag' + DOC_TAG_SYSCAP_NA_TO_HAVE = 'add syscap tag' + DOC_TAG_SYSCAP_HAVE_TO_NA = 'delete syscap tag' + DOC_TAG_SYSCAP_A_TO_B = 'change syscap tag' + DOC_TAG_LEFT_BRACE_NA_TO_HAVE = 'add { tag' + DOC_TAG_LEFT_BRACE_HAVE_TO_NA = 'delete { tag' + DOC_TAG_RIGHT_BRACE_NA_TO_HAVE = 'add } tag' + DOC_TAG_RIGHT_BRACE_HAVE_TO_NA = 'delete } tag' + + +compatible_list = [ + DiffType.ADD_API, + DiffType.ADD_DOC, + DiffType.ADD_DOC_TAG, + DiffType.FUNCTION_PARAM_NAME_CHANGE, + DiffType.DOC_TAG_ADDTOGROUP_NA_TO_HAVE, + DiffType.DOC_TAG_ADDTOGROUP_HAVE_TO_NA, + DiffType.DOC_TAG_ADDTOGROUP_A_TO_B, + DiffType.DOC_TAG_BRIEF_NA_TO_HAVE, + DiffType.DOC_TAG_BRIEF_HAVE_TO_NA, + DiffType.DOC_TAG_BRIEF_A_TO_B, + DiffType.DOC_TAG_DEPRECATED_NA_TO_HAVE, + DiffType.DOC_TAG_DEPRECATED_HAVE_TO_NA, + DiffType.DOC_TAG_DEPRECATED_A_TO_B, + DiffType.DOC_TAG_FILE_NA_TO_HAVE, + DiffType.DOC_TAG_FILE_HAVE_TO_NA, + DiffType.DOC_TAG_FILE_A_TO_B, + DiffType.DOC_TAG_PARAM_A_TO_B, + DiffType.DOC_TAG_PERMISSION_HAVE_TO_NA, + DiffType.DOC_TAG_PERMISSION_RANGE_BIGGER, + DiffType.DOC_TAG_SINCE_NA_TO_HAVE, + DiffType.DOC_TAG_SINCE_A_TO_B, + DiffType.DOC_TAG_LEFT_BRACE_NA_TO_HAVE, + DiffType.DOC_TAG_LEFT_BRACE_HAVE_TO_NA, + DiffType.DOC_TAG_RIGHT_BRACE_NA_TO_HAVE, + DiffType.DOC_TAG_RIGHT_BRACE_HAVE_TO_NA, +] class DiffInfo: 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 0000000000..e69de29bb2 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 0000000000..0571009c41 --- /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 0000000000..17e0506ae3 --- /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 0000000000..4f58c6be30 --- /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 0000000000..deb3629bf6 --- /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 0000000000..8853beeaa2 --- /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 0000000000..0866a4aa6f --- /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 0000000000..0cdabd0fd0 --- /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 0000000000..5fe8bf2267 --- /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 0000000000..71e1fede39 --- /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 0000000000..7af9f3e91e --- /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 0000000000..ce61fc7279 --- /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 0000000000..bf85bb6606 --- /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 0000000000..bf85bb6606 --- /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 0000000000..5e05054b0c --- /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 0000000000..f2a3dc6ea6 --- /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 0000000000..33039056e9 --- /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 0000000000..fa4c05e850 --- /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 0000000000..276cbec803 --- /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 0000000000..4ca6495bf7 --- /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 0000000000..e1db2c43fe --- /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 0000000000..c861acd5dc --- /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 0000000000..523773f8d4 --- /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 0000000000..523773f8d4 --- /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 0000000000..05a05f40fa --- /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 0000000000..5c6698817a --- /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 0000000000..be830f70c6 --- /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 0000000000..be830f70c6 --- /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 0000000000..c8d4bacc0b --- /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 0000000000..07940485d1 --- /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 0000000000..4ed582bcf8 --- /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 0000000000..6d6a1fff78 --- /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 0000000000..9b206d1756 --- /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 0000000000..c27adf4be9 --- /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 0000000000..27d7041f8e --- /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 0000000000..182f47099e --- /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 0000000000..edd36c7a68 --- /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 0000000000..6688832573 --- /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 0000000000..0f84d5cd16 --- /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 0000000000..4b79b47781 --- /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 0000000000..fca4527820 --- /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 0000000000..1dff2ffa88 --- /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 0000000000..eeebbde77d --- /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 0000000000..569e6fe339 --- /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 0000000000..440bffebd2 --- /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 0000000000..c796f54f06 --- /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 0000000000..7c530d2ef4 --- /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 0000000000..8deed79765 --- /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 0000000000..2377d5afff --- /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 0000000000..d7316f31f4 --- /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 0000000000..088bcb7e34 --- /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 0000000000..e027f251ea --- /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 0000000000..b00d7e660e --- /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 0000000000..ac9f71b44a --- /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 0000000000..2398b915a7 --- /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 0000000000..61eece1c31 --- /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 0000000000..13b6bb5251 --- /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 0000000000..217bb24dbb --- /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 0000000000..228dfeb849 --- /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 0000000000..e69de29bb2 diff --git a/build-tools/capi_parser/test/testCase/run_main.py b/build-tools/capi_parser/test/testCase/run_main.py index 58cce2d1d9..f4c403b35d 100644 --- a/build-tools/capi_parser/test/testCase/run_main.py +++ b/build-tools/capi_parser/test/testCase/run_main.py @@ -20,6 +20,7 @@ import json import unittest sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "../../src"))) from coreImpl.check import check +from coreImpl.diff import diff_file class TestMethods(unittest.TestCase): @@ -49,6 +50,33 @@ class TestMethods(unittest.TestCase): 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__': unittest.main() 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 0000000000..9985af9969 --- /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 0000000000..9c8d137ce6 --- /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 0000000000..9c8d137ce6 --- /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 0000000000..9c8d137ce6 --- /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 0000000000..9c8d137ce6 --- /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 0000000000..9c8d137ce6 --- /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 0000000000..9c8d137ce6 --- /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 0000000000..9c8d137ce6 --- /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 0000000000..9c8d137ce6 --- /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 0000000000..ed6838add9 --- /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 0000000000..9c8d137ce6 --- /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 0000000000..9c8d137ce6 --- /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 0000000000..fe4761642a --- /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 0000000000..67e5912d9a --- /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 0000000000..fa8ad247fd --- /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 0000000000..67e5912d9a --- /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 0000000000..9c8d137ce6 --- /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 0000000000..9c8d137ce6 --- /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 0000000000..9c8d137ce6 --- /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 0000000000..9beb2e9e61 --- /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 0000000000..9c8d137ce6 --- /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 0000000000..9c8d137ce6 --- /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 0000000000..008e0fa591 --- /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 0000000000..a117bfafe9 --- /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 0000000000..db41a3b658 --- /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 0000000000..a117bfafe9 --- /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 0000000000..47ed99e41a --- /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 0000000000..9c8d137ce6 --- /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 0000000000..a117bfafe9 --- /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 0000000000..d9385c6dce --- /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 0000000000..9c8d137ce6 --- /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 0000000000..9c8d137ce6 --- /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 0000000000..0f9b91f489 --- /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 0000000000..9c8d137ce6 --- /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 0000000000..9c8d137ce6 --- /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 0000000000..e90a40ca00 --- /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 0000000000..9c8d137ce6 --- /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 0000000000..9c8d137ce6 --- /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 0000000000..9c8d137ce6 --- /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 0000000000..e69de29bb2 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 0000000000..9c8d137ce6 --- /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 0000000000..b25c7cfb13 --- /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 0000000000..1d1a102307 --- /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 0000000000..91994482f3 --- /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 0000000000..ca93d11862 --- /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 0000000000..9dc9ee6b2b --- /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 0000000000..907213ec43 --- /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 0000000000..02021580bb --- /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 0000000000..ce7287a39b --- /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 0000000000..841eb3708b --- /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 0000000000..25ca21ff32 --- /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 0000000000..cd9db12623 --- /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 0000000000..5720c7e21a --- /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 0000000000..24da11f284 --- /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 0000000000..cb1e5e6ec2 --- /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 0000000000..6943a0c8f6 --- /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 0000000000..133f67157a --- /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 0000000000..0795fdc594 --- /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 0000000000..395d068713 --- /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 0000000000..472c05cd97 --- /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 0000000000..5f5619c4ee --- /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 0000000000..b34b0e0e2a --- /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 0000000000..9c8d137ce6 --- /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 0000000000..9985af9969 --- /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 0000000000..9c8d137ce6 --- /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 0000000000..9c8d137ce6 --- /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 0000000000..9c8d137ce6 --- /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 0000000000..9c8d137ce6 --- /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 0000000000..9c8d137ce6 --- /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 0000000000..ed6838add9 --- /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 0000000000..3e2dfeab27 --- /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 0000000000..9c8d137ce6 --- /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 0000000000..fe4761642a --- /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 0000000000..f7a65078dd --- /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 0000000000..9c8d137ce6 --- /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 0000000000..9c8d137ce6 --- /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 0000000000..67e5912d9a --- /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 0000000000..c8a47618b4 --- /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 0000000000..67e5912d9a --- /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 0000000000..9beb2e9e61 --- /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 0000000000..95b4c350a2 --- /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 0000000000..9c8d137ce6 --- /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 0000000000..008e0fa591 --- /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 0000000000..2cd98520a9 --- /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 0000000000..9c8d137ce6 --- /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 0000000000..9c8d137ce6 --- /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 0000000000..a117bfafe9 --- /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 0000000000..d9385c6dce --- /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 0000000000..a117bfafe9 --- /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 0000000000..a117bfafe9 --- /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 0000000000..db41a3b658 --- /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 0000000000..a117bfafe9 --- /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 0000000000..0f9b91f489 --- /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 0000000000..fb7da4fa7d --- /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 0000000000..9c8d137ce6 --- /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 0000000000..e90a40ca00 --- /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 0000000000..b55f7ebf0b --- /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 0000000000..9c8d137ce6 --- /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 0000000000..e69de29bb2 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 0000000000..9c8d137ce6 --- /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 0000000000..9c8d137ce6 --- /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 0000000000..9c8d137ce6 --- /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 0000000000..9c8d137ce6 --- /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 0000000000..62b6b9bf1a --- /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 0000000000..0ddd2b796e --- /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 0000000000..62b6b9bf1a --- /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 0000000000..0ddd2b796e --- /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 0000000000..2236a3e857 --- /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 0000000000..2236a3e857 --- /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 0000000000..2236a3e857 --- /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 0000000000..2236a3e857 --- /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 0000000000..25ca21ff32 --- /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 0000000000..a6b37362ea --- /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 0000000000..25ca21ff32 --- /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 0000000000..193241f754 --- /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 0000000000..6943a0c8f6 --- /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 0000000000..919963d4bd --- /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 0000000000..919963d4bd --- /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 0000000000..919963d4bd --- /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 0000000000..6f182b010d --- /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 0000000000..7f0612a6f9 --- /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 0000000000..f41cb09f27 --- /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 0000000000..f41cb09f27 --- /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 0000000000..f41cb09f27 --- /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 -- Gitee