mirror of
https://gitee.com/openharmony/accessibility
synced 2024-11-27 00:51:07 +00:00
无障碍系统事件规范修改
Signed-off-by: ranzhiqiang <ranzhiqiang@huawei.com>
This commit is contained in:
parent
e2d4f4aa18
commit
2ccfb71860
@ -39,10 +39,10 @@
|
|||||||
|
|
||||||
domain: ACCESSIBILITY
|
domain: ACCESSIBILITY
|
||||||
|
|
||||||
ACCESSIBILITY_UNAVAILABLE:
|
UNAVAILABLE:
|
||||||
__BASE: {type: FAULT, level: CRITICAL, desc: Accessibility function is unavailable}
|
__BASE: {type: FAULT, level: CRITICAL, desc: Accessibility function is unavailable}
|
||||||
MSG: {type: STRING, desc: accessibility event message}
|
MSG: {type: STRING, desc: accessibility event message}
|
||||||
|
|
||||||
ACCESSIBILITY_STARTING_FUNCTION:
|
STARTING_FUNCTION:
|
||||||
__BASE: {type: BEHAVIOR, level: CRITICAL, desc: Starting accessibility function}
|
__BASE: {type: BEHAVIOR, level: CRITICAL, desc: Starting accessibility function}
|
||||||
MSG: {type: STRING, desc: accessibility event message}
|
MSG: {type: STRING, desc: accessibility event message}
|
@ -249,7 +249,7 @@ void Utils::RecordUnavailableEvent(A11yUnavailableEvent event, A11yError errCode
|
|||||||
HILOG_DEBUG("accessibility function is unavailable: %{public}s", info.c_str());
|
HILOG_DEBUG("accessibility function is unavailable: %{public}s", info.c_str());
|
||||||
int32_t ret = HiSysEventWrite(
|
int32_t ret = HiSysEventWrite(
|
||||||
OHOS::HiviewDFX::HiSysEvent::Domain::ACCESSIBILITY,
|
OHOS::HiviewDFX::HiSysEvent::Domain::ACCESSIBILITY,
|
||||||
"ACCESSIBILITY_UNAVAILABLE",
|
"UNAVAILABLE",
|
||||||
OHOS::HiviewDFX::HiSysEvent::EventType::FAULT,
|
OHOS::HiviewDFX::HiSysEvent::EventType::FAULT,
|
||||||
"MSG", info);
|
"MSG", info);
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
@ -284,7 +284,7 @@ void Utils::RecordStartingA11yEvent(uint32_t flag)
|
|||||||
HILOG_DEBUG("starting accessibility: %{public}s", oss.str().c_str());
|
HILOG_DEBUG("starting accessibility: %{public}s", oss.str().c_str());
|
||||||
int32_t ret = HiSysEventWrite(
|
int32_t ret = HiSysEventWrite(
|
||||||
OHOS::HiviewDFX::HiSysEvent::Domain::ACCESSIBILITY,
|
OHOS::HiviewDFX::HiSysEvent::Domain::ACCESSIBILITY,
|
||||||
"ACCESSIBILITY_STARTING_FUNCTION",
|
"STARTING_FUNCTION",
|
||||||
OHOS::HiviewDFX::HiSysEvent::EventType::BEHAVIOR,
|
OHOS::HiviewDFX::HiSysEvent::EventType::BEHAVIOR,
|
||||||
"MSG", oss.str());
|
"MSG", oss.str());
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
@ -299,7 +299,7 @@ void Utils::RecordStartingA11yEvent(const std::string &name)
|
|||||||
HILOG_DEBUG("starting accessibility: %{public}s", oss.str().c_str());
|
HILOG_DEBUG("starting accessibility: %{public}s", oss.str().c_str());
|
||||||
int32_t ret = HiSysEventWrite(
|
int32_t ret = HiSysEventWrite(
|
||||||
OHOS::HiviewDFX::HiSysEvent::Domain::ACCESSIBILITY,
|
OHOS::HiviewDFX::HiSysEvent::Domain::ACCESSIBILITY,
|
||||||
"ACCESSIBILITY_STARTING_FUNCTION",
|
"STARTING_FUNCTION",
|
||||||
OHOS::HiviewDFX::HiSysEvent::EventType::BEHAVIOR,
|
OHOS::HiviewDFX::HiSysEvent::EventType::BEHAVIOR,
|
||||||
"MSG", oss.str());
|
"MSG", oss.str());
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user