modify inputhub cost too much power

Signed-off-by: hwzhangchuang <zhangchuang.zhang@huawei.com>
This commit is contained in:
hwzhangchuang
2024-02-01 19:42:16 +08:00
parent 2642a3691e
commit 27c9197988
9 changed files with 55 additions and 35 deletions
@@ -44,7 +44,7 @@ IMPLEMENT_SINGLE_INSTANCE(DistributedInputHandler);
DistributedInputHandler::DistributedInputHandler()
: collectThreadID_(-1), isCollectingEvents_(false), isStartCollectEventThread(false)
{
inputHub_ = std::make_unique<InputHub>();
inputHub_ = std::make_unique<InputHub>(true);
this->m_listener = nullptr;
}
@@ -75,7 +75,7 @@ HWTEST_F(DInputHandlerTest, FindDevicesInfoByType_001, testing::ext::TestSize.Le
dInputHandler.NotifyHardWare(2);
std::map<std::string, std::string> ret = dInputHandler.QueryExtraInfo();
EXPECT_EQ(0, ret.size());
dInputHandler.inputHub_ = std::make_unique<InputHub>();
dInputHandler.inputHub_ = std::make_unique<InputHub>(true);
dInputHandler.StartInputMonitorDeviceThread();
}
} // namespace DistributedInput