dinput参数&整改

Signed-off-by: litiangang4 <litiangang4@huawei.com>
This commit is contained in:
litiangang4
2023-08-07 20:07:42 +08:00
parent 741e62e8c8
commit 013181cd2b
104 changed files with 600 additions and 600 deletions
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2021-2022 Huawei Device Co., Ltd.
* Copyright (c) 2021-2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@@ -52,8 +52,8 @@ public:
private:
DistributedInputHandler();
~DistributedInputHandler();
void StructTransJson(const InputDevice& pBuf, std::string& strDescriptor);
int32_t GetDeviceInfo(std::string& deviceId);
void StructTransJson(const InputDevice &pBuf, std::string &strDescriptor);
int32_t GetDeviceInfo(std::string &deviceId);
std::shared_ptr<PluginListener> m_listener;
bool InitCollectEventsThread();
void NotifyHardWare(int iCnt);
@@ -53,7 +53,7 @@ DistributedInputHandler::~DistributedInputHandler()
StopInputMonitorDeviceThread();
}
void DistributedInputHandler::StructTransJson(const InputDevice& pBuf, std::string& strDescriptor)
void DistributedInputHandler::StructTransJson(const InputDevice &pBuf, std::string &strDescriptor)
{
DHLOGI("[%s] %d, %d, %d, %d, %s.\n", (pBuf.name).c_str(), pBuf.bus, pBuf.vendor, pBuf.product, pBuf.version,
GetAnonyString(pBuf.descriptor).c_str());
@@ -142,7 +142,7 @@ void DistributedInputHandler::UnRegisterPluginListener()
this->m_listener = nullptr;
}
int32_t DistributedInputHandler::GetDeviceInfo(std::string& deviceId)
int32_t DistributedInputHandler::GetDeviceInfo(std::string &deviceId)
{
std::unique_lock<std::mutex> my_lock(operationMutex_);
auto localNode = std::make_unique<NodeBasicInfo>();