mirror of
https://github.com/openharmony/distributedhardware_distributed_input.git
synced 2026-07-20 21:41:02 -04:00
Description:add startScreen fewture
Match-id-0c810c23a07e3b4bfc755f33f98b5c5e9ff3c709
This commit is contained in:
@@ -299,13 +299,7 @@ int32_t DistributedInputClient::ReleaseSource()
|
||||
WhiteListUtil::GetInstance().ClearWhiteList();
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(operationMutex_);
|
||||
for (auto iter : addWhiteListCallbacks_) {
|
||||
iter = nullptr;
|
||||
}
|
||||
addWhiteListCallbacks_.clear();
|
||||
for (auto iter : delWhiteListCallbacks_) {
|
||||
iter = nullptr;
|
||||
}
|
||||
delWhiteListCallbacks_.clear();
|
||||
}
|
||||
return DInputSAManager::GetInstance().dInputSourceProxy_->Release();
|
||||
@@ -320,13 +314,7 @@ int32_t DistributedInputClient::ReleaseSink()
|
||||
inputTypes_ = DInputDeviceType::NONE;
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(operationMutex_);
|
||||
for (auto iter : getSinkScreenInfosCallbacks_) {
|
||||
iter = nullptr;
|
||||
}
|
||||
getSinkScreenInfosCallbacks_.clear();
|
||||
for (auto iter : sharingDhIdListeners_) {
|
||||
iter = nullptr;
|
||||
}
|
||||
sharingDhIdListeners_.clear();
|
||||
}
|
||||
WhiteListUtil::GetInstance().ClearWhiteList();
|
||||
|
||||
Reference in New Issue
Block a user