From 90fd5f46042aaeb7d43fc4aaee71af534667475f Mon Sep 17 00:00:00 2001 From: liyaoyao777 Date: Wed, 28 Aug 2024 11:20:21 +0800 Subject: [PATCH] Rectification vibrator_js.cpp log printing is not standard Signed-off-by: liyaoyao777 --- utils/haptic_decoder/he_json/include/he_vibrator_decoder.h | 6 +++--- utils/haptic_decoder/interface/i_vibrator_decoder.h | 6 +++--- utils/haptic_decoder/interface/i_vibrator_decoder_factory.h | 6 +++--- utils/haptic_decoder/interface/vibrator_decoder_creator.cpp | 4 ++-- utils/haptic_decoder/interface/vibrator_decoder_creator.h | 6 +++--- .../oh_json/include/default_vibrator_decoder.h | 6 +++--- .../oh_json/include/default_vibrator_decoder_factory.h | 6 +++--- .../haptic_decoder/oh_json/src/default_vibrator_decoder.cpp | 4 ++-- .../oh_json/src/default_vibrator_decoder_factory.cpp | 4 ++-- 9 files changed, 24 insertions(+), 24 deletions(-) diff --git a/utils/haptic_decoder/he_json/include/he_vibrator_decoder.h b/utils/haptic_decoder/he_json/include/he_vibrator_decoder.h index f9d721b..cffeab1 100644 --- a/utils/haptic_decoder/he_json/include/he_vibrator_decoder.h +++ b/utils/haptic_decoder/he_json/include/he_vibrator_decoder.h @@ -41,6 +41,6 @@ private: bool CheckTransientParameters(const VibrateEvent& event); bool CheckContinuousParameters(const VibrateEvent& event); }; -} // namespace Sensors -} // namespace OHOS -#endif // HE_VIBRATOR_DECODER_H \ No newline at end of file +} // namespace Sensors +} // namespace OHOS +#endif // HE_VIBRATOR_DECODER_H \ No newline at end of file diff --git a/utils/haptic_decoder/interface/i_vibrator_decoder.h b/utils/haptic_decoder/interface/i_vibrator_decoder.h index d6d5437..0bd260b 100644 --- a/utils/haptic_decoder/interface/i_vibrator_decoder.h +++ b/utils/haptic_decoder/interface/i_vibrator_decoder.h @@ -29,6 +29,6 @@ public: virtual int32_t DecodeEffect(const RawFileDescriptor &rawFd, const JsonParser &parser, VibratePackage &patternPackage) = 0; }; -} // namespace Sensors -} // namespace OHOS -#endif // VIBRATOR_DECODER_H \ No newline at end of file +} // namespace Sensors +} // namespace OHOS +#endif // VIBRATOR_DECODER_H \ No newline at end of file diff --git a/utils/haptic_decoder/interface/i_vibrator_decoder_factory.h b/utils/haptic_decoder/interface/i_vibrator_decoder_factory.h index b8d1e66..7564a77 100644 --- a/utils/haptic_decoder/interface/i_vibrator_decoder_factory.h +++ b/utils/haptic_decoder/interface/i_vibrator_decoder_factory.h @@ -26,6 +26,6 @@ public: virtual ~IVibratorDecoderFactory() = default; virtual IVibratorDecoder *CreateDecoder() = 0; }; -} // namespace Sensors -} // namespace OHOS -#endif // VIBRATOR_DECODER_FACTORY_H \ No newline at end of file +} // namespace Sensors +} // namespace OHOS +#endif // VIBRATOR_DECODER_FACTORY_H \ No newline at end of file diff --git a/utils/haptic_decoder/interface/vibrator_decoder_creator.cpp b/utils/haptic_decoder/interface/vibrator_decoder_creator.cpp index c6b6ead..aebfa9b 100644 --- a/utils/haptic_decoder/interface/vibrator_decoder_creator.cpp +++ b/utils/haptic_decoder/interface/vibrator_decoder_creator.cpp @@ -64,5 +64,5 @@ extern "C" void Destroy(IVibratorDecoder *decoder) decoder = nullptr; } } -} // namespace Sensors -} // namespace OHOS \ No newline at end of file +} // namespace Sensors +} // namespace OHOS \ No newline at end of file diff --git a/utils/haptic_decoder/interface/vibrator_decoder_creator.h b/utils/haptic_decoder/interface/vibrator_decoder_creator.h index 4995cd1..c0ca16c 100644 --- a/utils/haptic_decoder/interface/vibrator_decoder_creator.h +++ b/utils/haptic_decoder/interface/vibrator_decoder_creator.h @@ -33,6 +33,6 @@ public: private: bool CheckJsonMetadata(const JsonParser &parser); }; -} // namespace Sensors -} // namespace OHOS -#endif // VIBRATOR_DECODER_MANAGER_H \ No newline at end of file +} // namespace Sensors +} // namespace OHOS +#endif // VIBRATOR_DECODER_MANAGER_H \ No newline at end of file diff --git a/utils/haptic_decoder/oh_json/include/default_vibrator_decoder.h b/utils/haptic_decoder/oh_json/include/default_vibrator_decoder.h index 25bd2b2..4d4f314 100644 --- a/utils/haptic_decoder/oh_json/include/default_vibrator_decoder.h +++ b/utils/haptic_decoder/oh_json/include/default_vibrator_decoder.h @@ -43,6 +43,6 @@ private: int32_t channelNumber_ = 0; double version_ = 0.0; }; -} // namespace Sensors -} // namespace OHOS -#endif // VIBRATOR_DECODER_H \ No newline at end of file +} // namespace Sensors +} // namespace OHOS +#endif // VIBRATOR_DECODER_H \ No newline at end of file diff --git a/utils/haptic_decoder/oh_json/include/default_vibrator_decoder_factory.h b/utils/haptic_decoder/oh_json/include/default_vibrator_decoder_factory.h index 7e4c062..5955f9e 100644 --- a/utils/haptic_decoder/oh_json/include/default_vibrator_decoder_factory.h +++ b/utils/haptic_decoder/oh_json/include/default_vibrator_decoder_factory.h @@ -26,6 +26,6 @@ public: ~DefaultVibratorDecoderFactory() = default; IVibratorDecoder *CreateDecoder() override; }; -} // namespace Sensors -} // namespace OHOS -#endif // DEFAULT_VIBRATOR_DECODER_FACTORY_H \ No newline at end of file +} // namespace Sensors +} // namespace OHOS +#endif // DEFAULT_VIBRATOR_DECODER_FACTORY_H \ No newline at end of file diff --git a/utils/haptic_decoder/oh_json/src/default_vibrator_decoder.cpp b/utils/haptic_decoder/oh_json/src/default_vibrator_decoder.cpp index ea699c7..a7851ff 100644 --- a/utils/haptic_decoder/oh_json/src/default_vibrator_decoder.cpp +++ b/utils/haptic_decoder/oh_json/src/default_vibrator_decoder.cpp @@ -291,5 +291,5 @@ void DefaultVibratorDecoder::PatternSplit(VibratePattern &originPattern, Vibrate } } } -} // namespace Sensors -} // namespace OHOS \ No newline at end of file +} // namespace Sensors +} // namespace OHOS \ No newline at end of file diff --git a/utils/haptic_decoder/oh_json/src/default_vibrator_decoder_factory.cpp b/utils/haptic_decoder/oh_json/src/default_vibrator_decoder_factory.cpp index fac72d0..77600fb 100644 --- a/utils/haptic_decoder/oh_json/src/default_vibrator_decoder_factory.cpp +++ b/utils/haptic_decoder/oh_json/src/default_vibrator_decoder_factory.cpp @@ -29,5 +29,5 @@ IVibratorDecoder *DefaultVibratorDecoderFactory::CreateDecoder() CALL_LOG_ENTER; return new DefaultVibratorDecoder(); } -} // namespace Sensors -} // namespace OHOS \ No newline at end of file +} // namespace Sensors +} // namespace OHOS \ No newline at end of file -- Gitee