mirror of
https://github.com/openharmony/distributedhardware_distributed_input.git
synced 2026-07-21 05:45:23 -04:00
modify inputhub cost too much power
Signed-off-by: hwzhangchuang <zhangchuang.zhang@huawei.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user