Home
last modified time | relevance | path

Searched refs:notificationId (Results 1 - 25 of 75) sorted by relevance

123

/base/notification/distributed_notification_service/test/fuzztest/settemplate_fuzzer/
H A Dsettemplate_fuzzer.cpp31 int32_t notificationId = static_cast<int32_t>(GetU32Data(data)); in DoSomethingInterestingWithMyAPI() local
32 Notification::NotificationRequest request(notificationId); in DoSomethingInterestingWithMyAPI()
45 request.SetProgressBar(notificationId, notificationId, enabled); in DoSomethingInterestingWithMyAPI()
57 request.SetCreatorUid(notificationId); in DoSomethingInterestingWithMyAPI()
59 request.SetOwnerUid(notificationId); in DoSomethingInterestingWithMyAPI()
66 request.SetCreatorUserId(notificationId); in DoSomethingInterestingWithMyAPI()
68 request.SetOwnerUserId(notificationId); in DoSomethingInterestingWithMyAPI()
79 request.SetReceiverUserId(notificationId); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/services/ans/test/unittest/
H A Dadvanced_notification_utils_test.cpp60 void TestAddNotification(int notificationId, const sptr<NotificationBundleOption> &bundle);
126 void AnsUtilsTest::TestAddNotification(int notificationId, const sptr<NotificationBundleOption> &bundle) in TestAddNotification() argument
135 request->SetNotificationId(notificationId); in TestAddNotification()
198 int notificationId = 1; in HWTEST_F() local
199 ASSERT_EQ(ans.GetActiveNotificationByFilter(bundleOption, notificationId, label, keys, newRequest), in HWTEST_F()
215 int notificationId = 1; in HWTEST_F() local
217 bundle, notificationId, label, keys, newRequest), in HWTEST_F()
231 int notificationId = 1; in HWTEST_F() local
243 oldRequest->SetNotificationId(notificationId); in HWTEST_F()
258 notificationId, labe in HWTEST_F()
306 int notificationId = 1; HWTEST_F() local
328 int notificationId = 1; HWTEST_F() local
368 int notificationId = 1; HWTEST_F() local
386 int notificationId = 1; HWTEST_F() local
405 int notificationId = 1; HWTEST_F() local
[all...]
/base/notification/distributed_notification_service/test/fuzztest/cancelnotification_fuzzer/
H A Dcancelnotification_fuzzer.cpp24 int32_t notificationId = static_cast<int32_t>(GetU32Data(data)); in DoSomethingInterestingWithMyAPI() local
28 Notification::NotificationHelper::CancelNotification(notificationId); in DoSomethingInterestingWithMyAPI()
29 return Notification::NotificationHelper::CancelNotification(label, notificationId) == ERR_OK; in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/services/ans/src/
H A Dadvanced_notification_event_service.cpp89 eventInfo.notificationId = request->GetNotificationId(); in SendPublishHiSysEvent()
101 void AdvancedNotificationService::SendCancelHiSysEvent(int32_t notificationId, const std::string &label, in SendCancelHiSysEvent() argument
110 eventInfo.notificationId = notificationId; in SendCancelHiSysEvent()
117 void AdvancedNotificationService::SendRemoveHiSysEvent(int32_t notificationId, const std::string &label, in SendRemoveHiSysEvent() argument
125 eventInfo.notificationId = notificationId; in SendRemoveHiSysEvent()
179 eventInfo.notificationId = record->request->GetNotificationId(); in SendFlowControlOccurHiSysEvent()
194 eventInfo.notificationId = record->request->GetNotificationId(); in SendLiveViewUploadHiSysEvent()
H A Devent_report.cpp133 EVENT_PARAM_NOTIFICATION_ID, eventInfo.notificationId, in InnerSendPublishErrorEvent()
145 EVENT_PARAM_NOTIFICATION_ID, eventInfo.notificationId, in InnerSendFlowControlOccurEvent()
198 EVENT_PARAM_NOTIFICATION_ID, eventInfo.notificationId, in InnerSendLiveviewUploadEvent()
209 EVENT_PARAM_NOTIFICATION_ID, eventInfo.notificationId, in InnerSendPublishEvent()
220 EVENT_PARAM_NOTIFICATION_ID, eventInfo.notificationId, in InnerSendCancelEvent()
231 EVENT_PARAM_NOTIFICATION_ID, eventInfo.notificationId, in InnerSendRemoveEvent()
/base/request/request/services/include/
H A Dnotification_bar.h45 void OnResponse(int32_t notificationId, sptr<Notification::NotificationButtonOption> buttonOption) override;
54 inline int32_t CancelNotification(uint32_t notificationId) in CancelNotification() argument
56 return Notification::NotificationHelper::CancelNotification(notificationId); in CancelNotification()
/base/notification/distributed_notification_service/test/fuzztest/notificationrequestannex_fuzzer/
H A Dnotificationrequestannex_fuzzer.cpp26 int32_t notificationId = static_cast<int32_t>(GetU32Data(data)); in DoSomethingInterestingWithMyAPI() local
27 Notification::NotificationRequest request(notificationId); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/test/fuzztest/cancelasbundle_fuzzer/
H A Dcancelasbundle_fuzzer.cpp24 int32_t notificationId = static_cast<int32_t>(GetU32Data(data)); in DoSomethingInterestingWithMyAPI() local
27 notificationId, representativeBundle, userId) == ERR_OK; in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/frameworks/js/napi/src/manager/
H A Dlocal_live_view_subscribe.cpp30 int32_t notificationId; member
79 napi_value notificationId = nullptr; in UvQueueWorkOnResponse() local
86 // notificationId: number in UvQueueWorkOnResponse()
87 napi_create_int32(dataWorkerData->env, dataWorkerData->notificationId, &notificationId); in UvQueueWorkOnResponse()
94 Common::SetCallbackArg2(dataWorkerData->env, dataWorkerData->ref, notificationId, buttonOption); in UvQueueWorkOnResponse()
102 void LocalLiveViewSubscriberInstance::OnResponse(int32_t notificationId, sptr<NotificationButtonOption> buttonOption) in OnResponse() argument
116 ANS_LOGI("OnResponse NotificationId = %{public}d", notificationId); in OnResponse()
132 dataWorker->notificationId = notificationId; in OnResponse()
[all...]
H A Dnapi_local_live_view.cpp117 int32_t notificationId = -1; in ParseTriggerParameters() local
136 // argv[1]:notificationId in ParseTriggerParameters()
144 napi_get_value_int32(env, argv[PARAM1], &notificationId); in ParseTriggerParameters()
145 ANS_LOGI("notificationId = %{public}d", notificationId); in ParseTriggerParameters()
146 asynccallbackinfo->notificationId = notificationId; in ParseTriggerParameters()
197 asynccallbackinfo->notificationId, asynccallbackinfo->buttonOption); in NapiTriggerLocalLiveView()
/base/notification/distributed_notification_service/test/fuzztest/ansmanagerstubannextwo_fuzzer/
H A Dansmanagerstubannextwo_fuzzer.cpp39 int notificationId = 1; in DoSomethingInterestingWithMyAPI() local
40 ansManagerStub.Cancel(notificationId, stringData, 0); in DoSomethingInterestingWithMyAPI()
76 ansManagerStub.SetNotificationBadgeNum(notificationId); in DoSomethingInterestingWithMyAPI()
77 ansManagerStub.GetBundleImportance(notificationId); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/frameworks/core/src/
H A Dans_subscriber_local_live_view_stub.cpp103 int32_t notificationId = 0; in HandleOnResponse() local
104 if (!data.ReadInt32(notificationId)) { in HandleOnResponse()
105 ANS_LOGE("[HandleOnResponse] fail : read notificationId failed"); in HandleOnResponse()
114 OnResponse(notificationId, buttonOption); in HandleOnResponse()
122 void AnsSubscriberLocalLiveViewStub::OnResponse(int32_t notificationId, sptr<NotificationButtonOption> buttonOption) {} in OnResponse() argument
H A Dans_subscriber_local_live_view_proxy.cpp92 void AnsSubscriberLocalLiveViewProxy::OnResponse(int32_t notificationId, sptr<NotificationButtonOption> buttonOption) in OnResponse() argument
100 if (!data.WriteInt32(notificationId)) { in OnResponse()
101 ANS_LOGE("[OnResponse] fail: write notificationId failed"); in OnResponse()
H A Dans_manager_stub_invalid.cpp41 ErrCode AnsManagerStub::Cancel(int notificationId, const std::string &label, int32_t instanceKey) in Cancel() argument
53 ErrCode AnsManagerStub::CancelAsBundle(int32_t notificationId, const std::string &representativeBundle, int32_t userId) in CancelAsBundle() argument
59 ErrCode AnsManagerStub::CancelAsBundle(const sptr<NotificationBundleOption> &bundleOption, int32_t notificationId) in CancelAsBundle() argument
66 const sptr<NotificationBundleOption> &bundleOption, int32_t notificationId, int32_t userId) in CancelAsBundle()
141 const sptr<NotificationBundleOption> &bundleOption, const int32_t notificationId, const std::string &label, in GetActiveNotificationByFilter()
204 const int32_t notificationId, const sptr<NotificationButtonOption> &buttonOption) in TriggerLocalLiveView()
211 int notificationId, const std::string &label, int32_t removeReason) in RemoveNotification()
463 ErrCode AnsManagerStub::CancelContinuousTaskNotification(const std::string &label, int32_t notificationId) in CancelContinuousTaskNotification() argument
65 CancelAsBundle( const sptr<NotificationBundleOption> &bundleOption, int32_t notificationId, int32_t userId) CancelAsBundle() argument
140 GetActiveNotificationByFilter( const sptr<NotificationBundleOption> &bundleOption, const int32_t notificationId, const std::string &label, std::vector<std::string> extraInfoKeys, sptr<NotificationRequest> &request) GetActiveNotificationByFilter() argument
203 TriggerLocalLiveView(const sptr<NotificationBundleOption> &bundleOption, const int32_t notificationId, const sptr<NotificationButtonOption> &buttonOption) TriggerLocalLiveView() argument
210 RemoveNotification(const sptr<NotificationBundleOption> &bundleOption, int notificationId, const std::string &label, int32_t removeReason) RemoveNotification() argument
/base/notification/distributed_notification_service/frameworks/ans/src/
H A Dnotification_helper.cpp90 ErrCode NotificationHelper::CancelNotification(int32_t notificationId) in CancelNotification() argument
92 return DelayedSingleton<AnsNotification>::GetInstance()->CancelNotification(notificationId); in CancelNotification()
95 ErrCode NotificationHelper::CancelNotification(const std::string &label, int32_t notificationId) in CancelNotification() argument
97 return DelayedSingleton<AnsNotification>::GetInstance()->CancelNotification(label, notificationId); in CancelNotification()
106 int32_t notificationId, const std::string &representativeBundle, int32_t userId) in CancelAsBundle()
109 notificationId, representativeBundle, userId); in CancelAsBundle()
113 const NotificationBundleOption &bundleOption, int32_t notificationId) in CancelAsBundle()
116 bundleOption, notificationId); in CancelAsBundle()
235 const int32_t notificationId, const NotificationButtonOption &buttonOption) in TriggerLocalLiveView()
238 bundleOption, notificationId, buttonOptio in TriggerLocalLiveView()
105 CancelAsBundle( int32_t notificationId, const std::string &representativeBundle, int32_t userId) CancelAsBundle() argument
112 CancelAsBundle( const NotificationBundleOption &bundleOption, int32_t notificationId) CancelAsBundle() argument
234 TriggerLocalLiveView(const NotificationBundleOption &bundleOption, const int32_t notificationId, const NotificationButtonOption &buttonOption) TriggerLocalLiveView() argument
246 RemoveNotification(const NotificationBundleOption &bundleOption, const int32_t notificationId, const std::string &label, int32_t removeReason) RemoveNotification() argument
423 CancelContinuousTaskNotification(const std::string &label, int32_t notificationId) CancelContinuousTaskNotification() argument
[all...]
H A Dnotification_local_live_view_subscriber.cpp65 void NotificationLocalLiveViewSubscriber::SubscriberLocalLiveViewImpl::OnResponse(int32_t notificationId, in OnResponse() argument
69 subscriber_.OnResponse(notificationId, buttonOption); in OnResponse()
/base/notification/distributed_notification_service/interfaces/inner_api/
H A Dnotification_local_live_view_subscriber.h44 virtual void OnResponse(int32_t notificationId, sptr<NotificationButtonOption> buttonOption) = 0;
74 void OnResponse(int32_t notificationId, sptr<NotificationButtonOption> buttonOption) override;
H A Dnotification_helper.h229 * @param notificationId Indicates the unique notification ID in the application.
234 static ErrCode CancelNotification(int32_t notificationId);
237 * @brief Cancels a published notification matching the specified label and notificationId.
240 * @param notificationId Indicates the ID of the notification to cancel.
243 static ErrCode CancelNotification(const std::string &label, int32_t notificationId);
256 * @param notificationId Indicates the unique notification ID in the application.
263 static ErrCode CancelAsBundle(int32_t notificationId, const std::string &representativeBundle, int32_t userId);
269 * @param notificationId Indicates the unique notification ID in the application.
274 static ErrCode CancelAsBundle(const NotificationBundleOption &bundleOption, int32_t notificationId);
512 * @param notificationId Indicate
[all...]
/base/notification/distributed_notification_service/services/ans/test/unittest/notification_subscriber_manager_branch_test/
H A Dnotification_subscriber_manager_branch_test.cpp423 int32_t notificationId = 1; in HWTEST_F() local
430 ASSERT_EQ(advancedNotificationService.CancelAsBundle(notificationId, representativeBundle, userId), in HWTEST_F()
758 int32_t notificationId = 1; in HWTEST_F() local
765 ASSERT_EQ(advancedNotificationService.RemoveNotification(bundleOption, notificationId, label, removeReason), in HWTEST_F()
777 int32_t notificationId = 0; in HWTEST_F() local
782 bundleOption->SetUid(notificationId); in HWTEST_F()
785 ASSERT_EQ(advancedNotificationService.RemoveNotification(bundleOption, notificationId, label, removeReason), in HWTEST_F()
814 int32_t notificationId = 0; in HWTEST_F() local
815 bundleOption->SetUid(notificationId); in HWTEST_F()
848 int32_t notificationId in HWTEST_F() local
897 int32_t notificationId = 0; HWTEST_F() local
1020 int32_t notificationId = 0; HWTEST_F() local
1053 int32_t notificationId = 0; HWTEST_F() local
1170 int32_t notificationId = 0; HWTEST_F() local
1207 int32_t notificationId = 0; HWTEST_F() local
1226 int32_t notificationId = 1; HWTEST_F() local
1246 int32_t notificationId = 1; HWTEST_F() local
[all...]
/base/notification/distributed_notification_service/test/fuzztest/setprogressbar_fuzzer/
H A Dsetprogressbar_fuzzer.cpp27 int32_t notificationId = static_cast<int32_t>(GetU32Data(data)); in DoSomethingInterestingWithMyAPI() local
28 Notification::NotificationRequest request(notificationId); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/services/ans/test/unittest/mock/
H A Dmock_notification_analytics_util.cpp79 HaMetaMessage& HaMetaMessage::NotificationId(int32_t notificationId) in NotificationId() argument
81 notificationId_ = notificationId; in NotificationId()
/base/notification/distributed_notification_service/test/fuzztest/notificationrequest_fuzzer/
H A Dnotificationrequest_fuzzer.cpp32 int32_t notificationId = static_cast<int32_t>(GetU32Data(data)); in DoSomethingInterestingWithMyAPI() local
33 Notification::NotificationRequest request(notificationId); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/frameworks/js/napi/include/
H A Dlocal_live_view_subscribe.h42 virtual void OnResponse(int32_t notificationId, sptr<NotificationButtonOption> buttonOption) override;
82 int32_t notificationId; member
/base/notification/distributed_notification_service/frameworks/core/include/
H A Dans_subscriber_local_live_view_interface.h50 virtual void OnResponse(int32_t notificationId, sptr<NotificationButtonOption> buttonOption) = 0;
H A Dans_manager_interface.h69 * @brief Cancels a published notification matching the specified label and notificationId.
71 * @param notificationId Indicates the ID of the notification to cancel.
76 virtual ErrCode Cancel(int notificationId, const std::string &label, int32_t instanceKey) = 0;
89 * @param notificationId Indicates the unique notification ID in the application.
97 int32_t notificationId, const std::string &representativeBundle, int32_t userId) = 0;
103 * @param notificationId Indicates the unique notification ID in the application.
108 virtual ErrCode CancelAsBundle(const sptr<NotificationBundleOption> &bundleOption, int32_t notificationId) = 0;
114 * @param notificationId Indicates the unique notification ID in the application.
121 const sptr<NotificationBundleOption> &bundleOption, int32_t notificationId, int32_t userId) = 0;
227 * @param notificationId Indicate
[all...]

Completed in 15 milliseconds

123