update services/dtbschedmgr/src/distributed_sched_service.cpp.

Signed-off-by: NEEN <qianli16@huawei.com>
This commit is contained in:
ql 2021-08-11 07:55:10 +00:00 committed by Gitee
parent 1991cd396a
commit 53dc36911e

View File

@ -75,7 +75,7 @@ void DistributedSchedService::OnStop()
}
int32_t DistributedSchedService::StartRemoteAbility(const OHOS::AAFwk::Want& userWant,
OHOS::AAFwk::Want& innerWant, int32_t requestCode)
const OHOS::AppExecFwk::AbilityInfo& abilityInfo, int32_t requestCode)
{
std::string deviceId = userWant.GetElement().GetDeviceID();
sptr<IDistributedSched> remoteDms = GetRemoteDms(deviceId);
@ -83,14 +83,17 @@ int32_t DistributedSchedService::StartRemoteAbility(const OHOS::AAFwk::Want& use
HILOGE("StartRemoteAbility DMS get remoteDms failed");
return INVALID_PARAMETERS_ERR;
}
CallerInfo callerInfo;
AccountInfo accountInfo;
HILOGI("[PerformanceTest] DistributedSchedService StartRemoteAbility transact begin");
int32_t result = remoteDms->StartAbilityFromRemote(userWant, innerWant, requestCode);
int32_t result = remoteDms->StartAbilityFromRemote(userWant, innerWant, requestCode, callerInfo, accountInfo);
HILOGI("[PerformanceTest] DistributedSchedService StartRemoteAbility transact end");
return result;
}
int32_t DistributedSchedService::StartAbilityFromRemote(const OHOS::AAFwk::Want& userWant,
OHOS::AAFwk::Want& innerWant, int32_t requestCode)
const OHOS::AppExecFwk::AbilityInfo& abilityInfo, int32_t requestCode,
const AAFwk::CallerInfo& callerInfo, const AccountInfo& accountInfo)
{
ErrCode err = AAFwk::AbilityManagerClient::GetInstance()->Connect();
if (err != ERR_OK) {