mirror of
https://gitee.com/openharmony/ability_dmsfwk
synced 2024-11-27 00:20:44 +00:00
commit
57ab08923b
@ -62,6 +62,9 @@ config("distributed_sched_config") {
|
||||
if (dmsfwk_mmi_listener) {
|
||||
defines += [ "SUPPORT_MULTIMODALINPUT_SERVICE" ]
|
||||
}
|
||||
if (use_libfuzzer || use_clang_coverage) {
|
||||
defines += [ "TEST_COVERAGE" ]
|
||||
}
|
||||
}
|
||||
|
||||
ohos_shared_library("distributedschedsvr") {
|
||||
|
@ -1135,6 +1135,9 @@ int32_t DistributedSchedService::DealDSchedEventResult(const OHOS::AAFwk::Want&
|
||||
|
||||
bool DistributedSchedService::GetIsFreeInstall(int32_t missionId)
|
||||
{
|
||||
if (dschedContinuation_ == nullptr) {
|
||||
return false;
|
||||
}
|
||||
return dschedContinuation_->IsFreeInstall(missionId);
|
||||
}
|
||||
|
||||
|
@ -71,7 +71,9 @@ int32_t DSchedAllConnectManager::UninitAllConnectManager()
|
||||
if (ret != ERR_OK) {
|
||||
HILOGE("Unregist lifecycle callback fail, ret %{public}d.", ret);
|
||||
}
|
||||
#ifndef TEST_COVERAGE
|
||||
dlclose(dllHandle_);
|
||||
#endif
|
||||
dllHandle_ = nullptr;
|
||||
allConnectMgrApi_ = {
|
||||
.ServiceCollaborationManager_PublishServiceState = nullptr,
|
||||
@ -127,7 +129,9 @@ int32_t DSchedAllConnectManager::GetServiceCollaborationManagerProxy()
|
||||
|
||||
if (ret != ERR_OK) {
|
||||
HILOGE("Get remote dms interactive adapter proxy fail, dlclose handle.");
|
||||
#ifndef TEST_COVERAGE
|
||||
dlclose(dllHandle_);
|
||||
#endif
|
||||
dllHandle_ = nullptr;
|
||||
}
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user