Home
last modified time | relevance | path

Searched refs:FlagStatus (Results 1 – 8 of 8) sorted by relevance

/base/notification/distributed_notification_service/interfaces/inner_api/
Dnotification_flags.h43 void SetSoundEnabled(NotificationConstant::FlagStatus soundEnabled);
49 NotificationConstant::FlagStatus IsSoundEnabled() const;
55 void SetVibrationEnabled(NotificationConstant::FlagStatus vibrationEnabled);
61 NotificationConstant::FlagStatus IsVibrationEnabled() const;
102 NotificationConstant::FlagStatus soundEnabled_ {NotificationConstant::FlagStatus::NONE};
103 NotificationConstant::FlagStatus vibrationEnabled_ {NotificationConstant::FlagStatus::NONE};
Dnotification_constant.h123 enum class FlagStatus { enum
/base/notification/distributed_notification_service/frameworks/ans/src/
Dnotification_flags.cpp27 void NotificationFlags::SetSoundEnabled(NotificationConstant::FlagStatus soundEnabled) in SetSoundEnabled()
32 NotificationConstant::FlagStatus NotificationFlags::IsSoundEnabled() const in IsSoundEnabled()
37 void NotificationFlags::SetVibrationEnabled(NotificationConstant::FlagStatus vibrationEnabled) in SetVibrationEnabled()
42 NotificationConstant::FlagStatus NotificationFlags::IsVibrationEnabled() const in IsVibrationEnabled()
77 pFlags->soundEnabled_ = static_cast<NotificationConstant::FlagStatus>(soundEnabled); in FromJson()
82 pFlags->vibrationEnabled_ = static_cast<NotificationConstant::FlagStatus>(vibrationEnabled); in FromJson()
116 soundEnabled_ = static_cast<NotificationConstant::FlagStatus>(parcel.ReadUint8()); in ReadFromParcel()
117 vibrationEnabled_ = static_cast<NotificationConstant::FlagStatus>(parcel.ReadUint8()); in ReadFromParcel()
Dreminder_request.cpp1595 flags->SetSoundEnabled(NotificationConstant::FlagStatus::CLOSE); in UpdateNotificationCommon()
1596 flags->SetVibrationEnabled(NotificationConstant::FlagStatus::CLOSE); in UpdateNotificationCommon()
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/
Dnotification_flags_test.cpp43 NotificationConstant::FlagStatus sound =NotificationConstant::FlagStatus(1);
57 NotificationConstant::FlagStatus vibrationEnabled =NotificationConstant::FlagStatus(1);
/base/notification/distributed_notification_service/test/fuzztest/publishnotification_fuzzer/
Dpublishnotification_fuzzer.cpp58 Notification::NotificationConstant::FlagStatus sound = in DoSomethingInterestingWithMyAPI()
59 Notification::NotificationConstant::FlagStatus(soundEnabled); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/test/fuzztest/publishcontinuoustasknotification_fuzzer/
Dpublishcontinuoustasknotification_fuzzer.cpp58 Notification::NotificationConstant::FlagStatus sound = in DoSomethingInterestingWithMyAPI()
59 Notification::NotificationConstant::FlagStatus(soundEnabled); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/frameworks/test/moduletest/
Dans_innerkits_module_publish_test.cpp388 EXPECT_EQ(NotificationConstant::FlagStatus::CLOSE, notiFlags->IsSoundEnabled()); in CheckCaseFifteenResult()
389 EXPECT_EQ(NotificationConstant::FlagStatus::OPEN, notiFlags->IsVibrationEnabled()); in CheckCaseFifteenResult()
397 EXPECT_EQ(NotificationConstant::FlagStatus::NONE, notiFlags->IsSoundEnabled()); in CheckCaseSixteenResult()
398 EXPECT_EQ(NotificationConstant::FlagStatus::NONE, notiFlags->IsVibrationEnabled()); in CheckCaseSixteenResult()
1412 notiFlags->SetSoundEnabled(NotificationConstant::FlagStatus::CLOSE);
1413 notiFlags->SetVibrationEnabled(NotificationConstant::FlagStatus::OPEN);