diff --git a/frameworks/js/napi/vibrator/src/vibrator_js.cpp b/frameworks/js/napi/vibrator/src/vibrator_js.cpp index 1eb03af0c874ca64cf405079bebcc2fb01af6a44..75242823cce2125655e56662ecfff4917d50d239 100644 --- a/frameworks/js/napi/vibrator/src/vibrator_js.cpp +++ b/frameworks/js/napi/vibrator/src/vibrator_js.cpp @@ -54,7 +54,7 @@ constexpr int32_t CURVE_FREQUENCY_MIN = -100; constexpr int32_t CURVE_FREQUENCY_MAX = 100; constexpr int32_t CONTINUOUS_DURATION_MAX = 5000; constexpr int32_t EVENT_INDEX_MAX = 2; -} // namespace +} // namespace static std::map g_usageType = { {"unknown", USAGE_UNKNOWN}, diff --git a/frameworks/js/napi/vibrator/src/vibrator_napi_utils.cpp b/frameworks/js/napi/vibrator/src/vibrator_napi_utils.cpp index 873802d262b92af4899de90e8c349b16da3640ce..6e3c122ac8c529331c63f61712a0fa011763dee8 100644 --- a/frameworks/js/napi/vibrator/src/vibrator_napi_utils.cpp +++ b/frameworks/js/napi/vibrator/src/vibrator_napi_utils.cpp @@ -29,7 +29,7 @@ namespace OHOS { namespace Sensors { namespace { constexpr int32_t RESULT_LENGTH = 2; -} // namespace +} // namespace AsyncCallbackInfo::~AsyncCallbackInfo() { CALL_LOG_ENTER; diff --git a/frameworks/js/napi/vibrator/src/vibrator_pattern_js.cpp b/frameworks/js/napi/vibrator/src/vibrator_pattern_js.cpp index 1bcd30fd00c7f5ccfdabae4a413df4cef015995e..a2e6610f864313a9db4ca188636b8bb9625cfe78 100644 --- a/frameworks/js/napi/vibrator/src/vibrator_pattern_js.cpp +++ b/frameworks/js/napi/vibrator/src/vibrator_pattern_js.cpp @@ -409,5 +409,5 @@ napi_value VibratorPatternBuilder::Build(napi_env env, napi_callback_info info) } return result; } -} // namespace Sensors -} // namespace OHOS \ No newline at end of file +} // namespace Sensors +} // namespace OHOS \ No newline at end of file diff --git a/frameworks/native/light/include/light_client.h b/frameworks/native/light/include/light_client.h index 7d17ac39ff29f9a888afbcb8b9137d10236c1bb4..ba86858fe4ae97dc1fd9fe14035b74935f9af382 100644 --- a/frameworks/native/light/include/light_client.h +++ b/frameworks/native/light/include/light_client.h @@ -47,6 +47,6 @@ private: std::vector lightInfoList_; std::mutex clientMutex_; }; -} // namespace Sensors -} // namespace OHOS -#endif // LIGHT_CLIENT_H +} // namespace Sensors +} // namespace OHOS +#endif // LIGHT_CLIENT_H diff --git a/frameworks/native/light/src/light_client.cpp b/frameworks/native/light/src/light_client.cpp index de77025ef4605a9695247d1112917b376c2d7c81..760999e2d80f6cae520b04dff5170b57870d5e2b 100644 --- a/frameworks/native/light/src/light_client.cpp +++ b/frameworks/native/light/src/light_client.cpp @@ -34,7 +34,7 @@ namespace { constexpr int32_t GET_SERVICE_MAX_COUNT = 30; constexpr uint32_t MAX_LIGHT_LIST_SIZE = 0X00ff; constexpr uint32_t WAIT_MS = 200; -} // namespace +} // namespace LightClient::~LightClient() { @@ -212,5 +212,5 @@ int32_t LightClient::ConvertLightInfos() lightInfoCount_ = static_cast(count); return SUCCESS; } -} // namespace Sensors -} // namespace OHOS +} // namespace Sensors +} // namespace OHOS diff --git a/frameworks/native/vibrator/include/i_vibrator_client.h b/frameworks/native/vibrator/include/i_vibrator_client.h index 57dbe0b36309b95a1872d5b3cdc9effa6789771a..8c83ed06649453e16196c38be3e9b273f083644d 100644 --- a/frameworks/native/vibrator/include/i_vibrator_client.h +++ b/frameworks/native/vibrator/include/i_vibrator_client.h @@ -26,6 +26,6 @@ public: virtual ~IVibratorClient() = default; DECLARE_INTERFACE_DESCRIPTOR(u"IVibratorClient"); }; -} // namespace Sensors -} // namespace OHOS +} // namespace Sensors +} // namespace OHOS #endif // I_VIBRATOR_CLIENT_H diff --git a/frameworks/native/vibrator/include/vibrator_client_stub.h b/frameworks/native/vibrator/include/vibrator_client_stub.h index 34bda5e35a5fb4a455d15dfd61febd21babf7159..1f55bbda33dea66478822418eaea5534090dfff3 100644 --- a/frameworks/native/vibrator/include/vibrator_client_stub.h +++ b/frameworks/native/vibrator/include/vibrator_client_stub.h @@ -29,6 +29,6 @@ public: virtual int32_t OnRemoteRequest(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) override; }; -} // namespace Sensors -} // namespace OHOS +} // namespace Sensors +} // namespace OHOS #endif // VIBRATOR_CLIENT_STUB_H diff --git a/frameworks/native/vibrator/include/vibrator_service_client.h b/frameworks/native/vibrator/include/vibrator_service_client.h index d599bce67f6259f433c8f44bbde55cc55920fc22..b0c686e75588f9461adcc9618ddadbcf95ad0905 100644 --- a/frameworks/native/vibrator/include/vibrator_service_client.h +++ b/frameworks/native/vibrator/include/vibrator_service_client.h @@ -88,6 +88,6 @@ private: std::mutex clientMutex_; std::mutex decodeMutex_; }; -} // namespace Sensors -} // namespace OHOS -#endif // VIBRATOR_SERVICE_CLIENT_H +} // namespace Sensors +} // namespace OHOS +#endif // VIBRATOR_SERVICE_CLIENT_H diff --git a/frameworks/native/vibrator/src/vibrator_client_stub.cpp b/frameworks/native/vibrator/src/vibrator_client_stub.cpp index 8dd56539d47025c871a22374e92be4c25075fdf1..f6dc8c4180641ee049c392dbbd9df5834ce2694f 100644 --- a/frameworks/native/vibrator/src/vibrator_client_stub.cpp +++ b/frameworks/native/vibrator/src/vibrator_client_stub.cpp @@ -36,5 +36,5 @@ int32_t VibratorClientStub::OnRemoteRequest(uint32_t code, MessageParcel &data, MISC_HILOGD("Begin, cmd:%{public}u", code); return NO_ERROR; } -} // namespace Sensors -} // namespace OHOS \ No newline at end of file +} // namespace Sensors +} // namespace OHOS \ No newline at end of file diff --git a/frameworks/native/vibrator/src/vibrator_service_client.cpp b/frameworks/native/vibrator/src/vibrator_service_client.cpp index dc0e8d7499563f08e7d256175932f303422c62a5..497c198e3c87a6fa5381ae31540177f4ee5e2021 100644 --- a/frameworks/native/vibrator/src/vibrator_service_client.cpp +++ b/frameworks/native/vibrator/src/vibrator_service_client.cpp @@ -42,7 +42,7 @@ constexpr uint32_t WAIT_MS = 200; #else static const std::string DECODER_LIBRARY_PATH = "/system/lib/platformsdk/libvibrator_decoder.z.so"; #endif -} // namespace +} // namespace VibratorServiceClient::~VibratorServiceClient() { @@ -506,5 +506,5 @@ bool VibratorServiceClient::IsSupportVibratorCustom() } return (capacity_.isSupportHdHaptic || capacity_.isSupportPresetMapping || capacity_.isSupportTimeDelay); } -} // namespace Sensors -} // namespace OHOS +} // namespace Sensors +} // namespace OHOS diff --git a/frameworks/native/vibrator/vibrator_agent.cpp b/frameworks/native/vibrator/vibrator_agent.cpp index 8f0f17f868f662fe7790a3002dd71b3fd607e9a1..0da0715064b9a8ae8b94a2cfa3c670d2a2e085b0 100644 --- a/frameworks/native/vibrator/vibrator_agent.cpp +++ b/frameworks/native/vibrator/vibrator_agent.cpp @@ -269,5 +269,5 @@ int32_t PlayPrimitiveEffect(const char *effectId, int32_t intensity) } return SUCCESS; } -} // namespace Sensors -} // namespace OHOS \ No newline at end of file +} // namespace Sensors +} // namespace OHOS \ No newline at end of file