From 0e7ccd498dded5c1695320a4cc75e888f376aa4e Mon Sep 17 00:00:00 2001 From: lixiangpeng5 Date: Sun, 29 Sep 2024 08:25:37 +0000 Subject: [PATCH] fix haptic effect string define Signed-off-by: lixiangpeng5 Change-Id: I5531ae7a243a2ed7f79bc8ffc94c354d761db023 --- .../inner_api/vibrator/vibrator_agent_type.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/interfaces/inner_api/vibrator/vibrator_agent_type.h b/interfaces/inner_api/vibrator/vibrator_agent_type.h index 53a1634..91c1c48 100644 --- a/interfaces/inner_api/vibrator/vibrator_agent_type.h +++ b/interfaces/inner_api/vibrator/vibrator_agent_type.h @@ -32,49 +32,49 @@ inline const char *VIBRATOR_TYPE_CLOCK_TIMER = "haptic.clock.timer"; * * @since 11 */ -inline const char *VIBRATOR_TYPE_FAIL = "haptic.fail"; +inline const char *VIBRATOR_TYPE_FAIL = "haptic.notice.fail"; /** * @brief Describes the vibration effect of the vibrator when charging. * * @since 11 */ -inline const char *VIBRATOR_TYPE_CHARGING = "haptic.charging"; +inline const char *VIBRATOR_TYPE_CHARGING = "haptic.calib.charge"; /** * @brief Describes the vibration effect of the vibrator when long pressed. * * @since 11 */ -inline const char *VIBRATOR_TYPE_LONG_PRESS_LIGHT = "haptic.long_press.light"; +inline const char *VIBRATOR_TYPE_LONG_PRESS_LIGHT = "haptic.long_press_light"; /** * @brief Describes the vibration effect of the vibrator when long pressed. * * @since 11 */ -inline const char *VIBRATOR_TYPE_LONG_PRESS_MEDIUM = "haptic.long_press.medium"; +inline const char *VIBRATOR_TYPE_LONG_PRESS_MEDIUM = "haptic.long_press_medium"; /** * @brief Describes the vibration effect of the vibrator when long pressed. * * @since 11 */ -inline const char *VIBRATOR_TYPE_LONG_PRESS_HEAVY = "haptic.long_press.heavy"; +inline const char *VIBRATOR_TYPE_LONG_PRESS_HEAVY = "haptic.long_press_medium"; /** * @brief Describes the vibration effect of the vibrator when slide. * * @since 11 */ -inline const char *VIBRATOR_TYPE_SLIDE_LIGHT = "haptic.slide.light"; +inline const char *VIBRATOR_TYPE_SLIDE_LIGHT = "haptic.slide"; /** * @brief Describes the vibration effect of the vibrator when the threshold is reached. * * @since 11 */ -inline const char *VIBRATOR_TYPE_THRESHOID = "haptic.threshold"; +inline const char *VIBRATOR_TYPE_THRESHOID = "haptic.common.threshold"; /** * @brief Describes the hard vibration effect of the vibrator. -- Gitee