Home
last modified time | relevance | path

Searched refs:taskId (Results 1 – 25 of 94) sorted by relevance

1234

/base/update/updateservice/services/firmware/data/db/src/
Dfirmware_task_operator.cpp38 bool FirmwareTaskOperator::UpdateProgressByTaskId(const std::string &taskId, UpgradeStatus status, … in UpdateProgressByTaskId() argument
43 return UpdateByTaskId(taskId, values); in UpdateProgressByTaskId()
46 bool FirmwareTaskOperator::UpdateErrMsgByTaskId(const std::string &taskId, int errorCode, const std… in UpdateErrMsgByTaskId() argument
51 return UpdateByTaskId(taskId, values); in UpdateErrMsgByTaskId()
54 bool FirmwareTaskOperator::UpdateDownloadTaskIdByTaskId(const std::string &taskId, const std::strin… in UpdateDownloadTaskIdByTaskId() argument
58 return UpdateByTaskId(taskId, values); in UpdateDownloadTaskIdByTaskId()
61 bool FirmwareTaskOperator::UpdateCombinationTypeByTaskId(const std::string &taskId, in UpdateCombinationTypeByTaskId() argument
66 return UpdateByTaskId(taskId, values); in UpdateCombinationTypeByTaskId()
69 bool FirmwareTaskOperator::UpdateDownloadModeByTaskId(const std::string &taskId, DownloadMode downl… in UpdateDownloadModeByTaskId() argument
73 return UpdateByTaskId(taskId, values); in UpdateDownloadModeByTaskId()
[all …]
Dfirmware_task_operator_empty.cpp40 bool FirmwareTaskOperator::UpdateProgressByTaskId(const std::string &taskId, UpgradeStatus status, … in UpdateProgressByTaskId() argument
45 bool FirmwareTaskOperator::UpdateErrMsgByTaskId(const std::string &taskId, int errorCode, const std… in UpdateErrMsgByTaskId() argument
50 bool FirmwareTaskOperator::UpdateDownloadTaskIdByTaskId(const std::string &taskId, const std::strin… in UpdateDownloadTaskIdByTaskId() argument
55 bool FirmwareTaskOperator::UpdateCombinationTypeByTaskId(const std::string &taskId, in UpdateCombinationTypeByTaskId() argument
61 bool FirmwareTaskOperator::UpdateDownloadModeByTaskId(const std::string &taskId, DownloadMode downl… in UpdateDownloadModeByTaskId() argument
66 bool FirmwareTaskOperator::UpdateDownloadAllowNetworkByTaskId(const std::string &taskId, NetType do… in UpdateDownloadAllowNetworkByTaskId() argument
71 bool FirmwareTaskOperator::UpdateDownloadOrderByTaskId(const std::string &taskId, Order downloadOrd… in UpdateDownloadOrderByTaskId() argument
77 …const std::string &taskId, DownloadMode downloadMode, NetType downloadAllowNetwork, Order download… in UpdateDownloadOptionByTaskId() argument
82 bool FirmwareTaskOperator::UpdateUpgradeModeByTaskId(const std::string &taskId, UpgradeMode upgrade… in UpdateUpgradeModeByTaskId() argument
87 bool FirmwareTaskOperator::UpdateUpgradeOrderByTaskId(const std::string &taskId, Order upgradeOrder) in UpdateUpgradeOrderByTaskId() argument
/base/security/device_auth/services/authenticators/src/account_related/
Daccount_multi_task_manager.c24 static bool IsManagerHasTaskId(int32_t taskId) in IsManagerHasTaskId() argument
27 if (g_taskManager.taskArray[i] != NULL && taskId == g_taskManager.taskArray[i]->taskId) { in IsManagerHasTaskId()
28 LOGD("Task already exists, taskId: %d.", taskId); in IsManagerHasTaskId()
32 LOGD("Multi auth manager do not has task id(%d).", taskId); in IsManagerHasTaskId()
45 static bool CanAddTaskInManager(int32_t taskId) in CanAddTaskInManager() argument
51 if (IsManagerHasTaskId(taskId)) { in CanAddTaskInManager()
65 if (!CanAddTaskInManager(task->taskId)) { in AddTaskToManager()
80 static AccountTask *GetTaskFromManager(int32_t taskId) in GetTaskFromManager() argument
83 … if ((g_taskManager.taskArray[i] != NULL) && (g_taskManager.taskArray[i]->taskId == taskId)) { in GetTaskFromManager()
87 LOGE("Task does not exist, taskId: %d.", taskId); in GetTaskFromManager()
[all …]
Daccount_module.c61 static int32_t CreateAccountTask(int32_t *taskId, const CJson *in, CJson *out) in CreateAccountTask() argument
63 if (taskId == NULL || in == NULL || out == NULL) { in CreateAccountTask()
79 AccountTask *newTask = CreateAccountTaskT(taskId, in, out); in CreateAccountTask()
92 static int32_t ProcessAccountTask(int32_t taskId, const CJson *in, CJson *out, int32_t *status) in ProcessAccountTask() argument
99 AccountTask *currentTask = authManager->getTaskFromManager(taskId); in ProcessAccountTask()
101 LOGE("Get task from manager failed, taskId: %d.", taskId); in ProcessAccountTask()
104 LOGD("Begin process account related task, taskId: %d.", taskId); in ProcessAccountTask()
108 static void DestroyAccountTask(int32_t taskId) in DestroyAccountTask() argument
115 LOGI("Delete taskId:%d from task manager.", taskId); in DestroyAccountTask()
116 authManager->deleteTaskFromManager(taskId); in DestroyAccountTask()
/base/update/updateservice/services/firmware/data/db/include/
Dfirmware_task_operator.h46 bool UpdateProgressByTaskId(const std::string &taskId, UpgradeStatus status, int32_t progress);
47 … bool UpdateErrMsgByTaskId(const std::string &taskId, int errorCode, const std::string &errorMsg);
48 bool UpdateDownloadTaskIdByTaskId(const std::string &taskId, const std::string &downloadTaskId);
49 bool UpdateCombinationTypeByTaskId(const std::string &taskId,
52 bool UpdateDownloadModeByTaskId(const std::string &taskId, DownloadMode downloadMode);
53 … bool UpdateDownloadAllowNetworkByTaskId(const std::string &taskId, NetType downloadAllowNetwork);
54 bool UpdateDownloadOrderByTaskId(const std::string &taskId, Order downloadOrder);
55 bool UpdateDownloadOptionByTaskId(const std::string &taskId,
58 bool UpdateUpgradeModeByTaskId(const std::string &taskId, UpgradeMode upgradeMode);
59 bool UpdateUpgradeOrderByTaskId(const std::string &taskId, Order upgradeOrder);
[all …]
/base/hiviewdfx/hitrace/frameworks/hitrace_ndk/
Dhitrace_meter_ndk.c28 void OH_HiTrace_StartAsyncTrace(const char *name, int32_t taskId) in OH_HiTrace_StartAsyncTrace() argument
30 StartAsyncTraceCwrapper(name, taskId); in OH_HiTrace_StartAsyncTrace()
33 void OH_HiTrace_FinishAsyncTrace(const char *name, int32_t taskId) in OH_HiTrace_FinishAsyncTrace() argument
35 FinishAsyncTraceCwrapper(name, taskId); in OH_HiTrace_FinishAsyncTrace()
/base/hiviewdfx/hitrace/interfaces/native/innerkits/src/
Dhitrace_meter_wrapper.cpp33 void StartAsyncTraceCwrapper(const char *value, int32_t taskId) in StartAsyncTraceCwrapper() argument
35 StartAsyncTrace(HITRACE_TAG_APP, value, taskId); in StartAsyncTraceCwrapper()
38 void FinishAsyncTraceCwrapper(const char *value, int32_t taskId) in FinishAsyncTraceCwrapper() argument
40 FinishAsyncTrace(HITRACE_TAG_APP, value, taskId); in FinishAsyncTraceCwrapper()
Dhitrace_meter.cpp310 void StartAsyncTrace(uint64_t label, const string& value, int32_t taskId, float limit UNUSED_PARAM) in StartAsyncTrace() argument
312 AddHitraceMeterMarker(MARKER_ASYNC_BEGIN, label, value, taskId); in StartAsyncTrace()
315 void StartAsyncTraceWrapper(uint64_t label, const char *value, int32_t taskId) in StartAsyncTraceWrapper() argument
318 StartAsyncTrace(label, traceValue, taskId); in StartAsyncTraceWrapper()
321 void StartAsyncTraceDebug(bool isDebug, uint64_t label, const string& value, int32_t taskId, float … in StartAsyncTraceDebug() argument
326 AddHitraceMeterMarker(MARKER_ASYNC_BEGIN, label, value, taskId); in StartAsyncTraceDebug()
329 void StartAsyncTraceArgs(uint64_t label, int32_t taskId, const char *fmt, ...) in StartAsyncTraceArgs() argument
341 AddHitraceMeterMarker(MARKER_ASYNC_BEGIN, label, name, taskId); in StartAsyncTraceArgs()
344 void StartAsyncTraceArgsDebug(bool isDebug, uint64_t label, int32_t taskId, const char *fmt, ...) in StartAsyncTraceArgsDebug() argument
359 AddHitraceMeterMarker(MARKER_ASYNC_BEGIN, label, name, taskId); in StartAsyncTraceArgsDebug()
[all …]
/base/security/device_auth/services/authenticators/src/account_unrelated/
Ddas_module.c67 static int CreateDasTask(int32_t *taskId, const CJson *in, CJson *out) in CreateDasTask() argument
69 if (taskId == NULL || in == NULL || out == NULL) { in CreateDasTask()
76 Task *task = CreateTaskT(taskId, in, out); in CreateDasTask()
86 static int ProcessDasTask(int32_t taskId, const CJson* in, CJson* out, int32_t *status) in ProcessDasTask() argument
96 if (taskId == temp->taskId) { in ProcessDasTask()
101 LOGE("Task doesn't exist, taskId: %d.", taskId); in ProcessDasTask()
105 static void DestroyDasTask(int taskId) in DestroyDasTask() argument
111 if (taskId == temp->taskId) { in DestroyDasTask()
/base/inputmethod/imf/services/dfx/src/
Dinputmethod_trace.cpp33 void StartAsync(const std::string &value, int32_t taskId) in StartAsync() argument
35 StartAsyncTrace(HITRACE_TAG_MISC, value, taskId); in StartAsync()
38 void FinishAsync(const std::string &value, int32_t taskId) in FinishAsync() argument
40 FinishAsyncTrace(HITRACE_TAG_MISC, value, taskId); in FinishAsync()
/base/startup/init/services/loopevent/loop/
Dle_loop.c24 return (int)task1->taskId.fd - (int)task2->taskId.fd; in TaskNodeCompare()
30 TaskId *taskId = (TaskId *)key; in TaskKeyCompare() local
31 return (int)task->taskId.fd - taskId->taskId.fd; in TaskKeyCompare()
37 return task->taskId.fd; in TaskGetNodeHasCode()
42 TaskId *taskId = (TaskId *)key; in TaskGetKeyHasCode() local
43 return taskId->taskId.fd; in TaskGetKeyHasCode()
129 loop->delEvent(loop, task->taskId.fd, in DelTask()
/base/web/webview/ohos_adapter/hiviewdfx_adapter/src/
Dhitrace_adapter_impl.cpp39 void HiTraceAdapterImpl::StartAsyncTrace(const std::string& value, int32_t taskId, float limit) in StartAsyncTrace() argument
41 ::StartAsyncTrace(HITRACE_TAG_NWEB, value, taskId, limit); in StartAsyncTrace()
44 void HiTraceAdapterImpl::FinishAsyncTrace(const std::string& value, int32_t taskId) in FinishAsyncTrace() argument
46 ::FinishAsyncTrace(HITRACE_TAG_NWEB, value, taskId); in FinishAsyncTrace()
/base/request/request/services/service/rust/src/
Drequest_binding.rs46 pub fn HasRequestTaskRecord(taskId: u32) -> bool; in HasRequestTaskRecord()
48 pub fn UpdateRequestTaskInfo(taskId: u32, updateInfo: *const CUpdateInfo) -> bool; in UpdateRequestTaskInfo()
49 pub fn Touch(taskId: u32, uid: u64, token: CStringWrapper) -> *const CTaskInfo; in Touch()
50 pub fn Query(taskId: u32, queryAction: Action) -> *const CTaskInfo; in Query()
/base/hiviewdfx/hitrace/interfaces/native/innerkits/include/hitrace_meter/
Dhitrace_meter.h126 void StartAsyncTrace(uint64_t label, const std::string& value, int32_t taskId, float limit = -1);
127 void StartAsyncTraceDebug(bool isDebug, uint64_t label, const std::string& value, int32_t taskId, f…
128 void StartAsyncTraceArgs(uint64_t label, int32_t taskId, const char *fmt, ...);
129 void StartAsyncTraceArgsDebug(bool isDebug, uint64_t label, int32_t taskId, const char *fmt, ...);
130 void StartAsyncTraceWrapper(uint64_t label, const char *value, int32_t taskId);
135 void FinishAsyncTrace(uint64_t label, const std::string& value, int32_t taskId);
136 void FinishAsyncTraceDebug(bool isDebug, uint64_t label, const std::string& value, int32_t taskId);
137 void FinishAsyncTraceArgs(uint64_t label, int32_t taskId, const char *fmt, ...);
138 void FinishAsyncTraceArgsDebug(bool isDebug, uint64_t label, int32_t taskId, const char *fmt, ...);
139 void FinishAsyncTraceWrapper(uint64_t label, const char *value, int32_t taskId);
/base/hiviewdfx/hitrace/interfaces/native/kits/include/hitrace/
Dtrace.h108 void OH_HiTrace_StartAsyncTrace(const char *name, int32_t taskId);
125 void OH_HiTrace_FinishAsyncTrace(const char *name, int32_t taskId);
/base/hiviewdfx/hitrace/frameworks/include/
Dhitrace_meter_wrapper.h31 void StartAsyncTraceCwrapper(const char *value, int32_t taskId);
33 void FinishAsyncTraceCwrapper(const char *value, int32_t taskId);
/base/security/device_auth/services/frameworks/src/module/
Ddev_auth_module_manager.c168 int32_t CreateTask(int32_t *taskId, const CJson *in, CJson *out, int moduleType) in CreateTask() argument
170 if (in == NULL || out == NULL || taskId == NULL) { in CreateTask()
180 int32_t res = module->createTask(taskId, in, out); in CreateTask()
182 LOGE("Create task failed, taskId: %d, moduleType: %d, res: %d", *taskId, moduleType, res); in CreateTask()
185 LOGI("Create task success, taskId: %d, moduleType: %d", *taskId, moduleType); in CreateTask()
189 int32_t ProcessTask(int taskId, const CJson *in, CJson *out, int32_t *status, int moduleType) in ProcessTask() argument
200 int32_t res = module->processTask(taskId, in, out, status); in ProcessTask()
202 LOGE("Process task failed, taskId: %d, moduleType: %d, res: %d.", taskId, moduleType, res); in ProcessTask()
210 LOGI("Process task success, taskId: %d, moduleType: %d.", taskId, moduleType); in ProcessTask()
214 void DestroyTask(int taskId, int moduleType) in DestroyTask() argument
[all …]
/base/security/device_auth/services/authenticators/inc/account_related/
Daccount_multi_task_manager.h28 AccountTask *(*getTaskFromManager)(int32_t taskId);
29 void (*deleteTaskFromManager)(int32_t taskId);
/base/print/print_fwk/frameworks/innerkitsimpl/include/
Diprint_service.h35 const std::vector<uint32_t> &fdList, std::string &taskId) = 0;
37 std::string &taskId, const sptr<IRemoteObject> &token) = 0;
38 virtual int32_t StopPrint(const std::string &taskId) = 0;
54 …virtual int32_t On(const std::string taskId, const std::string &type, const sptr<IPrintCallback> &…
55 virtual int32_t Off(const std::string taskId, const std::string &type) = 0;
Dprint_service_proxy.h29 const std::vector<uint32_t> &fdList, std::string &taskId) override;
30 int32_t StopPrint(const std::string &taskId) override;
32 std::string &taskId, const sptr<IRemoteObject> &token) override;
48 …int32_t On(const std::string taskId, const std::string &type, const sptr<IPrintCallback> &listener…
49 int32_t Off(const std::string taskId, const std::string &type) override;
/base/useriam/user_auth_framework/frameworks/native/common/dfx/src/
Diam_hitrace_helper.cpp39 static std::atomic<int32_t> taskId(0); in GetHiTraceTaskId() local
40 return taskId++; in GetHiTraceTaskId()
/base/security/device_auth/services/frameworks/inc/module/
Ddev_auth_module_manager.h49 int32_t CreateTask(int32_t *taskId, const CJson *in, CJson *out, int moduleType);
50 int32_t ProcessTask(int taskId, const CJson *in, CJson *out, int32_t *status, int moduleType);
51 void DestroyTask(int taskId, int moduleType);
/base/web/webview/ohos_adapter/print_manager_adapter/src/
Dprint_manager_adapter_impl.cpp32 …const std::vector<std::string>& fileList, const std::vector<uint32_t>& fdList, std::string& taskId) in StartPrint() argument
34 …int32_t ret = OHOS::Print::PrintManagerClient::GetInstance()->StartPrint(fileList, fdList, taskId); in StartPrint()
/base/update/updateservice/services/firmware/upgrade/mode/src/
Dfirmware_download_mode.cpp136 task.taskId, EventId::EVENT_DOWNLOAD_PAUSE, UpgradeStatus::DOWNLOAD_PAUSE, errorMessage); in DownloadPauseProcess()
143 task.taskId, EventId::EVENT_DOWNLOAD_FAIL, UpgradeStatus::DOWNLOAD_FAIL, errorMessage); in DownloadFailProcess()
151 task.taskId, EventId::EVENT_DOWNLOAD_CANCEL, UpgradeStatus::DOWNLOAD_CANCEL, errorMessage); in DownloadCancelProcess()
152 …FirmwareTaskOperator().UpdateProgressByTaskId(task.taskId, UpgradeStatus::CHECK_VERSION_SUCCESS, 0… in DownloadCancelProcess()
160 FirmwareTaskOperator().UpdateDownloadTaskIdByTaskId(task.taskId, ""); in DownloadCancelProcess()
168 task.taskId, EventId::EVENT_UPGRADE_WAIT, UpgradeStatus::DOWNLOAD_SUCCESS); in DownloadSucessProcess()
/base/inputmethod/imf/services/dfx/include/
Dinputmethod_trace.h26 void StartAsync(const std::string &value, int32_t taskId);
27 void FinishAsync(const std::string &value, int32_t taskId);

1234