Home
last modified time | relevance | path

Searched refs:outLevel (Results 1 – 4 of 4) sorted by relevance

/ohos5.0/base/notification/distributed_notification_service/frameworks/core/common/src/
H A Dans_convert_enum.cpp150 …nsEnumUtil::SlotLevelJSToC(const SlotLevel &inLevel, NotificationSlot::NotificationLevel &outLevel) in SlotLevelJSToC() argument
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()
204 outLevel = SlotLevel::LEVEL_NONE; in SlotLevelCToJS()
207 outLevel = SlotLevel::LEVEL_MIN; in SlotLevelCToJS()
210 outLevel = SlotLevel::LEVEL_LOW; in SlotLevelCToJS()
213 outLevel = SlotLevel::LEVEL_DEFAULT; in SlotLevelCToJS()
[all …]
/ohos5.0/base/notification/distributed_notification_service/frameworks/core/common/include/
H A Dans_convert_enum.h171 …tatic bool SlotLevelJSToC(const SlotLevel &inLevel, NotificationSlot::NotificationLevel &outLevel);
189 …tatic bool SlotLevelCToJS(const NotificationSlot::NotificationLevel &inLevel, SlotLevel &outLevel);
/ohos5.0/base/notification/distributed_notification_service/frameworks/js/napi/src/
H A Dcommon.cpp148 SlotLevel outLevel = SlotLevel::LEVEL_NONE; in SetNotificationSlot() local
149 if (!AnsEnumUtil::SlotLevelCToJS(slot.GetLevel(), outLevel)) { in SetNotificationSlot()
152 napi_create_int32(env, static_cast<int32_t>(outLevel), &value); in SetNotificationSlot()
878 … NotificationSlot::NotificationLevel outLevel {NotificationSlot::NotificationLevel::LEVEL_NONE}; in GetNotificationSlotByNumber() local
879 if (!AnsEnumUtil::SlotLevelJSToC(SlotLevel(inLevel), outLevel)) { in GetNotificationSlotByNumber()
882 slot.SetLevel(outLevel); in GetNotificationSlotByNumber()
/ohos5.0/base/location/frameworks/js/napi/notification/src/
H A Dnotification_napi.cpp610 … NotificationSlot::NotificationLevel outLevel {NotificationSlot::NotificationLevel::LEVEL_NONE}; in GetNotificationSlotByNumber() local
611 if (!AnsEnumUtil::SlotLevelJSToC(SlotLevel(inLevel), outLevel)) { in GetNotificationSlotByNumber()
614 slot.SetLevel(outLevel); in GetNotificationSlotByNumber()