diff --git a/frameworks/napi/input_monitor/src/js_input_monitor_manager.cpp b/frameworks/napi/input_monitor/src/js_input_monitor_manager.cpp index e015922786664c00b35586163654535569c9afc3..a477f468c921af29103af891f9a7f9a182c27628 100644 --- a/frameworks/napi/input_monitor/src/js_input_monitor_manager.cpp +++ b/frameworks/napi/input_monitor/src/js_input_monitor_manager.cpp @@ -24,7 +24,7 @@ namespace OHOS { namespace MMI { namespace { -constexpr OHOS::HiviewDFX::HiLogLabel LABEL = {LOG_CORE, MMI_LOG_DOMAIN, "JsInputMonitorManager" }; +constexpr OHOS::HiviewDFX::HiLogLabel LABEL = { LOG_CORE, MMI_LOG_DOMAIN, "JsInputMonitorManager" }; const std::string REFERENCE_UNREF = "napi_reference_unref"; constexpr int32_t MONITOR_REGISTER_EXCEED_MAX { 4100001 }; diff --git a/frameworks/proxy/event_handler/src/client_msg_handler.cpp b/frameworks/proxy/event_handler/src/client_msg_handler.cpp index 6625570063ef520762aaafd50ad69277642558f3..066182e56b0b645a1ea1416b4379f53ac67a27b4 100644 --- a/frameworks/proxy/event_handler/src/client_msg_handler.cpp +++ b/frameworks/proxy/event_handler/src/client_msg_handler.cpp @@ -44,7 +44,7 @@ namespace OHOS { namespace MMI { namespace { -constexpr OHOS::HiviewDFX::HiLogLabel LABEL = {LOG_CORE, MMI_LOG_DOMAIN, "ClientMsgHandler"}; +constexpr OHOS::HiviewDFX::HiLogLabel LABEL = { LOG_CORE, MMI_LOG_DOMAIN, "ClientMsgHandler" }; } // namespace ClientMsgHandler::~ClientMsgHandler() diff --git a/frameworks/proxy/event_handler/src/input_device_cooperate_impl.cpp b/frameworks/proxy/event_handler/src/input_device_cooperate_impl.cpp index 083cd8f571b11522a54ad2d8dda1d3cb41478a10..475c1fd87255071d4cda26bf59d185cde561d6d5 100755 --- a/frameworks/proxy/event_handler/src/input_device_cooperate_impl.cpp +++ b/frameworks/proxy/event_handler/src/input_device_cooperate_impl.cpp @@ -22,7 +22,7 @@ namespace OHOS { namespace MMI { namespace { -constexpr OHOS::HiviewDFX::HiLogLabel LABEL = {LOG_CORE, MMI_LOG_DOMAIN, "InputDeviceCooperateImpl"}; +constexpr OHOS::HiviewDFX::HiLogLabel LABEL = { LOG_CORE, MMI_LOG_DOMAIN, "InputDeviceCooperateImpl" }; } // namespace InputDeviceCooperateImpl &InputDeviceCooperateImpl::GetInstance() diff --git a/frameworks/proxy/event_handler/src/input_device_impl.cpp b/frameworks/proxy/event_handler/src/input_device_impl.cpp index d22fb0636d79dceeec3c4f77c6a492786444bccc..6387a11db3a1b5d7af8c336a406b66ecbdbbbd76 100755 --- a/frameworks/proxy/event_handler/src/input_device_impl.cpp +++ b/frameworks/proxy/event_handler/src/input_device_impl.cpp @@ -24,7 +24,7 @@ namespace OHOS { namespace MMI { namespace { -constexpr OHOS::HiviewDFX::HiLogLabel LABEL = {LOG_CORE, MMI_LOG_DOMAIN, "InputDeviceImpl"}; +constexpr OHOS::HiviewDFX::HiLogLabel LABEL = { LOG_CORE, MMI_LOG_DOMAIN, "InputDeviceImpl" }; } // namespace InputDeviceImpl& InputDeviceImpl::GetInstance() diff --git a/frameworks/proxy/event_handler/src/multimodal_event_handler.cpp b/frameworks/proxy/event_handler/src/multimodal_event_handler.cpp index f815b9e9e6e59d9321f2ae209dcd22ce1faf9d66..a03f1a3b1dd414220dd38794f1738d2a2f46060a 100755 --- a/frameworks/proxy/event_handler/src/multimodal_event_handler.cpp +++ b/frameworks/proxy/event_handler/src/multimodal_event_handler.cpp @@ -28,7 +28,7 @@ namespace OHOS { namespace MMI { namespace { -constexpr OHOS::HiviewDFX::HiLogLabel LABEL = {LOG_CORE, MMI_LOG_DOMAIN, "MultimodalEventHandler"}; +constexpr OHOS::HiviewDFX::HiLogLabel LABEL = { LOG_CORE, MMI_LOG_DOMAIN, "MultimodalEventHandler" }; } // namespace void OnConnected(const IfMMIClient& client) diff --git a/frameworks/proxy/events/src/input_event.cpp b/frameworks/proxy/events/src/input_event.cpp index 13055a4671686c47d881d2cca860da7c91301d52..8f9ea6cb80b04b71a9204efdfd4a5fa2397a76b7 100644 --- a/frameworks/proxy/events/src/input_event.cpp +++ b/frameworks/proxy/events/src/input_event.cpp @@ -24,7 +24,7 @@ namespace OHOS { namespace MMI { namespace { int64_t g_nextEventId = 1; -constexpr OHOS::HiviewDFX::HiLogLabel LABEL = {LOG_CORE, MMI_LOG_DOMAIN, "InputEvent"}; +constexpr OHOS::HiviewDFX::HiLogLabel LABEL = { LOG_CORE, MMI_LOG_DOMAIN, "InputEvent" }; } // namespace InputEvent::InputEvent(int32_t eventType) : eventType_(eventType) diff --git a/frameworks/proxy/events/src/key_event.cpp b/frameworks/proxy/events/src/key_event.cpp index 2f402a91e1a7b33138aa51db0250545b728a21bb..4369a45b7e33e9f688dcba14540ce31d0545d643 100644 --- a/frameworks/proxy/events/src/key_event.cpp +++ b/frameworks/proxy/events/src/key_event.cpp @@ -22,7 +22,7 @@ using namespace OHOS::HiviewDFX; namespace OHOS { namespace MMI { namespace { -constexpr OHOS::HiviewDFX::HiLogLabel LABEL = {LOG_CORE, MMI_LOG_DOMAIN, "KeyEvent"}; +constexpr OHOS::HiviewDFX::HiLogLabel LABEL = { LOG_CORE, MMI_LOG_DOMAIN, "KeyEvent" }; } // namespace const int32_t KeyEvent::UNKOWN_FUNCTION_KEY = -1; const int32_t KeyEvent::NUM_LOCK_FUNCTION_KEY = 0; diff --git a/frameworks/proxy/events/src/key_option.cpp b/frameworks/proxy/events/src/key_option.cpp index 1461a3102c46eade10f7bd6eabc2a5ff03621514..90093be9229a72ab853c0c0131ffd63243716fff 100644 --- a/frameworks/proxy/events/src/key_option.cpp +++ b/frameworks/proxy/events/src/key_option.cpp @@ -20,7 +20,7 @@ namespace OHOS { namespace MMI { namespace { -constexpr OHOS::HiviewDFX::HiLogLabel LABEL = {LOG_CORE, MMI_LOG_DOMAIN, "KeyOption"}; +constexpr OHOS::HiviewDFX::HiLogLabel LABEL = { LOG_CORE, MMI_LOG_DOMAIN, "KeyOption" }; constexpr int32_t PRE_KEYS_MAX_SIZE = 3; } std::set KeyOption::GetPreKeys() const diff --git a/frameworks/proxy/events/test/pointer_event_test.cpp b/frameworks/proxy/events/test/pointer_event_test.cpp index dc59ab8915dcb5bb953d460385ce4767b6546279..a022dcd8984179a1dbfc4126bcbdfd5305a1eb09 100755 --- a/frameworks/proxy/events/test/pointer_event_test.cpp +++ b/frameworks/proxy/events/test/pointer_event_test.cpp @@ -22,7 +22,7 @@ namespace OHOS { namespace MMI { namespace { #ifdef OHOS_BUILD_ENABLE_POINTER -constexpr OHOS::HiviewDFX::HiLogLabel LABEL = {LOG_CORE, MMI_LOG_DOMAIN, "PointerEventTest"}; +constexpr OHOS::HiviewDFX::HiLogLabel LABEL = { LOG_CORE, MMI_LOG_DOMAIN, "PointerEventTest" }; #endif // OHOS_BUILD_ENABLE_POINTER using namespace testing::ext; } // namespace diff --git a/service/connect_manager/src/multimodal_input_connect_manager.cpp b/service/connect_manager/src/multimodal_input_connect_manager.cpp index 38be4017e2848bec20a7de30c1290845120b6ca5..9893ab9b6c1f4db48e669425f50b99340746c671 100644 --- a/service/connect_manager/src/multimodal_input_connect_manager.cpp +++ b/service/connect_manager/src/multimodal_input_connect_manager.cpp @@ -30,7 +30,7 @@ namespace OHOS { namespace MMI { namespace { std::shared_ptr g_instance = nullptr; -constexpr OHOS::HiviewDFX::HiLogLabel LABEL = {LOG_CORE, MMI_LOG_DOMAIN, "MultimodalInputConnectManager"}; +constexpr OHOS::HiviewDFX::HiLogLabel LABEL = { LOG_CORE, MMI_LOG_DOMAIN, "MultimodalInputConnectManager" }; } // namespace std::shared_ptr MultimodalInputConnectManager::GetInstance() diff --git a/service/connect_manager/src/multimodal_input_connect_remoter.cpp b/service/connect_manager/src/multimodal_input_connect_remoter.cpp index 9f959b0905ee2c226dd48d0dfc2676a739ab74e1..ca3555f33baf2b653bf3a2ce70e89590d4d2c7ac 100755 --- a/service/connect_manager/src/multimodal_input_connect_remoter.cpp +++ b/service/connect_manager/src/multimodal_input_connect_remoter.cpp @@ -30,7 +30,7 @@ namespace OHOS { namespace MMI { namespace { std::shared_ptr g_instance = nullptr; -constexpr OHOS::HiviewDFX::HiLogLabel LABEL = {LOG_CORE, MMI_LOG_DOMAIN, "MultimodalInputConnectRemoter"}; +constexpr OHOS::HiviewDFX::HiLogLabel LABEL = { LOG_CORE, MMI_LOG_DOMAIN, "MultimodalInputConnectRemoter" }; } // namespace std::shared_ptr MultimodalInputConnectRemoter::GetInstance() diff --git a/service/device_manager/src/input_device_manager.cpp b/service/device_manager/src/input_device_manager.cpp index 1f744c7e50c72b68eea3c9fc506a02981332c6a4..8c022aa18badb4ce8a747a992651a33e19d8720c 100644 --- a/service/device_manager/src/input_device_manager.cpp +++ b/service/device_manager/src/input_device_manager.cpp @@ -39,7 +39,7 @@ namespace OHOS { namespace MMI { namespace { -constexpr OHOS::HiviewDFX::HiLogLabel LABEL = {LOG_CORE, MMI_LOG_DOMAIN, "InputDeviceManager"}; +constexpr OHOS::HiviewDFX::HiLogLabel LABEL = { LOG_CORE, MMI_LOG_DOMAIN, "InputDeviceManager" }; constexpr int32_t INVALID_DEVICE_ID = -1; constexpr int32_t SUPPORT_KEY = 1; diff --git a/service/hdf_adapter/src/hdf_event_manager.cpp b/service/hdf_adapter/src/hdf_event_manager.cpp index ae80e9029e129113499dbd41aa5cb0eabc00a925..1a61ecafb0328e0907bbc98237f602dd34a20096 100644 --- a/service/hdf_adapter/src/hdf_event_manager.cpp +++ b/service/hdf_adapter/src/hdf_event_manager.cpp @@ -31,7 +31,7 @@ namespace OHOS { namespace MMI { namespace { -constexpr OHOS::HiviewDFX::HiLogLabel LABEL = {LOG_CORE, MMI_LOG_DOMAIN, "HdfEventManager"}; +constexpr OHOS::HiviewDFX::HiLogLabel LABEL = { LOG_CORE, MMI_LOG_DOMAIN, "HdfEventManager" }; } // namespace HdfEventManager *HdfEventManager::m_globleThis; diff --git a/service/input_device_cooperate/src/cooperate_event_manager.cpp b/service/input_device_cooperate/src/cooperate_event_manager.cpp index 8e3618fa7489ecf0edb7ea188e20f761a082eb94..9e20c28bbcaff07c791fe0497e401d7282e7169b 100755 --- a/service/input_device_cooperate/src/cooperate_event_manager.cpp +++ b/service/input_device_cooperate/src/cooperate_event_manager.cpp @@ -20,7 +20,7 @@ namespace OHOS { namespace MMI { namespace { -constexpr OHOS::HiviewDFX::HiLogLabel LABEL = {LOG_CORE, MMI_LOG_DOMAIN, "CooperateEventManager"}; +constexpr OHOS::HiviewDFX::HiLogLabel LABEL = { LOG_CORE, MMI_LOG_DOMAIN, "CooperateEventManager" }; } // namespace CooperateEventManager::CooperateEventManager() {} diff --git a/service/input_device_cooperate/src/distributed_input_adapter.cpp b/service/input_device_cooperate/src/distributed_input_adapter.cpp index 798393c47ff199dd81527d59b59db6d5957ad4ff..aa0951120dde6a3efeed809cf48d1936f1bb26b1 100755 --- a/service/input_device_cooperate/src/distributed_input_adapter.cpp +++ b/service/input_device_cooperate/src/distributed_input_adapter.cpp @@ -26,7 +26,7 @@ namespace OHOS { namespace MMI { using namespace DistributedHardware::DistributedInput; namespace { -constexpr OHOS::HiviewDFX::HiLogLabel LABEL = {LOG_CORE, MMI_LOG_DOMAIN, "DistributedInputAdapter"}; +constexpr OHOS::HiviewDFX::HiLogLabel LABEL = { LOG_CORE, MMI_LOG_DOMAIN, "DistributedInputAdapter" }; constexpr int32_t DEFAULT_DELAY_TIME = 4000; constexpr int32_t RETRY_TIME = 2; } // namespace diff --git a/service/input_device_cooperate/src/i_input_device_cooperate_state.cpp b/service/input_device_cooperate/src/i_input_device_cooperate_state.cpp index 1f2a9cbbff15ff96365aa1f287d8cef473443696..f7530881eaf6148033eff5ed3cf5ffdfa17735df 100755 --- a/service/input_device_cooperate/src/i_input_device_cooperate_state.cpp +++ b/service/input_device_cooperate/src/i_input_device_cooperate_state.cpp @@ -24,7 +24,7 @@ namespace OHOS { namespace MMI { namespace { -constexpr OHOS::HiviewDFX::HiLogLabel LABEL = {LOG_CORE, MMI_LOG_DOMAIN, "IInputDeviceCooperateState"}; +constexpr OHOS::HiviewDFX::HiLogLabel LABEL = { LOG_CORE, MMI_LOG_DOMAIN, "IInputDeviceCooperateState" }; } // namespace IInputDeviceCooperateState::IInputDeviceCooperateState() diff --git a/service/input_device_cooperate/src/input_device_cooperate_sm.cpp b/service/input_device_cooperate/src/input_device_cooperate_sm.cpp index de4e98643f60aabb5661bb3be2c03e58cfd54db0..1dfe1adc2ffc4bb86e5c0d9e2871df13b5756bd2 100755 --- a/service/input_device_cooperate/src/input_device_cooperate_sm.cpp +++ b/service/input_device_cooperate/src/input_device_cooperate_sm.cpp @@ -37,7 +37,7 @@ namespace OHOS { namespace MMI { namespace { -constexpr OHOS::HiviewDFX::HiLogLabel LABEL = {LOG_CORE, MMI_LOG_DOMAIN, "InputDeviceCooperateSM"}; +constexpr OHOS::HiviewDFX::HiLogLabel LABEL = { LOG_CORE, MMI_LOG_DOMAIN, "InputDeviceCooperateSM" }; const std::string BUNDLE_NAME = "ohos.multimodalinput.input"; constexpr int32_t INTERVAL_MS = 2000; constexpr int32_t MOUSE_ABS_LOCATION = 100; diff --git a/service/input_device_cooperate/src/input_device_cooperate_state_free.cpp b/service/input_device_cooperate/src/input_device_cooperate_state_free.cpp index 302f2d85a9ebbdfb4f134d679c62d4cb22e0cda6..c4733803a5f064ca62ca71f60d6d538b4148d2f3 100755 --- a/service/input_device_cooperate/src/input_device_cooperate_state_free.cpp +++ b/service/input_device_cooperate/src/input_device_cooperate_state_free.cpp @@ -23,7 +23,7 @@ namespace OHOS { namespace MMI { namespace { -constexpr OHOS::HiviewDFX::HiLogLabel LABEL = {LOG_CORE, MMI_LOG_DOMAIN, "InputDeviceCooperateStateFree"}; +constexpr OHOS::HiviewDFX::HiLogLabel LABEL = { LOG_CORE, MMI_LOG_DOMAIN, "InputDeviceCooperateStateFree" }; } // namespace int32_t InputDeviceCooperateStateFree::StartInputDeviceCooperate( diff --git a/service/input_device_cooperate/src/input_device_cooperate_state_in.cpp b/service/input_device_cooperate/src/input_device_cooperate_state_in.cpp index 1fa453f27a0d11cb6fd8e6d21e3d84577b75e8f4..800f63af7df6fae8953ef48c804ac3f7570bf740 100755 --- a/service/input_device_cooperate/src/input_device_cooperate_state_in.cpp +++ b/service/input_device_cooperate/src/input_device_cooperate_state_in.cpp @@ -25,7 +25,7 @@ namespace OHOS { namespace MMI { namespace { -constexpr OHOS::HiviewDFX::HiLogLabel LABEL = {LOG_CORE, MMI_LOG_DOMAIN, "InputDeviceCooperateStateIn"}; +constexpr OHOS::HiviewDFX::HiLogLabel LABEL = { LOG_CORE, MMI_LOG_DOMAIN, "InputDeviceCooperateStateIn" }; } // namespace InputDeviceCooperateStateIn::InputDeviceCooperateStateIn(const std::string &startDhid) : startDhid_(startDhid) {} diff --git a/service/input_device_cooperate/src/input_device_cooperate_state_out.cpp b/service/input_device_cooperate/src/input_device_cooperate_state_out.cpp index c60ca0aa8a45364a2dddc69f039874bd846994df..4beb74f300215199513fdc82fce4906a0209dbdd 100755 --- a/service/input_device_cooperate/src/input_device_cooperate_state_out.cpp +++ b/service/input_device_cooperate/src/input_device_cooperate_state_out.cpp @@ -25,7 +25,7 @@ namespace OHOS { namespace MMI { namespace { -constexpr OHOS::HiviewDFX::HiLogLabel LABEL = {LOG_CORE, MMI_LOG_DOMAIN, "InputDeviceCooperateStateOut"}; +constexpr OHOS::HiviewDFX::HiLogLabel LABEL = { LOG_CORE, MMI_LOG_DOMAIN, "InputDeviceCooperateStateOut" }; } // namespace InputDeviceCooperateStateOut::InputDeviceCooperateStateOut(const std::string& startDhid) diff --git a/service/module_loader/src/uds_server.cpp b/service/module_loader/src/uds_server.cpp index 1677e4a3d6a6386798edec5a5ca622ee8edaff54..383f73f790e76ad132d19cfe4cc00d647989e08c 100755 --- a/service/module_loader/src/uds_server.cpp +++ b/service/module_loader/src/uds_server.cpp @@ -29,7 +29,7 @@ namespace OHOS { namespace MMI { namespace { -constexpr OHOS::HiviewDFX::HiLogLabel LABEL = {LOG_CORE, MMI_LOG_DOMAIN, "UDSServer"}; +constexpr OHOS::HiviewDFX::HiLogLabel LABEL = { LOG_CORE, MMI_LOG_DOMAIN, "UDSServer" }; } // namespace UDSServer::UDSServer() {} diff --git a/service/mouse_event_normalize/src/mouse_device_state.cpp b/service/mouse_event_normalize/src/mouse_device_state.cpp index af64b2917c8e2ff6163f8d8e159d7ab74bb8fb95..75f1bd6a41b2236524eb5f98455c8e2b07a0c404 100644 --- a/service/mouse_event_normalize/src/mouse_device_state.cpp +++ b/service/mouse_event_normalize/src/mouse_device_state.cpp @@ -20,7 +20,7 @@ namespace OHOS { namespace MMI { namespace { -constexpr OHOS::HiviewDFX::HiLogLabel LABEL = {LOG_CORE, MMI_LOG_DOMAIN, "MouseDeviceState"}; +constexpr OHOS::HiviewDFX::HiLogLabel LABEL = { LOG_CORE, MMI_LOG_DOMAIN, "MouseDeviceState" }; } // namespace MouseDeviceState::MouseDeviceState() diff --git a/service/mouse_event_normalize/src/mouse_event_normalize.cpp b/service/mouse_event_normalize/src/mouse_event_normalize.cpp index dc201407672ddea5834a3827d7bea6c783be57c3..ebb7bac82704218ad716df89883f26da1b537377 100644 --- a/service/mouse_event_normalize/src/mouse_event_normalize.cpp +++ b/service/mouse_event_normalize/src/mouse_event_normalize.cpp @@ -46,7 +46,7 @@ const std::vector ACCELERATE_CURVES { { { 8, 32, 128 }, { 1.04, 3.30, 6.16 }, { 0.0, -18.08, -109.60 } }, { { 8, 32, 128 }, { 1.10, 3.75, 7.00 }, { 0.0, -21.20, -125.20 } }, { { 8, 32, 128 }, { 1.16, 4.20, 7.84 }, { 0.0, -24.32, -140.80 } } - }; +}; constexpr double DOUBLE_ZERO = 1e-6; constexpr int32_t MIN_SPEED = 1; constexpr int32_t MAX_SPEED = 11; diff --git a/service/permission_helper/src/permission_helper.cpp b/service/permission_helper/src/permission_helper.cpp index f7ed4675409668d92735fcca9f7fb769a896c6bb..1a0917396ab2d6c6db6755c20438bf06e6cc6834 100644 --- a/service/permission_helper/src/permission_helper.cpp +++ b/service/permission_helper/src/permission_helper.cpp @@ -21,7 +21,7 @@ namespace OHOS { namespace MMI { namespace { -constexpr OHOS::HiviewDFX::HiLogLabel LABEL = {LOG_CORE, MMI_LOG_DOMAIN, "PermissionHelper"}; +constexpr OHOS::HiviewDFX::HiLogLabel LABEL = { LOG_CORE, MMI_LOG_DOMAIN, "PermissionHelper" }; } // namespace PermissionHelper::PermissionHelper() {} diff --git a/service/subscriber/src/key_subscriber_handler.cpp b/service/subscriber/src/key_subscriber_handler.cpp index 86f4283f739e0171521079aae5ba5b77a7fbee8c..bfda86501cf45dac8ca55661a2a4f6d199a1879e 100644 --- a/service/subscriber/src/key_subscriber_handler.cpp +++ b/service/subscriber/src/key_subscriber_handler.cpp @@ -28,7 +28,7 @@ namespace OHOS { namespace MMI { namespace { -constexpr OHOS::HiviewDFX::HiLogLabel LABEL = {LOG_CORE, MMI_LOG_DOMAIN, "KeySubscriberHandler"}; +constexpr OHOS::HiviewDFX::HiLogLabel LABEL = { LOG_CORE, MMI_LOG_DOMAIN, "KeySubscriberHandler" }; constexpr uint32_t MAX_PRE_KEY_COUNT = 4; } // namespace diff --git a/service/window_manager/src/input_windows_manager.cpp b/service/window_manager/src/input_windows_manager.cpp index 782decd89d83d82b83a528aea097d0ec9a7d6c6c..cf7e7c4b64cf83842c401e236c833dece7bfcdf0 100644 --- a/service/window_manager/src/input_windows_manager.cpp +++ b/service/window_manager/src/input_windows_manager.cpp @@ -30,7 +30,7 @@ namespace OHOS { namespace MMI { namespace { -constexpr OHOS::HiviewDFX::HiLogLabel LABEL = {LOG_CORE, MMI_LOG_DOMAIN, "InputWindowsManager"}; +constexpr OHOS::HiviewDFX::HiLogLabel LABEL = { LOG_CORE, MMI_LOG_DOMAIN, "InputWindowsManager" }; #ifdef OHOS_BUILD_ENABLE_POINTER constexpr int32_t DEFAULT_POINTER_STYLE = 0; constexpr size_t MAX_WINDOW_COUNT = 20; diff --git a/tools/event_inject/src/manage_inject_device.cpp b/tools/event_inject/src/manage_inject_device.cpp index 464a16b927a06a4619c878ae12a8248269d2b8e7..b9b1724dab0c765c11d786f8c9227a8556ab6f85 100644 --- a/tools/event_inject/src/manage_inject_device.cpp +++ b/tools/event_inject/src/manage_inject_device.cpp @@ -21,7 +21,7 @@ using namespace OHOS::MMI; namespace { -constexpr OHOS::HiviewDFX::HiLogLabel LABEL = {LOG_CORE, MMI_LOG_DOMAIN, "ManageInjectDevice" }; +constexpr OHOS::HiviewDFX::HiLogLabel LABEL = { LOG_CORE, MMI_LOG_DOMAIN, "ManageInjectDevice" }; constexpr int64_t INJECT_SLEEP_TIMES = 10; } // namespace diff --git a/tools/event_inject/src/processing_joystick_device.cpp b/tools/event_inject/src/processing_joystick_device.cpp index 2df47d752a1f2decf92ff45497b022d10ea04a3c..012343f6d1aee2eededed33506b5839b6f10c7cf 100644 --- a/tools/event_inject/src/processing_joystick_device.cpp +++ b/tools/event_inject/src/processing_joystick_device.cpp @@ -18,7 +18,7 @@ using namespace OHOS::MMI; namespace { -constexpr OHOS::HiviewDFX::HiLogLabel LABEL = {LOG_CORE, MMI_LOG_DOMAIN, "ProcessingJoystickDevice" }; +constexpr OHOS::HiviewDFX::HiLogLabel LABEL = { LOG_CORE, MMI_LOG_DOMAIN, "ProcessingJoystickDevice" }; constexpr int32_t DEFAULT_ABSX_VALUE = 8188; constexpr int32_t DEFAULT_ABSY_VALUE = 8192; constexpr int32_t DEFAULT_ABSZ_VALUE = 125; diff --git a/tools/event_inject/src/processing_mouse_device.cpp b/tools/event_inject/src/processing_mouse_device.cpp index 119f34cc4aca1e0f60f2529ae795054d632bedf3..36ce84884bdbd624ec54596824572add4f7b6c5c 100644 --- a/tools/event_inject/src/processing_mouse_device.cpp +++ b/tools/event_inject/src/processing_mouse_device.cpp @@ -18,7 +18,7 @@ using namespace OHOS::MMI; namespace { -constexpr OHOS::HiviewDFX::HiLogLabel LABEL = {LOG_CORE, MMI_LOG_DOMAIN, "ProcessingMouseDevice" }; +constexpr OHOS::HiviewDFX::HiLogLabel LABEL = { LOG_CORE, MMI_LOG_DOMAIN, "ProcessingMouseDevice" }; } // namespace int32_t ProcessingMouseDevice::TransformJsonDataToInputData(const DeviceItem& fingerEventArrays, diff --git a/tools/inject_event/src/input_manager_command.cpp b/tools/inject_event/src/input_manager_command.cpp index 23f32e37ca7648ee04e42f7d1b5997dd05aad654..efcd22af2b4de4fe5ccc650a669b1bc112d073b1 100755 --- a/tools/inject_event/src/input_manager_command.cpp +++ b/tools/inject_event/src/input_manager_command.cpp @@ -50,7 +50,7 @@ private: namespace OHOS { namespace MMI { namespace { -constexpr OHOS::HiviewDFX::HiLogLabel LABEL = {LOG_CORE, MMI_LOG_DOMAIN, "InputManagerCommand"}; +constexpr OHOS::HiviewDFX::HiLogLabel LABEL = { LOG_CORE, MMI_LOG_DOMAIN, "InputManagerCommand" }; constexpr int32_t SLEEPTIME = 20; constexpr int32_t MOUSE_ID = 7; constexpr int32_t TWO_MORE_COMMAND = 2; diff --git a/uinput/hdf_device_event_dispatch.cpp b/uinput/hdf_device_event_dispatch.cpp index e00c356f01277e1e7fdd6b721085df6fff414d00..db847f03869399c3c5dd677b93740c679b235d54 100644 --- a/uinput/hdf_device_event_dispatch.cpp +++ b/uinput/hdf_device_event_dispatch.cpp @@ -24,7 +24,7 @@ using namespace OHOS::HiviewDFX; namespace OHOS { namespace MMI { namespace { -constexpr OHOS::HiviewDFX::HiLogLabel LABEL = {LOG_CORE, MMI_LOG_DOMAIN, "HdfDeviceEventDispatch"}; +constexpr OHOS::HiviewDFX::HiLogLabel LABEL = { LOG_CORE, MMI_LOG_DOMAIN, "HdfDeviceEventDispatch" }; } // namespace std::unique_ptr g_pTouchScreen = nullptr; InjectThread HdfDeviceEventDispatch::injectThread_; diff --git a/uinput/hdf_device_event_manager.cpp b/uinput/hdf_device_event_manager.cpp index 18f68e779923b9fedfb7421a2c6a88923fb34a5f..699e21d0fb71689653c0bb478664d7236a3c75d6 100644 --- a/uinput/hdf_device_event_manager.cpp +++ b/uinput/hdf_device_event_manager.cpp @@ -24,7 +24,7 @@ using namespace OHOS::HiviewDFX; namespace OHOS { namespace MMI { namespace { -constexpr OHOS::HiviewDFX::HiLogLabel LABEL = {LOG_CORE, MMI_LOG_DOMAIN, "HdfDeviceEventManager"}; +constexpr OHOS::HiviewDFX::HiLogLabel LABEL = { LOG_CORE, MMI_LOG_DOMAIN, "HdfDeviceEventManager" }; } // namespace HdfDeviceEventManager::HdfDeviceEventManager() {} diff --git a/uinput/keyboard_inject.cpp b/uinput/keyboard_inject.cpp index 5d2546e94dcfb15c6dfd618309ea85cf9e1d3ce4..144b0580213711acb50a7fb4616516729c254544 100644 --- a/uinput/keyboard_inject.cpp +++ b/uinput/keyboard_inject.cpp @@ -23,7 +23,7 @@ namespace OHOS { namespace MMI { namespace { std::shared_ptr g_instance = nullptr; -constexpr OHOS::HiviewDFX::HiLogLabel LABEL = {LOG_CORE, MMI_LOG_DOMAIN, "keyBoardInject"}; +constexpr OHOS::HiviewDFX::HiLogLabel LABEL = { LOG_CORE, MMI_LOG_DOMAIN, "keyBoardInject" }; constexpr int32_t INPUT_KEY_BACK = 2; constexpr int32_t LINUX_KEY_BACK = 158; } // namespace diff --git a/uinput/virtual_device.cpp b/uinput/virtual_device.cpp index 8e52abd6d0b9bb707a67d6f28a1f150eb24303cb..03e4e5026e9378fde2997b7325e858f3f77b1100 100644 --- a/uinput/virtual_device.cpp +++ b/uinput/virtual_device.cpp @@ -25,7 +25,7 @@ namespace OHOS { namespace MMI { namespace { using namespace OHOS::HiviewDFX; -constexpr HiLogLabel LABEL = {LOG_CORE, MMI_LOG_DOMAIN, "VirtualDevice"}; +constexpr HiLogLabel LABEL = { LOG_CORE, MMI_LOG_DOMAIN, "VirtualDevice" }; constexpr uint32_t MAX_NAME_LENGTH = 80; bool DoIoctl(int32_t fd, int32_t request, const uint32_t value) diff --git a/util/common/src/util.cpp b/util/common/src/util.cpp index 96b271453d33795f4da51c89e8d0d8ebe078dcaf..2165c915ed45da49019dd8199f76bbb6512dee51 100644 --- a/util/common/src/util.cpp +++ b/util/common/src/util.cpp @@ -40,7 +40,7 @@ namespace OHOS { namespace MMI { namespace { -constexpr OHOS::HiviewDFX::HiLogLabel LABEL = {LOG_CORE, MMI_LOG_DOMAIN, "Util"}; +constexpr OHOS::HiviewDFX::HiLogLabel LABEL = { LOG_CORE, MMI_LOG_DOMAIN, "Util" }; constexpr int32_t FILE_SIZE_MAX = 0x5000; constexpr int32_t MAX_PRO_FILE_SIZE = 128000; constexpr int32_t KEY_ELEMENT_COUNT = 4; diff --git a/util/network/include/circle_stream_buffer.h b/util/network/include/circle_stream_buffer.h index b5427aa5b049a03ffe97de4057e37ec738bc9db4..b055cdf08012ec1e7412d6b6cb57cd17221a9fda 100644 --- a/util/network/include/circle_stream_buffer.h +++ b/util/network/include/circle_stream_buffer.h @@ -19,7 +19,7 @@ namespace OHOS { namespace MMI { class CircleStreamBuffer : public StreamBuffer { - static constexpr OHOS::HiviewDFX::HiLogLabel LABEL = {LOG_CORE, MMI_LOG_DOMAIN, "CircleStreamBuffer"}; + static constexpr OHOS::HiviewDFX::HiLogLabel LABEL = { LOG_CORE, MMI_LOG_DOMAIN, "CircleStreamBuffer" }; public: CircleStreamBuffer() = default; virtual ~CircleStreamBuffer() = default; diff --git a/util/network/include/stream_buffer.h b/util/network/include/stream_buffer.h index 861d6e8c089fed6a0fff1776d27d64d729f395f8..f1bcacc42644db214d74cf22dfe0b77e9130e8a1 100644 --- a/util/network/include/stream_buffer.h +++ b/util/network/include/stream_buffer.h @@ -30,7 +30,7 @@ namespace OHOS { namespace MMI { class StreamBuffer { - static constexpr OHOS::HiviewDFX::HiLogLabel LABEL = {LOG_CORE, MMI_LOG_DOMAIN, "StreamBuffer"}; + static constexpr OHOS::HiviewDFX::HiLogLabel LABEL = { LOG_CORE, MMI_LOG_DOMAIN, "StreamBuffer" }; public: StreamBuffer() = default; DISALLOW_MOVE(StreamBuffer);