Home
last modified time | relevance | path

Searched refs:Notification (Results 1 – 25 of 206) sorted by relevance

123456789

/base/notification/ans_standard/frameworks/ans/native/src/
Dnotification.cpp23 namespace Notification { namespace
24 Notification::Notification() {}; in Notification() function in OHOS::Notification::Notification
26 Notification::Notification(const sptr<NotificationRequest> &request) in Notification() function in OHOS::Notification::Notification
32 Notification::Notification(const std::string &deviceId, const sptr<NotificationRequest> &request) in Notification() function in OHOS::Notification::Notification
39 Notification::Notification(const Notification &other) in Notification() function in OHOS::Notification::Notification
57 Notification::~Notification() in ~Notification()
60 bool Notification::EnableLight() const in EnableLight()
65 bool Notification::EnableSound() const in EnableSound()
70 bool Notification::EnableVibrate() const in EnableVibrate()
75 std::string Notification::GetBundleName() const in GetBundleName()
[all …]
Dnotification_subscriber.cpp22 namespace Notification { namespace
59 void NotificationSubscriber::SubscriberImpl::OnConsumed(const sptr<Notification> &notification) in OnConsumed()
61 subscriber_.OnConsumed(std::make_shared<Notification>(*notification)); in OnConsumed()
65 const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap) in OnConsumed()
68 …std::make_shared<Notification>(*notification), std::make_shared<NotificationSortingMap>(*notificat… in OnConsumed()
71 void NotificationSubscriber::SubscriberImpl::OnCanceled(const sptr<Notification> &notification) in OnCanceled()
73 subscriber_.OnCanceled(std::make_shared<Notification>(*notification)); in OnCanceled()
77 …const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap, int d… in OnCanceled()
79 subscriber_.OnCanceled(std::make_shared<Notification>(*notification), in OnCanceled()
/base/notification/ans_standard/test/resource/ansSTSlotGroupTest/src/
Dans_slotgroup_test.cpp24 Notification::NotificationSlotGroup slotGroupTest("id_test", "name_test"); in OnStart()
30 …ErrCode errAddGroupTest = Notification::NotificationHelper::AddNotificationSlotGroup(slotGroupTest… in OnStart()
33Notification::NotificationSlot slotFirst(Notification::NotificationConstant::SlotType::SOCIAL_COMM… in OnStart()
34Notification::NotificationSlot slotSecond(Notification::NotificationConstant::SlotType::SERVICE_RE… in OnStart()
35Notification::NotificationSlot slotThird(Notification::NotificationConstant::SlotType::CONTENT_INF… in OnStart()
36 Notification::NotificationSlot slotFourth(Notification::NotificationConstant::SlotType::OTHER); in OnStart()
37 Notification::NotificationSlot slotFifth(Notification::NotificationConstant::SlotType::CUSTOM); in OnStart()
45 ErrCode errAddSlotFirst = Notification::NotificationHelper::AddNotificationSlot(slotFirst); in OnStart()
46 ErrCode errAddSlotSecond = Notification::NotificationHelper::AddNotificationSlot(slotSecond); in OnStart()
47 ErrCode errAddSlotThird = Notification::NotificationHelper::AddNotificationSlot(slotThird); in OnStart()
[all …]
/base/notification/ans_standard/test/resource/notificationfuzztest/src/
Dnotificationfuzztestmanager.cpp24 namespace Notification { namespace
30 …[]() { OHOS::Notification::NotificationHelper::AddNotificationSlot(*GetParamNotificationSlot()); }… in RegisterNotificationHelper()
33 []() { OHOS::Notification::NotificationHelper::AddSlotByType(GetParamSlotType()); }); in RegisterNotificationHelper()
36 …[]() { OHOS::Notification::NotificationHelper::AddNotificationSlots(GetParamNotificationSlotVector… in RegisterNotificationHelper()
39 … []() { OHOS::Notification::NotificationHelper::RemoveNotificationSlot(GetParamSlotType()); }); in RegisterNotificationHelper()
42 …"NotificationHelperRemoveAllSlots", []() { OHOS::Notification::NotificationHelper::RemoveAllSlots(… in RegisterNotificationHelper()
45 sptr<OHOS::Notification::NotificationSlot> param = GetParamNotificationSlotSptr(); in RegisterNotificationHelper()
46 OHOS::Notification::NotificationHelper::GetNotificationSlot(GetParamSlotType(), param); in RegisterNotificationHelper()
50 …std::vector<sptr<OHOS::Notification::NotificationSlot>> param = GetParamNotificationSlotSptrVector… in RegisterNotificationHelper()
51 OHOS::Notification::NotificationHelper::GetNotificationSlots(param); in RegisterNotificationHelper()
[all …]
Dnotificationgetparam.cpp49 namespace Notification { namespace
506 std::shared_ptr<OHOS::Notification::NotificationSlot> GetParamNotificationSlot() in GetParamNotificationSlot()
508 return std::make_shared<OHOS::Notification::NotificationSlot>(GetParamSlotType()); in GetParamNotificationSlot()
511 sptr<OHOS::Notification::NotificationSlot> GetParamNotificationSlotSptr() in GetParamNotificationSlotSptr()
513 …sptr<OHOS::Notification::NotificationSlot> param = new OHOS::Notification::NotificationSlot(GetPar… in GetParamNotificationSlotSptr()
517 OHOS::Notification::NotificationConstant::SlotType GetParamSlotType() in GetParamSlotType()
521 return OHOS::Notification::NotificationConstant::SlotType::SOCIAL_COMMUNICATION; in GetParamSlotType()
524 return OHOS::Notification::NotificationConstant::SlotType::SERVICE_REMINDER; in GetParamSlotType()
527 return OHOS::Notification::NotificationConstant::SlotType::CONTENT_INFORMATION; in GetParamSlotType()
530 return OHOS::Notification::NotificationConstant::SlotType::CUSTOM; in GetParamSlotType()
[all …]
/base/notification/ans_standard/test/resource/notificationfuzztest/include/
Dnotificationgetparam.h50 namespace Notification {
95 std::shared_ptr<OHOS::Notification::NotificationSorting> GetParamNotificationSorting();
96 std::vector<OHOS::Notification::NotificationSorting> GetParamNotificationSortingVector();
97 std::shared_ptr<OHOS::Notification::NotificationSortingMap> GetParamNotificationSortingMap();
98 std::shared_ptr<OHOS::Notification::NotificationSlot> GetParamNotificationSlot();
99 sptr<OHOS::Notification::NotificationSlot> GetParamNotificationSlotSptr();
100 OHOS::Notification::NotificationConstant::SlotType GetParamSlotType();
101 std::vector<sptr<OHOS::Notification::NotificationSlot>> GetParamNotificationSlotSptrVector();
102 std::vector<OHOS::Notification::NotificationSlot> GetParamNotificationSlotVector();
103 std::vector<OHOS::Notification::NotificationSlotGroup> GetParamNotificationSlotGroupVector();
[all …]
/base/notification/ans_standard/interfaces/innerkits/ans/native/include/
Dnotification_subscriber.h26 namespace Notification {
44 virtual void OnCanceled(const std::shared_ptr<Notification> &request) = 0;
54 virtual void OnCanceled(const std::shared_ptr<Notification> &request,
67 virtual void OnConsumed(const std::shared_ptr<Notification> &request) = 0;
77 …const std::shared_ptr<Notification> &request, const std::shared_ptr<NotificationSortingMap> &sorti…
133 void OnConsumed(const sptr<Notification> &notification) override;
136 …const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap) overr…
138 void OnCanceled(const sptr<Notification> &notification) override;
140 …void OnCanceled(const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notifi…
Dnotification.h24 namespace Notification {
25 class Notification final : public Parcelable {
32 Notification(const sptr<NotificationRequest> &request);
40 Notification(const std::string &deviceId, const sptr<NotificationRequest> &request);
47 Notification(const Notification &other);
52 ~Notification();
249 static Notification *Unmarshalling(Parcel &parcel);
252 Notification();
/base/notification/ans_standard/interfaces/kits/napi/ans/include/
Dsubscribe.h22 using namespace OHOS::Notification;
30 …virtual void OnCanceled(const std::shared_ptr<OHOS::Notification::Notification> &request) override;
32 virtual void OnCanceled(const std::shared_ptr<OHOS::Notification::Notification> &request,
35 …virtual void OnConsumed(const std::shared_ptr<OHOS::Notification::Notification> &request) override;
37 virtual void OnConsumed(const std::shared_ptr<OHOS::Notification::Notification> &request,
Dcommon.h25 using namespace OHOS::Notification;
180 … const napi_env &env, const OHOS::Notification::Notification *notification, napi_value &result);
183 … const napi_env &env, const OHOS::Notification::NotificationRequest *request, napi_value &result);
185 … const napi_env &env, const OHOS::Notification::NotificationRequest *request, napi_value &result);
187 … const napi_env &env, const OHOS::Notification::NotificationRequest *request, napi_value &result);
189 … const napi_env &env, const OHOS::Notification::NotificationRequest *request, napi_value &result);
191 … const napi_env &env, const OHOS::Notification::NotificationRequest *request, napi_value &result);
193 … const napi_env &env, const OHOS::Notification::NotificationRequest *request, napi_value &result);
195 … const napi_env &env, const OHOS::Notification::NotificationRequest *request, napi_value &result);
198 … const napi_env &env, const OHOS::Notification::Notification *notification, napi_value &result);
[all …]
/base/notification/ans_standard/frameworks/ans/core/include/
Dans_subscriber_interface.h30 namespace Notification {
41 virtual void OnConsumed(const sptr<Notification> &notification) = 0;
43 … const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap) = 0;
44 virtual void OnCanceled(const sptr<Notification> &notification) = 0;
45 …virtual void OnCanceled(const sptr<Notification> &notification, const sptr<NotificationSortingMap>…
Dans_subscriber_proxy.h23 namespace Notification {
33 void OnConsumed(const sptr<Notification> &notification) override;
35 …const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap) overr…
36 void OnCanceled(const sptr<Notification> &notification) override;
37 …void OnCanceled(const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notifi…
Dans_subscriber_stub.h23 namespace Notification {
35 void OnConsumed(const sptr<Notification> &notification) override;
37 …const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap) overr…
38 void OnCanceled(const sptr<Notification> &notification) override;
39 …void OnCanceled(const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notifi…
/base/notification/ans_standard/frameworks/ans/core/src/
Dans_subscriber_stub.cpp26 namespace Notification { namespace
94 sptr<Notification> notification = data.ReadParcelable<Notification>(); in HandleOnConsumed()
106 sptr<Notification> notification = data.ReadParcelable<Notification>(); in HandleOnConsumedMap()
133 sptr<Notification> notification = data.ReadParcelable<Notification>(); in HandleOnCanceled()
145 sptr<Notification> notification = data.ReadParcelable<Notification>(); in HandleOnCanceledMap()
216 void AnsSubscriberStub::OnConsumed(const sptr<Notification> &notification) in OnConsumed()
220 const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap) in OnConsumed()
223 void AnsSubscriberStub::OnCanceled(const sptr<Notification> &notification) in OnCanceled()
227 …const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap, int d… in OnCanceled()
Dans_subscriber_proxy.cpp24 namespace Notification { namespace
90 void AnsSubscriberProxy::OnConsumed(const sptr<Notification> &notification) in OnConsumed()
118 const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap) in OnConsumed()
157 void AnsSubscriberProxy::OnCanceled(const sptr<Notification> &notification) in OnCanceled()
185 …const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap, int d… in OnCanceled()
/base/telephony/call_manager/services/call/call_state_observer/src/
Dincoming_call_notification.cpp78 std::shared_ptr<Notification::NotificationNormalContent> normalContent = in PublishIncomingCallNotification()
79 std::make_shared<Notification::NotificationNormalContent>(); in PublishIncomingCallNotification()
86 std::shared_ptr<Notification::NotificationContent> content = in PublishIncomingCallNotification()
87 std::make_shared<Notification::NotificationContent>(normalContent); in PublishIncomingCallNotification()
92 Notification::NotificationRequest request; in PublishIncomingCallNotification()
95 int32_t result = Notification::NotificationHelper::PublishNotification(request); in PublishIncomingCallNotification()
Dmissed_call_notification.cpp81 std::shared_ptr<Notification::NotificationNormalContent> normalContent = in PublishMissedCallNotification()
82 std::make_shared<Notification::NotificationNormalContent>(); in PublishMissedCallNotification()
89 std::shared_ptr<Notification::NotificationContent> content = in PublishMissedCallNotification()
90 std::make_shared<Notification::NotificationContent>(normalContent); in PublishMissedCallNotification()
95 Notification::NotificationRequest request; in PublishMissedCallNotification()
98 int32_t result = Notification::NotificationHelper::PublishNotification(request); in PublishMissedCallNotification()
/base/notification/ans_standard/services/ans/test/unittest/
Dnotification_subscriber_manager_test.cpp27 namespace Notification { namespace
51 void OnCanceled(const std::shared_ptr<Notification> &request) override in OnCanceled()
53 void OnCanceled(const std::shared_ptr<Notification> &request, in OnCanceled()
56 void OnConsumed(const std::shared_ptr<Notification> &request) override in OnConsumed()
58 void OnConsumed(const std::shared_ptr<Notification> &request, in OnConsumed()
128 sptr<Notification> notification = new Notification(request);
142 sptr<Notification> notification = new Notification(request);
Dnotification_slot_filter_test.cpp23 namespace Notification { namespace
64 record->notification = new Notification(record->request);
Dpermission_filter_test.cpp28 namespace Notification { namespace
86 record->notification = new Notification(record->request);
110 record->notification = new Notification(record->request);
Dnotification_preferences_database_test.cpp23 namespace Notification { namespace
155 …preferncesDB_->PutImportance(bundleInfo, OHOS::Notification::NotificationSlot::NotificationLevel::…
157 …preferncesDB_->PutImportance(bundleInfo, OHOS::Notification::NotificationSlot::NotificationLevel::…
159 …preferncesDB_->PutImportance(bundleInfo, OHOS::Notification::NotificationSlot::NotificationLevel::…
161 bundleInfo, OHOS::Notification::NotificationSlot::NotificationLevel::LEVEL_DEFAULT));
163 …preferncesDB_->PutImportance(bundleInfo, OHOS::Notification::NotificationSlot::NotificationLevel::…
165 bundleInfo, OHOS::Notification::NotificationSlot::NotificationLevel::LEVEL_UNDEFINED));
180 …preferncesDB_->PutImportance(bundleInfo, OHOS::Notification::NotificationSlot::NotificationLevel::…
404 bundleName_, OHOS::Notification::NotificationConstant::SlotType::SOCIAL_COMMUNICATION));
415 std::string(), OHOS::Notification::NotificationConstant::SlotType::SOCIAL_COMMUNICATION));
/base/notification/ans_standard/services/ans/include/
Dnotification_subscriber_manager.h38 namespace Notification {
45 …void NotifyConsumed(const sptr<Notification> &notification, const sptr<NotificationSortingMap> &no…
47 …const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap, int d…
69 … const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap);
71 …const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap, int d…
Dnotification_record.h29 namespace Notification {
33 sptr<Notification> notification;
/base/notification/ans_standard/tools/dump/include/
Dnotification_shell_command.h23 namespace Notification {
24 class NotificationShellCommand : public OHOS::Notification::ShellCommand {
/base/notification/ans_standard/services/test/moduletest/
Dans_module_test.cpp26 namespace Notification { namespace
27 typedef std::function<void(const std::shared_ptr<Notification>, const std::shared_ptr<NotificationS…
29 typedef std::function<void(const std::shared_ptr<Notification>, const std::shared_ptr<NotificationS…
57 void OnCanceled(const std::shared_ptr<Notification> &request) override in OnCanceled()
59 void OnCanceled(const std::shared_ptr<Notification> &request, in OnCanceled()
66 void OnConsumed(const std::shared_ptr<Notification> &request) override in OnConsumed()
68 void OnConsumed(const std::shared_ptr<Notification> &request, in OnConsumed()
136 …subscriber->consumedCb_ = [](const std::shared_ptr<Notification>, const std::shared_ptr<Notificati… in __anonfa81cb9d0102() argument
173 std::vector<sptr<Notification>> notifications;
197 …subscriber->consumedCb_ = [](const std::shared_ptr<Notification>, const std::shared_ptr<Notificati… in __anonfa81cb9d0202() argument
[all …]

123456789