| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
Add aggregation notification feature with classification and switch support Signed-off-by: stepend98 <yangjun273@huawei.com> Co-Authored-By: Agent | 2 个月前 | |
fix(ans): fix cross-SO singleton issue by adding AnsNotification::GetInstance() DelayedSingleton<AnsNotification>::GetInstance() returns different singleton objects in different shared libraries because the template's static members (instance_, mutex_) have vague linkage (COMDAT) and are hidden per-SO by -fvisibility=hidden + version scripts. Solution: 1. Add AnsNotification::GetInstance() using function-local static (C++11 thread-safe, defined out-of-line in ans_notification.cpp within libans_innerkits, symbol exported via *Ans* in .map) 2. Replace ALL callers (NAPI/ANI/Tools/Tests/CJ FFI) from DelayedSingleton<AnsNotification>::GetInstance() to AnsNotification::GetInstance() 3. Fix singleton.h include hygiene: - Add #include singleton.h to 34 files that use Singleton<>, DelayedSingleton<>, DECLARE_SINGLETON etc. but relied on transitive includes - Add #include nocopyable.h to 7 files that use DISALLOW_COPY_AND_MOVE but relied on transitive includes - Remove #include singleton.h from 70 files that no longer use any singleton.h symbols after the DelayedSingleton replacement The function-local static in ans_notification.cpp lives in libans_innerkits.so's data segment. AnsNotification::GetInstance() is a non-inline member function compiled only in libans_innerkits.so and exported via *Ans* pattern in libans_innerkits.map. All SOs call this exported function through dynamic linking, sharing the single instance. Co-Authored-By: Agent Signed-off-by: CheerfulRicky <yuegang7@h-partners.com> Change-Id: I1089cfa5bb010daf37c68333a1e71c55fc1f16f3 | 6 天前 | |
fix master diff v1 Signed-off-by: wangdi <wangdi154@huawei.com> | 5 个月前 | |
!4948 merge master into master 添加角标日志+修改GetShowBadgeEnabledForBundles返回值 Created-by: zhaobaoxin Commit-by: zhaobaoxin Merged-by: openharmony_ci Description: ### 一、内容说明(相关的Issue) ### 二、建议测试周期和提测地址 建议测试完成时间:xxxx.xx.xx 投产上线时间:xxxx.xx.xx 提测地址:CI环境/压测环境 测试账号: ### 三、变更内容 * 3.1 关联PR列表 * 3.2 数据库和部署说明 1. 常规更新 2. 重启unicorn 3. 重启sidekiq 4. 迁移任务:是否有迁移任务,没有写 "无" 5. rake脚本: bundle exec xxx RAILS_ENV = production;没有写 "无" * 3.4 其他技术优化内容(做了什么,变更了什么) - 重构了 xxxx 代码 - xxxx 算法优化 * 3.5 废弃通知(什么字段、方法弃用?) * 3.6 后向不兼容变更(是否有无法向后兼容的变更?) ### 四、研发自测点(自测哪些?冒烟用例全部自测?) 自测测试结论: ### 五、测试关注点(需要提醒QA重点关注的、可能会忽略的地方) 检查点: | 需求名称 | 是否影响xx公共模块 | 是否需要xx功能 | 需求升级是否依赖其他子产品 | |------|------------|----------|---------------| | xxx | 否 | 需要 | 不需要 | | | | | | 接口测试: 性能测试: 并发测试: 其他: See merge request: openharmony/notification_distributed_notification_service!4948 | 4 天前 | |
Ans异步化-Badge-GetNtf Signed-off-by: yangjun <yangjun273@huawei.com> | 8 个月前 | |
AnsDialogCallback IDL化整改 Signed-off-by: zhengzhuolan <zhengzhuolan@huawei-partners.com> | 1 年前 | |
发布流程增加hitraceid Signed-off-by: wufarong <wufarong@huawei.com> Change-Id: I91b02e258e0c56516cc8f68f8426d085b2dfc880 | 1 年前 | |
fix(ans): fix warning check defects from issue #4250 Fix various static analysis findings including memory leaks, null pointer dereferences, use-after-free risks, integer overflow, enum range validation, and resource management issues. A. NAPI async work return value unchecked (30+ sites): check napi_create_async_work/napi_queue_async_work_with_qos return values, free asynccallbackinfo on failure; fix subscribe.cpp UB, badge query timeout leak, ETS variant GetEnv leaks C. Type safety: add enum range validation for IPC deserialization (SWITCH_STATE, LiveViewStatus), JSON (clone switch info), JS input (InputEditType, RingtoneType, BadgeStyle, SlotType); fix uint8_t truncation in multiline content marshalling D. Integer overflow: replace atoi/atoll with strtol/strtoll+ERANGE; fix FindLastString logic error (pos != npos always true); fix VectorToString int64_t->int truncation; fix GetRemainPartitionSize returning -1 as uint64_t E. UAF/memory: unregister distributed callbacks in destructor; add ffrt::wait in StopCacheCleanupTimer; unsubscribe CommonEvent in DialogManager destructor; remove DeathRecipient in SubscriberImpl destructor; wait for FFRT queue in LocalLiveViewSubscriberManager F. new(nothrow) unchecked: add null checks for recipient_/deathRecipient_ allocation in 5 manager classes G. Other: implement ClearButtonIconsResource; init HaMetaMessage sceneId_/branchId_; add dlsym for 5 missing function pointers; check OH_DecodingOptions_Create return; fix GetAllDoNotDisturbProfiles substring match; add array length limits; check CreateTimer return; fix pushRecipient_ overwrite logic; add try-catch for JSON parse Change-Id: I4204fe52d9fbbd8d89cf188892ab243847649f59 Change-Id: I5588bd9c663d54a17c429143721c124259401e8d Change-Id: If0705f229837ed1edf0a05712481fb9cfc1f7cda Change-Id: Id494add5740c95d908016934e69ae704c4ad6f70 Change-Id: I73990ec7e4ff7374a71e3da4692e5bc53bfdbc2c Change-Id: I57840e82aa808259fc43b9ae8b942f9b999f1271 Change-Id: I715fc92bede97bde739aed63e384359fd39ad3d7 Change-Id: Ib7dce869072b3b4b812fa46319dca3ce946b7c5a Change-Id: If7359da9013fb008cee436d4db3fd6aa3508421f Change-Id: I984f57d01cc39b9682f8ce08c88b146e50d132d1 Change-Id: I5b307d34ae22ae8a3919eacb1f3d4efe6c7ef75b Change-Id: I922a6fdfadb7344c4649a5e54f8ee439f87069cd Change-Id: I90d91e060c92d6fb0ff056801a58dc056d51b4bc Change-Id: I21e6e587511d98b2fff3306089b42d997333dfcf Change-Id: Ie9afd57cfeb66e5a68fa76a35862e84b47177fbf Change-Id: I29bc907d5653ee322b8a46c9c4523388f8492d47 Change-Id: Ie82eb2cf6541ef43bcd9254cf342e980e4ab19b7 Change-Id: I480ebfe965c7dcb13a2ca30a3b7fb73e35606309 Change-Id: I4e00bfd6020f9f6e50fcab4c7b2d11e824371417 Change-Id: I384d6621b6915c45ad4dc6013c52406bba1b2491 Change-Id: Ifb01195d74f70604e5dd1bad9e291e5ce4d96fcc Change-Id: I99764684c4c029a114734de1161d0591d59e15c1 Change-Id: I2637febf7282779082f5135671328dfaa75f441a Change-Id: I8db817f8e84da51e6c1bf69dfc67c90b1b516f41 Co-Authored-By: Agent Signed-off-by: CheerfulRicky <yuegang7@h-partners.com> Change-Id: Idaeb6de6233925455d7da38dc41299229244ba32 | 14 天前 | |
native解析内存,传入路径非法时,systemui要求生成nullptr的图片 Signed-off-by: lx180327070811 <guxiang11@huawei.com> | 1 个月前 | |
tdd执行异常失败,返回错误码1200004 Signed-off-by: lx180327070811 <guxiang11@huawei.com> | 6 天前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 2 个月前 | ||
| 6 天前 | ||
| 5 个月前 | ||
| 4 天前 | ||
| 8 个月前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 14 天前 | ||
| 1 个月前 | ||
| 6 天前 |