Home
last modified time | relevance | path

Searched refs:taskBody (Results 1 – 12 of 12) sorted by relevance

/base/update/updateservice/services/core/ability/callback/src/
Dbase_callback_utils.cpp32 TaskBody taskBody; in NotifyEvent() local
33 taskBody.status = status; in NotifyEvent()
34 taskBody.versionDigestInfo.versionDigest = versionDigestInfo; in NotifyEvent()
35 taskBody.errorMessages.push_back(errorMessage); in NotifyEvent()
36 taskBody.versionComponents = versionComponents; in NotifyEvent()
37 EventInfo info(eventId, taskBody); in NotifyEvent()
67 TaskBody taskBody; in ProgressCallback() local
68 taskBody.versionDigestInfo.versionDigest = versionDigestInfo; in ProgressCallback()
69 UpdateServiceUtil::BuildTaskBody(progress, taskBody); in ProgressCallback()
71 EventInfo eventInfo(eventId, taskBody); in ProgressCallback()
/base/update/updateservice/services/engine/src/
Dupdate_service_util_hmos.cpp31 void UpdateServiceUtil::BuildTaskBody(const Progress &progress, TaskBody &taskBody) in BuildTaskBody() argument
33 taskBody.status = progress.status; in BuildTaskBody()
34 taskBody.progress = static_cast<int32_t>(progress.percent); in BuildTaskBody()
40 taskBody.errorMessages.push_back(errorMsg); in BuildTaskBody()
Dmessage_parcel_helper.cpp227 void ReadTaskBody(MessageParcel &reply, TaskBody &taskBody) in ReadTaskBody() argument
229 taskBody.versionDigestInfo.versionDigest = Str16ToStr8(reply.ReadString16()); in ReadTaskBody()
230 taskBody.status = static_cast<UpgradeStatus>(reply.ReadInt32()); in ReadTaskBody()
231 taskBody.subStatus = reply.ReadInt32(); in ReadTaskBody()
232 taskBody.progress = reply.ReadInt32(); in ReadTaskBody()
233 taskBody.installMode = reply.ReadInt32(); in ReadTaskBody()
234 ReadErrorMessages(reply, taskBody.errorMessages); in ReadTaskBody()
235 ReadVersionComponents(reply, taskBody.versionComponents); in ReadTaskBody()
238 void WriteTaskBody(MessageParcel &data, const TaskBody &taskBody) in WriteTaskBody() argument
240 data.WriteString16(Str8ToStr16(taskBody.versionDigestInfo.versionDigest)); in WriteTaskBody()
[all …]
Dupdate_service_impl_firmware.cpp225 taskInfo.taskBody.status = static_cast<UpgradeStatus>(task.status); in GetTaskInfo()
226 taskInfo.taskBody.progress = task.progress; in GetTaskInfo()
227 taskInfo.taskBody.versionDigestInfo.versionDigest = task.taskId; in GetTaskInfo()
230 StringUtils::GetBoolStr(taskInfo.existTask).c_str(), CAST_INT(taskInfo.taskBody.status), in GetTaskInfo()
231 taskInfo.taskBody.progress); in GetTaskInfo()
Dupdate_service.cpp383 dprintf(fd, "Progress: %d\n", taskInfo.taskBody.progress); in BuildTaskInfoDump()
384 dprintf(fd, "UpgradeStatus: %d\n", taskInfo.taskBody.status); in BuildTaskInfoDump()
385 dprintf(fd, "SubStatus: %d\n", taskInfo.taskBody.subStatus); in BuildTaskInfoDump()
386 for (auto &iter : taskInfo.taskBody.errorMessages) { in BuildTaskInfoDump()
Dupdate_helper.cpp76 .Append("taskBody", taskBody.GetJsonBuilder(eventId)) in GetJsonBuilder()
/base/update/updateservice/services/engine/include/
Dupdate_service_util.h26 static void BuildTaskBody(const Progress &progress, TaskBody &taskBody);
/base/update/updateservice/frameworks/js/napi/base/src/
Dclient_helper.cpp210 void BuildTaskBody(napi_env env, napi_value &obj, const TaskBody &taskBody) in BuildTaskBody() argument
214 BuildVersionDigestInfo(env, napiTaskBody, taskBody.versionDigestInfo); in BuildTaskBody()
215 NapiUtil::SetInt32(env, napiTaskBody, "status", CAST_INT(taskBody.status)); in BuildTaskBody()
216 NapiUtil::SetInt32(env, napiTaskBody, "subStatus", taskBody.subStatus); in BuildTaskBody()
217 NapiUtil::SetInt32(env, napiTaskBody, "progress", taskBody.progress); in BuildTaskBody()
218 NapiUtil::SetInt32(env, napiTaskBody, "installMode", taskBody.installMode); in BuildTaskBody()
219 BuildErrorMessages(env, napiTaskBody, "errorMessages", taskBody.errorMessages); in BuildTaskBody()
220 BuildVersionComponents(env, napiTaskBody, taskBody.versionComponents); in BuildTaskBody()
234 BuildTaskBody(env, obj, result.result.taskInfo->taskBody); in BuildTaskInfo()
686 ClientStatus BuildTaskBody(napi_env env, napi_value &obj, EventId eventId, const TaskBody &taskBody) in BuildTaskBody() argument
[all …]
/base/update/updateservice/interfaces/kits/js/declaration/
D@ohos.update.d.ts1232 taskBody: TaskBody; property
1262 taskBody: TaskBody; property
/base/update/update_app/feature/ota/src/main/ets/manager/
DOtaUpdateManager.ets306 globalThis.lastVersionName = await VersionUtils.obtainNewVersionName(eventInfo?.taskBody);
308 let versionDigest: string = eventInfo?.taskBody?.versionDigestInfo?.versionDigest ?? '';
415 let endReason: string = eventInfo.taskBody?.errorMessages?.[0]?.errorCode?.toString();
417 status: eventInfo.taskBody?.status,
418 percent: eventInfo.taskBody?.progress,
/base/update/updateservice/interfaces/inner_api/include/
Dupdate_helper.h413 TaskBody taskBody; member
481 TaskBody taskBody; member
484 EventInfo(EventId id, TaskBody body) : eventId(id), taskBody(body) {} in EventInfo()
/base/update/update_app/common/src/main/ets/manager/
DUpdateManager.ts133 let taskStatus = result?.existTask ? result?.taskBody?.status : UpdateState.INIT;
136 percent: result?.taskBody?.progress ?? 0,
137 endReason: result?.taskBody?.errorMessages?.[0]?.errorCode?.toString()