Home
last modified time | relevance | path

Searched refs:NotificationLevel (Results 1 – 19 of 19) sorted by relevance

/ohos5.0/base/notification/distributed_notification_service/frameworks/core/common/src/
H A Dans_convert_enum.cpp154 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 Dans_innerkits_module_slot_test.cpp92 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 Dans_log_test.cpp224 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 Dnotification_helper_test.cpp466 … NotificationSlot::NotificationLevel importance = NotificationSlot::NotificationLevel::LEVEL_NONE;
/ohos5.0/base/notification/distributed_notification_service/interfaces/inner_api/
H A Dnotification_slot.h29 enum NotificationLevel { enum
143 NotificationLevel GetLevel() const;
153 void SetLevel(NotificationLevel level);
468 NotificationLevel level_ {LEVEL_DEFAULT};
H A Dnotification_helper.h348 static ErrCode GetBundleImportance(NotificationSlot::NotificationLevel &importance);
/ohos5.0/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()
/ohos5.0/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()
/ohos5.0/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()
/ohos5.0/base/notification/distributed_notification_service/frameworks/core/common/include/
H A Dans_convert_enum.h171 …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 Dnotification_slot.cpp93 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 Dnotification_helper.cpp197 ErrCode NotificationHelper::GetBundleImportance(NotificationSlot::NotificationLevel &importance) in GetBundleImportance()
/ohos5.0/base/notification/distributed_notification_service/services/ans/test/unittest/
H A Dnotification_preferences_database_test.cpp122 …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 Dans_notification.h348 ErrCode GetBundleImportance(NotificationSlot::NotificationLevel &importance);
/ohos5.0/base/location/frameworks/js/napi/notification/src/
H A Dnotification_napi.cpp610 … NotificationSlot::NotificationLevel outLevel {NotificationSlot::NotificationLevel::LEVEL_NONE}; in GetNotificationSlotByNumber()
/ohos5.0/base/notification/distributed_notification_service/services/ans/src/
H A Dnotification_preferences_database.cpp1319 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 Dcommon.cpp878 … NotificationSlot::NotificationLevel outLevel {NotificationSlot::NotificationLevel::LEVEL_NONE}; in GetNotificationSlotByNumber()
/ohos5.0/base/notification/distributed_notification_service/frameworks/core/src/
H A Dans_notification.cpp541 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 Dans_notification_unit_test.cpp676 … NotificationSlot::NotificationLevel importance = NotificationSlot::NotificationLevel::LEVEL_NONE;