Home
last modified time | relevance | path

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

1234567891011

/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
415 if (!IsNotificationExists(record->notification->GetKey())) { in AssignToNotificationList()
419 record->notification->SetEnableLight(false); in AssignToNotificationList()
420 record->notification->SetEnableSound(false); in AssignToNotificationList()
421 record->notification->SetEnableVibration(false); in AssignToNotificationList()
443 sptr<Notification> notification = nullptr; in CancelPreparedNotification() local
444 … result = RemoveFromNotificationList(bundleOption, label, notificationId, notification, true); in CancelPreparedNotification()
449 if (notification != nullptr) { in CancelPreparedNotification()
451 UpdateRecentNotification(notification, true, reason); in CancelPreparedNotification()
452 … NotificationSubscriberManager::GetInstance()->NotifyCanceled(notification, nullptr, reason); in CancelPreparedNotification()
[all …]
Dnotification_subscriber_manager.cpp133 const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap) in NotifyConsumed() argument
141 …std::bind(&NotificationSubscriberManager::NotifyConsumedInner, this, notification, notificationMap… in NotifyConsumed()
149 …const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap, int32… in NotifyCanceled() argument
157 …&NotificationSubscriberManager::NotifyCanceledInner, this, notification, notificationMap, deleteRe… in NotifyCanceled()
363 const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap) in NotifyConsumedInner() argument
367 …ANS_LOGD("%{public}s notification->GetUserId <%{public}d>", __FUNCTION__, notification->GetUserId(… in NotifyConsumedInner()
368 int32_t recvUserId = notification->GetNotificationRequest().GetReceiverUserId(); in NotifyConsumedInner()
369 int32_t sendUserId = notification->GetUserId(); in NotifyConsumedInner()
371 auto BundleNames = notification->GetBundleName(); in NotifyConsumedInner()
381 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/update/update_app/feature/ota/src/main/ets/notify/
DNotificationHelper.ets16 import notification from '@ohos.notificationManager';
67 … globalThis.isSupportTemplate = await notification.isSupportTemplate(templateName).catch(err => {
78 contentType: notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT,
95 slotType: notification.SlotType.SERVICE_INFORMATION,
98 await notification.publish(notificationRequest).catch((err) => {
99 this.logError('showDownloading notification publish failed because ' + JSON.stringify(err));
113 … globalThis.isSupportTemplate = await notification.isSupportTemplate(templateName).catch(err => {
124 contentType: notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT,
141 slotType: notification.SlotType.SERVICE_INFORMATION,
144 await notification.publish(notificationRequest).catch((err) => {
[all …]
/base/notification/distributed_notification_service/frameworks/ans/src/
Dnotification_subscriber.cpp63 const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap) in OnConsumed() argument
67 …std::make_shared<Notification>(*notification), std::make_shared<NotificationSortingMap>(*notificat… in OnConsumed()
71 …const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap, int32… in OnCanceled() argument
75 subscriber_.OnCanceled(std::make_shared<Notification>(*notification), in OnCanceled()
78 subscriber_.OnCanceled(std::make_shared<Notification>(*notification), in OnCanceled()
88 for (auto notification : notifications) { in OnCanceledList() local
89 OnCanceled(notification, notificationMap, deleteReason); in OnCanceledList()
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_subscriber_stub_test/
Dans_subscriber_stub_unit_test.cpp195 sptr<Notification> notification = new Notification(); variable
196 data.WriteParcelable(notification);
212 sptr<Notification> notification = new Notification(); variable
213 data.WriteParcelable(notification);
231 sptr<Notification> notification = new Notification(); variable
232 data.WriteParcelable(notification);
266 sptr<Notification> notification = new Notification(); variable
267 data.WriteParcelable(notification);
283 sptr<Notification> notification = new Notification(); variable
284 data.WriteParcelable(notification);
[all …]
/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"
17 fuzztest_path = "//base/notification/eventhandler/test/fuzztest"
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_subscriber_proxy_branch_test/
Dans_subscriber_proxy_branch_test.cpp91 …sptr<OHOS::Notification::Notification> notification = new (std::nothrow) OHOS::Notification::Notif… variable
93 notifications.emplace_back(notification);
114 …sptr<OHOS::Notification::Notification> notification = new (std::nothrow) OHOS::Notification::Notif… variable
116 notifications.emplace_back(notification);
155 …sptr<OHOS::Notification::Notification> notification = new (std::nothrow) OHOS::Notification::Notif… variable
157 notifications.emplace_back(notification);
/base/notification/distributed_notification_service/test/fuzztest/anssubscriberproxy_fuzzer/
Danssubscriberproxy_fuzzer.cpp41 sptr<Notification::Notification> notification = new Notification::Notification(); in DoSomethingInterestingWithMyAPI() local
43 ansSubscriberProxy.OnConsumed(notification, notificationMap); in DoSomethingInterestingWithMyAPI()
46 ansSubscriberProxy.OnCanceled(notification, notificationMap, deleteReason); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/test/fuzztest/anssubscriberstub_fuzzer/
Danssubscriberstub_fuzzer.cpp53 sptr<Notification::Notification> notification = new Notification::Notification(); in DoSomethingInterestingWithMyAPI() local
55 ansSubscriberStub.OnConsumed(notification, notificationMap); in DoSomethingInterestingWithMyAPI()
58 ansSubscriberStub.OnCanceled(notification, notificationMap, deleteReason); in DoSomethingInterestingWithMyAPI()
/base/usb/usb_manager/frameworks/dialog/functionswitch_ui/usb_function_dialog/src/main/ets/util/
DNotificationUtil.ets51 * enable notification
65 * @param id, Support specifying notification id when publishing notifications
131 * cancel notification by id
136 Logger.info(TAG, 'cancel notification success');
139 Logger.error(TAG, `=cancel notification err ${JSON.stringify(err)}`);
145 * cancel all notification
150 Logger.info(TAG, 'cancel all notification success');
153 Logger.error(TAG, `cancel all notification err ${JSON.stringify(err)}`);
/base/notification/distributed_notification_service/services/ans/include/
Dnotification_subscriber_manager.h68 …void NotifyConsumed(const sptr<Notification> &notification, const sptr<NotificationSortingMap> &no…
77 void NotifyCanceled(const sptr<Notification> &notification,
135 … const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap);
136 void NotifyCanceledInner(const sptr<Notification> &notification,
/base/notification/distributed_notification_service/frameworks/core/src/
Dans_subscriber_stub.cpp94 sptr<Notification> notification = data.ReadParcelable<Notification>(); in HandleOnConsumedMap() local
95 if (!notification) { in HandleOnConsumedMap()
115 OnConsumed(notification, notificationMap); in HandleOnConsumedMap()
121 sptr<Notification> notification = data.ReadParcelable<Notification>(); in HandleOnCanceledMap() local
122 if (!notification) { in HandleOnCanceledMap()
148 OnCanceled(notification, notificationMap, reason); in HandleOnCanceledMap()
262 const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap) in OnConsumed() argument
266 …const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap, int32… in OnCanceled() argument
Dans_subscriber_proxy.cpp91 const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap) in OnConsumed() argument
93 if (notification == nullptr) { in OnConsumed()
104 if (!data.WriteParcelable(notification)) { in OnConsumed()
131 …const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap, int32… in OnCanceled() argument
133 if (notification == nullptr) { in OnCanceled()
144 if (!data.WriteParcelable(notification)) { in OnCanceled()
/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/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);
164 proxy->OnConsumed(notification, notificationMap);
182 …sptr<OHOS::Notification::Notification> notification = new (std::nothrow) OHOS::Notification::Notif… variable
183 ASSERT_NE(nullptr, notification);
186 proxy->OnConsumed(notification, notificationMap);
224 …sptr<OHOS::Notification::Notification> notification = new (std::nothrow) OHOS::Notification::Notif… variable
225 ASSERT_NE(nullptr, notification);
226 proxy->OnConsumed(notification, nullptr);
244 …sptr<OHOS::Notification::Notification> notification = new (std::nothrow) OHOS::Notification::Notif… variable
[all …]
/base/notification/common_event_service/tools/cem/
DBUILD.gn14 import("//base/notification/common_event_service/event.gni")
48 subsystem_name = "notification"
57 subsystem_name = "notification"
/base/notification/distributed_notification_service/frameworks/core/include/
Dans_subscriber_interface.h57 … const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap) = 0;
66 …virtual void OnCanceled(const sptr<Notification> &notification, const sptr<NotificationSortingMap>…
/base/notification/distributed_notification_service/services/ans/test/unittest/
Dnotification_subscriber_manager_test.cpp142 sptr<Notification> notification = new Notification(request); variable
144 notificationSubscriberManager_->NotifyConsumed(notification, notificationMap);
162 sptr<Notification> notification = new Notification(request); variable
165 notificationSubscriberManager_->NotifyCanceled(notification, notificationMap, deleteReason);
/base/notification/distributed_notification_service/test/fuzztest/getallactivenotifications_fuzzer/
Dgetallactivenotifications_fuzzer.cpp35 sptr<Notification::Notification> notification = nullptr; in DoSomethingInterestingWithMyAPI() local
37 notifications.emplace_back(notification); in DoSomethingInterestingWithMyAPI()

1234567891011