Home
last modified time | relevance | path

Searched refs:media_col (Results 1 – 7 of 7) sorted by relevance

/external/libcups/cups/
Dtestipp.c310 ipp_attribute_t *media_col, /* media-col attribute */ in main() local
466 if ((media_col = ippFindAttribute(request, "media-col", in main()
469 if ((media_col = ippFindAttribute(request, "media-col", in main()
473 printf("FAIL (wrong type - %s)\n", ippTagString(media_col->value_tag)); in main()
477 else if (media_col->num_values != 2) in main()
479 printf("FAIL (wrong count - %d)\n", media_col->num_values); in main()
485 if (media_col) in main()
488 if ((media_size = ippFindAttribute(media_col->values[0].collection, in main()
492 if ((media_size = ippFindAttribute(media_col->values[0].collection, in main()
546 if ((media_size = ippFindAttribute(media_col->values[1].collection, in main()
[all …]
Dpwg-media.c401 *media_col, /* media-col attribute */ in pwgInitSize() local
425 if ((media_col = ippFindAttribute(job, "media-col", in pwgInitSize()
432 if ((media_size = ippFindAttribute(media_col->values[0].collection, in pwgInitSize()
472 media_bottom_margin = ippFindAttribute(media_col->values[0].collection, in pwgInitSize()
475 media_left_margin = ippFindAttribute(media_col->values[0].collection, in pwgInitSize()
478 media_right_margin = ippFindAttribute(media_col->values[0].collection, in pwgInitSize()
481 media_top_margin = ippFindAttribute(media_col->values[0].collection, in pwgInitSize()
Dppd-cache.c70 ipp_t *media_col, /* media-col value */ in _cupsConvertOptions() local
214 media_col = ippNew(); in _cupsConvertOptions()
224 ippAddCollection(media_col, IPP_TAG_ZERO, "media-size", media_size); in _cupsConvertOptions()
230 ippAddInteger(media_col, IPP_TAG_ZERO, IPP_TAG_INTEGER, "media-left-margin", size->left); in _cupsConvertOptions()
232 ippAddInteger(media_col, IPP_TAG_ZERO, IPP_TAG_INTEGER, "media-bottom-margin", size->bottom); in _cupsConvertOptions()
234 ippAddInteger(media_col, IPP_TAG_ZERO, IPP_TAG_INTEGER, "media-right-margin", size->right); in _cupsConvertOptions()
236 ippAddInteger(media_col, IPP_TAG_ZERO, IPP_TAG_INTEGER, "media-top-margin", size->top); in _cupsConvertOptions()
238 ippAddString(media_col, IPP_TAG_ZERO, IPP_TAG_KEYWORD, "media-source", NULL, media_source); in _cupsConvertOptions()
240 ippAddString(media_col, IPP_TAG_ZERO, IPP_TAG_KEYWORD, "media-type", NULL, media_type); in _cupsConvertOptions()
243 ippAddCollection(request, IPP_TAG_JOB, "media-col", media_col); in _cupsConvertOptions()
[all …]
/external/libcups/tools/
Dippeveps.c352 cups_option_t *media_col = NULL; /* media-col values */ in get_options() local
381 num_media_col = cupsParseOptions(value, 0, &media_col); in get_options()
389 num_media_col = cupsAddOption("media-size-name", value, 0, &media_col); in get_options()
393 if ((value = cupsGetOption("media-size-name", num_media_col, media_col)) != NULL) in get_options()
397 else if ((value = cupsGetOption("media-size", num_media_col, media_col)) != NULL) in get_options()
442 if ((value = cupsGetOption("media-source", num_media_col, media_col)) != NULL) in get_options()
448 if ((value = cupsGetOption("media-type", num_media_col, media_col)) != NULL) in get_options()
516 cupsFreeOptions(num_media_col, media_col); in get_options()
Dippeveprinter.c1318 ipp_t *media_col = ippNew(), /* media-col value */ in create_media_col() local
1337 ippAddString(media_col, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "media-key", NULL, media_key); in create_media_col()
1338 ippAddCollection(media_col, IPP_TAG_PRINTER, "media-size", media_size); in create_media_col()
1339 ippAddString(media_col, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "media-size-name", NULL, media); in create_media_col()
1341 ippAddInteger(media_col, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "media-bottom-margin", bottom); in create_media_col()
1343 ippAddInteger(media_col, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "media-left-margin", left); in create_media_col()
1345 ippAddInteger(media_col, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "media-right-margin", right); in create_media_col()
1347 ippAddInteger(media_col, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "media-top-margin", top); in create_media_col()
1349 ippAddString(media_col, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "media-source", NULL, source); in create_media_col()
1351 ippAddString(media_col, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "media-type", NULL, type); in create_media_col()
[all …]
/external/libcups/scheduler/
Dprinters.c5049 ipp_t *media_col, /* Collection value */ in new_media_col() local
5053 media_col = ippNew(); in new_media_col()
5058 ippAddCollection(media_col, IPP_TAG_PRINTER, "media-size", media_size); in new_media_col()
5061 ippAddInteger(media_col, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "media-bottom-margin", size->bottom); in new_media_col()
5062 ippAddInteger(media_col, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "media-left-margin", size->left); in new_media_col()
5063 ippAddInteger(media_col, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "media-right-margin", size->right); in new_media_col()
5064 ippAddInteger(media_col, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "media-top-margin", size->top); in new_media_col()
5066 return (media_col); in new_media_col()
Dipp.c1215 ipp_attribute_t *media_col, /* media-col attribute */ in add_job() local
1454 (media_col = ippFindAttribute(con->request, "media-col", in add_job()
1460 if ((media_margin = ippFindAttribute(media_col->values[0].collection, in add_job()
1466 if ((media_margin = ippFindAttribute(media_col->values[0].collection, in add_job()
1472 if ((media_margin = ippFindAttribute(media_col->values[0].collection, in add_job()
1478 if ((media_margin = ippFindAttribute(media_col->values[0].collection, in add_job()