Home
last modified time | relevance | path

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

/packages/services/BuiltInPrintService/jni/lib/
Dprintable_area.c26 void printable_area_get(wprint_job_params_t *job_params, float top_margin, float left_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
473 if (jq->job_params.useragent != NULL) { in _recycle_handle()
474 free((void *) jq->job_params.useragent); in _recycle_handle()
476 if (jq->job_params.certificate != NULL) { in _recycle_handle()
477 free((void *) jq->job_params.certificate); in _recycle_handle()
582 jq->job_params.cancelled = true; in _job_status_callback()
614 jq->job_params.cancelled = true; in _job_status_callback()
710 if (jq->job_params.certificate && jq->certificate) { in _is_certificate_allowed()
711 if (jq->job_params.certificate_len != jq->certificate_len) { in _is_certificate_allowed()
713 jq->job_params.certificate_len, 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.c76 wprint_job_params_t *job_params; member
120 priv->job_params->media_size, priv->job_params->media_type, in _send_thread()
121 priv->job_params->pixel_units, priv->job_params->duplex, in _send_thread()
122 priv->job_params->dry_time, priv->job_params->color_space, in _send_thread()
123 priv->job_params->media_tray, priv->job_params->page_top_margin, in _send_thread()
124 priv->job_params->page_left_margin); in _send_thread()
129 if (!priv->pcl_ifc->canCancelMidPage() || !priv->job_params->cancelled) { in _send_thread()
217 const ifc_print_job_t *print_ifc_p, wprint_job_params_t *job_params) { in _start_job() argument
222 if (job_params == NULL) continue; in _start_job()
224 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);
33 static status_t _start_job(const ifc_print_job_t *this_p, const wprint_job_params_t *job_params);
170 static ipp_t *_fill_job(int ipp_op, char *printer_uri, const wprint_job_params_t *job_params) { in _fill_job() argument
177 if (job_params == NULL) return NULL; in _fill_job()
188 bool is_2_0_capable = job_params->ipp_2_0_supported; in _fill_job()
189 bool is_ePCL_ipp_capable = job_params->epcl_ipp_supported; in _fill_job()
195 job_params->job_originating_user_name); in _fill_job()
196 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "job-name", NULL, job_params->job_name); in _fill_job()
200 job_params->accepts_app_name || in _fill_job()
201 job_params->accepts_app_version || in _fill_job()
[all …]
/packages/services/BuiltInPrintService/jni/include/
Dlib_wprint.h263 const struct ifc_print_job_st *job_ifc, wprint_job_params_t *job_params);
265 status_t (*print_page)(wprint_job_params_t *job_params, const char *mime_type,
269 wprint_job_params_t *job_params);
271 status_t (*end_job)(wprint_job_params_t *job_params);
294 status_t wprintGetDefaultJobParams(wprint_job_params_t *job_params);
307 const wprint_job_params_t *job_params, const printer_capabilities_t *printer_cap,
Dlib_printable_area.h27 extern void printable_area_get(wprint_job_params_t *job_params, float top_margin,
33 extern void printable_area_get_default_margins(const wprint_job_params_t *job_params,
Difc_print_job.h38 wprint_job_params_t *job_params);
44 const wprint_job_params_t *job_params);