mirror of
https://gitee.com/openharmony/ability_dmsfwk
synced 2024-11-27 00:20:44 +00:00
update services/dtbschedmgr/src/distributed_sched_service.cpp.
Signed-off-by: NEEN <qianli16@huawei.com>
This commit is contained in:
parent
1991cd396a
commit
53dc36911e
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user