Description:fix code style

Match-id-367e11f0b17000d1487945d1f290ab2c5f5e0ec8
This commit is contained in:
xxxx
2022-07-18 14:24:11 +08:00
parent 6405214d25
commit 6b3d4be414
17 changed files with 100 additions and 106 deletions
@@ -35,7 +35,7 @@ int32_t DistributedInputSourceHandler::InitSource(const std::string &params)
{
DHLOGD("InitSource");
std::unique_lock<std::mutex> lock(proxyMutex_);
if (!DinputSAManager::GetInstance().HasDInputSourceProxy()) {
if (!DInputSAManager::GetInstance().HasDInputSourceProxy()) {
sptr<ISystemAbilityManager> samgr = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager();
if (!samgr) {
DHLOGE("Failed to get system ability mgr.");
@@ -53,7 +53,7 @@ int32_t DistributedInputSourceHandler::InitSource(const std::string &params)
}
auto waitStatus = proxyConVar_.wait_for(lock, std::chrono::milliseconds(INPUT_LOAD_SA_TIMEOUT_MS),
[this]() { return (DinputSAManager::GetInstance().HasDInputSourceProxy()); });
[this]() { return (DInputSAManager::GetInstance().HasDInputSourceProxy()); });
if (!waitStatus) {
DHLOGE("dinput load sa timeout.");
return ERR_DH_INPUT_SINK_HANDLER_INIT_SOURCE_SA_FAIL;
@@ -66,7 +66,7 @@ void DistributedInputSourceHandler::FinishStartSA(const std::string &params, con
{
DHLOGD("FinishStartSA");
std::unique_lock<std::mutex> lock(proxyMutex_);
DinputSAManager::GetInstance().SetDInputSourceProxy(remoteObject);
DInputSAManager::GetInstance().SetDInputSourceProxy(remoteObject);
DistributedInputClient::GetInstance().InitSource();
proxyConVar_.notify_all();
}