/base/notification/distributed_notification_service/frameworks/ans/src/ |
H A D | notification_slot.cpp | 22 std::map<std::string, NotificationConstant::SlotType> NotificationSlot::convertStrToSlotType_; 31 NotificationSlot::NotificationSlot(NotificationConstant::SlotType type) : sound_("") in NotificationSlot() function in OHOS::Notification::NotificationSlot 36 NotificationSlot::~NotificationSlot() in ~NotificationSlot() 39 bool NotificationSlot::CanEnableLight() const in CanEnableLight() 44 void NotificationSlot::SetEnableLight(bool isLightEnabled) in SetEnableLight() 49 bool NotificationSlot::CanVibrate() const in CanVibrate() 54 void NotificationSlot::SetEnableVibration(bool vibration) in SetEnableVibration() 59 std::string NotificationSlot [all...] |
H A D | notification_sorting.cpp | 40 void NotificationSorting::SetSlot(const sptr<NotificationSlot> &slot) in SetSlot() 43 slot_ = new (std::nothrow) NotificationSlot(NotificationConstant::SlotType::OTHER); in SetSlot() 137 slot_ = parcel.ReadStrongParcelable<NotificationSlot>(); in ReadFromParcel()
|
/base/notification/distributed_notification_service/frameworks/test/moduletest/ |
H A D | ans_innerkits_module_slot_test.cpp | 88 NotificationSlot slot(NotificationConstant::SOCIAL_COMMUNICATION); in HWTEST_F() 92 slot.SetLevel(NotificationSlot::NotificationLevel::LEVEL_LOW); in HWTEST_F() 102 sptr<NotificationSlot> spSlot(new NotificationSlot()); in HWTEST_F() 111 EXPECT_EQ(NotificationSlot::NotificationLevel::LEVEL_LOW, spSlot->GetLevel()); in HWTEST_F() 134 NotificationSlot slot(NotificationConstant::SERVICE_REMINDER); in HWTEST_F() 138 slot.SetLevel(NotificationSlot::NotificationLevel::LEVEL_LOW); in HWTEST_F() 147 sptr<NotificationSlot> spSlot(new NotificationSlot()); in HWTEST_F() 156 EXPECT_EQ(NotificationSlot in HWTEST_F() [all...] |
/base/notification/distributed_notification_service/services/ans/test/unittest/ |
H A D | permission_filter_test.cpp | 59 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::OTHER); in HWTEST_F() 60 std::vector<sptr<NotificationSlot>> slots; in HWTEST_F() 69 record->slot = new NotificationSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F() 85 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::OTHER); in HWTEST_F() 86 std::vector<sptr<NotificationSlot>> slots; in HWTEST_F()
|
H A D | notification_preferences_test.cpp | 71 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::SlotType::OTHER); in TestAddNotificationSlot() 72 std::vector<sptr<NotificationSlot>> slots; in TestAddNotificationSlot() 79 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::SlotType::OTHER); in TestAddNotificationSlot() 90 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::SlotType::OTHER); in HWTEST_F() 91 std::vector<sptr<NotificationSlot>> slots; in HWTEST_F() 103 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstan in HWTEST_F() [all...] |
H A D | advanced_notification_slot_service_test.cpp | 85 std::vector<sptr<NotificationSlot>> slots; in TestAddSlot() 86 sptr<NotificationSlot> slot = new NotificationSlot(type); in TestAddSlot() 103 std::vector<sptr<NotificationSlot>> slots; in HWTEST_F() 104 sptr<NotificationSlot> slot = new NotificationSlot(slotType); in HWTEST_F() 118 std::vector<sptr<NotificationSlot>> slots; in HWTEST_F() 133 std::vector<sptr<NotificationSlot>> slots; in HWTEST_F() 148 std::vector<sptr<NotificationSlot>> slots; in HWTEST_F() 164 std::vector<sptr<NotificationSlot>> slot in HWTEST_F() [all...] |
H A D | notification_slot_filter_test.cpp | 49 // NotificationSlot Marshalling TDD test in HWTEST_F() 52 NotificationSlot notificationSlot(type); in HWTEST_F() 67 // NotificationSlot ReadFromParcel TDD test in HWTEST_F() 70 NotificationSlot notificationSlot(type); in HWTEST_F() 100 record->slot = new NotificationSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F()
|
H A D | notification_preferences_database_test.cpp | 50 std::vector<sptr<NotificationSlot>> slots; in HWTEST_F() 51 sptr<NotificationSlot> slot1 = new NotificationSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F() 52 sptr<NotificationSlot> slot2 = new NotificationSlot(NotificationConstant::SlotType::SERVICE_REMINDER); in HWTEST_F() 65 std::vector<sptr<NotificationSlot>> slots; in HWTEST_F() 66 sptr<NotificationSlot> slot1 = new NotificationSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F() 67 sptr<NotificationSlot> slot2 = new NotificationSlot(NotificationConstan in HWTEST_F() [all...] |
H A D | advanced_notification_service_branch_test.cpp | 140 std::vector<sptr<NotificationSlot>> slots; in TestAddSlot() 141 sptr<NotificationSlot> slot = new NotificationSlot(type); in TestAddSlot() 241 std::vector<sptr<NotificationSlot>> slots; in HWTEST_F() 242 sptr<NotificationSlot> slot0 = new NotificationSlot(NotificationConstant::OTHER); in HWTEST_F() 243 sptr<NotificationSlot> slot1 = new NotificationSlot(NotificationConstant::OTHER); in HWTEST_F() 320 std::vector<sptr<NotificationSlot>> slots; in HWTEST_F() 336 std::vector<sptr<NotificationSlot>> slot in HWTEST_F() [all...] |
/base/notification/distributed_notification_service/services/ans/include/ |
H A D | notification_preferences_database.h | 43 const std::string &bundleName, const int32_t &bundleUid, const std::vector<sptr<NotificationSlot>> &slots); 237 const int32_t &bundleUid, const std::vector<sptr<NotificationSlot>> &slots); 259 bool SlotToEntry(const std::string &bundleName, const int32_t &bundleUid, const sptr<NotificationSlot> &slot, 261 void GenerateSlotEntry(const std::string &bundleKey, const sptr<NotificationSlot> &slot, 294 void ParseSlot(const std::string &findString, sptr<NotificationSlot> &slot, 296 void ParseSlotDescription(sptr<NotificationSlot> &slot, const std::string &value) const; 297 void ParseSlotLevel(sptr<NotificationSlot> &slot, const std::string &value) const; 298 void ParseSlotShowBadge(sptr<NotificationSlot> &slot, const std::string &value) const; 299 void ParseSlotEnableLight(sptr<NotificationSlot> &slot, const std::string &value) const; 300 void ParseSlotEnableVrbration(sptr<NotificationSlot> [all...] |
H A D | notification_preferences_info.h | 116 void SetSlot(const sptr<NotificationSlot> &slot); 125 bool GetSlot(const NotificationConstant::SlotType &type, sptr<NotificationSlot> &slot) const; 133 bool GetAllSlots(std::vector<sptr<NotificationSlot>> &slots); 183 bool GetAllSlotsInGroup(const std::string &groupId, std::vector<sptr<NotificationSlot>> &slots); 192 bool GetAllSlotsInGroup(const std::string &groupId, std::vector<NotificationSlot> &slots); 231 std::map<NotificationConstant::SlotType, sptr<NotificationSlot>> slots_;
|
/base/notification/distributed_notification_service/services/test/moduletest/ |
H A D | ans_module_test.cpp | 132 std::vector<sptr<NotificationSlot>> slots; in TestAddSlots() 133 sptr<NotificationSlot> slot0 = new NotificationSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in TestAddSlots() 188 std::vector<sptr<NotificationSlot>> slots; in HWTEST_F() 189 sptr<NotificationSlot> slot0 = new NotificationSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F() 242 std::vector<sptr<NotificationSlot>> slots; in HWTEST_F() 243 sptr<NotificationSlot> slot0 = new NotificationSlot(NotificationConstant::SlotType::SERVICE_REMINDER); in HWTEST_F() 287 std::vector<sptr<NotificationSlot>> slot in HWTEST_F() [all...] |
/base/notification/distributed_notification_service/interfaces/inner_api/ |
H A D | notification_sorting.h | 62 * @brief Obtains the importance level of the current notification set in the corresponding NotificationSlot. 72 * @brief Obtains the NotificationSlot the current notification belongs to. 73 * Each notification must be in a particular NotificationSlot. 75 * @return Returns the NotificationSlot of the notification. 77 inline NotificationSlot GetSlot() const in GetSlot() 152 void SetSlot(const sptr<NotificationSlot> &slot); 166 sptr<NotificationSlot> slot_ = new (std::nothrow) NotificationSlot(NotificationConstant::SlotType::OTHER);
|
H A D | notification_slot.h | 27 class NotificationSlot : public Parcelable { class 48 * @brief A constructor used to initialize the type of a NotificationSlot object. 50 * @param type Specifies the type of the NotificationSlot object, 52 NotificationSlot(NotificationConstant::SlotType type = NotificationConstant::SlotType::CUSTOM); 54 ~NotificationSlot(); 57 * @brief Obtains whether the notification light is enabled in a NotificationSlot object, 67 * @note SetEnableLight must be set before the NotificationHelper:AddNotificationSlot(NotificationSlot) method is 77 * @brief Obtains the vibration status of a NotificationSlot object, 86 * @note SetEnableVibration(bool) must be set before the NotificationHelper::AddNotificationSlot(NotificationSlot) 95 * @brief Obtains the description of a NotificationSlot objec [all...] |
H A D | notification_helper.h | 39 * for publishing. A NotificationSlot instance cannot be used directly after being initialized. Instead, you have to 41 * notification published can have all the characteristics set in the NotificationSlot. After a notification slot is 45 * @param slot Indicates the notification slot to be created, which is set by NotificationSlot. 49 static ErrCode AddNotificationSlot(const NotificationSlot &slot); 65 static ErrCode AddNotificationSlots(const std::vector<NotificationSlot> &slots); 91 const NotificationBundleOption &bundleOption, const std::vector<sptr<NotificationSlot>> &slots); 96 * @param slotType Indicates the ID of the slot, which is created by AddNotificationSlot(NotificationSlot). This 98 * @param slot Indicates the created NotificationSlot. 101 static ErrCode GetNotificationSlot(const NotificationConstant::SlotType &slotType, sptr<NotificationSlot> &slot); 105 * @param slots Indicates the created NotificationSlot [all...] |
/base/notification/distributed_notification_service/test/fuzztest/addnotificationslots_fuzzer/ |
H A D | addnotificationslots_fuzzer.cpp | 30 Notification::NotificationSlot slot; in DoSomethingInterestingWithMyAPI() 37 Notification::NotificationSlot::NotificationLevel notificatoinLevel = in DoSomethingInterestingWithMyAPI() 38 Notification::NotificationSlot::NotificationLevel(level); in DoSomethingInterestingWithMyAPI() 50 std::vector<Notification::NotificationSlot> slots; in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/services/ans/src/ |
H A D | advanced_notification_slot_service.cpp | 49 ErrCode AdvancedNotificationService::AddSlots(const std::vector<sptr<NotificationSlot>> &slots) in AddSlots() 78 std::vector<sptr<NotificationSlot>> addSlots; in AddSlots() 80 sptr<NotificationSlot> originalSlot; in AddSlots() 101 ErrCode AdvancedNotificationService::GetSlots(std::vector<sptr<NotificationSlot>> &slots) in GetSlots() 128 const sptr<NotificationBundleOption> &bundleOption, std::vector<sptr<NotificationSlot>> &slots) in GetSlotsByBundle() 168 sptr<NotificationSlot> &slot) in GetSlotByBundle() 206 const sptr<NotificationBundleOption> &bundleOption, const std::vector<sptr<NotificationSlot>> &slots) in UpdateSlots() 263 sptr<NotificationSlot> liveViewSlot; in RemoveAllSlots() 283 std::vector<sptr<NotificationSlot>> slots; in RemoveAllSlots() 314 sptr<NotificationSlot> slo in AddSlotByType() [all...] |
/base/notification/distributed_notification_service/test/fuzztest/getnotificationslot_fuzzer/ |
H A D | getnotificationslot_fuzzer.cpp | 28 sptr<Notification::NotificationSlot> slot = nullptr; in DoSomethingInterestingWithMyAPI() 30 std::vector<sptr<Notification::NotificationSlot>> slots; in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/frameworks/js/napi/include/manager/ |
H A D | napi_slot.h | 25 NotificationSlot slot; 34 NotificationSlot slot; 41 std::vector<NotificationSlot> slots; 48 std::vector<NotificationSlot> slots; 54 std::vector<sptr<NotificationSlot>> slots; 75 sptr<NotificationSlot> slot = nullptr; 95 std::vector<sptr<NotificationSlot>> slots; 108 std::vector<sptr<NotificationSlot>> slots; 122 sptr<NotificationSlot> slot;
|
/base/notification/distributed_notification_service/frameworks/core/common/src/ |
H A D | ans_convert_enum.cpp | 150 bool AnsEnumUtil::SlotLevelJSToC(const SlotLevel &inLevel, NotificationSlot::NotificationLevel &outLevel) in SlotLevelJSToC() 154 outLevel = NotificationSlot::NotificationLevel::LEVEL_NONE; in SlotLevelJSToC() 157 outLevel = NotificationSlot::NotificationLevel::LEVEL_MIN; in SlotLevelJSToC() 160 outLevel = NotificationSlot::NotificationLevel::LEVEL_LOW; in SlotLevelJSToC() 163 outLevel = NotificationSlot::NotificationLevel::LEVEL_DEFAULT; in SlotLevelJSToC() 166 outLevel = NotificationSlot::NotificationLevel::LEVEL_HIGH; in SlotLevelJSToC() 199 bool AnsEnumUtil::SlotLevelCToJS(const NotificationSlot::NotificationLevel &inLevel, SlotLevel &outLevel) in SlotLevelCToJS() 202 case NotificationSlot::NotificationLevel::LEVEL_NONE: in SlotLevelCToJS() 203 case NotificationSlot::NotificationLevel::LEVEL_UNDEFINED: in SlotLevelCToJS() 206 case NotificationSlot in SlotLevelCToJS() [all...] |
/base/notification/distributed_notification_service/test/fuzztest/addnotificationslot_fuzzer/ |
H A D | addnotificationslot_fuzzer.cpp | 34 Notification::NotificationSlot slot; in DoSomethingInterestingWithMyAPI() 41 Notification::NotificationSlot::NotificationLevel notificatoinLevel = in DoSomethingInterestingWithMyAPI() 42 Notification::NotificationSlot::NotificationLevel(level); in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/test/fuzztest/getbundleimportance_fuzzer/ |
H A D | getbundleimportance_fuzzer.cpp | 38 Notification::NotificationSlot::NotificationLevel level =
in DoSomethingInterestingWithMyAPI() 39 Notification::NotificationSlot::NotificationLevel(levels);
in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/test/fuzztest/getnotificationslotsforbundle_fuzzer/ |
H A D | getnotificationslotsforbundle_fuzzer.cpp | 28 sptr<Notification::NotificationSlot> slot = nullptr;
in DoSomethingInterestingWithMyAPI() 29 std::vector<sptr<Notification::NotificationSlot>> slots;
in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/ |
H A D | ans_log_test.cpp | 187 NotificationSlot::NotificationLevel outType; in HWTEST_F() 190 EXPECT_EQ(outType, NotificationSlot::NotificationLevel::LEVEL_NONE); in HWTEST_F() 193 EXPECT_EQ(outType, NotificationSlot::NotificationLevel::LEVEL_MIN); in HWTEST_F() 196 EXPECT_EQ(outType, NotificationSlot::NotificationLevel::LEVEL_LOW); in HWTEST_F() 199 EXPECT_EQ(outType, NotificationSlot::NotificationLevel::LEVEL_DEFAULT); in HWTEST_F() 202 EXPECT_EQ(outType, NotificationSlot::NotificationLevel::LEVEL_HIGH); in HWTEST_F() 237 NotificationSlot::NotificationLevel inType = NotificationSlot::NotificationLevel::LEVEL_NONE; in HWTEST_F() 240 inType = NotificationSlot::NotificationLevel::LEVEL_UNDEFINED; in HWTEST_F() 243 inType = NotificationSlot in HWTEST_F() [all...] |
/base/notification/distributed_notification_service/test/fuzztest/ansmanagerstubannextwo_fuzzer/ |
H A D | ansmanagerstubannextwo_fuzzer.cpp | 48 sptr<Notification::NotificationSlot> slot = new Notification::NotificationSlot();
in DoSomethingInterestingWithMyAPI() 49 std::vector<sptr<Notification::NotificationSlot>> slots;
in DoSomethingInterestingWithMyAPI()
|