已合并
HandlePreferredOutputDeviceUpdated日志整改 #11919
HandlePreferredOutputDeviceUpdated日志整改 #11919
已合并
chenyaowen6创建于 2025年10月16日
chenyaowen6
chenyaowen6
2025年10月16日

IssueNo:
#9754

Description:

静态扫描截图:
image.png

通用规范自检:

自检项 自检结果
成员变量命名,统一采用xxxx_ Y
换行优先使用4格缩进 Y
*和&运算符统一跟随之后的变量 NA
避免使用未明确位宽的整型,选择使用int32_t, uint32_t等类型 Y
时间常量命名加后缀_MS, _US等,按照用途命名而非值 NA

安全编码自检:

自检项 自检结果
外部传入的指针使用前是否判空 Y
外部传入数据,直接用于内存申请、数组长度、索引、循环条件前,必须进行合法性校验 NA
成员或局部变量,尤其是指针、资源描述符、bool变量必须赋初值 Y
内存分配后必须判断是否成功 Y
禁止打印内存地址、文件路径、设备名、MAC地址等敏感信息,如有需要,使用private修饰 NA
有符号、无符号整数之间运算、比较,确保不会出现溢出、反转、除0 NA
有无符号不允许混合计算,必须提前进行强转 NA
map\vector\list\set等对象存在多线程并发访问场景必须加锁 NA

进程安全自检:

自检项 自检结果
SA新增idl接口,需要根据功能控制可访问范围,通过权限、UID校验等方式校验 NA
SA新增idl接口,必须同时新增fuzz用例,并进行fuzz测试 NA
类反序列化结果用于内存申请、数组长度、循环条件前,必须进行合法性校验 NA

XTS Result:

TDD Result:

Fuzz Result:

likedislike
Pull Request已成功合入, 合并人@openharmony_ci
(感谢 chenyaowen6 的贡献)
chenyaowen6chenyaowen6
2025年10月16日 关联了issue:[Bug]: HandlePreferredOutputDeviceUpdated日志整改
萤火虫
萤火虫
2025年10月16日 评论:

扫描任务已触发,请前往CMC静态分析增强系统查看结果。如超15分钟无结果,请联系张俊文

likedislike
openharmony_ciopenharmony_ci成员
2025年10月16日 添加了label:waiting_on_author
openharmony_ci
openharmony_ci成员
2025年10月16日 评论:

感谢提交 Pull Requests!如果您提交的PR已经开发完毕,请评论 "start build" 触发门禁,更多交互操作,请访问OpenHarmony社区支持命令清单。如果需要调整订阅PR、Issue的变更状态,请访问订阅链接


Thanks for submitting the pull request. If your Pull Request has already been developed, you can leave a "start build" comment to trigger the gated system. For more commands, please visit OpenHarmony Command List. If you need to change the subscription of a Pull Request or Issue, please visit the link.

likedislike
openharmony_ciopenharmony_ci成员
2025年10月16日 添加了label:dco检查成功
萤火虫
萤火虫
2025年10月16日 评论:

扫描任务已完成,告警总数:0,待确认数量:0,已确认数量:0。

likedislike
chenyaowen6
chenyaowen6
2025年10月16日 评论:

start build

likedislike
openharmony_ci
openharmony_ci成员
2025年10月16日 评论:

首次触发
门禁构建开始,包含静态检查、代码编译和测试【part_compile测试, part_compile编译, part_compile_tdd编译, dayu200测试, Emulator编译, dayu200_xts_static编译, dayu200_xts编译, master_inner_build编译, dayu200编译, dayu200_tdd编译, dayu200_xts_acts编译】,预计在60分钟内完成,门禁结果会同步发送到注册邮箱。您可以通过如下链接跟踪门禁进展:http://dcp.openharmony.cn/workbench/cicd/detail/68f0b35264650f998b897b44/runlist

likedislike
chenyaowen6chenyaowen6
2025年10月16日 修改了pull request 的描述
openharmony_ciopenharmony_ci成员
2025年10月16日 添加了label:编译成功
openharmony_ciopenharmony_ci成员
2025年10月16日 添加了label:静态检查成功
openharmony_ciopenharmony_ci成员
2025年10月16日 添加了label:冒烟测试成功
openharmony_ciopenharmony_ci成员
2025年10月16日 通过测试
openharmony_ci
openharmony_ci成员
2025年10月16日 评论:

代码门禁通过
您可以通过如下链接查看门禁报告:http://dcp.openharmony.cn/workbench/cicd/detail/68f0b35264650f998b897b44/runlist

静态检查:

# check type result report
1 codeCheck pass >>>

编译测试:
# Device build result test result package
1 Emulator success NA >>>
2 dayu200 success success >>>
3 dayu200_xts success NA >>>
4 dayu200_tdd success NA >>>
5 part_compile success failed(IGNORE)(ecotest timeout) >>>
6 part_compile_tdd success NA >>>
7 dayu200_xts_acts success NA >>>
8 dayu200_xts_static success NA >>>
9 master_inner_build success(IGNORE) NA >>>

likedislike
openharmony_ciopenharmony_ci成员
2025年10月16日 删除了label:waiting_on_author
openharmony_ciopenharmony_ci成员
2025年10月16日 添加了label:waiting_for_review
openharmony_ci
openharmony_ci成员
2025年10月16日 评论:

您好,Committer @liuyuehua1 @magekkkk @imyuhang @hangliebe @huyue57 @boxwall @lepage @gregoire @seveno0 ,请分配检视人员检视该PR,可以通过命令"assign [@someone_id]"分配检视人员,也可以直接评论"assign"分配给自己进行检视。


Hello, Committer @liuyuehua1 @magekkkk @imyuhang @hangliebe @huyue57 @boxwall @lepage @gregoire @seveno0 . Please assign someone to review the PR. You can assign a reviewer by using the command "assign [@someone_id]", or you can comment "assign" to review the PR by yourself.

likedislike
hangliebehangliebe成员
2025年10月17日 通过审查
openharmony_ci
openharmony_ci成员
2025年10月17日 评论:

验证结果已超过12小时,之前验证结果无效,自动重新触发构建,请关注最新验证结果

likedislike
openharmony_ci
openharmony_ci成员
2025年10月17日 评论:

start build

likedislike
openharmony_ciopenharmony_ci成员
2025年10月17日 删除了label:静态检查成功
openharmony_ciopenharmony_ci成员
2025年10月17日 删除了label:编译成功
openharmony_ciopenharmony_ci成员
2025年10月17日 删除了label:冒烟测试成功
openharmony_ci
openharmony_ci成员
2025年10月17日 评论:

本地或库上代码有更新,全量重新构建,重置所有关联PR的验证状态
门禁构建开始,包含静态检查、代码编译和测试【part_compile编译, part_compile_tdd编译, master_inner_build编译, dayu200测试, dayu200_tdd编译, dayu200_xts_acts编译, dayu200_xts编译, part_compile测试, dayu200_xts_static编译, Emulator编译, dayu200编译】,预计在60分钟内完成,门禁结果会同步发送到注册邮箱。您可以通过如下链接跟踪门禁进展:http://dcp.openharmony.cn/workbench/cicd/detail/68f1ea7c64650f998bdfde41/runlist

likedislike
openharmony_ciopenharmony_ci成员
2025年10月17日 添加了label:编译失败
chenyaowen6
chenyaowen6
2025年10月17日 评论:

start build

likedislike
openharmony_ci
openharmony_ci成员
2025年10月17日 评论:

当前有构建正在进行中,请勿重复触发

likedislike
openharmony_ciopenharmony_ci成员
2025年10月17日 添加了label:静态检查成功
openharmony_ciopenharmony_ci成员
2025年10月17日 添加了label:冒烟测试失败
openharmony_ci
openharmony_ci成员
2025年10月17日 评论:

代码门禁未通过
您可以通过如下链接查看门禁报告:http://dcp.openharmony.cn/workbench/cicd/detail/68f1ea7c64650f998bdfde41/runlist

静态检查:

# check type result report
1 codeCheck pass >>>

编译测试:
# Device build result test result package
1 Emulator success NA >>>
2 dayu200 success failed(ecotest timeout) >>>
3 dayu200_xts success NA >>>
4 dayu200_tdd success NA >>>
5 part_compile failed(compile failed) (IGNORE) >>>
6 part_compile_tdd success NA >>>
7 dayu200_xts_acts success NA >>>
8 dayu200_xts_static success NA >>>
9 master_inner_build success(IGNORE) NA >>>

likedislike
openharmony_ciopenharmony_ci成员
2025年10月17日 删除了label:waiting_for_review
openharmony_ciopenharmony_ci成员
2025年10月17日 添加了label:waiting_on_author
chenyaowen6
chenyaowen6
2025年10月19日 评论:

start build

likedislike
openharmony_ciopenharmony_ci成员
2025年10月19日 删除了label:静态检查成功
openharmony_ciopenharmony_ci成员
2025年10月19日 删除了label:编译失败
openharmony_ciopenharmony_ci成员
2025年10月19日 删除了label:冒烟测试失败
openharmony_ci
openharmony_ci成员
2025年10月19日 评论:

本地或库上代码有更新,全量重新构建,重置所有关联PR的验证状态
门禁构建开始,包含静态检查、代码编译和测试【part_compile_tdd编译, dayu200_tdd编译, master_inner_build编译, part_compile编译, dayu200_xts_acts编译, dayu200_xts_static编译, dayu200测试, Emulator编译, part_compile测试, dayu200_xts编译, dayu200编译】,预计在60分钟内完成,门禁结果会同步发送到注册邮箱。您可以通过如下链接跟踪门禁进展:http://dcp.openharmony.cn/workbench/cicd/detail/68f485aa64650f998ba99696/runlist

likedislike
openharmony_ciopenharmony_ci成员
2025年10月19日 添加了label:编译成功
openharmony_ciopenharmony_ci成员
2025年10月19日 添加了label:静态检查成功
openharmony_ciopenharmony_ci成员
2025年10月19日 添加了label:冒烟测试成功
openharmony_ciopenharmony_ci成员
2025年10月19日 通过测试
openharmony_ci
openharmony_ci成员
2025年10月19日 评论:

代码门禁通过
您可以通过如下链接查看门禁报告:http://dcp.openharmony.cn/workbench/cicd/detail/68f485aa64650f998ba99696/runlist

静态检查:

# check type result report
1 codeCheck pass >>>

编译测试:
# Device build result test result package
1 Emulator success NA >>>
2 dayu200 success success >>>
3 dayu200_xts success NA >>>
4 dayu200_tdd success NA >>>
5 part_compile success failed(IGNORE)(There is an exception in task resolution, please contact ecotest tool operation and maintenance personnel to locate.) >>>
6 part_compile_tdd success NA >>>
7 dayu200_xts_acts success NA >>>
8 dayu200_xts_static success NA >>>
9 master_inner_build success(IGNORE) NA >>>

likedislike
openharmony_ciopenharmony_ci成员
2025年10月19日 删除了label:waiting_on_author
openharmony_ciopenharmony_ci成员
2025年10月19日 添加了label:waiting_for_review
openharmony_ci
openharmony_ci成员
2025年10月19日 评论:

您好,Committer @liuyuehua1 @magekkkk @imyuhang @hangliebe @huyue57 @boxwall @lepage @gregoire @seveno0 ,请分配检视人员检视该PR,可以通过命令"assign [@someone_id]"分配检视人员,也可以直接评论"assign"分配给自己进行检视。


Hello, Committer @liuyuehua1 @magekkkk @imyuhang @hangliebe @huyue57 @boxwall @lepage @gregoire @seveno0 . Please assign someone to review the PR. You can assign a reviewer by using the command "assign [@someone_id]", or you can comment "assign" to review the PR by yourself.

likedislike
openharmony_ciopenharmony_ci成员
2025年10月19日 关闭了关联的issue
openharmony_ciopenharmony_ci成员
2025年10月19日 合入了pull request,合并节点 SHA:2572b00f128e8ac75a5393feb0551c7cfe313efe
openharmony_ciopenharmony_ci成员
2025年10月19日 删除了label:waiting_for_review
openharmony_dcp
openharmony_dcp成员
2025年10月19日 评论:

提交次数已达到或超过3次,为了保证上库效率和减少构建资源浪费,请点击链接观看学习视频,谢谢!https://dcp.openharmony.cn/workbench/video/videoDisplay

likedislike