| /base/notification/distributed_notification_service/interfaces/inner_api/ |
| D | notification_subscriber.h | 42 const std::shared_ptr<NotificationSortingMap> &sortingMap, int32_t deleteReason) = 0; 57 …:shared_ptr<Notification> &request, const std::shared_ptr<NotificationSortingMap> &sortingMap) = 0; 69 virtual void OnUpdate(const std::shared_ptr<NotificationSortingMap> &sortingMap) = 0;
|
| /base/notification/distributed_notification_service/services/test/moduletest/ |
| D | ans_module_test.cpp | 54 void OnUpdate(const std::shared_ptr<NotificationSortingMap> &sortingMap) override in OnUpdate() argument 62 const std::shared_ptr<NotificationSortingMap> &sortingMap, int deleteReason) override in OnCanceled() argument 65 canceledCb_(request, sortingMap, deleteReason); in OnCanceled() 69 const std::shared_ptr<NotificationSortingMap> &sortingMap) override in OnConsumed() argument 72 consumedCb_(request, sortingMap); in OnConsumed() 242 …:shared_ptr<Notification> notification, const std::shared_ptr<NotificationSortingMap> sortingMap) { in __anon9ab73b9e0302() argument 243 std::vector<std::string> sortingKey = sortingMap->GetKey(); in __anon9ab73b9e0302() 248 sortingMap->GetNotificationSorting("_1_testLabel_0", sorting1); in __anon9ab73b9e0302() 249 sortingMap->GetNotificationSorting("_1_testLabel_1", sorting2); in __anon9ab73b9e0302() 325 …:shared_ptr<Notification> notification, const std::shared_ptr<NotificationSortingMap> sortingMap) { in __anon9ab73b9e0502() argument [all …]
|
| /base/notification/distributed_notification_service/frameworks/js/napi/include/ |
| D | subscribe.h | 38 const std::shared_ptr<NotificationSortingMap> &sortingMap, int32_t deleteReason) override; 48 const std::shared_ptr<NotificationSortingMap> &sortingMap) override; 55 virtual void OnUpdate(const std::shared_ptr<NotificationSortingMap> &sortingMap) override;
|
| D | common.h | 367 …const napi_env &env, const std::shared_ptr<NotificationSortingMap> &sortingMap, napi_value &result…
|
| /base/notification/distributed_notification_service/frameworks/js/napi/src/ |
| D | subscribe.cpp | 40 std::shared_ptr<NotificationSortingMap> sortingMap; member 52 …const std::shared_ptr<NotificationSortingMap> &sortingMap, int32_t deleteReason, napi_value &resul… in SetSubscribeCallbackData() argument 60 if (sortingMap == nullptr) { in SetSubscribeCallbackData() 77 if (!Common::SetNotificationSortingMap(env, sortingMap, sortingMapResult)) { in SetSubscribeCallbackData() 174 dataWorkerData->sortingMap, in UvQueueWorkOnCanceled() 189 const std::shared_ptr<NotificationSortingMap> &sortingMap, int32_t deleteReason) in OnCanceled() argument 203 if (sortingMap == nullptr) { in OnCanceled() 208 ANS_LOGI("OnCanceled sortingMap size = %{public}zu", sortingMap->GetKey().size()); in OnCanceled() 225 dataWorker->sortingMap = sortingMap; in OnCanceled() 272 dataWorkerData->sortingMap, in UvQueueWorkOnConsumed() [all …]
|
| D | common.cpp | 695 …const napi_env &env, const std::shared_ptr<NotificationSortingMap> &sortingMap, napi_value &result) in SetNotificationSortingMap() argument 698 if (sortingMap == nullptr) { in SetNotificationSortingMap() 702 if (sortingMap->GetKey().size() == 0) { in SetNotificationSortingMap() 712 for (auto key : sortingMap->GetKey()) { in SetNotificationSortingMap() 714 if (sortingMap->GetNotificationSorting(key, sorting)) { in SetNotificationSortingMap()
|
| /base/notification/distributed_notification_service/services/ans/test/unittest/ |
| D | notification_subscriber_manager_test.cpp | 44 void OnUpdate(const std::shared_ptr<NotificationSortingMap> &sortingMap) override in OnUpdate() argument 52 const std::shared_ptr<NotificationSortingMap> &sortingMap, int deleteReason) override in OnCanceled() argument 55 const std::shared_ptr<NotificationSortingMap> &sortingMap) override in OnConsumed() argument
|
| D | advanced_notification_service_branch_test.cpp | 95 void OnUpdate(const std::shared_ptr<NotificationSortingMap> &sortingMap) override in OnUpdate() argument 103 const std::shared_ptr<NotificationSortingMap> &sortingMap, int32_t deleteReason) override in OnCanceled() argument 106 const std::shared_ptr<NotificationSortingMap> &sortingMap) override in OnConsumed() argument
|
| D | advanced_notification_service_test.cpp | 106 void OnUpdate(const std::shared_ptr<NotificationSortingMap> &sortingMap) override in OnUpdate() argument 114 const std::shared_ptr<NotificationSortingMap> &sortingMap, int32_t deleteReason) override in OnCanceled() argument 117 const std::shared_ptr<NotificationSortingMap> &sortingMap) override in OnConsumed() argument
|
| /base/notification/distributed_notification_service/frameworks/ans/src/ |
| D | notification_sorting_map.cpp | 106 NotificationSortingMap *sortingMap = new (std::nothrow) NotificationSortingMap(sortings); in Unmarshalling() local 107 return sortingMap; in Unmarshalling()
|
| /base/notification/distributed_notification_service/test/bechmarktest/notification_services_test/ |
| D | notification_service_test.cpp | 72 void OnUpdate(const std::shared_ptr<NotificationSortingMap> &sortingMap) override in OnUpdate() argument 80 const std::shared_ptr<NotificationSortingMap> &sortingMap, int deleteReason) override in OnCanceled() argument 83 const std::shared_ptr<NotificationSortingMap> &sortingMap) override in OnConsumed() argument
|
| /base/notification/distributed_notification_service/frameworks/test/moduletest/ |
| D | ans_fw_module_test.cpp | 131 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() argument 207 sortingMap_(sortingMap), in OnOnCanceledWithSortingMapAndDeleteReasonEvent() 254 … std::shared_ptr<Notification> &request, const std::shared_ptr<NotificationSortingMap> &sortingMap) in OnConsumedWithSortingMapEvent() argument 255 …Event(SubscriberEventType::ON_CONSUMED_WITH_SORTINGMAP), request_(request), sortingMap_(sortingMap) in OnConsumedWithSortingMapEvent() 294 void OnUpdate(const std::shared_ptr<NotificationSortingMap> &sortingMap) override in OnUpdate() argument 296 std::shared_ptr<OnUpdatedEvent> event = std::make_shared<OnUpdatedEvent>(sortingMap); in OnUpdate() 315 const std::shared_ptr<NotificationSortingMap> &sortingMap, int deleteReason) override in OnCanceled() argument 318 …std::make_shared<OnOnCanceledWithSortingMapAndDeleteReasonEvent>(request, sortingMap, deleteReason… in OnCanceled() [all …]
|
| D | ans_innerkits_module_publish_test.cpp | 94 void OnUpdate(const std::shared_ptr<NotificationSortingMap> &sortingMap) override in OnUpdate() argument 105 const std::shared_ptr<NotificationSortingMap> &sortingMap, int deleteReason) override in OnCanceled() argument 111 const std::shared_ptr<NotificationSortingMap> &sortingMap) override in OnConsumed() argument
|
| /base/notification/distributed_notification_service/services/ans/src/ |
| D | advanced_notification_service.cpp | 536 sptr<NotificationSortingMap> sortingMap = GenerateSortingMap(); in PublishPreparedNotification() local 538 … NotificationSubscriberManager::GetInstance()->NotifyConsumed(record->notification, sortingMap); in PublishPreparedNotification() 702 sptr<NotificationSortingMap> sortingMap = new NotificationSortingMap(sortingList); in GenerateSortingMap() local 704 return sortingMap; in GenerateSortingMap() 1961 sptr<NotificationSortingMap> sortingMap = GenerateSortingMap(); in PublishContinuousTaskNotification() local 1962 … NotificationSubscriberManager::GetInstance()->NotifyConsumed(record->notification, sortingMap); in PublishContinuousTaskNotification() 3432 sptr<NotificationSortingMap> sortingMap = GenerateSortingMap(); in OnDistributedPublish() local 3433 … NotificationSubscriberManager::GetInstance()->NotifyConsumed(record->notification, sortingMap); in OnDistributedPublish() 3506 sptr<NotificationSortingMap> sortingMap = GenerateSortingMap(); in OnDistributedUpdate() local 3507 … NotificationSubscriberManager::GetInstance()->NotifyConsumed(record->notification, sortingMap); in OnDistributedUpdate() [all …]
|
| /base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_notification_test/ |
| D | ans_notification_unit_test.cpp | 82 void OnUpdate(const std::shared_ptr<NotificationSortingMap> &sortingMap) override in OnUpdate() argument 90 const std::shared_ptr<NotificationSortingMap> &sortingMap, int deleteReason) override in OnCanceled() argument 93 const std::shared_ptr<NotificationSortingMap> &sortingMap) override in OnConsumed() argument
|
| /base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_manager_proxy_test/ |
| D | ans_manager_proxy_unit_test.cpp | 112 void OnUpdate(const std::shared_ptr<NotificationSortingMap> &sortingMap) override in OnUpdate() argument 120 const std::shared_ptr<NotificationSortingMap> &sortingMap, int deleteReason) override in OnCanceled() argument 123 const std::shared_ptr<NotificationSortingMap> &sortingMap) override in OnConsumed() argument
|