Home
last modified time | relevance | path

Searched refs:job (Results 1 – 25 of 70) sorted by relevance

123

/ohos5.0/base/print/print_fwk/test/unittest/fwk_inner_napi_test/
H A Dprint_job_test.cpp58 PrintJob job; variable
80 job.Dump();
91 PrintJob job; variable
110 PrintJob job; variable
123 PrintJob job; variable
136 PrintJob job; variable
149 PrintJob job; variable
162 PrintJob job; variable
176 PrintJob job; variable
190 PrintJob job; variable
[all …]
/ohos5.0/docs/zh-cn/device-dev/subsystems/
H A Dsubsys-boot-init-jobs.md7 job可以在init.cfg中配置,也可以在模块的自定义cfg中配置。init解析程序会把相同名字job的命令合并到一个job中。同一名字的job只能保证init.cfg中的命令优先执行,其他cfg…
100 **表2 job解析接口说明**
109 **表3 job触发接口说明**
123 "jobs" : [{ // 基本job
129 }, { // 条件job
136 }, { // 自定义job
151 2. "condition"是一个job中的可选属性,这一属性的配置代表着该job是一个条件触发的job,不通过代码或trigger命令在固定阶段触发执行,而是在condition中的条件满足后才被…
153 3. job的命名需满足一定的规则,对于条件是系统参数的job,以"param:"为前缀。
155 4. 一个新的job命名需要在其他可执行的job命令组中通过trigger命令触发才可执行,提供的默认trigger命令执行阶段是post-init阶段。
157 5. 一个已经存在的job名称仍可以在不同文件中继续使用,相同名称的job将会被视为同一job,通过trigger触发时其中的命令合并执行。
[all …]
H A Dsubsys-dfx-hicollie.md49 /* time consuming job */
54 /* time consuming job */
90 /* time consuming job */
92 /* time consuming job */
H A Dsubsys-boot-init-cfg.md7 - ​device.boot.group 系统默认配置,触发执行配置文件中的所有的job和服务。
8 - device.charge.group charge模式,限制只启动改文件中允许的job和服务。
94 6. jobName1:job名称, 用户自定义。
/ohos5.0/base/print/print_fwk/frameworks/helper/print_helper/src/
H A Dprint_job_helper.cpp55 if (!CreateFdList(env, jsObj, job)) { in MakeJsObject()
65 if (!CreatePageRange(env, jsObj, job)) { in MakeJsObject()
72 if (!CreatePageSize(env, jsObj, job)) { in MakeJsObject()
81 if (job.HasMargin() && !CreateMargin(env, jsObj, job)) { in MakeJsObject()
86 if (job.HasPreview() && !CreatePreview(env, jsObj, job)) { in MakeJsObject()
91 if (job.HasOption()) { in MakeJsObject()
205 job.GetFdList(fdList); in CreateFdList()
220 job.GetPageRange(range); in CreatePageRange()
229 job.GetPageSize(pageSize); in CreatePageSize()
238 job.GetMargin(margin); in CreateMargin()
[all …]
/ohos5.0/base/print/print_fwk/frameworks/helper/print_helper/include/
H A Dprint_job_helper.h25 static napi_value MakeJsObject(napi_env env, const PrintJob &job);
26 static napi_value MakeJsSimpleObject(napi_env env, const PrintJob &job);
32 static bool CreateFdList(napi_env env, napi_value &jsPrintJob, const PrintJob &job);
33 static bool CreatePageRange(napi_env env, napi_value &jsPrintJob, const PrintJob &job);
34 static bool CreatePageSize(napi_env env, napi_value &jsPrintJob, const PrintJob &job);
35 static bool CreateMargin(napi_env env, napi_value &jsPrintJob, const PrintJob &job);
36 static bool CreatePreview(napi_env env, napi_value &jsPrintJob, const PrintJob &job);
/ohos5.0/docs/en/application-dev/reference/apis-basic-services-kit/
H A D_o_h___print.md67 Defines a callback used to return the print job state.
75 | jobId | Print job ID. |
76 | state | Current job state. |
93 | jobId | Print job ID. |
114 | jobId | Print job ID. |
141 | PRINT_ERROR_INVALID_PRINT_JOB | Invalid print job. |
152 Enumerates the print job states.
160 | PRINT_DOC_ADAPTER_PRINT_TASK_FAIL | Print job failed. |
162 | PRINT_DOC_ADAPTER_PRINT_TASK_BLOCK | Print job blocked. |
186 | printJobName | Print job name. |
[all …]
H A Derrorcode-print.md92 Invalid print job.
97 1. Incorrect print job ID.
98 2. Incorrect print job status.
99 3. Cannot find the print job.
103 Cancel the job, close the print page, or restart the device.
H A D_print___print_doc_callback.md6 Defines the print job callback struct.
21 …[jobStateChangedCb](#jobstatechangedcb) | Defines a callback used to return the print job state. |
33 Defines a callback used to return the print job state.
H A Dohprint_8h.md28 | struct [Print_PrintDocCallback](_print___print_doc_callback.md) | Defines the print job callback…
37 …)) (const char \*jobId, uint32_t state) | Defines a callback used to return the print job state. |
45 …REVIEW_ABILITY_DESTROY_FOR_STARTED](_o_h___print.md) = 6<br>} | Enumerates the print job states. |
/ohos5.0/docs/en/device-dev/subsystems/
H A Dsubsys-boot-init-jobs.md8 - Basic job
15 - Custom job (for standard system or higher)
17job triggered based on specific rules. You can add commands to the job as required and run the **t…
19 - Conditional job (for standard system or higher)
21 …A job triggered based on specific conditions. You can add conditions to a job so that the job is e…
100 **Table 2** Description of job parsing APIs
109 **Table 3** Description of the job triggering APIs
116 …har *jobName)|Matches a job based on the job name and invokes <strong>DoCmdByIndex</strong><br>to …
123 "jobs" : [{ // Basic job
129 }, { // Conditional job
[all …]
/ohos5.0/foundation/multimedia/media_foundation/src/osal/task/
H A Dtask.cpp70 void Task::RegisterJob(const std::function<int64_t()>& job) in RegisterJob() argument
72 taskInner_->RegisterJob(job); in RegisterJob()
75 void Task::SubmitJobOnce(const std::function<void()>& job, int64_t delayUs, bool wait) in SubmitJobOnce() argument
77 taskInner_->SubmitJobOnce(job, delayUs, wait); in SubmitJobOnce()
80 void Task::SubmitJob(const std::function<void()>& job, int64_t delayUs, bool wait) in SubmitJob() argument
82 taskInner_->SubmitJob(job, delayUs, wait); in SubmitJob()
/ohos5.0/base/print/print_fwk/test/unittest/others/
H A Dprint_cups_client_vendor_helper_other_test.cpp27 PrintJob job; in TEST_F() local
33 PrintJob job; in TEST_F() local
40 PrintJob job; in TEST_F() local
47 PrintJob job; in TEST_F() local
54 PrintJob job; in TEST_F() local
62 PrintJob job; in TEST_F() local
70 PrintJob job; in TEST_F() local
78 PrintJob job; in TEST_F() local
86 PrintJob job; in TEST_F() local
94 PrintJob job; in TEST_F() local
[all …]
/ohos5.0/base/web/webview/interfaces/kits/napi/webviewcontroller/
H A Dwebview_javascript_result_callback.h65 *this = job; in JavaScriptOb()
68 JavaScriptOb(JavaScriptOb&& job) in JavaScriptOb() argument
70 *this = std::move(job); in JavaScriptOb()
75 if (this != &job) {
77 env_ = job.env_;
80 objRef_ = job.objRef_;
97 if (this != &job) {
99 env_ = job.env_;
100 objRef_ = job.objRef_;
102 job.env_ = nullptr;
[all …]
/ohos5.0/foundation/multimedia/media_foundation/src/osal/task/pthread/
H A Djobutils.cpp38 void SubmitJobOnce(std::function<void()> job) in SubmitJobOnce() argument
40 job(); in SubmitJobOnce()
44 JobHandle SubmitJobOnceAsync(std::function<void()> job) in SubmitJobOnceAsync() argument
47 job(); in SubmitJobOnceAsync()
H A DtaskInner.cpp227 void TaskInner::RegisterJob(const std::function<int64_t()>& job) in RegisterJob() argument
230 job_ = std::move(job); in RegisterJob()
233 void TaskInner::SubmitJobOnce(const std::function<void()>& job, int64_t delayUs, bool wait) in SubmitJobOnce() argument
236 int64_t time = InsertJob(job, delayUs, false); in SubmitJobOnce()
243 void TaskInner::SubmitJob(const std::function<void()>& job, int64_t delayUs, bool wait) in SubmitJob() argument
246 int64_t time = InsertJob(job, delayUs, true); in SubmitJob()
328 int64_t TaskInner::InsertJob(const std::function<void()>& job, int64_t delayUs, bool inJobQueue) in InsertJob() argument
342 jobQueue_[processTime] = std::move(job); in InsertJob()
348 msgQueue_[processTime] = std::move(job); in InsertJob()
/ohos5.0/foundation/multimedia/media_foundation/src/osal/task/ffrt/
H A Djobutils.cpp37 void SubmitJobOnce(std::function<void()> job) in SubmitJobOnce() argument
39 JobHandle handle = ffrt::submit_h(job); in SubmitJobOnce()
44 JobHandle SubmitJobOnceAsync(std::function<void()> job) in SubmitJobOnceAsync() argument
46 JobHandle handle = ffrt::submit_h(job); in SubmitJobOnceAsync()
H A Dtask.cpp51 Task::Task(std::string name, std::function<void()> job, TaskPriority priority) in Task() argument
55 job_ = std::move(job); in Task()
144 void Task::RegisterJob(std::function<void()> job) in RegisterJob() argument
147 job_ = std::move(job); in RegisterJob()
/ohos5.0/foundation/multimedia/media_foundation/interface/inner_api/osal/task/
H A DtaskInner.h60 virtual void RegisterJob(const std::function<int64_t()>& job);
62 virtual void SubmitJobOnce(const std::function<void()>& job, int64_t delay, bool wait);
64 virtual void SubmitJob(const std::function<void()>& job, int64_t delay, bool wait);
97 void DoJob(const std::function<void()>& job);
105 int64_t InsertJob(const std::function<void()>& job, int64_t delayUs, bool inJobQueue);
H A Dtask.h60 virtual void RegisterJob(const std::function<int64_t()>& job);
62 …virtual void SubmitJobOnce(const std::function<void()>& job, int64_t delayUs = 0, bool wait = fals…
64 … virtual void SubmitJob(const std::function<void()>& job, int64_t delayUs = 0, bool wait = false);
H A Djobutils.h32 void SubmitJobOnce(std::function<void()> job);
33 JobHandle SubmitJobOnceAsync(std::function<void()> job);
/ohos5.0/foundation/multimedia/media_foundation/engine/scene/recorder/internal/
H A Dstate_machine.cpp124 auto job = jobs_.Pop(timeoutMs); in DoTask() local
126 auto job = jobs_.Pop(); in DoTask()
128 if (!job) { in DoTask()
131 auto action = job(); in DoTask()
134 pendingJobs_.push(job); in DoTask()
142 job = pendingJobs_.front(); in DoTask()
144 action = job(); in DoTask()
146 pendingJobs_.push(job); in DoTask()
/ohos5.0/foundation/multimedia/media_foundation/engine/scene/player/internal/
H A Dstate_machine.cpp134 auto job = jobs_.Pop(timeoutMs); in DoTask() local
136 auto job = jobs_.Pop(); in DoTask()
138 if (!job) { in DoTask()
141 auto action = job(); in DoTask()
144 pendingJobs_.push(job); in DoTask()
155 job = pendingJobs_.front(); in DoTask()
157 action = job(); in DoTask()
159 pendingJobs_.push(job); in DoTask()
/ohos5.0/build/misc/mac/
H A Dfind_sdk.py57 job = subprocess.Popen(['xcode-select', '-print-path'],
60 out, err = job.communicate()
61 if job.returncode != 0:
64 raise Exception('Error %d running xcode-select' % job.returncode)
/ohos5.0/base/print/print_fwk/frameworks/kits/extension/src/
H A Djs_print_extension.cpp418 bool JsPrintExtension::Callback(const std::string funcName, const Print::PrintJob &job) in Callback() argument
430 workParam->job = job; in Callback()
444 napi_value jobObject = PrintJobHelper::MakeJsObject(param->env, param->job); in Callback()
506 [](const PrintJob &job) -> bool { in RegisterPrintJobCb() argument
510 return JsPrintExtension::jsExtension_->Callback("onStartPrintJob", job); in RegisterPrintJobCb()
513 [](const PrintJob &job) -> bool { in RegisterPrintJobCb() argument
517 return JsPrintExtension::jsExtension_->Callback("onCancelPrintJob", job); in RegisterPrintJobCb()
524 [](const PrintJob &job) -> bool { in RegisterPreviewCb() argument
528 return JsPrintExtension::jsExtension_->Callback("onRequestPreview", job); in RegisterPreviewCb()

123