Searched refs:SlotLevel (Results 1 - 8 of 8) sorted by relevance
/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() 153 case SlotLevel::LEVEL_NONE: in SlotLevelJSToC() 156 case SlotLevel::LEVEL_MIN: in SlotLevelJSToC() 159 case SlotLevel::LEVEL_LOW: in SlotLevelJSToC() 162 case SlotLevel::LEVEL_DEFAULT: in SlotLevelJSToC() 165 case SlotLevel::LEVEL_HIGH: in SlotLevelJSToC() 169 ANS_LOGE("SlotLevel %{public}d is an invalid value", inLevel); in SlotLevelJSToC() 199 bool AnsEnumUtil::SlotLevelCToJS(const NotificationSlot::NotificationLevel &inLevel, SlotLevel &outLevel) in SlotLevelCToJS() 204 outLevel = SlotLevel::LEVEL_NONE; in SlotLevelCToJS() 207 outLevel = SlotLevel in SlotLevelCToJS() [all...] |
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/ |
H A D | ans_log_test.cpp | 188 NotificationNapi::SlotLevel inType = NotificationNapi::SlotLevel::LEVEL_NONE; in HWTEST_F() 191 inType = NotificationNapi::SlotLevel::LEVEL_MIN; in HWTEST_F() 194 inType = NotificationNapi::SlotLevel::LEVEL_LOW; in HWTEST_F() 197 inType = NotificationNapi::SlotLevel::LEVEL_DEFAULT; in HWTEST_F() 200 inType = NotificationNapi::SlotLevel::LEVEL_HIGH; in HWTEST_F() 236 NotificationNapi::SlotLevel outType; in HWTEST_F() 239 EXPECT_EQ(outType, NotificationNapi::SlotLevel::LEVEL_NONE); in HWTEST_F() 242 EXPECT_EQ(outType, NotificationNapi::SlotLevel::LEVEL_NONE); in HWTEST_F() 245 EXPECT_EQ(outType, NotificationNapi::SlotLevel in HWTEST_F() [all...] |
/base/notification/distributed_notification_service/frameworks/core/common/include/ |
H A D | ans_convert_enum.h | 48 enum class SlotLevel { class 167 * @param inType Indicates a native SlotLevel object 171 static bool SlotLevelJSToC(const SlotLevel &inLevel, NotificationSlot::NotificationLevel &outLevel); 186 * @param outType Indicates a native SlotLevel object 189 static bool SlotLevelCToJS(const NotificationSlot::NotificationLevel &inLevel, SlotLevel &outLevel);
|
/base/notification/distributed_notification_service/frameworks/js/napi/src/ |
H A D | constant.cpp | 80 SetNamedPropertyByInteger(env, obj, (int32_t)SlotLevel::LEVEL_NONE, "LEVEL_NONE"); in SlotLevelInit() 81 SetNamedPropertyByInteger(env, obj, (int32_t)SlotLevel::LEVEL_MIN, "LEVEL_MIN"); in SlotLevelInit() 82 SetNamedPropertyByInteger(env, obj, (int32_t)SlotLevel::LEVEL_LOW, "LEVEL_LOW"); in SlotLevelInit() 83 SetNamedPropertyByInteger(env, obj, (int32_t)SlotLevel::LEVEL_DEFAULT, "LEVEL_DEFAULT"); in SlotLevelInit() 84 SetNamedPropertyByInteger(env, obj, (int32_t)SlotLevel::LEVEL_HIGH, "LEVEL_HIGH"); in SlotLevelInit() 87 DECLARE_NAPI_PROPERTY("SlotLevel", obj), in SlotLevelInit()
|
H A D | common.cpp | 148 SlotLevel outLevel = SlotLevel::LEVEL_NONE; in SetNotificationSlot() 879 if (!AnsEnumUtil::SlotLevelJSToC(SlotLevel(inLevel), outLevel)) { in GetNotificationSlotByNumber()
|
/base/notification/distributed_notification_service/frameworks/cj/ffi/include/ |
H A D | notification_utils.h | 152 enum class SlotLevel { class 291 bool SlotLevelCToCJ(const OHOS::Notification::NotificationSlot::NotificationLevel &inLevel, SlotLevel &outLevel);
|
/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() 715 outLevel = SlotLevel::LEVEL_NONE; in SlotLevelCToCJ() 718 outLevel = SlotLevel::LEVEL_MIN; in SlotLevelCToCJ() 721 outLevel = SlotLevel::LEVEL_LOW; in SlotLevelCToCJ() 724 outLevel = SlotLevel::LEVEL_DEFAULT; in SlotLevelCToCJ() 727 outLevel = SlotLevel::LEVEL_HIGH; in SlotLevelCToCJ() 730 LOGE("SlotLevel %{public}d is an invalid value", inLevel); in SlotLevelCToCJ() 886 SlotLevel outLevel = SlotLevel::LEVEL_NONE; in SetNotificationSlot()
|
/base/location/frameworks/js/napi/notification/src/ |
H A D | notification_napi.cpp | 611 if (!AnsEnumUtil::SlotLevelJSToC(SlotLevel(inLevel), outLevel)) { in GetNotificationSlotByNumber()
|
Completed in 11 milliseconds