/base/notification/distributed_notification_service/frameworks/test/moduletest/ |
H A D | ans_innerkits_module_slot_test.cpp | 92 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 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::NotificationLevel in SlotLevelCToJS() [all...] |
/base/notification/distributed_notification_service/interfaces/inner_api/ |
H A D | notification_slot.h | 29 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 D | notification_helper.h | 412 static ErrCode GetBundleImportance(NotificationSlot::NotificationLevel &importance);
|
/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/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::NotificationLevel in HWTEST_F() [all...] |
H A D | notification_helper_test.cpp | 466 NotificationSlot::NotificationLevel importance = NotificationSlot::NotificationLevel::LEVEL_NONE; in HWTEST_F()
|
/base/notification/distributed_notification_service/test/fuzztest/addnotificationslot_fuzzer/ |
H A D | addnotificationslot_fuzzer.cpp | 41 Notification::NotificationSlot::NotificationLevel notificatoinLevel = in DoSomethingInterestingWithMyAPI() 42 Notification::NotificationSlot::NotificationLevel(level); in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/test/fuzztest/addnotificationslots_fuzzer/ |
H A D | addnotificationslots_fuzzer.cpp | 37 Notification::NotificationSlot::NotificationLevel notificatoinLevel = in DoSomethingInterestingWithMyAPI() 38 Notification::NotificationSlot::NotificationLevel(level); in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/frameworks/core/common/include/ |
H A D | ans_convert_enum.h | 168 * @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 D | notification_slot.cpp | 84 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 D | notification_helper.cpp | 196 ErrCode NotificationHelper::GetBundleImportance(NotificationSlot::NotificationLevel &importance) in GetBundleImportance()
|
/base/notification/distributed_notification_service/services/ans/test/unittest/ |
H A D | notification_preferences_database_test.cpp | 122 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 D | notification_utils.cpp | 710 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 D | notification_utils.h | 291 bool SlotLevelCToCJ(const OHOS::Notification::NotificationSlot::NotificationLevel &inLevel, SlotLevel &outLevel);
|
/base/notification/distributed_notification_service/frameworks/core/include/ |
H A D | ans_notification.h | 346 ErrCode GetBundleImportance(NotificationSlot::NotificationLevel &importance);
|
/base/location/frameworks/js/napi/notification/src/ |
H A D | notification_napi.cpp | 610 NotificationSlot::NotificationLevel outLevel {NotificationSlot::NotificationLevel::LEVEL_NONE}; in GetNotificationSlotByNumber()
|
/base/notification/distributed_notification_service/services/ans/src/ |
H A D | notification_preferences_database.cpp | 1275 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 D | ans_notification_unit_test.cpp | 676 NotificationSlot::NotificationLevel importance = NotificationSlot::NotificationLevel::LEVEL_NONE;
in HWTEST_F()
|
/base/notification/distributed_notification_service/frameworks/js/napi/src/ |
H A D | common.cpp | 878 NotificationSlot::NotificationLevel outLevel {NotificationSlot::NotificationLevel::LEVEL_NONE}; in GetNotificationSlotByNumber()
|
/base/notification/distributed_notification_service/frameworks/core/src/ |
H A D | ans_notification.cpp | 539 ErrCode AnsNotification::GetBundleImportance(NotificationSlot::NotificationLevel &importance) in GetBundleImportance() 549 importance = static_cast<NotificationSlot::NotificationLevel>(importanceTemp); in GetBundleImportance()
|