Home
last modified time | relevance | path

Searched refs:taskInfo (Results 1 – 25 of 33) sorted by relevance

12

/base/request/request/services/service/rust/src/c_wrapper/source/
Dc_request_database.cpp156 bool WriteRequestTaskInfo(CTaskInfo *taskInfo) in WriteRequestTaskInfo() argument
160 insertValues.PutLong("task_id", taskInfo->commonData.taskId); in WriteRequestTaskInfo()
161 insertValues.PutLong("uid", taskInfo->commonData.uid); in WriteRequestTaskInfo()
162 insertValues.PutInt("action", taskInfo->commonData.action); in WriteRequestTaskInfo()
163 insertValues.PutInt("mode", taskInfo->commonData.mode); in WriteRequestTaskInfo()
164 insertValues.PutLong("ctime", taskInfo->commonData.ctime); in WriteRequestTaskInfo()
165 insertValues.PutLong("mtime", taskInfo->commonData.mtime); in WriteRequestTaskInfo()
166 insertValues.PutInt("reason", taskInfo->commonData.reason); in WriteRequestTaskInfo()
167 insertValues.PutInt("gauge", taskInfo->commonData.gauge); in WriteRequestTaskInfo()
168 insertValues.PutInt("retry", taskInfo->commonData.retry); in WriteRequestTaskInfo()
[all …]
/base/request/request/services/service/rust/src/c_wrapper/include/
Dc_request_database.h120 bool RecordRequestTaskInfo(CTaskInfo *taskInfo);
126 void GetCommonTaskInfo(std::shared_ptr<OHOS::NativeRdb::ResultSet> resultSet, TaskInfo &taskInfo);
127 int TouchRequestTaskInfo(const OHOS::NativeRdb::RdbPredicates &rdbPredicates, TaskInfo &taskInfo,
129 int QueryRequestTaskInfo(const OHOS::NativeRdb::RdbPredicates &rdbPredicates, TaskInfo &taskInfo,
131 int TouchTaskInfoAttachment(const OHOS::NativeRdb::RdbPredicates &rdbPredicates, TaskInfo &taskInfo,
133 int QueryTaskInfoAttachment(const OHOS::NativeRdb::RdbPredicates &rdbPredicates, TaskInfo &taskInfo,
135 CTaskInfo *BuildCTaskInfo(const TaskInfo &taskInfo);
/base/request/request/frameworks/js/napi/src/
Dnapi_utils.cpp330 napi_value Convert2JSValue(napi_env env, TaskInfo &taskInfo) in Convert2JSValue() argument
334 if (taskInfo.withSystem) { in Convert2JSValue()
335 napi_set_named_property(env, value, "uid", Convert2JSValue(env, taskInfo.uid)); in Convert2JSValue()
336 napi_set_named_property(env, value, "bundle", Convert2JSValue(env, taskInfo.bundle)); in Convert2JSValue()
337 taskInfo.url = ""; in Convert2JSValue()
338 taskInfo.data = ""; in Convert2JSValue()
339 if (taskInfo.action == Action::UPLOAD) { in Convert2JSValue()
340 taskInfo.files.clear(); in Convert2JSValue()
341 taskInfo.forms.clear(); in Convert2JSValue()
344 napi_set_named_property(env, value, "url", Convert2JSValue(env, taskInfo.url)); in Convert2JSValue()
[all …]
Drequest_event.cpp154 std::shared_ptr<TaskInfo> taskInfo; in On() local
155 if (GetCache(jsParam.task->GetTid(), taskInfo) && taskInfo != nullptr) { in On()
156 if (!NeedNotify(jsParam.type, taskInfo)) { in On()
159 listener->RequestCallBack(jsParam.type, jsParam.task->GetTid(), BuildNotifyData(taskInfo)); in On()
168 bool RequestEvent::NeedNotify(const std::string &type, std::shared_ptr<TaskInfo> &taskInfo) in NeedNotify() argument
170 if (type == EVENT_FAIL && taskInfo->progress.state != State::FAILED) { in NeedNotify()
173 if (type == EVENT_COMPLETE && taskInfo->progress.state != State::COMPLETED) { in NeedNotify()
176 if (!taskInfo->progress.sizes.empty()) { in NeedNotify()
177 uint64_t processed = taskInfo->progress.processed; in NeedNotify()
178 int64_t totalSise = taskInfo->progress.sizes[0]; in NeedNotify()
[all …]
Dnotify_stub.cpp157 auto taskInfo = std::make_shared<TaskInfo>(); in OnDone() local
158 ParcelHelper::UnMarshal(data, *taskInfo); in OnDone()
159 REQUEST_HILOGI("task %{public}s done", taskInfo->tid.c_str()); in OnDone()
161 auto item = JsTask::taskMap_.find(taskInfo->tid); in OnDone()
166 RequestEvent::AddCache(taskInfo->tid, taskInfo); in OnDone()
Djs_task.cpp339 *result = NapiUtils::Convert2JSValue(context->env_, context->taskInfo); in TouchInner()
348 RequestManager::GetInstance()->Touch(context->tid, context->token, context->taskInfo); in TouchInner()
542 TaskInfo taskInfo; in Query() member
560 context->taskInfo.withSystem = true; in Query()
561 *result = NapiUtils::Convert2JSValue(context->env_, context->taskInfo); in Query()
569 context->innerCode_ = RequestManager::GetInstance()->Query(context->tid, context->taskInfo); in Query()
Drequest_notify.cpp89 void RequestNotify::Done(const TaskInfo &taskInfo) in Done() argument
/base/update/updateservice/services/engine/src/
Dupdate_service_impl_firmware.cpp216 int32_t UpdateServiceImplFirmware::GetTaskInfo(const UpgradeInfo &info, TaskInfo &taskInfo, in GetTaskInfo() argument
224 taskInfo.existTask = true; in GetTaskInfo()
225 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.cpp199 int32_t UpdateService::GetTaskInfo(const UpgradeInfo &info, TaskInfo &taskInfo, BusinessError &busi… in GetTaskInfo() argument
206 return onlineUpdater->GetTaskInfo(info, taskInfo, businessError); in GetTaskInfo()
373 TaskInfo taskInfo; in BuildTaskInfoDump() local
376 service->GetTaskInfo(upgradeInfo, taskInfo, businessError); in BuildTaskInfoDump()
377 if (!taskInfo.existTask) { in BuildTaskInfoDump()
383 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_service_stub.cpp145 TaskInfo taskInfo = {}; in GetTaskInfoStub() local
147 int32_t ret = service->GetTaskInfo(upgradeInfo, taskInfo, businessError); in GetTaskInfoStub()
150 MessageParcelHelper::WriteTaskInfo(reply, taskInfo); in GetTaskInfoStub()
/base/request/request/frameworks/native/include/
Dnotify_interface.h29 virtual void Done(const TaskInfo &taskInfo) = 0;
/base/hiviewdfx/hicollie/frameworks/native/
Dwatchdog_inner.h52 static void FfrtCallback(uint64_t taskId, const char *taskInfo, uint32_t delayedTaskCount);
53 …tic void SendFfrtEvent(const std::string &msg, const std::string &eventName, const char *taskInfo);
Dwatchdog_inner.cpp382 void WatchdogInner::FfrtCallback(uint64_t taskId, const char *taskInfo, uint32_t delayedTaskCount) in FfrtCallback() argument
385 desc += taskInfo; in FfrtCallback()
392 WatchdogInner::SendFfrtEvent(desc, "SERVICE_BLOCK", taskInfo); in FfrtCallback()
401 WatchdogInner::SendFfrtEvent(desc, "SERVICE_WARNING", taskInfo); in FfrtCallback()
412 …ogInner::SendFfrtEvent(const std::string &msg, const std::string &eventName, const char * taskInfo) in SendFfrtEvent() argument
427 "MODULE_NAME", taskInfo, in SendFfrtEvent()
/base/useriam/user_auth_framework/services/context/src/
Dwidget_context.cpp261 TaskInfo taskInfo { in ExecuteAuthList() local
265 runTaskInfoList_.push_back(taskInfo); in ExecuteAuthList()
291 runTaskInfoList_.end(), [authType] (const TaskInfo &taskInfo) { in StopAuthList() argument
292 return (taskInfo.authType == authType); in StopAuthList()
402 for (auto &taskInfo : runTaskInfoList_) { in StopAllRunTask() local
404 taskInfo.task->Stop(); in StopAllRunTask()
/base/request/request/frameworks/js/napi/include/
Drequest_notify.h48 void Done(const TaskInfo &taskInfo) override;
Drequest_event.h93 static NotifyData BuildNotifyData(const std::shared_ptr<TaskInfo> &taskInfo);
96 static bool NeedNotify(const std::string &type, std::shared_ptr<TaskInfo> &taskInfo);
Djs_task.h67 TaskInfo taskInfo; member
/base/request/request/services/service/rust/src/
Drequest_binding.rs47 pub fn RecordRequestTaskInfo(taskInfo: *const CTaskInfo) -> bool; in RecordRequestTaskInfo()
/base/update/updateservice/interfaces/inner_api/include/
Diservice_online_updater.h62 …virtual int32_t GetTaskInfo(const UpgradeInfo &info, TaskInfo &taskInfo, BusinessError &businessEr…
Dupdate_service_kits.h74 …virtual int32_t GetTaskInfo(const UpgradeInfo &info, TaskInfo &taskInfo, BusinessError &businessEr…
Dupdate_service_kits_impl.h72 …int32_t GetTaskInfo(const UpgradeInfo &info, TaskInfo &taskInfo, BusinessError &businessError) fin…
/base/update/updateservice/services/engine/include/
Dupdate_service_impl_firmware.h66 …int32_t GetTaskInfo(const UpgradeInfo &info, TaskInfo &taskInfo, BusinessError &businessError) fin…
Dupdate_service_proxy.h65 …int32_t GetTaskInfo(const UpgradeInfo &info, TaskInfo &taskInfo, BusinessError &businessError) ove…
Dupdate_service.h76 …int32_t GetTaskInfo(const UpgradeInfo &info, TaskInfo &taskInfo, BusinessError &businessError) ove…
/base/update/updateservice/interfaces/inner_api/engine/
Dupdate_service_kits_impl.cpp253 int32_t UpdateServiceKitsImpl::GetTaskInfo(const UpgradeInfo &info, TaskInfo &taskInfo, BusinessErr… in GetTaskInfo() argument
258 return updateService->GetTaskInfo(info, taskInfo, businessError); in GetTaskInfo()

12