projects
/
mirrors
/
FD230.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58c881c
)
系统:增加消息弹窗的功耗记录
1535/2
1535/head
author
Caisking
<3449750381@qq.com>
Thu, 19 Dec 2024 08:38:00 +0000
(16:38 +0800)
committer
Caisking
<3449750381@qq.com>
Thu, 19 Dec 2024 08:38:00 +0000
(16:38 +0800)
code/sdk/application/wearable/service/msg_center/src/msg_center_customer.cpp
patch
|
blob
|
history
code/sdk/drivers/peripheral/utils/custom_save_runtime.h
patch
|
blob
|
history
tools/log_parser/runtimeanalysis.py
patch
|
blob
|
history
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
1830424
..
0ed4c27
100644
(file)
--- 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
0325c79
..
37a3712
100644
(file)
--- 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
0cfd364
..
8478d42
100644
(file)
--- a/
tools/log_parser/runtimeanalysis.py
+++ b/
tools/log_parser/runtimeanalysis.py
@@
-50,6
+50,7
@@
str_bin_list = [
['0504',"被动检测心率结束"],
\r
['0701',"主动检测血氧"],
\r
['0702',"主动检测血氧结束"],
\r
+ ['1201',"消息弹窗显示"]
\r
\r
]
\r
\r