• Home
  • Raw
  • Download

Lines Matching refs:i

441     int i;  in print_col()  local
449 for (i = 0; i < ippGetCount(attr); i++) { in print_col()
452 ippTagString(ippGetValueTag(attr)), ippGetInteger(attr, i)); in print_col()
456 for (i = 0; i < ippGetCount(attr); i++) { in print_col()
457 if (ippGetBoolean(attr, i)) { in print_col()
473 for (i = 0; i < ippGetCount(attr); i++) { in print_col()
475 lower = ippGetRange(attr, i, &upper); in print_col()
482 for (i = 0; i < ippGetCount(attr); i++) { in print_col()
485 xres = ippGetResolution(attr, i, &yres, &units); in print_col()
500 for (i = 0; i < ippGetCount(attr); i++) { in print_col()
503 ippTagString(ippGetValueTag(attr)), ippGetString(attr, i, NULL)); in print_col()
508 for (i = 0; i < ippGetCount(attr); i++) { in print_col()
511 text = ippGetString(attr, i, &charset); in print_col()
518 for (i = 0; i < ippGetCount(attr); i++) { in print_col()
519 print_col(ippGetCollection(attr, i)); in print_col()
530 int i; in print_attr() local
539 for (i = 0; i < ippGetCount(attr); i++) { in print_attr()
541 ippTagString(ippGetValueTag(attr)), ippGetInteger(attr, i)); in print_attr()
545 for (i = 0; i < ippGetCount(attr); i++) { in print_attr()
546 if (ippGetBoolean(attr, i)) { in print_attr()
562 for (i = 0; i < ippGetCount(attr); i++) { in print_attr()
564 lower = ippGetRange(attr, i, &upper); in print_attr()
570 for (i = 0; i < ippGetCount(attr); i++) { in print_attr()
573 xres = ippGetResolution(attr, i, &yres, &units); in print_attr()
588 for (i = 0; i < ippGetCount(attr); i++) { in print_attr()
591 ippTagString(ippGetValueTag(attr)), ippGetString(attr, i, NULL)); in print_attr()
596 for (i = 0; i < ippGetCount(attr); i++) { in print_attr()
599 text = ippGetString(attr, i, &charset); in print_attr()
607 for (i = 0; i < ippGetCount(attr); i++) { in print_attr()
610 print_col(ippGetCollection(attr, i)); in print_attr()
622 int i; in parse_IPPVersions() local
634 for (i = 0; i < ippGetCount(attrptr); i++) { in parse_IPPVersions()
635 if (strcmp(ipp10, ippGetString(attrptr, i, NULL)) == 0) { in parse_IPPVersions()
637 } else if (strcmp(ipp11, ippGetString(attrptr, i, NULL)) == 0) { in parse_IPPVersions()
639 } else if (strcmp(ipp20, ippGetString(attrptr, i, NULL)) == 0) { in parse_IPPVersions()
642 LOGD("found another ipp version. %s", ippGetString(attrptr, i, NULL)); in parse_IPPVersions()
650 int i; in mapDFMediaToIPPKeyword() local
651 for (i = 0; i < SUPPORTED_MEDIA_SIZE_COUNT; i++) { in mapDFMediaToIPPKeyword()
652 if (SupportedMediaSizes[i].media_size == (media_size_t) media_size) { in mapDFMediaToIPPKeyword()
653 return (SupportedMediaSizes[i].PWGName); in mapDFMediaToIPPKeyword()
660 int i; in ipp_find_media_size() local
662 for (i = 0; i < SUPPORTED_MEDIA_SIZE_COUNT; i++) { in ipp_find_media_size()
663 if (strcmp(SupportedMediaSizes[i].PWGName, ipp_media_keyword) == 0) { in ipp_find_media_size()
665 SupportedMediaSizes[i].PWGName, SupportedMediaSizes[i].media_size); in ipp_find_media_size()
669 if (i < SUPPORTED_MEDIA_SIZE_COUNT) { in ipp_find_media_size()
670 *media_size = SupportedMediaSizes[i].media_size; in ipp_find_media_size()
671 return i; in ipp_find_media_size()
679 int i; in getMediaSizeFromTag() local
681 for (i = 0; i < SUPPORTED_MEDIA_SIZE_COUNT; i++) { in getMediaSizeFromTag()
682 if (strcmp(SupportedMediaSizes[i].PWGName, media_size_tag) == 0) { in getMediaSizeFromTag()
683 LOGD("Media size match: pwg name %s", SupportedMediaSizes[i].PWGName); in getMediaSizeFromTag()
684 *media_size = SupportedMediaSizes[i].media_size; in getMediaSizeFromTag()
685 return i; in getMediaSizeFromTag()
695 int i; in getMediaSizeNameFromDimens() local
696 for (i = 0; i < SUPPORTED_MEDIA_SIZE_COUNT; i++) { in getMediaSizeNameFromDimens()
697 if (SupportedMediaSizes[i].WidthInMicrometers / 10 == mediaColReadyWidth in getMediaSizeNameFromDimens()
698 && SupportedMediaSizes[i].HeightInMicrometers / 10 == mediaColReadyHeight) { in getMediaSizeNameFromDimens()
699 *media_size = SupportedMediaSizes[i].media_size; in getMediaSizeNameFromDimens()
700 return i; in getMediaSizeNameFromDimens()
736 for (int i = 0; i < SUPPORTED_MEDIA_SIZE_COUNT; i++) { in addRollSupportedSizes() local
737 if(SupportedMediaSizes[i].WidthInMicrometers / 10 <= width in addRollSupportedSizes()
738 && SupportedMediaSizes[i].HeightInMicrometers / 10 >= minHeight in addRollSupportedSizes()
739 && SupportedMediaSizes[i].HeightInMicrometers / 10 <= maxHeight) { in addRollSupportedSizes()
740 addMediaIfNotDuplicate(i, sizesIdx, media_supported, SupportedMediaSizes[i].media_size); in addRollSupportedSizes()
749 int i; in parse_getMediaSupported() local
761 for (i = 0; i < ippGetCount(attrptr); i++) { in parse_getMediaSupported()
762 ipp_t *collection = ippGetCollection(attrptr, i); in parse_getMediaSupported()
810 for (i = 0; i < ippGetCount(attrptr); i++) { in parse_getMediaSupported()
814 ippGetString(attrptr, i, NULL), MAX_STRING); in parse_getMediaSupported()
823 for (i = 0; i < ippGetCount(attrptr); i++) { in parse_getMediaSupported()
824 idx = ipp_find_media_size(ippGetString(attrptr, i, NULL), &media_sizeTemp); in parse_getMediaSupported()
843 int i; in get_supportedPrinterResolutions() local
844 for (i = 0; i < ippGetCount(attrptr); i++) { in get_supportedPrinterResolutions()
847 xres = ippGetResolution(attrptr, i, &yres, &units); in get_supportedPrinterResolutions()
885 int i, j; in parse_printerAttributes() local
891 for (i = 0; i <= PAGE_STATUS_MAX - 1; i++) { in parse_printerAttributes()
892 media_supported.media_size[i] = 0; in parse_printerAttributes()
901 for (i = 0; i <= PAGE_STATUS_MAX - 1; i++) { in parse_printerAttributes()
902 if (media_supported.media_size[i] != 0) { in parse_printerAttributes()
904 media_supported.media_size[i]; in parse_printerAttributes()
905 idx = media_supported.idxKeywordTranTable[i]; in parse_printerAttributes()
906 LOGD(" i %d, \tPT_Size: %d \tidx %d \tKeyword: %s", i, media_supported.media_size[i], in parse_printerAttributes()
952 for (i = 0; i < ippGetCount(attrptr); i++) { in parse_printerAttributes()
953 ippGetRange(attrptr, i, &upper); in parse_printerAttributes()
961 for (i = 0; i < ippGetCount(attrptr); i++) { in parse_printerAttributes()
962 if (strcmp("color", ippGetString(attrptr, i, NULL)) == 0) { in parse_printerAttributes()
969 for (i = 0; i < ippGetCount(attrptr) && capabilities->numSupportedQuality in parse_printerAttributes()
970 < MAX_QUALITY_SUPPORTED; i++) { in parse_printerAttributes()
971 LOGD("print-quality-supported: %d", ippGetInteger(attrptr, i)); in parse_printerAttributes()
973 ippGetInteger(attrptr, i); in parse_printerAttributes()
984 for (i = 0; i < ippGetCount(attrptr); i++) { in parse_printerAttributes()
985 if (strcmp(imagePDF, ippGetString(attrptr, i, NULL)) == 0) { in parse_printerAttributes()
987 } else if (strcmp(applicationPDF, ippGetString(attrptr, i, NULL)) == 0) { in parse_printerAttributes()
989 } else if (strcmp(imagePCLm, ippGetString(attrptr, i, NULL)) == 0) { in parse_printerAttributes()
991 } else if (strcmp(applicationPDF, ippGetString(attrptr, i, NULL)) == 0) { in parse_printerAttributes()
993 } else if (strcmp(imagePWG, ippGetString(attrptr, i, NULL)) == 0) { in parse_printerAttributes()
1000 for (i = 0; i < ippGetCount(attrptr); i++) { in parse_printerAttributes()
1001 if (strcmp(IPP_SIDES_TWO_SIDED_SHORT_EDGE, ippGetString(attrptr, i, NULL)) == 0) { in parse_printerAttributes()
1003 } else if (strcmp(IPP_SIDES_TWO_SIDED_LONG_EDGE, ippGetString(attrptr, i, NULL)) == 0) { in parse_printerAttributes()
1014 for (i = 0; i < ippGetCount(attrptr); i++) { in parse_printerAttributes()
1015 if (strcasestr(ippGetString(attrptr, i, NULL), "photographic-glossy")) { in parse_printerAttributes()
1017 } else if (strcasestr(ippGetString(attrptr, i, NULL), "photo")) { in parse_printerAttributes()
1019 } else if (strcasestr(ippGetString(attrptr, i, NULL), "stationery")) { in parse_printerAttributes()
1021 } else if (strcasestr(ippGetString(attrptr, i, NULL), "auto")) { in parse_printerAttributes()
1055 for (i = 0; i < ippGetCount(attrptr); i++) { in parse_printerAttributes()
1056 if (strcmp(ipp10, ippGetString(attrptr, i, NULL)) == 0) { in parse_printerAttributes()
1058 } else if (strcmp(ipp11, ippGetString(attrptr, i, NULL)) == 0) { in parse_printerAttributes()
1060 } else if (strcmp(ipp20, ippGetString(attrptr, i, NULL)) == 0) { in parse_printerAttributes()
1063 LOGD("found another ipp version. %s", ippGetString(attrptr, i, NULL)); in parse_printerAttributes()
1084 for (i = 0; i < ippGetCount(attrptr); i++) { in parse_printerAttributes()
1085 LOGD("setting epcl_ipp_version (KEYWORD) %s", ippGetString(attrptr, i, NULL)); in parse_printerAttributes()
1088 if (strstr(ippGetString(attrptr, i, NULL), epcl10) != NULL) { in parse_printerAttributes()
1096 for (i = 0; i < ippGetCount(attrptr); i++) { in parse_printerAttributes()
1097 LOGD("setting epcl_ipp_verion (TEXT) %s", ippGetString(attrptr, i, NULL)); in parse_printerAttributes()
1100 if (strstr(ippGetString(attrptr, i, NULL), epcl10) != NULL) { in parse_printerAttributes()
1109 for (i = 0; i < ippGetCount(attrptr); i++) { in parse_printerAttributes()
1112 ipp_t *collection = ippGetCollection(attrptr, i); in parse_printerAttributes()
1175 for (i = 0; i < ippGetCount(attrptr); i++) { in parse_printerAttributes()
1176 if (ippGetInteger(attrptr, i) == 0) { in parse_printerAttributes()
1185 for (i = 0; i < ippGetCount(attrptr); i++) { in parse_printerAttributes()
1186 if (ippGetInteger(attrptr, i) == 0) { in parse_printerAttributes()
1195 for (i = 0; i < ippGetCount(attrptr); i++) { in parse_printerAttributes()
1196 if (ippGetInteger(attrptr, i) == 0) { in parse_printerAttributes()
1205 for (i = 0; i < ippGetCount(attrptr); i++) { in parse_printerAttributes()
1206 if (ippGetInteger(attrptr, i) == 0) { in parse_printerAttributes()
1237 for (i = 0; i < ippGetCount(attrptr); i++) { in parse_printerAttributes()
1239 const char *tray_str = ippGetOctetString(attrptr, i, &length); in parse_printerAttributes()
1249 for (i = 0; i < ippGetCount(attrptr); i++) { in parse_printerAttributes()
1250 if (strcmp("document-source-application-name", ippGetString(attrptr, i, NULL)) == 0) { in parse_printerAttributes()
1253 strcmp("document-source-application-version", ippGetString(attrptr, i, NULL)) == in parse_printerAttributes()
1256 } else if (strcmp("document-source-os-name", ippGetString(attrptr, i, NULL)) == 0) { in parse_printerAttributes()
1258 } else if (strcmp("document-source-os-version", ippGetString(attrptr, i, NULL)) == 0) { in parse_printerAttributes()
1275 int i; in parse_printerUris() local
1279 for (i = 0; i < MIN(ippGetCount(attrptr), MAX_URIS); i++) { in parse_printerUris()
1280 uris[i].uri = ippGetString(attrptr, i, NULL); in parse_printerUris()
1281 uris[i].valid = true; in parse_printerUris()
1288 for (i = 0; i < MIN(ippGetCount(attrptr), MAX_URIS); i++) { in parse_printerUris()
1290 if (strcmp("none", ippGetString(attrptr, i, NULL)) != 0 && in parse_printerUris()
1291 strcmp("requesting-user-name", ippGetString(attrptr, i, NULL)) != 0) { in parse_printerUris()
1292 LOGD("parse_printerUris %s invalid because auth=%s", uris[i].uri, in parse_printerUris()
1293 ippGetString(attrptr, i, NULL)); in parse_printerUris()
1294 uris[i].valid = false; in parse_printerUris()
1300 for (i = 0; i < MAX_URIS; i++) { in parse_printerUris()
1302 if (uris[i].valid && strncmp(capabilities->printerUri, "ipps://", 7) != 0) { in parse_printerUris()
1303 LOGD("parse_printerUris found %s", uris[i].uri); in parse_printerUris()
1304 strlcpy(capabilities->printerUri, uris[i].uri, sizeof(capabilities->printerUri)); in parse_printerUris()