Home
last modified time | relevance | path

Searched refs:NotificationSlot (Results 1 - 25 of 81) sorted by relevance

1234

/base/notification/distributed_notification_service/frameworks/ans/src/
H A Dnotification_slot.cpp22 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 Dnotification_sorting.cpp40 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 Dans_innerkits_module_slot_test.cpp88 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 Dpermission_filter_test.cpp59 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 Dnotification_preferences_test.cpp71 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 Dadvanced_notification_slot_service_test.cpp85 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 Dnotification_slot_filter_test.cpp49 // 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 Dnotification_preferences_database_test.cpp50 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 Dadvanced_notification_service_branch_test.cpp140 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 Dnotification_preferences_database.h43 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 Dnotification_preferences_info.h116 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 Dans_module_test.cpp132 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 Dnotification_sorting.h62 * @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 Dnotification_slot.h27 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 Dnotification_helper.h39 * 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 Daddnotificationslots_fuzzer.cpp30 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 Dadvanced_notification_slot_service.cpp49 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 Dgetnotificationslot_fuzzer.cpp28 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 Dnapi_slot.h25 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 Dans_convert_enum.cpp150 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 Daddnotificationslot_fuzzer.cpp34 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 Dgetbundleimportance_fuzzer.cpp38 Notification::NotificationSlot::NotificationLevel level = in DoSomethingInterestingWithMyAPI()
39 Notification::NotificationSlot::NotificationLevel(levels); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/test/fuzztest/getnotificationslotsforbundle_fuzzer/
H A Dgetnotificationslotsforbundle_fuzzer.cpp28 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 Dans_log_test.cpp187 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 Dansmanagerstubannextwo_fuzzer.cpp48 sptr<Notification::NotificationSlot> slot = new Notification::NotificationSlot(); in DoSomethingInterestingWithMyAPI()
49 std::vector<sptr<Notification::NotificationSlot>> slots; in DoSomethingInterestingWithMyAPI()

Completed in 14 milliseconds

1234