/base/notification/distributed_notification_service/test/fuzztest/notification_fuzzer/ |
D | notification_fuzzer.cpp | 31 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/ |
D | readfromparcel_fuzzer.cpp | 37 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/ |
D | callnotification_fuzzer.cpp | 59 …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/ |
D | notification_slot_filter.cpp | 34 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()
|
D | advanced_notification_service.cpp | 102 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 …]
|
D | notification_subscriber_manager.cpp | 111 const sptr<Notification> ¬ification, const sptr<NotificationSortingMap> ¬ificationMap) in NotifyConsumed() argument 119 …std::bind(&NotificationSubscriberManager::NotifyConsumedInner, this, notification, notificationMap… in NotifyConsumed() 125 …const sptr<Notification> ¬ification, const sptr<NotificationSortingMap> ¬ificationMap, int32… in NotifyCanceled() argument 134 …&NotificationSubscriberManager::NotifyCanceledInner, this, notification, notificationMap, deleteRe… in NotifyCanceled() 313 const sptr<Notification> ¬ification, const sptr<NotificationSortingMap> ¬ificationMap) 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 …]
|
D | permission_filter.cpp | 49 if (record->notification->GetBundleName() != record->notification->GetCreateBundle()) { in OnPublish()
|
/base/notification/distributed_notification_service/test/fuzztest/notificationannex_fuzzer/ |
D | notificationannex_fuzzer.cpp | 31 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/ |
D | ans_subscriber_stub.cpp | 92 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> ¬ification) in OnConsumed() argument [all …]
|
D | ans_subscriber_proxy.cpp | 90 void AnsSubscriberProxy::OnConsumed(const sptr<Notification> ¬ification) in OnConsumed() argument 92 if (notification == nullptr) { in OnConsumed() 103 if (!data.WriteParcelable(notification)) { in OnConsumed() 118 const sptr<Notification> ¬ification, const sptr<NotificationSortingMap> ¬ificationMap) in OnConsumed() argument 120 if (notification == nullptr) { in OnConsumed() 131 if (!data.WriteParcelable(notification)) { in OnConsumed() 158 …const sptr<Notification> ¬ification, const sptr<NotificationSortingMap> ¬ificationMap, 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/ |
D | ans_subscriber_stub_unit_test.cpp | 194 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/ |
D | anssubscriberproxy_fuzzer.cpp | 41 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/ |
D | notification_subscriber.cpp | 62 void NotificationSubscriber::SubscriberImpl::OnConsumed(const sptr<Notification> ¬ification) in OnConsumed() argument 65 subscriber_.OnConsumed(std::make_shared<Notification>(*notification)); in OnConsumed() 69 const sptr<Notification> ¬ification, const sptr<NotificationSortingMap> ¬ificationMap) in OnConsumed() argument 73 …std::make_shared<Notification>(*notification), std::make_shared<NotificationSortingMap>(*notificat… in OnConsumed() 77 …const sptr<Notification> ¬ification, const sptr<NotificationSortingMap> ¬ificationMap, int32… in OnCanceled() argument 80 subscriber_.OnCanceled(std::make_shared<Notification>(*notification), in OnCanceled()
|
/base/notification/distributed_notification_service/test/fuzztest/anssubscriberstub_fuzzer/ |
D | anssubscriberstub_fuzzer.cpp | 55 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/ |
D | ans_subscriber_interface.h | 54 virtual void OnConsumed(const sptr<Notification> ¬ification) = 0; 63 … const sptr<Notification> ¬ification, const sptr<NotificationSortingMap> ¬ificationMap) = 0; 72 …virtual void OnCanceled(const sptr<Notification> ¬ification, const sptr<NotificationSortingMap>…
|
D | ans_subscriber_proxy.h | 46 void OnConsumed(const sptr<Notification> ¬ification) override; 55 …const sptr<Notification> ¬ification, const sptr<NotificationSortingMap> ¬ificationMap) overr… 64 …void OnCanceled(const sptr<Notification> ¬ification, const sptr<NotificationSortingMap> ¬ifi…
|
D | ans_subscriber_stub.h | 56 void OnConsumed(const sptr<Notification> ¬ification) override; 65 …const sptr<Notification> ¬ification, const sptr<NotificationSortingMap> ¬ificationMap) overr… 74 …void OnCanceled(const sptr<Notification> ¬ification, const sptr<NotificationSortingMap> ¬ifi…
|
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_subscriber_proxy_test/ |
D | ans_subscriber_proxy_unit_test.cpp | 160 …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/ |
D | notification_subscriber_manager.h | 67 …void NotifyConsumed(const sptr<Notification> ¬ification, const sptr<NotificationSortingMap> &no… 76 void NotifyCanceled(const sptr<Notification> ¬ification, 118 … const sptr<Notification> ¬ification, const sptr<NotificationSortingMap> ¬ificationMap); 119 void NotifyCanceledInner(const sptr<Notification> ¬ification,
|
/base/notification/eventhandler/ |
D | eventhandler.gni | 14 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/ |
D | notification_subscriber.h | 120 void OnConsumed(const sptr<Notification> ¬ification) override; 123 …const sptr<Notification> ¬ification, const sptr<NotificationSortingMap> ¬ificationMap) overr… 125 …void OnCanceled(const sptr<Notification> ¬ification, const sptr<NotificationSortingMap> ¬ifi…
|
/base/notification/eventhandler/test/fuzztest/nativeimplementeventhandler_fuzzer/ |
D | BUILD.gn | 15 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/ |
D | BUILD.gn | 14 import("//base/notification/common_event_service/event.gni") 51 subsystem_name = "notification" 60 subsystem_name = "notification"
|
/base/notification/distributed_notification_service/frameworks/js/napi/ |
D | BUILD.gn | 14 import("//base/notification/distributed_notification_service/notification.gni") 26 ":notification", 44 ohos_shared_library("notification") {
|
/base/notification/distributed_notification_service/services/ans/test/unittest/ |
D | notification_subscriber_manager_test.cpp | 139 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);
|