Home
last modified time | relevance | path

Searched refs:notification (Results 1 – 25 of 239) sorted by relevance

12345678910

/base/notification/distributed_notification_service/test/fuzztest/notification_fuzzer/
Dnotification_fuzzer.cpp31 Notification::Notification notification(stringData, request); in DoSomethingInterestingWithMyAPI() local
32 notification.EnableLight(); in DoSomethingInterestingWithMyAPI()
33 notification.EnableSound(); in DoSomethingInterestingWithMyAPI()
34 notification.EnableVibrate(); in DoSomethingInterestingWithMyAPI()
35 notification.GetBundleName(); in DoSomethingInterestingWithMyAPI()
36 notification.GetCreateBundle(); in DoSomethingInterestingWithMyAPI()
37 notification.GetLabel(); in DoSomethingInterestingWithMyAPI()
38 notification.GetLedLightColor(); in DoSomethingInterestingWithMyAPI()
39 notification.GetLockscreenVisibleness(); in DoSomethingInterestingWithMyAPI()
40 notification.GetGroup(); in DoSomethingInterestingWithMyAPI()
[all …]
/base/notification/distributed_notification_service/test/fuzztest/readfromparcel_fuzzer/
Dreadfromparcel_fuzzer.cpp37 Notification::Notification notification(request); in DoSomethingInterestingWithMyAPI() local
39 notification.MarshallingString(parcel); in DoSomethingInterestingWithMyAPI()
40 notification.MarshallingInt32(parcel); in DoSomethingInterestingWithMyAPI()
41 notification.MarshallingInt64(parcel); in DoSomethingInterestingWithMyAPI()
42 notification.MarshallingParcelable(parcel); in DoSomethingInterestingWithMyAPI()
43 notification.Marshalling(parcel); in DoSomethingInterestingWithMyAPI()
44 notification.ReadFromParcelBool(parcel); in DoSomethingInterestingWithMyAPI()
45 notification.ReadFromParcelString(parcel); in DoSomethingInterestingWithMyAPI()
46 notification.ReadFromParcelInt32(parcel); in DoSomethingInterestingWithMyAPI()
47 notification.ReadFromParcelInt64(parcel); in DoSomethingInterestingWithMyAPI()
[all …]
/base/telephony/call_manager/test/fuzztest/callnotification_fuzzer/
Dcallnotification_fuzzer.cpp59 …std::shared_ptr<IncomingCallNotification> notification = std::make_shared<IncomingCallNotification… in IncomingCallNotificationFunc() local
67 notification->NewCallCreated(callObjectPtr); in IncomingCallNotificationFunc()
68 notification->CallStateUpdated(callObjectPtr, priorState, nextState); in IncomingCallNotificationFunc()
69 notification->IncomingCallActivated(callObjectPtr); in IncomingCallNotificationFunc()
70 notification->IncomingCallHungUp(callObjectPtr, true, message); in IncomingCallNotificationFunc()
71 notification->CallDestroyed(details); in IncomingCallNotificationFunc()
72 notification->PublishIncomingCallNotification(callObjectPtr); in IncomingCallNotificationFunc()
73 notification->CancelIncomingCallNotification(); in IncomingCallNotificationFunc()
74 notification->IsFullScreen(); in IncomingCallNotificationFunc()
83 std::shared_ptr<IncomingCallWakeup> notification = std::make_shared<IncomingCallWakeup>(); in IncomingCallWakeupFunc() local
[all …]
/base/notification/distributed_notification_service/services/ans/src/
Dnotification_slot_filter.cpp34 record->notification->SetEnableLight(true); in OnPublish()
35 record->notification->SetLedLightColor(record->slot->GetLedLightColor()); in OnPublish()
37 record->notification->SetEnableLight(false); in OnPublish()
41 record->notification->SetEnableVibration(true); in OnPublish()
42 record->notification->SetVibrationStyle(record->slot->GetVibrationStyle()); in OnPublish()
44 record->notification->SetEnableVibration(false); in OnPublish()
49 record->notification->SetEnableSound(true); in OnPublish()
50 record->notification->SetSound(record->slot->GetSound()); in OnPublish()
52 record->notification->SetEnableSound(false); in OnPublish()
Dadvanced_notification_service.cpp102 sptr<Notification> notification = nullptr; member
380 if (!IsNotificationExists(record->notification->GetKey())) { in AssignToNotificationList()
384 record->notification->SetEnableLight(false); in AssignToNotificationList()
385 record->notification->SetEnableSound(false); in AssignToNotificationList()
386 record->notification->SetEnableVibration(false); in AssignToNotificationList()
402 sptr<Notification> notification = nullptr; in CancelPreparedNotification() local
403 … result = RemoveFromNotificationList(bundleOption, label, notificationId, notification, true); in CancelPreparedNotification()
408 if (notification != nullptr) { in CancelPreparedNotification()
410 UpdateRecentNotification(notification, true, reason); in CancelPreparedNotification()
412 … NotificationSubscriberManager::GetInstance()->NotifyCanceled(notification, sortingMap, reason); in CancelPreparedNotification()
[all …]
Dnotification_subscriber_manager.cpp111 const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap) in NotifyConsumed() argument
119 …std::bind(&NotificationSubscriberManager::NotifyConsumedInner, this, notification, notificationMap… in NotifyConsumed()
125 …const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap, int32… in NotifyCanceled() argument
134 …&NotificationSubscriberManager::NotifyCanceledInner, this, notification, notificationMap, deleteRe… in NotifyCanceled()
313 const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap) in NotifyConsumedInner() argument
316 …ANS_LOGD("%{public}s notification->GetUserId <%{public}d>", __FUNCTION__, notification->GetUserId(… in NotifyConsumedInner()
317 int32_t recvUserId = notification->GetNotificationRequest().GetReceiverUserId(); in NotifyConsumedInner()
318 int32_t sendUserId = notification->GetUserId(); in NotifyConsumedInner()
320 auto BundleNames = notification->GetBundleName(); in NotifyConsumedInner()
330 record->subscriber->OnConsumed(notification, notificationMap); in NotifyConsumedInner()
[all …]
Dpermission_filter.cpp49 if (record->notification->GetBundleName() != record->notification->GetCreateBundle()) { in OnPublish()
/base/notification/distributed_notification_service/test/fuzztest/notificationannex_fuzzer/
Dnotificationannex_fuzzer.cpp31 Notification::Notification notification(stringData, request); in DoSomethingInterestingWithMyAPI() local
32 notification.GetSourceType(); in DoSomethingInterestingWithMyAPI()
33 notification.GetDeviceId(); in DoSomethingInterestingWithMyAPI()
35 notification.SetSound(sound); in DoSomethingInterestingWithMyAPI()
37 return notification.MarshallingBool(parcel); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/frameworks/core/src/
Dans_subscriber_stub.cpp92 sptr<Notification> notification = data.ReadParcelable<Notification>(); in HandleOnConsumed() local
93 if (!notification) { in HandleOnConsumed()
98 OnConsumed(notification); in HandleOnConsumed()
104 sptr<Notification> notification = data.ReadParcelable<Notification>(); in HandleOnConsumedMap() local
105 if (!notification) { in HandleOnConsumedMap()
125 OnConsumed(notification, notificationMap); in HandleOnConsumedMap()
131 sptr<Notification> notification = data.ReadParcelable<Notification>(); in HandleOnCanceledMap() local
132 if (!notification) { in HandleOnCanceledMap()
158 OnCanceled(notification, notificationMap, reason); in HandleOnCanceledMap()
202 void AnsSubscriberStub::OnConsumed(const sptr<Notification> &notification) in OnConsumed() argument
[all …]
Dans_subscriber_proxy.cpp90 void AnsSubscriberProxy::OnConsumed(const sptr<Notification> &notification) in OnConsumed() argument
92 if (notification == nullptr) { in OnConsumed()
103 if (!data.WriteParcelable(notification)) { in OnConsumed()
118 const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap) in OnConsumed() argument
120 if (notification == nullptr) { in OnConsumed()
131 if (!data.WriteParcelable(notification)) { in OnConsumed()
158 …const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap, int32… in OnCanceled() argument
160 if (notification == nullptr) { in OnCanceled()
171 if (!data.WriteParcelable(notification)) { in OnCanceled()
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_subscriber_stub_test/
Dans_subscriber_stub_unit_test.cpp194 sptr<Notification> notification = new Notification(); variable
195 data.WriteParcelable(notification);
225 sptr<Notification> notification = new Notification(); variable
226 data.WriteParcelable(notification);
242 sptr<Notification> notification = new Notification(); variable
243 data.WriteParcelable(notification);
261 sptr<Notification> notification = new Notification(); variable
262 data.WriteParcelable(notification);
296 sptr<Notification> notification = new Notification(); variable
297 data.WriteParcelable(notification);
[all …]
/base/notification/distributed_notification_service/test/fuzztest/anssubscriberproxy_fuzzer/
Danssubscriberproxy_fuzzer.cpp41 sptr<Notification::Notification> notification = new Notification::Notification(); in DoSomethingInterestingWithMyAPI() local
42 ansSubscriberProxy.OnConsumed(notification); in DoSomethingInterestingWithMyAPI()
45 ansSubscriberProxy.OnConsumed(notification, notificationMap); in DoSomethingInterestingWithMyAPI()
48 ansSubscriberProxy.OnCanceled(notification, notificationMap, deleteReason); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/frameworks/ans/src/
Dnotification_subscriber.cpp62 void NotificationSubscriber::SubscriberImpl::OnConsumed(const sptr<Notification> &notification) in OnConsumed() argument
65 subscriber_.OnConsumed(std::make_shared<Notification>(*notification)); in OnConsumed()
69 const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap) in OnConsumed() argument
73 …std::make_shared<Notification>(*notification), std::make_shared<NotificationSortingMap>(*notificat… in OnConsumed()
77 …const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap, int32… in OnCanceled() argument
80 subscriber_.OnCanceled(std::make_shared<Notification>(*notification), in OnCanceled()
/base/notification/distributed_notification_service/test/fuzztest/anssubscriberstub_fuzzer/
Danssubscriberstub_fuzzer.cpp55 sptr<Notification::Notification> notification = new Notification::Notification(); in DoSomethingInterestingWithMyAPI() local
56 ansSubscriberStub.OnConsumed(notification); in DoSomethingInterestingWithMyAPI()
59 ansSubscriberStub.OnConsumed(notification, notificationMap); in DoSomethingInterestingWithMyAPI()
62 ansSubscriberStub.OnCanceled(notification, notificationMap, deleteReason); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/frameworks/core/include/
Dans_subscriber_interface.h54 virtual void OnConsumed(const sptr<Notification> &notification) = 0;
63 … const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap) = 0;
72 …virtual void OnCanceled(const sptr<Notification> &notification, const sptr<NotificationSortingMap>…
Dans_subscriber_proxy.h46 void OnConsumed(const sptr<Notification> &notification) override;
55 …const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap) overr…
64 …void OnCanceled(const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notifi…
Dans_subscriber_stub.h56 void OnConsumed(const sptr<Notification> &notification) override;
65 …const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap) overr…
74 …void OnCanceled(const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notifi…
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_subscriber_proxy_test/
Dans_subscriber_proxy_unit_test.cpp160 …sptr<OHOS::Notification::Notification> notification = new (std::nothrow) OHOS::Notification::Notif… variable
161 ASSERT_NE(nullptr, notification);
162 proxy->OnConsumed(notification);
180 …sptr<OHOS::Notification::Notification> notification = new (std::nothrow) OHOS::Notification::Notif… variable
181 ASSERT_NE(nullptr, notification);
182 proxy->OnConsumed(notification);
218 …sptr<OHOS::Notification::Notification> notification = new (std::nothrow) OHOS::Notification::Notif… variable
219 ASSERT_NE(nullptr, notification);
222 proxy->OnConsumed(notification, notificationMap);
240 …sptr<OHOS::Notification::Notification> notification = new (std::nothrow) OHOS::Notification::Notif… variable
[all …]
/base/notification/distributed_notification_service/services/ans/include/
Dnotification_subscriber_manager.h67 …void NotifyConsumed(const sptr<Notification> &notification, const sptr<NotificationSortingMap> &no…
76 void NotifyCanceled(const sptr<Notification> &notification,
118 … const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap);
119 void NotifyCanceledInner(const sptr<Notification> &notification,
/base/notification/eventhandler/
Deventhandler.gni14 frameworks_path = "//base/notification/eventhandler/frameworks"
15 inner_api_path = "//base/notification/eventhandler/interfaces/inner_api"
16 kits_path = "//base/notification/eventhandler/interfaces/kits"
/base/notification/distributed_notification_service/interfaces/inner_api/
Dnotification_subscriber.h120 void OnConsumed(const sptr<Notification> &notification) override;
123 …const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap) overr…
125 …void OnCanceled(const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notifi…
/base/notification/eventhandler/test/fuzztest/nativeimplementeventhandler_fuzzer/
DBUILD.gn15 import("//base/notification/eventhandler/eventhandler.gni")
23 …fuzz_config_file = "//base/notification/eventhandler/test/fuzztest/nativeimplementeventhandler_fuz…
27 "//base/notification/eventhandler/interfaces/kits/native",
/base/notification/common_event_service/tools/cem/
DBUILD.gn14 import("//base/notification/common_event_service/event.gni")
51 subsystem_name = "notification"
60 subsystem_name = "notification"
/base/notification/distributed_notification_service/frameworks/js/napi/
DBUILD.gn14 import("//base/notification/distributed_notification_service/notification.gni")
26 ":notification",
44 ohos_shared_library("notification") {
/base/notification/distributed_notification_service/services/ans/test/unittest/
Dnotification_subscriber_manager_test.cpp139 sptr<Notification> notification = new Notification(request); variable
141 notificationSubscriberManager_->NotifyConsumed(notification, notificationMap);
159 sptr<Notification> notification = new Notification(request); variable
162 notificationSubscriberManager_->NotifyCanceled(notification, notificationMap, deleteReason);

12345678910