From a1c34c83ce68b2f639bb7efc39294b539ba13590 Mon Sep 17 00:00:00 2001 From: songhuan Date: Fri, 16 May 2025 18:04:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=91=8A=E8=AD=A6=E6=B8=85=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: songhuan Change-Id: Ib94ad98b4962c1d5c1d1aaf9a1130acc602168ad --- frameworks/js/ani/vibrator/src/vibrator_ani.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frameworks/js/ani/vibrator/src/vibrator_ani.cpp b/frameworks/js/ani/vibrator/src/vibrator_ani.cpp index 398eeef..56679ae 100644 --- a/frameworks/js/ani/vibrator/src/vibrator_ani.cpp +++ b/frameworks/js/ani/vibrator/src/vibrator_ani.cpp @@ -175,7 +175,7 @@ static bool ParserParamFromVibratePreset(ani_env *env, ani_object effect, Vibrat return true; } -bool SetVibratePropertyInt64(ani_env* env, ani_object effect, const char* propertyName, int64_t& propertyValue) +static bool SetVibratePropertyInt64(ani_env* env, ani_object effect, const char* propertyName, int64_t& propertyValue) { ani_ref propertyRef; ani_boolean isUndefined = false; @@ -285,7 +285,7 @@ static bool ParserParamFromVibrateAttribute(ani_env *env, ani_object attribute, return true; } -bool SetUsage(const std::string &usage, bool systemUsage) +static bool SetUsage(const std::string &usage, bool systemUsage) { if (auto iter = g_usageType.find(usage); iter == g_usageType.end()) { MISC_HILOGE("Wrong usage type"); @@ -318,7 +318,7 @@ static int32_t StartVibrate(const VibrateInfo &info) return StartVibratorOnce(info.duration); } -ani_class FindClassInNamespace(ani_env *env, ani_namespace &ns, const char *className) +static ani_class FindClassInNamespace(ani_env *env, ani_namespace &ns, const char *className) { ani_class cls; if (ANI_OK != env->Namespace_FindClass(ns, className, &cls)) { @@ -376,7 +376,7 @@ static void StartVibrationSync([[maybe_unused]] ani_env *env, ani_object effect, StartVibrate(vibrateInfo); } -bool IsSupportEffectInterally([[maybe_unused]] ani_env *env, ani_string effectId) +static bool IsSupportEffectInterally([[maybe_unused]] ani_env *env, ani_string effectId) { auto effectIdStr = AniStringUtils::ToStd(env, static_cast(effectId)); MISC_HILOGD("effectId:%{public}s", effectIdStr.c_str()); -- Gitee