From 3388b5f98359a796469023cfdef7d2db5df540a9 Mon Sep 17 00:00:00 2001 From: Caisking <3449750381@qq.com> Date: Thu, 19 Dec 2024 16:38:00 +0800 Subject: [PATCH] =?utf8?q?=E7=B3=BB=E7=BB=9F=EF=BC=9A=E5=A2=9E=E5=8A=A0?= =?utf8?q?=E6=B6=88=E6=81=AF=E5=BC=B9=E7=AA=97=E7=9A=84=E5=8A=9F=E8=80=97?= =?utf8?q?=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../wearable/service/msg_center/src/msg_center_customer.cpp | 2 ++ code/sdk/drivers/peripheral/utils/custom_save_runtime.h | 5 +++++ tools/log_parser/runtimeanalysis.py | 1 + 3 files changed, 8 insertions(+) diff --git a/code/sdk/application/wearable/service/msg_center/src/msg_center_customer.cpp b/code/sdk/application/wearable/service/msg_center/src/msg_center_customer.cpp index 18304240b..0ed4c27e8 100644 --- a/code/sdk/application/wearable/service/msg_center/src/msg_center_customer.cpp +++ b/code/sdk/application/wearable/service/msg_center/src/msg_center_customer.cpp @@ -1015,6 +1015,8 @@ void MsgCenterNotifyMessageProc(const Topic topic, Request* req) // nullptr, 0); OHOS::NotificationManager::GetInstance()->SetNotifyPriority(PRIORITY_THREE); OHOS::NotificationManager::GetInstance()->ShowNotify(OHOS::CreateMessageView, TOPIC_EVENT_MESSAGENOTE, true); + //进行消息显示记录 + uapi_save_runtime_log(RUNTIME_LOG_MSG_SHOW); } } diff --git a/code/sdk/drivers/peripheral/utils/custom_save_runtime.h b/code/sdk/drivers/peripheral/utils/custom_save_runtime.h index 0325c7942..37a371232 100644 --- a/code/sdk/drivers/peripheral/utils/custom_save_runtime.h +++ b/code/sdk/drivers/peripheral/utils/custom_save_runtime.h @@ -182,6 +182,11 @@ typedef enum { RUNTIME_LOG_RECORD_START_AI, // 0x1103 AI录音开始 RUNTIME_LOG_RECORD_STOP_AI, // 0x1104 AI录音停止 + //消息 + RUNTIME_LOG_MSG_MIN = 0x1200, + //消息显示 + RUNTIME_LOG_MSG_SHOW, + } runtime_log_cmd_Id; errcode_t uapi_save_runtime_log(uint16_t cmd); diff --git a/tools/log_parser/runtimeanalysis.py b/tools/log_parser/runtimeanalysis.py index 0cfd364b8..8478d425e 100644 --- a/tools/log_parser/runtimeanalysis.py +++ b/tools/log_parser/runtimeanalysis.py @@ -50,6 +50,7 @@ str_bin_list = [ ['0504',"被动检测心率结束"], ['0701',"主动检测血氧"], ['0702',"主动检测血氧结束"], + ['1201',"消息弹窗显示"] ] -- 2.17.1