Home
last modified time | relevance | path

Searched refs:printer_cap (Results 1 – 5 of 5) sorted by relevance

/packages/services/BuiltInPrintService/jni/lib/
Dlib_wprint.c1370 static void _validate_supported_media_sizes(printer_capabilities_t *printer_cap) { in _validate_supported_media_sizes() argument
1371 if (printer_cap == NULL) return; in _validate_supported_media_sizes()
1373 if (printer_cap->numSupportedMediaSizes == 0) { in _validate_supported_media_sizes()
1375 printer_cap->supportedMediaSizes[i++] = ISO_A4; in _validate_supported_media_sizes()
1376 printer_cap->supportedMediaSizes[i++] = US_LETTER; in _validate_supported_media_sizes()
1377 printer_cap->supportedMediaSizes[i++] = INDEX_CARD_4X6; in _validate_supported_media_sizes()
1378 printer_cap->supportedMediaSizes[i++] = INDEX_CARD_5X7; in _validate_supported_media_sizes()
1379 printer_cap->numSupportedMediaSizes = i; in _validate_supported_media_sizes()
1382 for (read = write = 0; read < printer_cap->numSupportedMediaSizes; read++) { in _validate_supported_media_sizes()
1383 if (is_supported(printer_cap->supportedMediaSizes[read])) { in _validate_supported_media_sizes()
[all …]
Dprintable_area.c97 const printer_capabilities_t *printer_cap, in printable_area_get_default_margins() argument
101 if ((job_params == NULL) || (printer_cap == NULL)) { in printable_area_get_default_margins()
127 *top_margin = (float) printer_cap->printerTopMargin / 2540; in printable_area_get_default_margins()
128 *bottom_margin = (float) printer_cap->printerBottomMargin / 2540; in printable_area_get_default_margins()
129 *left_margin = (float) printer_cap->printerLeftMargin / 2540; in printable_area_get_default_margins()
130 *right_margin = (float) printer_cap->printerRightMargin / 2540; in printable_area_get_default_margins()
146 if (!printer_cap->inkjet) { in printable_area_get_default_margins()
157 if ((job_params->duplex != DUPLEX_MODE_NONE) || !printer_cap->borderless) { in printable_area_get_default_margins()
DwprintJNI.c340 static jint _print_pdf_pages(wJob_t job_handle, printer_capabilities_t *printer_cap, in _print_pdf_pages() argument
350 if (printer_cap->faceDownTray || duplex) { in _print_pdf_pages()
/packages/services/BuiltInPrintService/jni/include/
Dlib_wprint.h273 printer_capabilities_t *printer_cap);
284 const printer_capabilities_t *printer_cap);
291 const wprint_job_params_t *job_params, const printer_capabilities_t *printer_cap,
Dlib_printable_area.h34 const printer_capabilities_t *printer_cap, float *top_margin, float *left_margin,