Home
last modified time | relevance | path

Searched refs:SlotType (Results 1 - 25 of 113) sorted by relevance

12345

/base/notification/distributed_notification_service/frameworks/core/common/src/
H A Dans_convert_enum.cpp83 bool AnsEnumUtil::SlotTypeJSToC(const SlotType &inType, NotificationConstant::SlotType &outType) in SlotTypeJSToC()
86 case SlotType::SOCIAL_COMMUNICATION: in SlotTypeJSToC()
87 outType = NotificationConstant::SlotType::SOCIAL_COMMUNICATION; in SlotTypeJSToC()
89 case SlotType::SERVICE_INFORMATION: in SlotTypeJSToC()
90 outType = NotificationConstant::SlotType::SERVICE_REMINDER; in SlotTypeJSToC()
92 case SlotType::CONTENT_INFORMATION: in SlotTypeJSToC()
93 outType = NotificationConstant::SlotType::CONTENT_INFORMATION; in SlotTypeJSToC()
95 case SlotType::LIVE_VIEW: in SlotTypeJSToC()
96 outType = NotificationConstant::SlotType in SlotTypeJSToC()
[all...]
/base/notification/distributed_notification_service/services/ans/src/common/
H A Dnotification_config_parse.cpp32 {NotificationConstant::SlotType::SOCIAL_COMMUNICATION, 0b111111}, in NotificationConfigParse()
33 {NotificationConstant::SlotType::SERVICE_REMINDER, 0b111111}, in NotificationConfigParse()
34 {NotificationConstant::SlotType::CONTENT_INFORMATION, 0b000000}, in NotificationConfigParse()
35 {NotificationConstant::SlotType::OTHER, 0b000000}, in NotificationConfigParse()
36 {NotificationConstant::SlotType::LIVE_VIEW, 0b111011}, in NotificationConfigParse()
37 {NotificationConstant::SlotType::CUSTOMER_SERVICE, 0b110001}, in NotificationConfigParse()
38 {NotificationConstant::SlotType::EMERGENCY_INFORMATION, 0b111111} in NotificationConfigParse()
71 std::map<NotificationConstant::SlotType, std::shared_ptr<NotificationFlags>> &currentSlotReminder) const in GetCurrentSlotReminder()
92 NotificationConstant::SlotType slotType; in GetCurrentSlotReminder()
117 uint32_t NotificationConfigParse::GetConfigSlotReminderModeByType(NotificationConstant::SlotType slotTyp
[all...]
/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()
94 NotificationConstant::SlotType NotificationSlot::GetType() const in GetType()
125 void NotificationSlot::SetType(NotificationConstant::SlotType type) in SetType()
127 type_ = NotificationConstant::SlotType::CUSTOM; in SetType()
129 case NotificationConstant::SlotType::SOCIAL_COMMUNICATION: in SetType()
137 case NotificationConstant::SlotType::SERVICE_REMINDER: in SetType()
145 case NotificationConstant::SlotType::CONTENT_INFORMATION: in SetType()
152 case NotificationConstant::SlotType::LIVE_VIEW: in SetType()
161 case NotificationConstant::SlotType in SetType()
[all...]
H A Dnotification_check_request.cpp23 NotificationConstant::SlotType slotType, std::vector<std::string> extraKeys) in NotificationCheckRequest()
40 void NotificationCheckRequest::SetSlotType(NotificationConstant::SlotType slotType) in SetSlotType()
45 NotificationConstant::SlotType NotificationCheckRequest::GetSlotType() const in GetSlotType()
102 slotType_ = static_cast<NotificationConstant::SlotType>(parcel.ReadInt32()); in ReadFromParcel()
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/
H A Dans_log_test.cpp117 NotificationConstant::SlotType outType; in HWTEST_F()
118 NotificationNapi::SlotType inType = NotificationNapi::SlotType::SOCIAL_COMMUNICATION; in HWTEST_F()
120 EXPECT_EQ(outType, NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F()
121 inType = NotificationNapi::SlotType::SERVICE_INFORMATION; in HWTEST_F()
123 EXPECT_EQ(outType, NotificationConstant::SlotType::SERVICE_REMINDER); in HWTEST_F()
124 inType = NotificationNapi::SlotType::CONTENT_INFORMATION; in HWTEST_F()
126 EXPECT_EQ(outType, NotificationConstant::SlotType::CONTENT_INFORMATION); in HWTEST_F()
127 inType = NotificationNapi::SlotType::LIVE_VIEW; in HWTEST_F()
129 EXPECT_EQ(outType, NotificationConstant::SlotType in HWTEST_F()
[all...]
/base/notification/distributed_notification_service/frameworks/js/napi/include/manager/
H A Dnapi_slot.h26 NotificationConstant::SlotType inType = NotificationConstant::SlotType::OTHER;
35 NotificationConstant::SlotType inType = NotificationConstant::SlotType::OTHER;
66 NotificationConstant::SlotType outType = NotificationConstant::SlotType::OTHER;
73 NotificationConstant::SlotType outType = NotificationConstant::SlotType::OTHER;
113 NotificationConstant::SlotType outType = NotificationConstant::SlotType
[all...]
H A Dnapi_push_callback.h42 void SetJsPushCallBackObject(NotificationConstant::SlotType slotType, napi_value pushCallBackObject);
55 std::map<NotificationConstant::SlotType, napi_ref> pushCallBackObjects_;
/base/notification/distributed_notification_service/services/ans/include/
H A Dnotification_preferences_info.h125 bool GetSlot(const NotificationConstant::SlotType &type, sptr<NotificationSlot> &slot) const;
161 const char *GetSlotFlagsKeyFromType(const NotificationConstant::SlotType &type) const;
167 void SetSlotFlagsForSlot(const NotificationConstant::SlotType &type);
174 uint32_t GetSlotFlagsForSlot(const NotificationConstant::SlotType &type) const;
200 bool IsExsitSlot(const NotificationConstant::SlotType &type) const;
208 bool RemoveSlot(const NotificationConstant::SlotType &type);
219 void SetSlotEnabled(NotificationConstant::SlotType slotType, bool enabled);
220 bool GetSlotEnabled(NotificationConstant::SlotType slotType, bool &enabled) const;
231 std::map<NotificationConstant::SlotType, sptr<NotificationSlot>> slots_;
H A Dnotification_config_parse.h40 std::map<NotificationConstant::SlotType, std::shared_ptr<NotificationFlags>> &currentSlotReminder) const;
41 uint32_t GetConfigSlotReminderModeByType(NotificationConstant::SlotType slotType) const;
43 std::map<NotificationConstant::SlotType, uint32_t> defaultCurrentSlotReminder_;
/base/notification/distributed_notification_service/services/ans/test/unittest/
H A Dnotification_preferences_info_test.cpp49 const char *res= bundleInfo.GetSlotFlagsKeyFromType(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F()
53 res = bundleInfo.GetSlotFlagsKeyFromType(NotificationConstant::SlotType::SERVICE_REMINDER); in HWTEST_F()
57 res = bundleInfo.GetSlotFlagsKeyFromType(NotificationConstant::SlotType::CONTENT_INFORMATION); in HWTEST_F()
61 res = bundleInfo.GetSlotFlagsKeyFromType(NotificationConstant::SlotType::OTHER); in HWTEST_F()
65 res = bundleInfo.GetSlotFlagsKeyFromType(NotificationConstant::SlotType::CUSTOM); in HWTEST_F()
69 res = bundleInfo.GetSlotFlagsKeyFromType(NotificationConstant::SlotType::LIVE_VIEW); in HWTEST_F()
73 res = bundleInfo.GetSlotFlagsKeyFromType(NotificationConstant::SlotType::CUSTOMER_SERVICE); in HWTEST_F()
89 bundleInfo.SetSlotFlagsForSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F()
90 int res = bundleInfo.GetSlotFlagsForSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F()
H A Dadvanced_notification_slot_service_test.cpp49 void TestAddSlot(NotificationConstant::SlotType type);
80 void AnsSlotServiceTest::TestAddSlot(NotificationConstant::SlotType type) in TestAddSlot()
102 NotificationConstant::SlotType slotType = NotificationConstant::SlotType::CUSTOMER_SERVICE; in HWTEST_F()
184 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::SlotType::LIVE_VIEW); in HWTEST_F()
214 TestAddSlot(NotificationConstant::SlotType::LIVE_VIEW); in HWTEST_F()
227 auto slotType = NotificationConstant::SlotType::CONTENT_INFORMATION; in HWTEST_F()
345 request->SetSlotType(NotificationConstant::SlotType::CUSTOMER_SERVICE); in HWTEST_F()
360 NotificationConstant::SlotType slotType = NotificationConstant::SlotType in HWTEST_F()
[all...]
H A Dnotification_slot_filter_test.cpp51 NotificationConstant::SlotType type = NotificationConstant::SlotType::CUSTOM; in HWTEST_F()
69 NotificationConstant::SlotType type = NotificationConstant::SlotType::CUSTOM; in HWTEST_F()
100 record->slot = new NotificationSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F()
H A Dnotification_preferences_test.cpp71 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::SlotType::OTHER); 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()
103 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::SlotType::OTHER); in HWTEST_F()
144 sptr<NotificationSlot> slot1 = new NotificationSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F()
145 sptr<NotificationSlot> slot2 = new NotificationSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F()
161 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::SlotType::OTHER); in HWTEST_F()
177 bundleOption_, NotificationConstant::SlotType::OTHER), in HWTEST_F()
189 bundleEmptyOption_, NotificationConstant::SlotType::OTHER), in HWTEST_F()
203 noExsitbundleOption_, NotificationConstant::SlotType in HWTEST_F()
[all...]
H A Dadvanced_notification_live_view_service_test.cpp105 auto slotType = NotificationConstant::SlotType::LIVE_VIEW; in HWTEST_F()
138 auto slotType = NotificationConstant::SlotType::LIVE_VIEW; in HWTEST_F()
181 auto slotType = NotificationConstant::SlotType::LIVE_VIEW; in HWTEST_F()
204 auto slotType = NotificationConstant::SlotType::LIVE_VIEW; in HWTEST_F()
234 auto slotType = NotificationConstant::SlotType::LIVE_VIEW; in HWTEST_F()
258 auto slotType = NotificationConstant::SlotType::LIVE_VIEW; in HWTEST_F()
284 auto slotType = NotificationConstant::SlotType::SOCIAL_COMMUNICATION; in HWTEST_F()
304 record->notification->GetNotificationRequest().SetSlotType(NotificationConstant::SlotType::LIVE_VIEW); in HWTEST_F()
H A Dadvanced_notification_service_test.cpp71 void TestAddSlot(NotificationConstant::SlotType type);
145 void AdvancedNotificationServiceTest::TestAddSlot(NotificationConstant::SlotType type) in TestAddSlot()
165 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::SlotType::LIVE_VIEW); in TestAddLiveViewSlot()
199 TestAddSlot(NotificationConstant::SlotType::OTHER); in HWTEST_F()
210 TestAddSlot(NotificationConstant::SlotType::OTHER); in HWTEST_F()
222 TestAddSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F()
238 TestAddSlot(NotificationConstant::SlotType::OTHER); in HWTEST_F()
423 TestAddSlot(NotificationConstant::SlotType::OTHER); in HWTEST_F()
494 TestAddSlot(NotificationConstant::SlotType::OTHER); in HWTEST_F()
505 TestAddSlot(NotificationConstant::SlotType in HWTEST_F()
[all...]
/base/notification/distributed_notification_service/services/ans/src/
H A Dnotification_preferences_info.cpp101 const NotificationConstant::SlotType &type, sptr<NotificationSlot> &slot) const in GetSlot()
112 const NotificationConstant::SlotType &type) const in GetSlotFlagsKeyFromType()
115 case NotificationConstant::SlotType::SOCIAL_COMMUNICATION: in GetSlotFlagsKeyFromType()
116 return NotificationConstant::SLOTTYPECCMNAMES[NotificationConstant::SlotType::SOCIAL_COMMUNICATION]; in GetSlotFlagsKeyFromType()
117 case NotificationConstant::SlotType::SERVICE_REMINDER: in GetSlotFlagsKeyFromType()
118 return NotificationConstant::SLOTTYPECCMNAMES[NotificationConstant::SlotType::SERVICE_REMINDER]; in GetSlotFlagsKeyFromType()
119 case NotificationConstant::SlotType::CONTENT_INFORMATION: in GetSlotFlagsKeyFromType()
120 return NotificationConstant::SLOTTYPECCMNAMES[NotificationConstant::SlotType::CONTENT_INFORMATION]; in GetSlotFlagsKeyFromType()
121 case NotificationConstant::SlotType::OTHER: in GetSlotFlagsKeyFromType()
122 return NotificationConstant::SLOTTYPECCMNAMES[NotificationConstant::SlotType in GetSlotFlagsKeyFromType()
[all...]
H A Dpermission_filter.cpp48 NotificationConstant::SlotType slotType = record->request->GetSlotType(); in OnPublish()
49 message.SlotType(slotType); in OnPublish()
/base/notification/distributed_notification_service/interfaces/inner_api/
H A Dnotification_slot.h52 NotificationSlot(NotificationConstant::SlotType type = NotificationConstant::SlotType::CUSTOM);
175 * @brief Obtains the type of a NotificationSlot object, which is set by SetType(SlotType).
179 NotificationConstant::SlotType GetType() const;
189 void SetType(NotificationConstant::SlotType type);
406 static bool GetSlotTypeByString(const std::string &strSlotType, NotificationConstant::SlotType &slotType);
469 NotificationConstant::SlotType type_ {};
484 static std::map<std::string, NotificationConstant::SlotType> convertStrToSlotType_;
H A Dnotification_check_request.h32 * @param SlotType Indicates type of slot.
35 NotificationCheckRequest(NotificationContent::Type contentType, NotificationConstant::SlotType slotType,
66 void SetSlotType(NotificationConstant::SlotType slotType);
73 NotificationConstant::SlotType GetSlotType() const;
123 NotificationConstant::SlotType slotType_ {};
/base/notification/distributed_notification_service/services/ans/test/unittest/advanced_notification_service_test/
H A Dadvanced_notification_service_publish_test.cpp71 void TestAddSlot(NotificationConstant::SlotType type);
145 void AdvancedNotificationServiceTest::TestAddSlot(NotificationConstant::SlotType type) in TestAddSlot()
165 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::SlotType::LIVE_VIEW); in TestAddLiveViewSlot()
200 TestAddSlot(NotificationConstant::SlotType::OTHER); in HWTEST_F()
205 req->SetSlotType(NotificationConstant::SlotType::OTHER); in HWTEST_F()
227 TestAddSlot(NotificationConstant::SlotType::OTHER); in HWTEST_F()
232 req->SetSlotType(NotificationConstant::SlotType::OTHER); in HWTEST_F()
262 TestAddSlot(NotificationConstant::SlotType::OTHER); in HWTEST_F()
267 req->SetSlotType(NotificationConstant::SlotType::OTHER); in HWTEST_F()
295 req->SetSlotType(NotificationConstant::SlotType in HWTEST_F()
[all...]
/base/notification/distributed_notification_service/frameworks/core/common/include/
H A Dans_convert_enum.h37 enum class SlotType { class
149 * @param inType Indicates a native SlotType object
150 * @param outType Indicates a js SlotType object
153 static bool SlotTypeJSToC(const SlotType &inType, NotificationConstant::SlotType &outType);
158 * @param inType Indicates a js SlotType object
159 * @param outType Indicates a native SlotType object
162 static bool SlotTypeCToJS(const NotificationConstant::SlotType &inType, SlotType &outType);
/base/notification/distributed_notification_service/services/test/moduletest/
H A Dans_module_test.cpp133 sptr<NotificationSlot> slot0 = new NotificationSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in TestAddSlots()
189 sptr<NotificationSlot> slot0 = new NotificationSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F()
198 req->SetSlotType(NotificationConstant::SlotType::CONTENT_INFORMATION); in HWTEST_F()
243 sptr<NotificationSlot> slot0 = new NotificationSlot(NotificationConstant::SlotType::SERVICE_REMINDER); in HWTEST_F()
256 req->SetSlotType(NotificationConstant::SlotType::CONTENT_INFORMATION); in HWTEST_F()
258 req1->SetSlotType(NotificationConstant::SlotType::CONTENT_INFORMATION); in HWTEST_F()
288 sptr<NotificationSlot> slot0 = new NotificationSlot(NotificationConstant::SlotType::CONTENT_INFORMATION); in HWTEST_F()
296 req->SetSlotType(NotificationConstant::SlotType::CONTENT_INFORMATION); in HWTEST_F()
341 sptr<NotificationSlot> slot0 = new NotificationSlot(NotificationConstant::SlotType::OTHER); in HWTEST_F()
354 req->SetSlotType(NotificationConstant::SlotType in HWTEST_F()
[all...]
/base/notification/distributed_notification_service/test/fuzztest/removenotificationslot_fuzzer/
H A Dremovenotificationslot_fuzzer.cpp27 Notification::NotificationConstant::SlotType slotType = Notification::NotificationConstant::SlotType(type); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/test/fuzztest/getnotificationslot_fuzzer/
H A Dgetnotificationslot_fuzzer.cpp27 Notification::NotificationConstant::SlotType slotType = Notification::NotificationConstant::SlotType(type); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/test/fuzztest/addslotbytype_fuzzer/
H A Daddslotbytype_fuzzer.cpp26 Notification::NotificationConstant::SlotType slotType = Notification::NotificationConstant::SlotType(type); in DoSomethingInterestingWithMyAPI()

Completed in 17 milliseconds

12345