/ohos5.0/base/notification/distributed_notification_service/frameworks/core/common/src/ |
H A D | ans_convert_enum.cpp | 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() 202 case NotificationSlot::NotificationLevel::LEVEL_NONE: in SlotLevelCToJS() 203 case NotificationSlot::NotificationLevel::LEVEL_UNDEFINED: in SlotLevelCToJS() 206 case NotificationSlot::NotificationLevel::LEVEL_MIN: in SlotLevelCToJS() 209 case NotificationSlot::NotificationLevel::LEVEL_LOW: in SlotLevelCToJS() 212 case NotificationSlot::NotificationLevel::LEVEL_DEFAULT: in SlotLevelCToJS() [all …]
|
/ohos5.0/base/notification/distributed_notification_service/frameworks/test/moduletest/ |
H A D | ans_innerkits_module_slot_test.cpp | 92 slot.SetLevel(NotificationSlot::NotificationLevel::LEVEL_LOW); 111 EXPECT_EQ(NotificationSlot::NotificationLevel::LEVEL_LOW, spSlot->GetLevel()); 138 slot.SetLevel(NotificationSlot::NotificationLevel::LEVEL_LOW); 156 EXPECT_EQ(NotificationSlot::NotificationLevel::LEVEL_LOW, spSlot->GetLevel()); 184 slot.SetLevel(NotificationSlot::NotificationLevel::LEVEL_LOW); 229 slot.SetLevel(NotificationSlot::NotificationLevel::LEVEL_LOW); 276 slot.SetLevel(NotificationSlot::NotificationLevel::LEVEL_LOW); 325 EXPECT_EQ(NotificationSlot::NotificationLevel::LEVEL_HIGH, slot.GetLevel()); 359 EXPECT_EQ(NotificationSlot::NotificationLevel::LEVEL_MIN, slot.GetLevel()); 376 EXPECT_EQ(NotificationSlot::NotificationLevel::LEVEL_MIN, slot.GetLevel()); [all …]
|
/ohos5.0/base/notification/distributed_notification_service/frameworks/ans/test/unittest/ |
H A D | ans_log_test.cpp | 224 NotificationSlot::NotificationLevel outType; 227 EXPECT_EQ(outType, NotificationSlot::NotificationLevel::LEVEL_NONE); 230 EXPECT_EQ(outType, NotificationSlot::NotificationLevel::LEVEL_MIN); 233 EXPECT_EQ(outType, NotificationSlot::NotificationLevel::LEVEL_LOW); 239 EXPECT_EQ(outType, NotificationSlot::NotificationLevel::LEVEL_HIGH); 274 NotificationSlot::NotificationLevel inType = NotificationSlot::NotificationLevel::LEVEL_NONE; 277 inType = NotificationSlot::NotificationLevel::LEVEL_UNDEFINED; 280 inType = NotificationSlot::NotificationLevel::LEVEL_MIN; 283 inType = NotificationSlot::NotificationLevel::LEVEL_LOW; 286 inType = NotificationSlot::NotificationLevel::LEVEL_DEFAULT; [all …]
|
H A D | notification_helper_test.cpp | 466 … NotificationSlot::NotificationLevel importance = NotificationSlot::NotificationLevel::LEVEL_NONE;
|
/ohos5.0/base/notification/distributed_notification_service/interfaces/inner_api/ |
H A D | notification_slot.h | 29 enum NotificationLevel { enum 143 NotificationLevel GetLevel() const; 153 void SetLevel(NotificationLevel level); 468 NotificationLevel level_ {LEVEL_DEFAULT};
|
H A D | notification_helper.h | 348 static ErrCode GetBundleImportance(NotificationSlot::NotificationLevel &importance);
|
/ohos5.0/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()
|
/ohos5.0/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()
|
/ohos5.0/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()
|
/ohos5.0/base/notification/distributed_notification_service/frameworks/core/common/include/ |
H A D | ans_convert_enum.h | 171 …static bool SlotLevelJSToC(const SlotLevel &inLevel, NotificationSlot::NotificationLevel &outLevel… 189 …static bool SlotLevelCToJS(const NotificationSlot::NotificationLevel &inLevel, SlotLevel &outLevel…
|
/ohos5.0/base/notification/distributed_notification_service/frameworks/ans/src/ |
H A D | notification_slot.cpp | 93 NotificationSlot::NotificationLevel NotificationSlot::GetLevel() const in GetLevel() 98 void NotificationSlot::SetLevel(NotificationLevel level) in SetLevel() 441 level_ = static_cast<NotificationLevel>(parcel.ReadInt32()); in ReadFromParcel()
|
H A D | notification_helper.cpp | 197 ErrCode NotificationHelper::GetBundleImportance(NotificationSlot::NotificationLevel &importance) in GetBundleImportance()
|
/ohos5.0/base/notification/distributed_notification_service/services/ans/test/unittest/ |
H A D | notification_preferences_database_test.cpp | 122 …B_->PutImportance(bundleInfo, OHOS::Notification::NotificationSlot::NotificationLevel::LEVEL_NONE)… 124 …B_->PutImportance(bundleInfo, OHOS::Notification::NotificationSlot::NotificationLevel::LEVEL_MIN)); 126 …B_->PutImportance(bundleInfo, OHOS::Notification::NotificationSlot::NotificationLevel::LEVEL_LOW)); 128 bundleInfo, OHOS::Notification::NotificationSlot::NotificationLevel::LEVEL_DEFAULT)); 130 …B_->PutImportance(bundleInfo, OHOS::Notification::NotificationSlot::NotificationLevel::LEVEL_HIGH)… 132 bundleInfo, OHOS::Notification::NotificationSlot::NotificationLevel::LEVEL_UNDEFINED)); 147 …B_->PutImportance(bundleInfo, OHOS::Notification::NotificationSlot::NotificationLevel::LEVEL_NONE)…
|
/ohos5.0/base/notification/distributed_notification_service/frameworks/core/include/ |
H A D | ans_notification.h | 348 ErrCode GetBundleImportance(NotificationSlot::NotificationLevel &importance);
|
/ohos5.0/base/location/frameworks/js/napi/notification/src/ |
H A D | notification_napi.cpp | 610 … NotificationSlot::NotificationLevel outLevel {NotificationSlot::NotificationLevel::LEVEL_NONE}; in GetNotificationSlotByNumber()
|
/ohos5.0/base/notification/distributed_notification_service/services/ans/src/ |
H A D | notification_preferences_database.cpp | 1319 bundleInfo.SetImportance(static_cast<NotificationSlot::NotificationLevel>(StringToInt(value))); in ParseBundleImportance() 1367 …NotificationSlot::NotificationLevel level = static_cast<NotificationSlot::NotificationLevel>(Strin… in ParseSlotLevel()
|
/ohos5.0/base/notification/distributed_notification_service/frameworks/js/napi/src/ |
H A D | common.cpp | 878 … NotificationSlot::NotificationLevel outLevel {NotificationSlot::NotificationLevel::LEVEL_NONE}; in GetNotificationSlotByNumber()
|
/ohos5.0/base/notification/distributed_notification_service/frameworks/core/src/ |
H A D | ans_notification.cpp | 541 ErrCode AnsNotification::GetBundleImportance(NotificationSlot::NotificationLevel &importance) in GetBundleImportance() 551 importance = static_cast<NotificationSlot::NotificationLevel>(importanceTemp); in GetBundleImportance()
|
/ohos5.0/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;
|