Home
last modified time | relevance | path

Searched refs:sortingMap (Results 1 - 24 of 24) sorted by relevance

/base/notification/distributed_notification_service/interfaces/inner_api/
H A Dnotification_subscriber.h37 * @param sortingMap Indicates the sorting map used by the current subscriber
42 const std::shared_ptr<NotificationSortingMap> &sortingMap, int32_t deleteReason) = 0;
53 * @param sortingMap Indicates the sorting map used by the current subscriber to obtain
57 const std::shared_ptr<Notification> &request, const std::shared_ptr<NotificationSortingMap> &sortingMap) = 0;
67 * @param sortingMap Indicates the sorting map used to obtain notification ranking information.
69 virtual void OnUpdate(const std::shared_ptr<NotificationSortingMap> &sortingMap) = 0;
110 const std::shared_ptr<NotificationSortingMap> &sortingMap, int32_t deleteReason) = 0;
/base/notification/distributed_notification_service/services/ans/include/
H A Dreminder_event_manager.h79 const std::shared_ptr<NotificationSortingMap> &sortingMap, int deleteReason) override;
81 const std::shared_ptr<NotificationSortingMap> &sortingMap) override;
82 void OnUpdate(const std::shared_ptr<NotificationSortingMap> &sortingMap) override;
91 const std::shared_ptr<NotificationSortingMap> &sortingMap, int32_t deleteReason) override;
/base/notification/distributed_notification_service/frameworks/js/napi/include/
H A Dsubscribe.h33 * @param sortingMap Indicates the sorting map used by the current subscriber to obtain notification ranking
38 const std::shared_ptr<NotificationSortingMap> &sortingMap, int32_t deleteReason) override;
44 * @param sortingMap Indicates the sorting map used by the current subscriber to obtain notification ranking
48 const std::shared_ptr<NotificationSortingMap> &sortingMap) override;
53 * @param sortingMap Indicates the sorting map used to obtain notification ranking information.
55 virtual void OnUpdate(const std::shared_ptr<NotificationSortingMap> &sortingMap) override;
117 const std::shared_ptr<NotificationSortingMap> &sortingMap, int32_t deleteReason) override;
H A Dcommon.h322 * @param sortingMap Indicates a NotificationSortingMap object to be converted
327 const napi_env &env, const std::shared_ptr<NotificationSortingMap> &sortingMap, napi_value &result);
/base/notification/distributed_notification_service/frameworks/ans/src/
H A Dnotification_sorting_map.cpp106 NotificationSortingMap *sortingMap = new (std::nothrow) NotificationSortingMap(sortings); in Unmarshalling() local
107 return sortingMap; in Unmarshalling()
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/
H A Dnotification_sorting_map_test.cpp115 auto sortingMap = std::make_shared<NotificationSortingMap>(sortingList); in HWTEST_F() local
118 EXPECT_EQ(sortingMap->Marshalling(parcel), true); in HWTEST_F()
119 auto newSortingMap = sortingMap->Unmarshalling(parcel); in HWTEST_F()
/base/notification/distributed_notification_service/services/test/moduletest/
H A Dans_module_test.cpp55 void OnUpdate(const std::shared_ptr<NotificationSortingMap> &sortingMap) override
63 const std::shared_ptr<NotificationSortingMap> &sortingMap, int deleteReason) override
66 canceledCb_(request, sortingMap, deleteReason);
70 const std::shared_ptr<NotificationSortingMap> &sortingMap) override
73 consumedCb_(request, sortingMap);
81 &requestList, const std::shared_ptr<NotificationSortingMap> &sortingMap, int32_t deleteReason) override
227 [](const std::shared_ptr<Notification> notification, const std::shared_ptr<NotificationSortingMap> sortingMap) { in HWTEST_F()
228 std::vector<std::string> sortingKey = sortingMap->GetKey(); in HWTEST_F()
233 sortingMap->GetNotificationSorting("_1_testLabel_0", sorting1); in HWTEST_F()
234 sortingMap in HWTEST_F()
[all...]
/base/notification/distributed_notification_service/frameworks/js/napi/src/
H A Dsubscribe.cpp60 std::shared_ptr<NotificationSortingMap> sortingMap; member
73 const std::shared_ptr<NotificationSortingMap> &sortingMap, int32_t deleteReason, napi_value &result) in SetSubscribeCallbackData()
81 if (sortingMap == nullptr) { in SetSubscribeCallbackData()
82 ANS_LOGE("sortingMap is null"); in SetSubscribeCallbackData()
95 // sortingMap?: NotificationSortingMap in SetSubscribeCallbackData()
98 if (!Common::SetNotificationSortingMap(env, sortingMap, sortingMapResult)) { in SetSubscribeCallbackData()
102 napi_set_named_property(env, result, "sortingMap", sortingMapResult); in SetSubscribeCallbackData()
198 dataWorkerData->sortingMap, in ThreadSafeOnCancel()
212 const std::shared_ptr<NotificationSortingMap> &sortingMap, int32_t deleteReason) in OnCanceled()
226 if (sortingMap in OnCanceled()
71 SetSubscribeCallbackData(const napi_env &env, const std::shared_ptr<OHOS::Notification::Notification> &request, const std::shared_ptr<NotificationSortingMap> &sortingMap, int32_t deleteReason, napi_value &result) SetSubscribeCallbackData() argument
211 OnCanceled(const std::shared_ptr<OHOS::Notification::Notification> &request, const std::shared_ptr<NotificationSortingMap> &sortingMap, int32_t deleteReason) OnCanceled() argument
292 OnBatchCanceled(const std::vector<std::shared_ptr<OHOS::Notification::Notification>> &requestList, const std::shared_ptr<NotificationSortingMap> &sortingMap, int32_t deleteReason) OnBatchCanceled() argument
375 OnConsumed(const std::shared_ptr<OHOS::Notification::Notification> &request, const std::shared_ptr<NotificationSortingMap> &sortingMap) OnConsumed() argument
456 OnUpdate(const std::shared_ptr<NotificationSortingMap> &sortingMap) OnUpdate() argument
[all...]
H A Dcommon.cpp43 const napi_env &env, const std::shared_ptr<NotificationSortingMap> &sortingMap, napi_value &result) in SetNotificationSortingMap()
46 if (sortingMap == nullptr) { in SetNotificationSortingMap()
47 ANS_LOGE("sortingMap is null"); in SetNotificationSortingMap()
50 if (sortingMap->GetKey().size() == 0) { in SetNotificationSortingMap()
51 ANS_LOGE("sortingMap GetKey().size is empty"); in SetNotificationSortingMap()
60 for (auto key : sortingMap->GetKey()) { in SetNotificationSortingMap()
62 if (sortingMap->GetNotificationSorting(key, sorting)) { in SetNotificationSortingMap()
65 ANS_LOGD("sortingMap key = %{public}s", key.c_str()); in SetNotificationSortingMap()
79 ANS_LOGW("sortingMap Key: %{public}s match value is empty", key.c_str()); in SetNotificationSortingMap()
42 SetNotificationSortingMap( const napi_env &env, const std::shared_ptr<NotificationSortingMap> &sortingMap, napi_value &result) SetNotificationSortingMap() argument
/base/notification/distributed_notification_service/services/ans/test/unittest/
H A Dnotification_subscriber_manager_test.cpp52 const std::shared_ptr<NotificationSortingMap> &sortingMap, int deleteReason) override
55 const std::shared_ptr<NotificationSortingMap> &sortingMap) override
57 void OnUpdate(const std::shared_ptr<NotificationSortingMap> &sortingMap) override
66 &requestList, const std::shared_ptr<NotificationSortingMap> &sortingMap, int32_t deleteReason) override
H A Dadvanced_notification_utils_test.cpp104 void OnUpdate(const std::shared_ptr<NotificationSortingMap> &sortingMap) override
109 const std::shared_ptr<NotificationSortingMap> &sortingMap, int32_t deleteReason) override
115 const std::shared_ptr<NotificationSortingMap> &sortingMap) override
122 &requestList, const std::shared_ptr<NotificationSortingMap> &sortingMap, int32_t deleteReason) override
H A Dadvanced_notification_service_branch_test.cpp113 void OnUpdate(const std::shared_ptr<NotificationSortingMap> &sortingMap) override
118 const std::shared_ptr<NotificationSortingMap> &sortingMap, int32_t deleteReason) override
124 const std::shared_ptr<NotificationSortingMap> &sortingMap) override
131 &requestList, const std::shared_ptr<NotificationSortingMap> &sortingMap, int32_t deleteReason) override
H A Dadvanced_notification_service_test.cpp124 void OnUpdate(const std::shared_ptr<NotificationSortingMap> &sortingMap) override
135 const std::shared_ptr<NotificationSortingMap> &sortingMap, int32_t deleteReason) override
138 const std::shared_ptr<NotificationSortingMap> &sortingMap) override
141 &requestList, const std::shared_ptr<NotificationSortingMap> &sortingMap, int32_t deleteReason) override
/base/notification/distributed_notification_service/test/bechmarktest/notification_services_test/
H A Dnotification_service_test.cpp70 void OnUpdate(const std::shared_ptr<NotificationSortingMap> &sortingMap) override
80 const std::shared_ptr<NotificationSortingMap> &sortingMap, int deleteReason) override
83 const std::shared_ptr<NotificationSortingMap> &sortingMap) override
90 &requestList, const std::shared_ptr<NotificationSortingMap> &sortingMap, int32_t deleteReason) override
/base/notification/distributed_notification_service/services/ans/src/
H A Dreminder_event_manager.cpp313 const std::shared_ptr<NotificationSortingMap> &sortingMap, int deleteReason) in OnCanceled()
338 const std::shared_ptr<NotificationSortingMap> &sortingMap) {} in OnConsumed()
341 const std::shared_ptr<NotificationSortingMap> &sortingMap) {} in OnUpdate()
359 const std::shared_ptr<NotificationSortingMap> &sortingMap, int32_t deleteReason) {} in OnBatchCanceled()
311 OnCanceled( const std::shared_ptr<Notification> &notification, const std::shared_ptr<NotificationSortingMap> &sortingMap, int deleteReason) OnCanceled() argument
337 OnConsumed(const std::shared_ptr<Notification> &notification, const std::shared_ptr<NotificationSortingMap> &sortingMap) OnConsumed() argument
340 OnUpdate( const std::shared_ptr<NotificationSortingMap> &sortingMap) OnUpdate() argument
357 OnBatchCanceled( const std::vector<std::shared_ptr<Notification>> &requestList, const std::shared_ptr<NotificationSortingMap> &sortingMap, int32_t deleteReason) OnBatchCanceled() argument
H A Dadvanced_notification_utils.cpp173 sptr<NotificationSortingMap> sortingMap = new (std::nothrow) NotificationSortingMap(sortingList); in GenerateSortingMap() local
174 if (sortingMap == nullptr) { in GenerateSortingMap()
179 return sortingMap; in GenerateSortingMap()
1005 sptr<NotificationSortingMap> sortingMap = GenerateSortingMap(); in OnDistributedPublish()
1006 NotificationSubscriberManager::GetInstance()->NotifyConsumed(record->notification, sortingMap); in OnDistributedPublish()
1081 sptr<NotificationSortingMap> sortingMap = GenerateSortingMap(); in OnDistributedUpdate()
1082 NotificationSubscriberManager::GetInstance()->NotifyConsumed(record->notification, sortingMap); in OnDistributedUpdate()
H A Dadvanced_notification_publish_service.cpp241 sptr<NotificationSortingMap> sortingMap = GenerateSortingMap(); in PublishNotificationForIndirectProxy()
242 NotificationSubscriberManager::GetInstance()->NotifyConsumed(record->notification, sortingMap); in PublishNotificationForIndirectProxy()
1286 sptr<NotificationSortingMap> sortingMap = GenerateSortingMap(); in PublishContinuousTaskNotification()
1287 NotificationSubscriberManager::GetInstance()->NotifyConsumed(record->notification, sortingMap); in PublishContinuousTaskNotification()
2131 sptr<NotificationSortingMap> sortingMap = GenerateSortingMap(); in UpdateUnifiedGroupInfo()
2132 NotificationSubscriberManager::GetInstance()->NotifyConsumed(item->notification, sortingMap); in UpdateUnifiedGroupInfo()
2244 sptr<NotificationSortingMap> sortingMap = GenerateSortingMap(); in PublishNotificationBySa()
2245 NotificationSubscriberManager::GetInstance()->NotifyConsumed(record->notification, sortingMap); in PublishNotificationBySa()
H A Dadvanced_notification_live_view_service.cpp189 sptr<NotificationSortingMap> sortingMap = GenerateSortingMap(); in OnSubscriberAdd() local
205 NotificationSubscriberManager::GetInstance()->BatchNotifyConsumed(notifications, sortingMap, record); in OnSubscriberAdd()
H A Dadvanced_notification_service.cpp675 sptr<NotificationSortingMap> sortingMap = GenerateSortingMap(); in PublishPreparedNotification()
678 NotificationSubscriberManager::GetInstance()->NotifyConsumed(record->notification, sortingMap); in PublishPreparedNotification()
/base/notification/distributed_notification_service/frameworks/test/moduletest/
H A Dans_fw_module_test.cpp131 explicit OnUpdatedEvent(const std::shared_ptr<NotificationSortingMap> &sortingMap) in OnUpdatedEvent() argument
132 : SubscriberEvent(SubscriberEventType::ON_UPDATE), sortingMap_(sortingMap) in OnUpdatedEvent()
204 const std::shared_ptr<NotificationSortingMap> &sortingMap, int deleteReason) in OnOnCanceledWithSortingMapAndDeleteReasonEvent()
207 sortingMap_(sortingMap), in OnOnCanceledWithSortingMapAndDeleteReasonEvent()
254 const std::shared_ptr<Notification> &request, const std::shared_ptr<NotificationSortingMap> &sortingMap) in OnConsumedWithSortingMapEvent()
255 : SubscriberEvent(SubscriberEventType::ON_CONSUMED_WITH_SORTINGMAP), request_(request), sortingMap_(sortingMap) in OnConsumedWithSortingMapEvent()
294 void OnUpdate(const std::shared_ptr<NotificationSortingMap> &sortingMap) override
296 std::shared_ptr<OnUpdatedEvent> event = std::make_shared<OnUpdatedEvent>(sortingMap);
315 const std::shared_ptr<NotificationSortingMap> &sortingMap, int deleteReason) override
318 std::make_shared<OnOnCanceledWithSortingMapAndDeleteReasonEvent>(request, sortingMap, deleteReaso
203 OnOnCanceledWithSortingMapAndDeleteReasonEvent(const std::shared_ptr<Notification> &request, const std::shared_ptr<NotificationSortingMap> &sortingMap, int deleteReason) OnOnCanceledWithSortingMapAndDeleteReasonEvent() argument
253 OnConsumedWithSortingMapEvent( const std::shared_ptr<Notification> &request, const std::shared_ptr<NotificationSortingMap> &sortingMap) OnConsumedWithSortingMapEvent() argument
[all...]
H A Dans_innerkits_module_publish_test.cpp135 void OnUpdate(const std::shared_ptr<NotificationSortingMap> &sortingMap) override
139 const std::shared_ptr<NotificationSortingMap> &sortingMap, int deleteReason) override
145 const std::shared_ptr<NotificationSortingMap> &sortingMap) override
205 &requestList, const std::shared_ptr<NotificationSortingMap> &sortingMap, int32_t deleteReason) override
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_notification_test/
H A Dans_notification_unit_test.cpp87 void OnUpdate(const std::shared_ptr<NotificationSortingMap> &sortingMap) override
97 const std::shared_ptr<NotificationSortingMap> &sortingMap, int deleteReason) override
100 const std::shared_ptr<NotificationSortingMap> &sortingMap) override
107 &requestList, const std::shared_ptr<NotificationSortingMap> &sortingMap, int32_t deleteReason) override
/base/notification/distributed_notification_service/services/ans/test/unittest/advanced_notification_service_test/
H A Dadvanced_notification_service_publish_test.cpp124 void OnUpdate(const std::shared_ptr<NotificationSortingMap> &sortingMap) override
135 const std::shared_ptr<NotificationSortingMap> &sortingMap, int32_t deleteReason) override
138 const std::shared_ptr<NotificationSortingMap> &sortingMap) override
141 &requestList, const std::shared_ptr<NotificationSortingMap> &sortingMap, int32_t deleteReason) override
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_manager_proxy_test/
H A Dans_manager_proxy_unit_test.cpp135 void OnUpdate(const std::shared_ptr<NotificationSortingMap> &sortingMap) override
145 const std::shared_ptr<NotificationSortingMap> &sortingMap, int deleteReason) override
152 const std::shared_ptr<NotificationSortingMap> &sortingMap) override
156 &requestList, const std::shared_ptr<NotificationSortingMap> &sortingMap, int32_t deleteReason) override

Completed in 65 milliseconds