Home
last modified time | relevance | path

Searched refs:job_params (Results 1 – 10 of 10) sorted by relevance

/packages/services/BuiltInPrintService/jni/lib/
Dprintable_area.c26 void printable_area_get(wprint_job_params_t *job_params, float top_margin, in printable_area_get() argument
28 if (job_params == NULL) return; in printable_area_get()
30 job_params->printable_area_width = job_params->printable_area_height = 0.0f; in printable_area_get()
31 job_params->width = job_params->height = 0.0f; in printable_area_get()
32 job_params->page_top_margin = job_params->page_bottom_margin = 0.0f; in printable_area_get()
33 job_params->page_right_margin = job_params->page_left_margin = 0.0f; in printable_area_get()
35 job_params->page_width = 0.0f; in printable_area_get()
36 job_params->page_height = 0.0f; in printable_area_get()
39 if (job_params->media_size == SupportedMediaSizes[i].media_size) { in printable_area_get()
40 job_params->page_width = SupportedMediaSizes[i].WidthInInches / 1000; in printable_area_get()
[all …]
Dlib_wprint.c148 wprint_job_params_t job_params; member
482 if (jq->job_params.useragent != NULL) { in _recycle_handle()
483 free((void *) jq->job_params.useragent); in _recycle_handle()
485 if (jq->job_params.certificate != NULL) { in _recycle_handle()
486 free((void *) jq->job_params.certificate); in _recycle_handle()
690 jq->job_params.cancelled = true; in _print_job_state_callback()
764 if (jq->job_params.certificate && jq->certificate) { in _is_certificate_allowed()
765 if (jq->job_params.certificate_len != jq->certificate_len) { in _is_certificate_allowed()
767 jq->job_params.certificate_len, jq->certificate_len); in _is_certificate_allowed()
769 } else if (0 != memcmp(jq->job_params.certificate, jq->certificate, jq->certificate_len)) { in _is_certificate_allowed()
[all …]
Dprinter.c80 static int _start_job(const ifc_print_job_t *this_p, const wprint_job_params_t *job_params, in _start_job() argument
/packages/services/BuiltInPrintService/jni/plugins/
Dplugin_pcl.c77 wprint_job_params_t *job_params; member
121 priv->job_params->media_size, priv->job_params->media_type, in _send_thread()
122 priv->job_params->pixel_units, priv->job_params->duplex, in _send_thread()
123 priv->job_params->dry_time, priv->job_params->color_space, in _send_thread()
124 priv->job_params->media_tray, priv->job_params->page_top_margin, in _send_thread()
125 priv->job_params->page_left_margin); in _send_thread()
130 if (!priv->pcl_ifc->canCancelMidPage() || !priv->job_params->cancelled) { in _send_thread()
218 const ifc_print_job_t *print_ifc_p, wprint_job_params_t *job_params) { in _start_job() argument
223 if (job_params == NULL) continue; in _start_job()
225 job_params->plugin_data = NULL; in _start_job()
[all …]
Dplugin_pdf.c55 wprint_job_params_t *job_params) { in _start_job() argument
57 if (job_params == NULL) return ERROR; in _start_job()
59 job_params->plugin_data = NULL; in _start_job()
66 job_params->plugin_data = (void *) priv; in _start_job()
70 static int _print_page(wprint_job_params_t *job_params, const char *mime_type, in _print_page() argument
78 if (job_params == NULL) return ERROR; in _print_page()
80 priv = (plugin_data_t *) job_params->plugin_data; in _print_page()
95 while ((rbytes > 0) && !job_params->cancelled) { in _print_page()
112 if ((job_params->page_range != NULL) && (strcmp(job_params->page_range, "") != 0)) { in _print_page()
118 static int _end_job(wprint_job_params_t *job_params) { in _end_job() argument
[all …]
/packages/services/BuiltInPrintService/jni/ipphelper/
Dipp_print.c31 static status_t _validate_job(const ifc_print_job_t *this_p, wprint_job_params_t *job_params,
34 static status_t _start_job(const ifc_print_job_t *this_p, const wprint_job_params_t *job_params,
175 static ipp_t *_fill_job(int ipp_op, char *printer_uri, const wprint_job_params_t *job_params, in _fill_job() argument
183 if (job_params == NULL) return NULL; in _fill_job()
194 bool is_2_0_capable = job_params->ipp_2_0_supported; in _fill_job()
195 bool is_ePCL_ipp_capable = job_params->epcl_ipp_supported; in _fill_job()
201 job_params->job_originating_user_name); in _fill_job()
202 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "job-name", NULL, job_params->job_name); in _fill_job()
206 job_params->accepts_app_name || in _fill_job()
207 job_params->accepts_app_version || in _fill_job()
[all …]
/packages/services/BuiltInPrintService/jni/include/
Dlib_wprint.h291 const struct ifc_print_job_st *job_ifc, wprint_job_params_t *job_params);
293 status_t (*print_page)(wprint_job_params_t *job_params, const char *mime_type,
296 status_t (*print_blank_page)(wJob_t job_handle, wprint_job_params_t *job_params,
299 status_t (*end_job)(wprint_job_params_t *job_params);
322 char *_get_print_format(const char *mime_type, const wprint_job_params_t *job_params,
328 status_t wprintGetDefaultJobParams(wprint_job_params_t *job_params);
341 const wprint_job_params_t *job_params, const printer_capabilities_t *printer_cap,
382 bool wprintBlankPageForPclm(const wprint_job_params_t *job_params,
388 bool wprintBlankPageForPwg(const wprint_job_params_t *job_params,
Dlib_printable_area.h27 extern void printable_area_get(wprint_job_params_t *job_params,
33 extern void printable_area_get_default_margins(const wprint_job_params_t *job_params,
Difc_print_job.h37 status_t (*validate_job)(const struct ifc_print_job_st *this_p, wprint_job_params_t *job_params,
44 const wprint_job_params_t *job_params, const printer_capabilities_t *printer_caps);
/packages/modules/AdServices/shared/libraries/device-side/proto/
Djob_policy.proto79 oneof job_params { oneof