/base/notification/distributed_notification_service/services/ans/test/unittest/ |
H A D | advanced_notification_live_view_service_test.cpp | 105 auto slotType = NotificationConstant::SlotType::LIVE_VIEW; in HWTEST_F() local 107 request->SetSlotType(slotType); in HWTEST_F() 138 auto slotType = NotificationConstant::SlotType::LIVE_VIEW; in HWTEST_F() local 140 request->SetSlotType(slotType); in HWTEST_F() 181 auto slotType = NotificationConstant::SlotType::LIVE_VIEW; in HWTEST_F() local 183 request->SetSlotType(slotType); in HWTEST_F() 204 auto slotType = NotificationConstant::SlotType::LIVE_VIEW; in HWTEST_F() local 206 newRequest->SetSlotType(slotType); in HWTEST_F() 213 oldRequest->SetSlotType(slotType); in HWTEST_F() 234 auto slotType in HWTEST_F() local 258 auto slotType = NotificationConstant::SlotType::LIVE_VIEW; HWTEST_F() local 284 auto slotType = NotificationConstant::SlotType::SOCIAL_COMMUNICATION; HWTEST_F() local [all...] |
H A D | advanced_notification_slot_service_test.cpp | 102 NotificationConstant::SlotType slotType = NotificationConstant::SlotType::CUSTOMER_SERVICE; in HWTEST_F() local 104 sptr<NotificationSlot> slot = new NotificationSlot(slotType); in HWTEST_F() 227 auto slotType = NotificationConstant::SlotType::CONTENT_INFORMATION; in HWTEST_F() local 228 TestAddSlot(slotType); in HWTEST_F() 231 advancedNotificationService_->GetEnabledForBundleSlotSelf(slotType, enable); in HWTEST_F() 360 NotificationConstant::SlotType slotType = NotificationConstant::SlotType::CUSTOMER_SERVICE; in HWTEST_F() local 362 auto ret = advancedNotificationService_->AddSlotByType(slotType); in HWTEST_F() 365 ret = advancedNotificationService_->GetSlotByType(slotType, slot); in HWTEST_F() 377 NotificationConstant::SlotType slotType = NotificationConstant::SlotType::CUSTOMER_SERVICE; in HWTEST_F() local 379 auto ret = advancedNotificationService_->RemoveSlotByType(slotType); in HWTEST_F() 394 NotificationConstant::SlotType slotType = NotificationConstant::SlotType::LIVE_VIEW; HWTEST_F() local 432 NotificationConstant::SlotType slotType = NotificationConstant::SlotType::CUSTOMER_SERVICE; HWTEST_F() local 449 NotificationConstant::SlotType slotType = NotificationConstant::SlotType::CUSTOMER_SERVICE; HWTEST_F() local 544 NotificationConstant::SlotType slotType = NotificationConstant::SlotType::SERVICE_REMINDER; HWTEST_F() local [all...] |
H A D | advanced_notification_utils_test.cpp | 128 auto slotType = NotificationConstant::SlotType::LIVE_VIEW; in TestAddNotification() local 130 request->SetSlotType(slotType); in TestAddNotification() 148 auto slotType = NotificationConstant::SlotType::LIVE_VIEW; in HWTEST_F() local 150 oldRequest->SetSlotType(slotType); in HWTEST_F() 229 auto slotType = NotificationConstant::SlotType::LIVE_VIEW; in HWTEST_F() local 234 oldRequest->SetSlotType(slotType); in HWTEST_F() 277 auto slotType = NotificationConstant::SlotType::LIVE_VIEW; in HWTEST_F() local 279 request->SetSlotType(slotType); in HWTEST_F()
|
/base/notification/distributed_notification_service/services/ans/src/ |
H A D | permission_filter.cpp | 48 NotificationConstant::SlotType slotType = record->request->GetSlotType(); in OnPublish() local 49 message.SlotType(slotType); in OnPublish() 50 result = NotificationPreferences::GetInstance()->GetNotificationSlot(record->bundleOption, slotType, slot); in OnPublish() 58 ANS_LOGE("Type[%{public}d] slot does not exist", slotType); in OnPublish()
|
H A D | advanced_notification_slot_service.cpp | 167 const sptr<NotificationBundleOption> &bundleOption, const NotificationConstant::SlotType &slotType, in GetSlotByBundle() 195 result = NotificationPreferences::GetInstance()->GetNotificationSlot(bundle, slotType, slot); in GetSlotByBundle() 293 ErrCode AdvancedNotificationService::AddSlotByType(NotificationConstant::SlotType slotType) in AddSlotByType() argument 297 if (!AccessTokenHelper::IsSystemApp() && slotType == NotificationConstant::SlotType::EMERGENCY_INFORMATION) { in AddSlotByType() 315 result = NotificationPreferences::GetInstance()->GetNotificationSlot(bundleOption, slotType, slot); in AddSlotByType() 320 slot = new (std::nothrow) NotificationSlot(slotType); in AddSlotByType() 336 const NotificationConstant::SlotType &slotType, bool &enabled) in GetEnabledForBundleSlotSelf() 338 ANS_LOGD("slotType: %{public}d", slotType); in GetEnabledForBundleSlotSelf() 353 result = NotificationPreferences::GetInstance()->GetNotificationSlot(bundleOption, slotType, slo in GetEnabledForBundleSlotSelf() 166 GetSlotByBundle( const sptr<NotificationBundleOption> &bundleOption, const NotificationConstant::SlotType &slotType, sptr<NotificationSlot> &slot) GetSlotByBundle() argument 335 GetEnabledForBundleSlotSelf( const NotificationConstant::SlotType &slotType, bool &enabled) GetEnabledForBundleSlotSelf() argument 459 NotificationConstant::SlotType slotType = record->request->GetSlotType(); AssignValidNotificationSlot() local 575 NotificationConstant::SlotType slotType = request->GetSlotType(); SetRequestBySlotType() local 620 GetSlotByType( const NotificationConstant::SlotType &slotType, sptr<NotificationSlot> &slot) GetSlotByType() argument 644 RemoveSlotByType(const NotificationConstant::SlotType &slotType) RemoveSlotByType() argument 748 SetEnabledForBundleSlotInner( const sptr<NotificationBundleOption> &bundleOption, const sptr<NotificationBundleOption> &bundle, const NotificationConstant::SlotType &slotType, bool enabled, bool isForceControl) SetEnabledForBundleSlotInner() argument 779 SetEnabledForBundleSlot(const sptr<NotificationBundleOption> &bundleOption, const NotificationConstant::SlotType &slotType, bool enabled, bool isForceControl) SetEnabledForBundleSlot() argument 805 GetEnabledForBundleSlot( const sptr<NotificationBundleOption> &bundleOption, const NotificationConstant::SlotType &slotType, bool &enabled) GetEnabledForBundleSlot() argument [all...] |
/base/notification/distributed_notification_service/services/ans/src/common/ |
H A D | notification_config_parse.cpp | 92 NotificationConstant::SlotType slotType; in GetCurrentSlotReminder() local 96 !NotificationSlot::GetSlotTypeByString(reminderFilterSlot[CFG_KEY_NAME].get<std::string>(), slotType)) { in GetCurrentSlotReminder() 108 currentSlotReminder[slotType] = reminderFlags; in GetCurrentSlotReminder() 117 uint32_t NotificationConfigParse::GetConfigSlotReminderModeByType(NotificationConstant::SlotType slotType) const in GetConfigSlotReminderModeByType() 124 auto iter = configSlotsReminder.find(slotType); in GetConfigSlotReminderModeByType() 129 auto defaultIter = defaultCurrentSlotReminder_.find(slotType); in GetConfigSlotReminderModeByType()
|
/base/notification/distributed_notification_service/frameworks/ans/src/ |
H A D | notification_check_request.cpp | 23 NotificationConstant::SlotType slotType, std::vector<std::string> extraKeys) in NotificationCheckRequest() 24 : contentType_(contentType), slotType_(slotType), extraKeys_(extraKeys) in NotificationCheckRequest() 40 void NotificationCheckRequest::SetSlotType(NotificationConstant::SlotType slotType) in SetSlotType() argument 42 slotType_ = slotType; in SetSlotType() 22 NotificationCheckRequest(NotificationContent::Type contentType, NotificationConstant::SlotType slotType, std::vector<std::string> extraKeys) NotificationCheckRequest() argument
|
H A D | notification_check_info.cpp | 24 int32_t creatorUserId, int32_t slotType, std::shared_ptr<AAFwk::WantParams> extraInfo) in NotificationCheckInfo() 26 creatorUserId_(creatorUserId), slotType_(slotType), extraInfo_(extraInfo) in NotificationCheckInfo() 79 void NotificationCheckInfo::SetSlotType(int32_t slotType) in SetSlotType() argument 81 slotType_ = slotType; in SetSlotType() 143 if (jsonobj.find("slotType") != jsonEnd && jsonobj.at("slotType").is_number()) { in ConvertJsonStringToValue() 144 slotType_ = jsonobj.at("slotType").get<int32_t>(); in ConvertJsonStringToValue() 23 NotificationCheckInfo(std::string pkgName, int32_t notifyId, int32_t contentType, int32_t creatorUserId, int32_t slotType, std::shared_ptr<AAFwk::WantParams> extraInfo) NotificationCheckInfo() argument
|
H A D | notification_helper.cpp | 27 ErrCode NotificationHelper::AddSlotByType(const NotificationConstant::SlotType &slotType) in AddSlotByType() argument 29 return DelayedSingleton<AnsNotification>::GetInstance()->AddSlotByType(slotType); in AddSlotByType() 37 ErrCode NotificationHelper::RemoveNotificationSlot(const NotificationConstant::SlotType &slotType) in RemoveNotificationSlot() argument 39 return DelayedSingleton<AnsNotification>::GetInstance()->RemoveNotificationSlot(slotType); in RemoveNotificationSlot() 48 const NotificationConstant::SlotType &slotType, sptr<NotificationSlot> &slot) in GetNotificationSlot() 50 return DelayedSingleton<AnsNotification>::GetInstance()->GetNotificationSlot(slotType, slot); in GetNotificationSlot() 280 const NotificationBundleOption &bundleOption, const NotificationConstant::SlotType &slotType, in GetNotificationSlotForBundle() 283 return DelayedSingleton<AnsNotification>::GetInstance()->GetNotificationSlotForBundle(bundleOption, slotType, slot); in GetNotificationSlotForBundle() 461 const NotificationConstant::SlotType &slotType, bool enabled, bool isForceControl) in SetEnabledForBundleSlot() 464 slotType, enable in SetEnabledForBundleSlot() 47 GetNotificationSlot( const NotificationConstant::SlotType &slotType, sptr<NotificationSlot> &slot) GetNotificationSlot() argument 279 GetNotificationSlotForBundle( const NotificationBundleOption &bundleOption, const NotificationConstant::SlotType &slotType, sptr<NotificationSlot> &slot) GetNotificationSlotForBundle() argument 460 SetEnabledForBundleSlot(const NotificationBundleOption &bundleOption, const NotificationConstant::SlotType &slotType, bool enabled, bool isForceControl) SetEnabledForBundleSlot() argument 467 GetEnabledForBundleSlot( const NotificationBundleOption &bundleOption, const NotificationConstant::SlotType &slotType, bool &enabled) GetEnabledForBundleSlot() argument 473 GetEnabledForBundleSlotSelf(const NotificationConstant::SlotType &slotType, bool &enabled) GetEnabledForBundleSlotSelf() argument [all...] |
H A D | reminder_helper.cpp | 56 ErrCode ReminderHelper::RemoveNotificationSlot(const NotificationConstant::SlotType &slotType) in RemoveNotificationSlot() argument 59 return DelayedSingleton<AnsNotification>::GetInstance()->RemoveNotificationSlot(slotType); in RemoveNotificationSlot()
|
/base/notification/distributed_notification_service/frameworks/core/src/ |
H A D | ans_manager_proxy_slot.cpp | 31 ErrCode AnsManagerProxy::AddSlotByType(NotificationConstant::SlotType slotType) in AddSlotByType() argument 39 if (!data.WriteInt32(slotType)) { in AddSlotByType() 100 ErrCode AnsManagerProxy::RemoveSlotByType(const NotificationConstant::SlotType &slotType) in RemoveSlotByType() argument 108 if (!data.WriteInt32(slotType)) { in RemoveSlotByType() 153 ErrCode AnsManagerProxy::GetSlotByType(const NotificationConstant::SlotType &slotType, sptr<NotificationSlot> &slot) in GetSlotByType() argument 161 if (!data.WriteInt32(slotType)) { in GetSlotByType() 288 const sptr<NotificationBundleOption> &bundleOption, const NotificationConstant::SlotType &slotType, in GetSlotByBundle() 307 if (!data.WriteInt32(slotType)) { in GetSlotByBundle() 387 const NotificationConstant::SlotType &slotType, bool enabled, bool isForceControl) in SetEnabledForBundleSlot() 405 if (!data.WriteInt32(slotType)) { in SetEnabledForBundleSlot() 287 GetSlotByBundle( const sptr<NotificationBundleOption> &bundleOption, const NotificationConstant::SlotType &slotType, sptr<NotificationSlot> &slot) GetSlotByBundle() argument 386 SetEnabledForBundleSlot(const sptr<NotificationBundleOption> &bundleOption, const NotificationConstant::SlotType &slotType, bool enabled, bool isForceControl) SetEnabledForBundleSlot() argument 436 GetEnabledForBundleSlot( const sptr<NotificationBundleOption> &bundleOption, const NotificationConstant::SlotType &slotType, bool &enabled) GetEnabledForBundleSlot() argument 481 GetEnabledForBundleSlotSelf(const NotificationConstant::SlotType &slotType, bool &enabled) GetEnabledForBundleSlotSelf() argument [all...] |
/base/notification/distributed_notification_service/test/fuzztest/removenotificationslot_fuzzer/ |
H A D | removenotificationslot_fuzzer.cpp | 27 Notification::NotificationConstant::SlotType slotType = Notification::NotificationConstant::SlotType(type); in DoSomethingInterestingWithMyAPI() local 29 Notification::NotificationHelper::RemoveNotificationSlot(slotType); in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/test/fuzztest/getnotificationslot_fuzzer/ |
H A D | getnotificationslot_fuzzer.cpp | 27 Notification::NotificationConstant::SlotType slotType = Notification::NotificationConstant::SlotType(type); in DoSomethingInterestingWithMyAPI() local 34 return Notification::NotificationHelper::GetNotificationSlot(slotType, slot) == ERR_OK; in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/test/fuzztest/addslotbytype_fuzzer/ |
H A D | addslotbytype_fuzzer.cpp | 26 Notification::NotificationConstant::SlotType slotType = Notification::NotificationConstant::SlotType(type); in DoSomethingInterestingWithMyAPI() local 27 return Notification::NotificationHelper::AddSlotByType(slotType) == ERR_OK; in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/test/fuzztest/setdonotdisturbdate_fuzzer/ |
H A D | setdonotdisturbdate_fuzzer.cpp | 42 Notification::NotificationConstant::SlotType slotType = Notification::NotificationConstant::SlotType(types);
in DoSomethingInterestingWithMyAPI() local 44 Notification::NotificationHelper::SetEnabledForBundleSlot(bundleOption, slotType, enabled, false);
in DoSomethingInterestingWithMyAPI() 46 Notification::NotificationHelper::GetEnabledForBundleSlot(bundleOption, slotType, enabled);
in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/test/fuzztest/ansmanagerstubannextwo_fuzzer/ |
H A D | ansmanagerstubannextwo_fuzzer.cpp | 46 Notification::NotificationConstant::SlotType slotType = Notification::NotificationConstant::SlotType(type);
in DoSomethingInterestingWithMyAPI() local 47 ansManagerStub.AddSlotByType(slotType);
in DoSomethingInterestingWithMyAPI() 52 ansManagerStub.RemoveSlotByType(slotType);
in DoSomethingInterestingWithMyAPI() 54 ansManagerStub.GetSlotByType(slotType, slot);
in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/interfaces/inner_api/ |
H A D | notification_check_request.h | 35 NotificationCheckRequest(NotificationContent::Type contentType, NotificationConstant::SlotType slotType, 64 * @param slotType Indicates the slot type of the notification check request. 66 void SetSlotType(NotificationConstant::SlotType slotType);
|
H A D | notification_check_info.h | 37 int32_t creatorUserId, int32_t slotType, std::shared_ptr<AAFwk::WantParams> extraInfo); 48 void SetSlotType(int32_t slotType);
|
H A D | notification_helper.h | 54 * @param slotType Indicates the notification slot type to be added. 57 static ErrCode AddSlotByType(const NotificationConstant::SlotType &slotType); 70 * @param slotType Indicates the type of the slot, which is created by AddNotificationSlot 74 static ErrCode RemoveNotificationSlot(const NotificationConstant::SlotType &slotType); 96 * @param slotType Indicates the ID of the slot, which is created by AddNotificationSlot(NotificationSlot). This 101 static ErrCode GetNotificationSlot(const NotificationConstant::SlotType &slotType, sptr<NotificationSlot> &slot); 134 * @param slotType Indicates the type of the slot, which is created by AddNotificationSlot. 139 const NotificationBundleOption &bundleOption, const NotificationConstant::SlotType &slotType, 146 * @param slotType Indicates type of slot. 152 const NotificationConstant::SlotType &slotType, boo [all...] |
/base/notification/distributed_notification_service/test/fuzztest/setprogressbar_fuzzer/ |
H A D | setprogressbar_fuzzer.cpp | 55 Notification::NotificationConstant::SlotType slotType = Notification::NotificationConstant::SlotType(type);
in DoSomethingInterestingWithMyAPI() local 56 request.SetSlotType(slotType);
in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/services/ans/test/unittest/mock/ |
H A D | mock_notification_analytics_util.cpp | 90 HaMetaMessage& HaMetaMessage::SlotType(int32_t slotType) in SlotType() argument 92 slotType_ = slotType; in SlotType()
|
/base/notification/distributed_notification_service/test/fuzztest/addnotificationslot_fuzzer/ |
H A D | addnotificationslot_fuzzer.cpp | 51 Notification::NotificationConstant::SlotType slotType = Notification::NotificationConstant::SlotType(type); in DoSomethingInterestingWithMyAPI() local 52 slot.SetType(slotType); in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/test/fuzztest/reminderhelper_fuzzer/ |
H A D | reminderhelper_fuzzer.cpp | 47 Notification::NotificationConstant::SlotType slotType = Notification::NotificationConstant::SlotType(type);
in DoSomethingInterestingWithMyAPI() local 48 Notification::ReminderHelper::RemoveNotificationSlot(slotType);
in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/test/fuzztest/addnotificationslots_fuzzer/ |
H A D | addnotificationslots_fuzzer.cpp | 47 Notification::NotificationConstant::SlotType slotType = Notification::NotificationConstant::SlotType(type); in DoSomethingInterestingWithMyAPI() local 48 slot.SetType(slotType); in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/frameworks/js/napi/src/manager/ |
H A D | napi_push_callback.cpp | 38 void JSPushCallBack::SetJsPushCallBackObject(NotificationConstant::SlotType slotType, napi_value pushCallBackObject) in SetJsPushCallBackObject() argument 42 pushCallBackObjects_.insert_or_assign(slotType, pushCheckObject); in SetJsPushCallBackObject() 154 NotificationNapi::SlotType slotType; in OnCheckNotification() local 159 static_cast<NotificationConstant::SlotType>(checkInfo->GetSlotType()), slotType); in OnCheckNotification() 164 SetJsPropertyInt32("slotType", static_cast<int32_t>(slotType), jsResult); in OnCheckNotification()
|