/base/notification/ans_standard/frameworks/ans/native/src/ |
D | notification.cpp | 23 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 …]
|
D | notification_subscriber.cpp | 22 namespace Notification { namespace 59 void NotificationSubscriber::SubscriberImpl::OnConsumed(const sptr<Notification> ¬ification) in OnConsumed() 61 subscriber_.OnConsumed(std::make_shared<Notification>(*notification)); in OnConsumed() 65 const sptr<Notification> ¬ification, const sptr<NotificationSortingMap> ¬ificationMap) in OnConsumed() 68 …std::make_shared<Notification>(*notification), std::make_shared<NotificationSortingMap>(*notificat… in OnConsumed() 71 void NotificationSubscriber::SubscriberImpl::OnCanceled(const sptr<Notification> ¬ification) in OnCanceled() 73 subscriber_.OnCanceled(std::make_shared<Notification>(*notification)); in OnCanceled() 77 …const sptr<Notification> ¬ification, const sptr<NotificationSortingMap> ¬ificationMap, int d… in OnCanceled() 79 subscriber_.OnCanceled(std::make_shared<Notification>(*notification), in OnCanceled()
|
/base/notification/ans_standard/test/resource/ansSTSlotGroupTest/src/ |
D | ans_slotgroup_test.cpp | 24 Notification::NotificationSlotGroup slotGroupTest("id_test", "name_test"); in OnStart() 30 …ErrCode errAddGroupTest = Notification::NotificationHelper::AddNotificationSlotGroup(slotGroupTest… in OnStart() 33 …Notification::NotificationSlot slotFirst(Notification::NotificationConstant::SlotType::SOCIAL_COMM… in OnStart() 34 …Notification::NotificationSlot slotSecond(Notification::NotificationConstant::SlotType::SERVICE_RE… in OnStart() 35 …Notification::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/ |
D | notificationfuzztestmanager.cpp | 24 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 …]
|
D | notificationgetparam.cpp | 49 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/ |
D | notificationgetparam.h | 50 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/ |
D | notification_subscriber.h | 26 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> ¬ification) override; 136 …const sptr<Notification> ¬ification, const sptr<NotificationSortingMap> ¬ificationMap) overr… 138 void OnCanceled(const sptr<Notification> ¬ification) override; 140 …void OnCanceled(const sptr<Notification> ¬ification, const sptr<NotificationSortingMap> ¬ifi…
|
D | notification.h | 24 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/ |
D | subscribe.h | 22 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,
|
D | common.h | 25 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/ |
D | ans_subscriber_interface.h | 30 namespace Notification { 41 virtual void OnConsumed(const sptr<Notification> ¬ification) = 0; 43 … const sptr<Notification> ¬ification, const sptr<NotificationSortingMap> ¬ificationMap) = 0; 44 virtual void OnCanceled(const sptr<Notification> ¬ification) = 0; 45 …virtual void OnCanceled(const sptr<Notification> ¬ification, const sptr<NotificationSortingMap>…
|
D | ans_subscriber_proxy.h | 23 namespace Notification { 33 void OnConsumed(const sptr<Notification> ¬ification) override; 35 …const sptr<Notification> ¬ification, const sptr<NotificationSortingMap> ¬ificationMap) overr… 36 void OnCanceled(const sptr<Notification> ¬ification) override; 37 …void OnCanceled(const sptr<Notification> ¬ification, const sptr<NotificationSortingMap> ¬ifi…
|
D | ans_subscriber_stub.h | 23 namespace Notification { 35 void OnConsumed(const sptr<Notification> ¬ification) override; 37 …const sptr<Notification> ¬ification, const sptr<NotificationSortingMap> ¬ificationMap) overr… 38 void OnCanceled(const sptr<Notification> ¬ification) override; 39 …void OnCanceled(const sptr<Notification> ¬ification, const sptr<NotificationSortingMap> ¬ifi…
|
/base/notification/ans_standard/frameworks/ans/core/src/ |
D | ans_subscriber_stub.cpp | 26 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> ¬ification) in OnConsumed() 220 const sptr<Notification> ¬ification, const sptr<NotificationSortingMap> ¬ificationMap) in OnConsumed() 223 void AnsSubscriberStub::OnCanceled(const sptr<Notification> ¬ification) in OnCanceled() 227 …const sptr<Notification> ¬ification, const sptr<NotificationSortingMap> ¬ificationMap, int d… in OnCanceled()
|
D | ans_subscriber_proxy.cpp | 24 namespace Notification { namespace 90 void AnsSubscriberProxy::OnConsumed(const sptr<Notification> ¬ification) in OnConsumed() 118 const sptr<Notification> ¬ification, const sptr<NotificationSortingMap> ¬ificationMap) in OnConsumed() 157 void AnsSubscriberProxy::OnCanceled(const sptr<Notification> ¬ification) in OnCanceled() 185 …const sptr<Notification> ¬ification, const sptr<NotificationSortingMap> ¬ificationMap, int d… in OnCanceled()
|
/base/telephony/call_manager/services/call/call_state_observer/src/ |
D | incoming_call_notification.cpp | 78 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()
|
D | missed_call_notification.cpp | 81 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/ |
D | notification_subscriber_manager_test.cpp | 27 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);
|
D | notification_slot_filter_test.cpp | 23 namespace Notification { namespace 64 record->notification = new Notification(record->request);
|
D | permission_filter_test.cpp | 28 namespace Notification { namespace 86 record->notification = new Notification(record->request); 110 record->notification = new Notification(record->request);
|
D | notification_preferences_database_test.cpp | 23 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/ |
D | notification_subscriber_manager.h | 38 namespace Notification { 45 …void NotifyConsumed(const sptr<Notification> ¬ification, const sptr<NotificationSortingMap> &no… 47 …const sptr<Notification> ¬ification, const sptr<NotificationSortingMap> ¬ificationMap, int d… 69 … const sptr<Notification> ¬ification, const sptr<NotificationSortingMap> ¬ificationMap); 71 …const sptr<Notification> ¬ification, const sptr<NotificationSortingMap> ¬ificationMap, int d…
|
D | notification_record.h | 29 namespace Notification { 33 sptr<Notification> notification;
|
/base/notification/ans_standard/tools/dump/include/ |
D | notification_shell_command.h | 23 namespace Notification { 24 class NotificationShellCommand : public OHOS::Notification::ShellCommand {
|
/base/notification/ans_standard/services/test/moduletest/ |
D | ans_module_test.cpp | 26 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 …]
|