| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
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 | 22 小时前 | |
异步方案-20260104 Signed-off-by: he-guokai <heguokai6@huawei-partners.com> | 6 个月前 | |
异步方案-20260104 Signed-off-by: he-guokai <heguokai6@huawei-partners.com> | 6 个月前 | |
异步方案-20260104 Signed-off-by: he-guokai <heguokai6@huawei-partners.com> | 6 个月前 | |
异步方案-20260104 Signed-off-by: he-guokai <heguokai6@huawei-partners.com> | 6 个月前 | |
异步方案-20260104 Signed-off-by: he-guokai <heguokai6@huawei-partners.com> | 6 个月前 | |
异步方案-20260104 Signed-off-by: he-guokai <heguokai6@huawei-partners.com> | 6 个月前 | |
add getActiveNotification Co-Authored-By: Agent> Signed-off-by: bettykico <fangxiaofen1@h-partners.com> | 17 天前 | |
[feature]:add getNotificationParameters interface Agent's Completeness: about 30%-40% Signed-off-by: yangjun <yangjun273@huawei.com> Co-Authored-By: Agent | 5 个月前 | |
异步方案-20260104 Signed-off-by: he-guokai <heguokai6@huawei-partners.com> | 6 个月前 | |
0603代码移植master Signed-off-by: heguokai <275503077@qq.com> | 1 年前 | |
refactor(errors): implement unified error code layering architecture Signed-off-by: CheerfulRicky <yuegang7@h-partners.com> Co-Authored-by: Agent Change-Id: I136b4e503936f86c646fb936563a6eca6e7bc7d0 | 1 个月前 | |
Add aggregation notification feature with classification and switch support Signed-off-by: stepend98 <yangjun273@huawei.com> Co-Authored-By: Agent | 2 个月前 | |
0603代码移植master Signed-off-by: heguokai <275503077@qq.com> | 1 年前 | |
refactor(errors): implement unified error code layering architecture Signed-off-by: CheerfulRicky <yuegang7@h-partners.com> Co-Authored-by: Agent Change-Id: I136b4e503936f86c646fb936563a6eca6e7bc7d0 | 1 个月前 | |
SetAddtionConfig接口IPC资源紧张,需要扩张 Signed-off-by: g00586423 <guxiang11@huawei.com> | 4 个月前 | |
异步方案-20260104 Signed-off-by: he-guokai <heguokai6@huawei-partners.com> | 6 个月前 | |
回调注册枷锁解决并发场景问题 Signed-off-by: he-guokai <heguokai6@huawei-partners.com> | 9 个月前 | |
异步方案-20260104 Signed-off-by: he-guokai <heguokai6@huawei-partners.com> | 6 个月前 | |
异步方案-20260104 Signed-off-by: he-guokai <heguokai6@huawei-partners.com> | 6 个月前 | |
0603代码移植master Signed-off-by: heguokai <275503077@qq.com> | 1 年前 | |
异步方案-20260104 Signed-off-by: he-guokai <heguokai6@huawei-partners.com> | 6 个月前 | |
异步方案-20260104 Signed-off-by: he-guokai <heguokai6@huawei-partners.com> | 6 个月前 | |
feat(notification): add batch slot query API and optimize getAllNotificationEnabledBundles Add isNotificationSlotEnabledByBundles batch slot query API to query multiple bundles' slot enabled state in a single IPC call, avoiding the performance degradation caused by LRU cache misses in the single-query path. Optimize getAllNotificationEnabledBundles to only query _enabledNotification keys (filtered by VALUE IN ('1','3')) and parse bundleName/uid from the key, reducing I/O by ~66%. - Add IDL method GetEnabledForBundleSlots with OrderedMap output - Add full-stack implementation: server, DB, client, helper, NAPI, ANI - Unify single query path to bypass LRU cache via batch query internally - Add QueryDataInKeys batched IN query and QueryEnabledBundles in RDB layer - Add unit tests for server, DB layer, and RDB batch query - Add performance test (300-bundle batch query < 30ms target) Signed-off-by: CheerfulRicky <yuegang7@h-partners.com> Co-Authored-By: Agent Change-Id: I59ed3041c14b33a2fbe69517d6b366597f03b11b | 1 个月前 | |
通知Snooze Signed-off-by: he-guokai <heguokai6@huawei-partners.com> | 3 个月前 | |
updata all Signed-off-by: he-guokai <heguokai6@huawei-partners.com> | 4 个月前 | |
异步方案-20260104 Signed-off-by: he-guokai <heguokai6@huawei-partners.com> | 6 个月前 | |
异步方案-20260104 Signed-off-by: he-guokai <heguokai6@huawei-partners.com> | 6 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 22 小时前 | ||
| 6 个月前 | ||
| 6 个月前 | ||
| 6 个月前 | ||
| 6 个月前 | ||
| 6 个月前 | ||
| 6 个月前 | ||
| 17 天前 | ||
| 5 个月前 | ||
| 6 个月前 | ||
| 1 年前 | ||
| 1 个月前 | ||
| 2 个月前 | ||
| 1 年前 | ||
| 1 个月前 | ||
| 4 个月前 | ||
| 6 个月前 | ||
| 9 个月前 | ||
| 6 个月前 | ||
| 6 个月前 | ||
| 1 年前 | ||
| 6 个月前 | ||
| 6 个月前 | ||
| 1 个月前 | ||
| 3 个月前 | ||
| 4 个月前 | ||
| 6 个月前 | ||
| 6 个月前 |