Home
last modified time | relevance | path

Searched refs:NotificationLevel (Results 1 - 21 of 21) sorted by relevance

/base/notification/distributed_notification_service/frameworks/test/moduletest/
H A Dans_innerkits_module_slot_test.cpp92 slot.SetLevel(NotificationSlot::NotificationLevel::LEVEL_LOW); in HWTEST_F()
111 EXPECT_EQ(NotificationSlot::NotificationLevel::LEVEL_LOW, spSlot->GetLevel()); in HWTEST_F()
138 slot.SetLevel(NotificationSlot::NotificationLevel::LEVEL_LOW); in HWTEST_F()
156 EXPECT_EQ(NotificationSlot::NotificationLevel::LEVEL_LOW, spSlot->GetLevel()); in HWTEST_F()
184 slot.SetLevel(NotificationSlot::NotificationLevel::LEVEL_LOW); in HWTEST_F()
202 EXPECT_EQ(NotificationSlot::NotificationLevel::LEVEL_LOW, spSlot->GetLevel()); in HWTEST_F()
229 slot.SetLevel(NotificationSlot::NotificationLevel::LEVEL_LOW); in HWTEST_F()
247 EXPECT_EQ(NotificationSlot::NotificationLevel::LEVEL_LOW, spSlot->GetLevel()); in HWTEST_F()
276 slot.SetLevel(NotificationSlot::NotificationLevel::LEVEL_LOW); in HWTEST_F()
296 EXPECT_EQ(NotificationSlot::NotificationLevel in HWTEST_F()
[all...]
/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::NotificationLevel in SlotLevelCToJS()
[all...]
/base/notification/distributed_notification_service/interfaces/inner_api/
H A Dnotification_slot.h29 enum NotificationLevel { enum in OHOS::Notification::NotificationSlot
116 * which is set by NotificationSlot(string, string, NotificationLevel).
139 * @brief Obtains the level of a NotificationSlot object, which is set by SetLevel(NotificationLevel).
143 NotificationLevel GetLevel() const;
153 void SetLevel(NotificationLevel level);
468 NotificationLevel level_ {LEVEL_DEFAULT};
H A Dnotification_helper.h412 static ErrCode GetBundleImportance(NotificationSlot::NotificationLevel &importance);
/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/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::NotificationLevel in HWTEST_F()
[all...]
H A Dnotification_helper_test.cpp466 NotificationSlot::NotificationLevel importance = NotificationSlot::NotificationLevel::LEVEL_NONE; in HWTEST_F()
/base/notification/distributed_notification_service/test/fuzztest/addnotificationslot_fuzzer/
H A Daddnotificationslot_fuzzer.cpp41 Notification::NotificationSlot::NotificationLevel notificatoinLevel = in DoSomethingInterestingWithMyAPI()
42 Notification::NotificationSlot::NotificationLevel(level); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/test/fuzztest/addnotificationslots_fuzzer/
H A Daddnotificationslots_fuzzer.cpp37 Notification::NotificationSlot::NotificationLevel notificatoinLevel = in DoSomethingInterestingWithMyAPI()
38 Notification::NotificationSlot::NotificationLevel(level); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/frameworks/core/common/include/
H A Dans_convert_enum.h168 * @param outType Indicates a js NotificationLevel object
171 static bool SlotLevelJSToC(const SlotLevel &inLevel, NotificationSlot::NotificationLevel &outLevel);
185 * @param inType Indicates a js NotificationLevel object
189 static bool SlotLevelCToJS(const NotificationSlot::NotificationLevel &inLevel, SlotLevel &outLevel);
/base/notification/distributed_notification_service/frameworks/ans/src/
H A Dnotification_slot.cpp84 NotificationSlot::NotificationLevel NotificationSlot::GetLevel() const in GetLevel()
89 void NotificationSlot::SetLevel(NotificationLevel level) in SetLevel()
432 level_ = static_cast<NotificationLevel>(parcel.ReadInt32()); in ReadFromParcel()
H A Dnotification_helper.cpp196 ErrCode NotificationHelper::GetBundleImportance(NotificationSlot::NotificationLevel &importance) in GetBundleImportance()
/base/notification/distributed_notification_service/services/ans/test/unittest/
H A Dnotification_preferences_database_test.cpp122 preferncesDB_->PutImportance(bundleInfo, OHOS::Notification::NotificationSlot::NotificationLevel::LEVEL_NONE)); in HWTEST_F()
124 preferncesDB_->PutImportance(bundleInfo, OHOS::Notification::NotificationSlot::NotificationLevel::LEVEL_MIN)); in HWTEST_F()
126 preferncesDB_->PutImportance(bundleInfo, OHOS::Notification::NotificationSlot::NotificationLevel::LEVEL_LOW)); in HWTEST_F()
128 bundleInfo, OHOS::Notification::NotificationSlot::NotificationLevel::LEVEL_DEFAULT)); in HWTEST_F()
130 preferncesDB_->PutImportance(bundleInfo, OHOS::Notification::NotificationSlot::NotificationLevel::LEVEL_HIGH)); in HWTEST_F()
132 bundleInfo, OHOS::Notification::NotificationSlot::NotificationLevel::LEVEL_UNDEFINED)); in HWTEST_F()
147 preferncesDB_->PutImportance(bundleInfo, OHOS::Notification::NotificationSlot::NotificationLevel::LEVEL_NONE)); in HWTEST_F()
/base/notification/distributed_notification_service/frameworks/cj/ffi/src/
H A Dnotification_utils.cpp710 bool SlotLevelCToCJ(const NotificationSlot::NotificationLevel &inLevel, SlotLevel &outLevel) in SlotLevelCToCJ()
713 case NotificationSlot::NotificationLevel::LEVEL_NONE: in SlotLevelCToCJ()
714 case NotificationSlot::NotificationLevel::LEVEL_UNDEFINED: in SlotLevelCToCJ()
717 case NotificationSlot::NotificationLevel::LEVEL_MIN: in SlotLevelCToCJ()
720 case NotificationSlot::NotificationLevel::LEVEL_LOW: in SlotLevelCToCJ()
723 case NotificationSlot::NotificationLevel::LEVEL_DEFAULT: in SlotLevelCToCJ()
726 case NotificationSlot::NotificationLevel::LEVEL_HIGH: in SlotLevelCToCJ()
/base/notification/distributed_notification_service/frameworks/cj/ffi/include/
H A Dnotification_utils.h291 bool SlotLevelCToCJ(const OHOS::Notification::NotificationSlot::NotificationLevel &inLevel, SlotLevel &outLevel);
/base/notification/distributed_notification_service/frameworks/core/include/
H A Dans_notification.h346 ErrCode GetBundleImportance(NotificationSlot::NotificationLevel &importance);
/base/location/frameworks/js/napi/notification/src/
H A Dnotification_napi.cpp610 NotificationSlot::NotificationLevel outLevel {NotificationSlot::NotificationLevel::LEVEL_NONE}; in GetNotificationSlotByNumber()
/base/notification/distributed_notification_service/services/ans/src/
H A Dnotification_preferences_database.cpp1275 bundleInfo.SetImportance(static_cast<NotificationSlot::NotificationLevel>(StringToInt(value))); in ParseBundleImportance()
1323 NotificationSlot::NotificationLevel level = static_cast<NotificationSlot::NotificationLevel>(StringToInt(value)); in ParseSlotLevel()
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_notification_test/
H A Dans_notification_unit_test.cpp676 NotificationSlot::NotificationLevel importance = NotificationSlot::NotificationLevel::LEVEL_NONE; in HWTEST_F()
/base/notification/distributed_notification_service/frameworks/js/napi/src/
H A Dcommon.cpp878 NotificationSlot::NotificationLevel outLevel {NotificationSlot::NotificationLevel::LEVEL_NONE}; in GetNotificationSlotByNumber()
/base/notification/distributed_notification_service/frameworks/core/src/
H A Dans_notification.cpp539 ErrCode AnsNotification::GetBundleImportance(NotificationSlot::NotificationLevel &importance) in GetBundleImportance()
549 importance = static_cast<NotificationSlot::NotificationLevel>(importanceTemp); in GetBundleImportance()

Completed in 32 milliseconds