修复yaml编译告警,desc参数不可以和参数名相同

Signed-off-by: wangyang2022 <wangyang412@huawei.com>
Change-Id: Ic1e3f5c81226ace067eebbc1ee9a1ad51febf174
This commit is contained in:
wangyang2022 2022-12-22 16:41:12 +08:00
parent c0aff31326
commit a0d9c3fde7
4 changed files with 40 additions and 40 deletions

View File

@ -21,7 +21,7 @@ START_REMOTE_ABILITY:
TARGET_BUNDLE: {type: STRING, desc: target bundle name}
TARGET_ABILITY: {type: STRING, desc: target ability name}
CALLING_APP_UID: {type: INT32, desc: calling app uid}
RESULT: {type: INT32, desc: result}
RESULT: {type: INT32, desc: result code}
CONNECT_REMOTE_ABILITY:
__BASE: {type: BEHAVIOR, level: MINOR, tag: connect, desc: connect remote ability}
@ -31,7 +31,7 @@ CONNECT_REMOTE_ABILITY:
TARGET_BUNDLE: {type: STRING, desc: target bundle name}
TARGET_ABILITY: {type: STRING, desc: target ability name}
CALLING_APP_UID: {type: INT32, desc: calling app uid}
RESULT: {type: INT32, desc: result}
RESULT: {type: INT32, desc: result code}
DISCONNECT_REMOTE_ABILITY:
__BASE: {type: BEHAVIOR, level: MINOR, tag: connect, desc: disconnect remote ability}
@ -41,7 +41,7 @@ DISCONNECT_REMOTE_ABILITY:
TARGET_BUNDLE: {type: STRING, desc: target bundle name}
TARGET_ABILITY: {type: STRING, desc: target ability name}
CALLING_APP_UID: {type: INT32, desc: calling app uid}
RESULT: {type: INT32, desc: result}
RESULT: {type: INT32, desc: result code}
START_REMOTE_ABILITY_BYCALL:
__BASE: {type: BEHAVIOR, level: MINOR, tag: start, desc: start remote ability by call}
@ -51,7 +51,7 @@ START_REMOTE_ABILITY_BYCALL:
TARGET_BUNDLE: {type: STRING, desc: target bundle name}
TARGET_ABILITY: {type: STRING, desc: target ability name}
CALLING_APP_UID: {type: INT32, desc: calling app uid}
RESULT: {type: INT32, desc: result}
RESULT: {type: INT32, desc: result code}
RELEASE_REMOTE_ABILITY:
__BASE: {type: BEHAVIOR, level: MINOR, tag: start, desc: release remote ability}
@ -61,7 +61,7 @@ RELEASE_REMOTE_ABILITY:
TARGET_BUNDLE: {type: STRING, desc: target bundle name}
TARGET_ABILITY: {type: STRING, desc: target ability name}
CALLING_APP_UID: {type: INT32, desc: calling app uid}
RESULT: {type: INT32, desc: result}
RESULT: {type: INT32, desc: result code}
START_CONTINUATION:
__BASE: {type: BEHAVIOR, level: MINOR, tag: continue, desc: start continuation}
@ -71,7 +71,7 @@ START_CONTINUATION:
TARGET_BUNDLE: {type: STRING, desc: target bundle name}
TARGET_ABILITY: {type: STRING, desc: target ability name}
CALLING_APP_UID: {type: INT32, desc: calling app uid}
RESULT: {type: INT32, desc: result}
RESULT: {type: INT32, desc: result code}
START_ABILITY_FAILED:

View File

@ -22,31 +22,31 @@
namespace OHOS {
namespace DistributedSchedule {
namespace BehaviorEvent {
constexpr const char* START_REMOTE_ABILITY = "START_REMOTE_ABILITY";
constexpr const char* CONNECT_REMOTE_ABILITY = "CONNECT_REMOTE_ABILITY";
constexpr const char* DISCONNECT_REMOTE_ABILITY = "DISCONNECT_REMOTE_ABILITY";
constexpr const char* START_REMOTE_ABILITY_BYCALL = "START_REMOTE_ABILITY_BYCALL";
constexpr const char* RELEASE_REMOTE_ABILITY = "RELEASE_REMOTE_ABILITY";
constexpr const char* START_CONTINUATION = "START_CONTINUATION";
constexpr const char* START_REMOTE_ABILITY = "START_REMOTE_ABILITY";
constexpr const char* CONNECT_REMOTE_ABILITY = "CONNECT_REMOTE_ABILITY";
constexpr const char* DISCONNECT_REMOTE_ABILITY = "DISCONNECT_REMOTE_ABILITY";
constexpr const char* START_REMOTE_ABILITY_BYCALL = "START_REMOTE_ABILITY_BYCALL";
constexpr const char* RELEASE_REMOTE_ABILITY = "RELEASE_REMOTE_ABILITY";
constexpr const char* START_CONTINUATION = "START_CONTINUATION";
}
namespace FaultEvent {
constexpr const char* START_REMOTE_ABILITY = "START_ABILITY_FAILED";
constexpr const char* CONNECT_REMOTE_ABILITY = "CONNECT_ABILITY_FAILED";
constexpr const char* DISCONNECT_REMOTE_ABILITY = "DISCONNECT_ABILITY_FAILED";
constexpr const char* START_REMOTE_ABILITY_BYCALL = "START_ABILITY_BYCALL_FAILED";
constexpr const char* RELEASE_REMOTE_ABILITY = "RELEASE_ABILITY_FAILED";
constexpr const char* START_CONTINUATION = "START_CONTINUATION_FAILED";
constexpr const char* START_REMOTE_ABILITY = "START_ABILITY_FAILED";
constexpr const char* CONNECT_REMOTE_ABILITY = "CONNECT_ABILITY_FAILED";
constexpr const char* DISCONNECT_REMOTE_ABILITY = "DISCONNECT_ABILITY_FAILED";
constexpr const char* START_REMOTE_ABILITY_BYCALL = "START_ABILITY_BYCALL_FAILED";
constexpr const char* RELEASE_REMOTE_ABILITY = "RELEASE_ABILITY_FAILED";
constexpr const char* START_CONTINUATION = "START_CONTINUATION_FAILED";
}
namespace EventErrorType {
constexpr const char* GET_BUNDLE_MGR_FAILED = "GET_BUNDLE_MGR_FAILED";
constexpr const char* GET_ABILITY_MGR_FAILED = "GET_ABILITY_MGR_FAILED";
constexpr const char* GET_BUNDLE_MGR_FAILED = "GET_BUNDLE_MGR_FAILED";
constexpr const char* GET_ABILITY_MGR_FAILED = "GET_ABILITY_MGR_FAILED";
}
namespace EventCallingType {
constexpr const char* LOCAL = "LOCAL";
constexpr const char* REMOTE = "REMOTE";
constexpr const char* LOCAL = "LOCAL";
constexpr const char* REMOTE = "REMOTE";
}
struct BehaviorEventParam {

View File

@ -21,17 +21,17 @@
namespace OHOS {
namespace DistributedSchedule {
namespace TraceTag {
constexpr uint64_t DSCHED = HITRACE_TAG_DISTRIBUTED_SCHEDULE;
constexpr uint64_t DSCHED = HITRACE_TAG_DISTRIBUTED_SCHEDULE;
}
namespace TraceValue {
constexpr const char* START_REMOTE_ABILITY = "START_REMOTE_ABILITY";
constexpr const char* CONNECT_REMOTE_ABILITY = "CONNECT_REMOTE_ABILITY";
constexpr const char* DISCONNECT_REMOTE_ABILITY = "DISCONNECT_REMOTE_ABILITY";
constexpr const char* START_REMOTE_ABILITY_BYCALL = "START_REMOTE_ABILITY_BYCALL";
constexpr const char* RELEASE_REMOTE_ABILITY = "RELEASE_REMOTE_ABILITY";
constexpr const char* START_CONTINUATION = "START_CONTINUATION";
constexpr const char* REMOTE_PROCEDURE_CALL = "REMOTE_PROCEDURE_CALL";
constexpr const char* START_REMOTE_ABILITY = "START_REMOTE_ABILITY";
constexpr const char* CONNECT_REMOTE_ABILITY = "CONNECT_REMOTE_ABILITY";
constexpr const char* DISCONNECT_REMOTE_ABILITY = "DISCONNECT_REMOTE_ABILITY";
constexpr const char* START_REMOTE_ABILITY_BYCALL = "START_REMOTE_ABILITY_BYCALL";
constexpr const char* RELEASE_REMOTE_ABILITY = "RELEASE_REMOTE_ABILITY";
constexpr const char* START_CONTINUATION = "START_CONTINUATION";
constexpr const char* REMOTE_PROCEDURE_CALL = "REMOTE_PROCEDURE_CALL";
}
} // namespace DistributedSchedule
} // namespace OHOS

View File

@ -26,18 +26,18 @@ namespace OHOS {
namespace DistributedSchedule {
using namespace OHOS::HiviewDFX;
namespace {
const std::string TAG = "DmsHiSysEventReport";
constexpr const char* DOMAIN_NAME = HiSysEvent::Domain::DISTRIBUTED_SCHEDULE;
const std::string TAG = "DmsHiSysEventReport";
constexpr const char* DOMAIN_NAME = HiSysEvent::Domain::DISTRIBUTED_SCHEDULE;
constexpr const char* KEY_CALLING_APP_UID = "CALLING_APP_UID";
constexpr const char* KEY_CALLING_PID = "CALLING_PID";
constexpr const char* KEY_CALLING_TYPE = "CALLING_TYPE";
constexpr const char* KEY_CALLING_UID = "CALLING_UID";
constexpr const char* KEY_ERROR_TYPE = "ERROR_TYPE";
constexpr const char* KEY_CALLING_APP_UID = "CALLING_APP_UID";
constexpr const char* KEY_CALLING_PID = "CALLING_PID";
constexpr const char* KEY_CALLING_TYPE = "CALLING_TYPE";
constexpr const char* KEY_CALLING_UID = "CALLING_UID";
constexpr const char* KEY_ERROR_TYPE = "ERROR_TYPE";
constexpr const char* KEY_RESULT = "RESULT";
constexpr const char* KEY_TARGET_ABILITY = "TARGET_ABILITY";
constexpr const char* KEY_TARGET_BUNDLE = "TARGET_BUNDLE";
constexpr const char* KEY_RESULT = "RESULT";
constexpr const char* KEY_TARGET_ABILITY = "TARGET_ABILITY";
constexpr const char* KEY_TARGET_BUNDLE = "TARGET_BUNDLE";
}
int DmsHiSysEventReport::ReportBehaviorEvent(const BehaviorEventParam& param)