Xxdongs2009isShared按照number类型解析 Co-Authored-By:Agent
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
test(ans): optimize unit test sleep efficiency with SelfClean mechanism Replace fixed-duration sleep calls in unit/module tests with direct SelfClean(false) / WaitForFfrtQueue() calls, eliminating ~137 sleep calls across 9 test files. This reduces test execution time and improves stability by synchronizing on actual task completion instead of fixed timeouts. Key changes: - Replace sleep with direct SelfClean(false) calls in 9 test files - Replace sleep with direct WaitForFfrtQueue() in subscriber manager test - Clean TearDown residual sleep, add StopCacheCleanupTimer() - Restore 1000ms sleep for 4 rate-limited publish test cases - No new files, no BUILD.gn changes, no macro abstraction Test results: 534/534 (100%) passed on ARM device with CFI disabled. Change-Id: I2b68edbdca43f183f55f681e0701fb543b668240 Change-Id: I3f3ddc0868105a2c6ebdd3232fae9188429114fd Change-Id: I08f7b9b8b45a2d90bd0580f0e92059b03d0aa514 Co-Authored-By: Agent Signed-off-by: CheerfulRicky <yuegang7@h-partners.com> Change-Id: I44098e741e681234033e3ae9cdf8427205e86bfa | 26 天前 | |
ans tdd覆盖率添加 Signed-off-by: baozeyu <baozeyu1@huawei.com> Change-Id: Ib52984c7830a2d5eb48e7fd1a6cba3d8e76e199a | 2 年前 | |
地理围栏开关克隆 Signed-off-by: h00519937 <huxiaobo6@huawei.com> | 8 个月前 | |
修改静态检查及格式错误问题 Signed-off-by: liqiang <liqiang121@huawei.com> Change-Id: I13408b6836ed3ec399e93b9b73939d6d3f4b10f3 | 3 年前 | |
优先通知(强基) Signed-off-by: guxiang <guxiang11@huawei.com> | 8 个月前 | |
[Feature]Support listener of silent reminder switch Signed-off-by: yangjun <yangjun273@huawei.com> | 6 个月前 | |
tdd cover Signed-off-by: zhuhan <zhuhan10@huawei.com> Change-Id: If3194c466eeef06c7d0b4d3f09a3a0ff9eb339cd | 3 年前 | |
tdd cov add Signed-off-by: baozeyu1@huawei.com <baozeyu1@huawei.com> | 1 年前 | |
支持全场景协同应用级开关 Signed-off-by: wangsen1994 <wangsen51@huawei.com> | 5 个月前 | |
蓝区tdd执行失败整改 Co-Authored-By: guxiang Signed-off-by: g00586423 <guxiang11@huawei.com> | 2 个月前 | |
crash修复及TDD补充 Signed-off-by: xdongs <xdongs@163.com> | 1 年前 | |
tdd cov add Signed-off-by: baozeyu1@huawei.com <baozeyu1@huawei.com> | 1 年前 | |
fix: harden JSON parsing with type validation to prevent crashes from invalid data Co-Authored-By: Agent Signed-off-by: stepend98 <yangjun273@huawei.com> | 1 个月前 | |
ans tdd覆盖率添加 Signed-off-by: baozeyu <baozeyu1@huawei.com> Change-Id: Ib52984c7830a2d5eb48e7fd1a6cba3d8e76e199a | 2 年前 | |
Add aggregation notification feature with classification and switch support Signed-off-by: stepend98 <yangjun273@huawei.com> Co-Authored-By: Agent | 2 个月前 | |
Add aggregation notification feature with classification and switch support Signed-off-by: stepend98 <yangjun273@huawei.com> Co-Authored-By: Agent | 2 个月前 | |
fix: harden JSON parsing with type validation to prevent crashes from invalid data Co-Authored-By: Agent Signed-off-by: stepend98 <yangjun273@huawei.com> | 1 个月前 | |
NotificationBasicContent add structuredText Signed-off-by: wangdi <wangdi154@huawei.com> | 11 个月前 | |
fix codecheck Signed-off-by: fangJinliang1 <fangjinliang1@huawei.com> Change-Id: Ib96d448d6dc568a4050fbd4ff5e6baa4694e972a Signed-off-by: fangJinliang1 <fangjinliang1@huawei.com> | 3 年前 | |
fix: harden JSON parsing with type validation to prevent crashes from invalid data Co-Authored-By: Agent Signed-off-by: stepend98 <yangjun273@huawei.com> | 1 个月前 | |
修改静态检查及格式错误问题 Signed-off-by: liqiang <liqiang121@huawei.com> Change-Id: I13408b6836ed3ec399e93b9b73939d6d3f4b10f3 | 3 年前 | |
tdd cov add Signed-off-by: baozeyu1@huawei.com <baozeyu1@huawei.com> | 1 年前 | |
fix subscribeNotification bug Co-Authored-By: Agent Signed-off-by: bettykico <fangxiaofen1@h-partners.com> | 21 天前 | |
测试用例补充 Signed-off-by: he-guokai <heguokai6@huawei-partners.com> | 8 个月前 | |
add tdd Signed-off-by: he-guokai <heguokai6@huawei-partners.com> | 5 个月前 | |
refactor(errors): implement unified error code layering architecture Signed-off-by: CheerfulRicky <yuegang7@h-partners.com> Co-Authored-by: Agent Change-Id: I136b4e503936f86c646fb936563a6eca6e7bc7d0 | 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 | 20 天前 | |
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 | 20 天前 | |
fix: harden JSON parsing with type validation to prevent crashes from invalid data Co-Authored-By: Agent Signed-off-by: stepend98 <yangjun273@huawei.com> | 1 个月前 | |
fix: harden JSON parsing with type validation to prevent crashes from invalid data Co-Authored-By: Agent Signed-off-by: stepend98 <yangjun273@huawei.com> | 1 个月前 | |
tdd cover Signed-off-by: zhuhan <zhuhan10@huawei.com> Change-Id: If3194c466eeef06c7d0b4d3f09a3a0ff9eb339cd | 3 年前 | |
fix: harden JSON parsing with type validation to prevent crashes from invalid data Co-Authored-By: Agent Signed-off-by: stepend98 <yangjun273@huawei.com> | 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 | 20 天前 | |
All-scenario PC/Pad collaboration ans_tdd Signed-off-by: guxiang <guxiang11@huawei.com> | 1 年前 | |
[feature]:add getNotificationParameters interface Agent's Completeness: about 30%-40% Signed-off-by: yangjun <yangjun273@huawei.com> Co-Authored-By: Agent | 5 个月前 | |
NotificationBasicContent add structuredText Signed-off-by: wangdi <wangdi154@huawei.com> | 11 个月前 | |
新增tdd用例 Signed-off-by: x00524330 <xujianhua9@huawei.com> Change-Id: I201d21094660d81b585757c236b017b3c1827b9b | 2 年前 | |
add tdd 1113 Signed-off-by: wangdi <wangdi154@huawei.com> | 9 个月前 | |
isShared按照number类型解析 Co-Authored-By:Agent Signed-off-by: xdongs2009 <xdongs@163.com> | 7 天前 | |
rollback tdd test Signed-off-by: yuechunyang <yuechunyang1@h-partners.com> | 6 个月前 | |
tdd cov add Signed-off-by: baozeyu1@huawei.com <baozeyu1@huawei.com> | 1 年前 | |
新增tdd Signed-off-by: x00524330 <xujianhua9@huawei.com> Change-Id: I2e30a855cba561d1d731a6409c8628c5e4c7fe74 | 2 年前 | |
ans_test失败用例与Crash Signed-off-by: wufarong <wufarong@huawei.com> Change-Id: Ibe6e151606db39138661caafd56d3036c5091df3 | 1 年前 | |
updata all Signed-off-by: he-guokai <heguokai6@huawei-partners.com> | 4 个月前 | |
fix subscribeNotification bug Co-Authored-By: Agent Signed-off-by: bettykico <fangxiaofen1@h-partners.com> | 21 天前 | |
Add aggregation notification feature with classification and switch support Signed-off-by: stepend98 <yangjun273@huawei.com> Co-Authored-By: Agent | 2 个月前 | |
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 | 20 天前 | |
tdd cover Signed-off-by: zhuhan <zhuhan10@huawei.com> Change-Id: If3194c466eeef06c7d0b4d3f09a3a0ff9eb339cd | 3 年前 | |
Add aggregation notification feature with classification and switch support Signed-off-by: stepend98 <yangjun273@huawei.com> Co-Authored-By: Agent | 2 个月前 | |
新增tdd Signed-off-by: x00524330 <xujianhua9@huawei.com> Change-Id: I2e30a855cba561d1d731a6409c8628c5e4c7fe74 | 2 年前 | |
refactor(ans): replace WantParams/WantAgent serialization with envelope format Switch WantParams serialization to WantParamWrapperJson::Serialize and WantAgent serialization to ToStringWithEnvelope for safer JSON escaping that correctly handles quotes, backslashes, and nested delimiters. Deserialization uses envelope detection (HasEnvelope/HasWantParamsEnvelope) with legacy fallback to ParseWantParams/FromString so that historical data continues to round-trip unchanged. Add NotificationWantParamsHelper in frameworks/core/common to centralize the envelope-detection logic across all call sites. Add 16 unit tests covering all branches (>90% branch coverage). Scope notes: - Distributed serialization stays legacy (cross-device version compat); only its deserialization is upgraded to envelope-aware. - Analytics/event reporting unchanged (consumers not yet envelope-aware). - Remove wantParameters debug serialization from Dump functions. - Fix null pointer dereference on template data access. - Fix variable name typo: wangAgent -> wantAgent. Change-Id: Ifaa17126e2ba864c4dd968bd15314c2d8dec53eb Change-Id: Ic3121ed8242b5a1e58f659195b4103ea9b48c6a0 Change-Id: I4eb9a2b0fe87977f7ffe36b0cb60e6a2cf240450 Change-Id: I296fd76e97a888b49d053b243307e627a8bec0fa Change-Id: Ie5928906fa46b1d45912e9a02fd2f9d2f89dbda2 Co-Authored-By: Agent Signed-off-by: CheerfulRicky <yuegang7@h-partners.com> Change-Id: Ib5bc52d7a7fdcdda8bd894483f8e7b8506b6e18f | 1 个月前 | |
fix: harden JSON parsing with type validation to prevent crashes from invalid data Co-Authored-By: Agent Signed-off-by: stepend98 <yangjun273@huawei.com> | 1 个月前 | |
Add VoiceContent support for onConsumed callback - Add NotificationVoiceContent class with textContent field - Add SetVoiceContent/GetVoiceContent methods to Notification class - Add SUBSCRIBE_ON_CONSUMED_VOICE subscription flag - Implement NAPI binding for VoiceContent in JS layer - Implement ANI binding for VoiceContent in TS layer - Add comprehensive TDD tests with 90%+ branch coverage - Support Parcel serialization/deserialization for VoiceContent Co-Authored-By: Agent Signed-off-by: wangsen1994 <wangsen51@huawei.com> Change-Id: If7837710c9d9109a7ee4e9ddacf8cdc5ecef761d | 3 个月前 | |
test(ans): strengthen WantAgent serialize/parse test assertions SerializeWantAgent_00002 now verifies the output uses the envelope format (HasWantParamsEnvelope) and contains the expected bundle name, instead of only asserting non-empty. ParseWantAgent_00002 and ParseWantAgent_00003 now verify the round-trip preserves the bundle name via GetBundleName, instead of only asserting non-null. Add errors.h include for ERR_OK used in the new assertions. Co-Authored-By: Agent Signed-off-by: CheerfulRicky <yuegang7@h-partners.com> Change-Id: I108565c3b9440dacc856f27429a7d31e9ae61b63 | 28 天前 | |
峰值内存优化,native线程解析图片 Co-Authored-By: Agent Signed-off-by: g00586423 <guxiang11@huawei.com> | 3 个月前 | |
ans tdd覆盖率添加 Signed-off-by: baozeyu <baozeyu1@huawei.com> Change-Id: Ib52984c7830a2d5eb48e7fd1a6cba3d8e76e199a | 2 年前 | |
Add VoiceContentOption feature for notification subscription Add VoiceContentOption class to NotificationSubscribeInfo to control voice content subscription behavior. When VoiceContentOption is enabled, the SUBSCRIBE_ON_VOICE_CONTENT flag is automatically set in NotificationSubscriberManager::AddSubscriber, allowing service-side logic to determine if voice content generation is needed during callbacks. Key changes: - Add VoiceContentOption class with bool enabled member - Integrate VoiceContentOption into NotificationSubscribeInfo - Add SUBSCRIBE_ON_VOICE_CONTENT flag (bit 18) to SubscribedFlag enum - Implement service-side flag setting/clearing logic in AddSubscriber - Add comprehensive unit tests (26 test cases) - Update BUILD.gn files to include new sources Co-Authored-By: Agent Signed-off-by: wangsen1994 <wangsen51@huawei.com> | 4 个月前 |