Home
last modified time | relevance | path

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

/base/notification/distributed_notification_service/frameworks/ans/src/
Dnotification_flags.cpp37 void NotificationFlags::SetVibrationEnabled(NotificationConstant::FlagStatus vibrationEnabled) in SetVibrationEnabled() argument
39 vibrationEnabled_ = vibrationEnabled; in SetVibrationEnabled()
81 auto vibrationEnabled = jsonObject.at("vibrationEnabled").get<uint8_t>(); in FromJson() local
82 pFlags->vibrationEnabled_ = static_cast<NotificationConstant::FlagStatus>(vibrationEnabled); in FromJson()
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/
Dnotification_flags_test.cpp57 NotificationConstant::FlagStatus vibrationEnabled =NotificationConstant::FlagStatus(1); variable
59 rrc->SetVibrationEnabled(vibrationEnabled);
60 EXPECT_EQ(rrc->IsVibrationEnabled(), vibrationEnabled);
/base/notification/distributed_notification_service/interfaces/inner_api/
Dnotification_flags.h55 void SetVibrationEnabled(NotificationConstant::FlagStatus vibrationEnabled);
/base/notification/distributed_notification_service/frameworks/js/napi/src/
Dcommon.cpp4154 bool vibrationEnabled = false; in GetNotificationSlotByVibration() local
4164 napi_get_value_bool(env, nobj, &vibrationEnabled); in GetNotificationSlotByVibration()
4165 slot.SetEnableVibration(vibrationEnabled); in GetNotificationSlotByVibration()
4168 if (!vibrationEnabled) { in GetNotificationSlotByVibration()
4759 int32_t vibrationEnabled = static_cast<int32_t>(flags->IsVibrationEnabled()); in SetNotificationFlags() local
4760 napi_create_int32(env, vibrationEnabled, &value); in SetNotificationFlags()