Lines Matching refs:idx
284 int idx = 0; in get_PrinterStateReason() local
315 for (idx = 0; idx < ippGetCount(attrptr); idx++) { in get_PrinterStateReason()
318 ippGetString(attrptr, idx, NULL)); in get_PrinterStateReason()
319 if (strncmp(ippGetString(attrptr, idx, NULL), IPP_PRNT_STATE_NONE, in get_PrinterStateReason()
333 } else if (strncmp(ippGetString(attrptr, idx, NULL), IPP_PRNT_STATE_SPOOL_FULL, in get_PrinterStateReason()
347 } else if (strncmp(ippGetString(attrptr, idx, NULL), IPP_PRNT_STATE_MARKER_SUPPLY_LOW, in get_PrinterStateReason()
350 } else if (strncmp(ippGetString(attrptr, idx, NULL), IPP_PRNT_STATE_TONER_LOW, in get_PrinterStateReason()
353 } else if (strncmp(ippGetString(attrptr, idx, NULL), IPP_PRNT_STATE_OTHER_WARN, in get_PrinterStateReason()
358 if (strncmp(ippGetString(attrptr, idx, NULL), IPP_PRNT_STATE_MEDIA_NEEDED, in get_PrinterStateReason()
361 } else if (strncmp(ippGetString(attrptr, idx, NULL), IPP_PRNT_STATE_MEDIA_EMPTY, in get_PrinterStateReason()
364 } else if (strncmp(ippGetString(attrptr, idx, NULL), IPP_PRNT_STATE_TONER_EMPTY, in get_PrinterStateReason()
367 } else if (strncmp(ippGetString(attrptr, idx, NULL), in get_PrinterStateReason()
371 } else if (strncmp(ippGetString(attrptr, idx, NULL), IPP_PRNT_STATE_DOOR_OPEN, in get_PrinterStateReason()
374 } else if (strncmp(ippGetString(attrptr, idx, NULL), IPP_PRNT_STATE_COVER_OPEN, in get_PrinterStateReason()
377 } else if (strncmp(ippGetString(attrptr, idx, NULL), IPP_PRNT_STATE_MEDIA_JAM, in get_PrinterStateReason()
380 } else if (strncmp(ippGetString(attrptr, idx, NULL), IPP_PRNT_SHUTDOWN, in get_PrinterStateReason()
383 } else if (strncmp(ippGetString(attrptr, idx, NULL), IPP_PRNT_STATE_OTHER_ERR, in get_PrinterStateReason()
386 } else if (strncmp(ippGetString(attrptr, idx, NULL), IPP_PRNT_PAUSED, in get_PrinterStateReason()
640 int idx = 0; in parse_getMediaSupported() local
645 idx = ipp_find_media_size(ippGetString(attrptr, i, NULL), &media_sizeTemp); in parse_getMediaSupported()
649 if (idx >= 0) { in parse_getMediaSupported()
651 media_supported->idxKeywordTranTable[sizes_idx] = idx; in parse_getMediaSupported()
662 int idx = 0; in get_supportedPrinterResolutions() local
669 if ((idx < MAX_RESOLUTIONS_SUPPORTED) && (xres == yres)) { in get_supportedPrinterResolutions()
670 capabilities->supportedResolutions[idx] = xres; in get_supportedPrinterResolutions()
671 idx++; in get_supportedPrinterResolutions()
675 capabilities->numSupportedResolutions = idx; in get_supportedPrinterResolutions()
719 int idx = 0; in parse_printerAttributes() local
725 idx = media_supported.idxKeywordTranTable[i]; in parse_printerAttributes()
727 idx, SupportedMediaSizes[idx].PWGName); in parse_printerAttributes()
1161 int idx = 0; in debuglist_printerStatus() local
1162 for (idx = 0; idx < (PRINT_STATUS_MAX_STATE + 1); idx++) { in debuglist_printerStatus()
1163 if (PRINT_STATUS_MAX_STATE != printer_state_dyn->printer_reasons[idx]) { in debuglist_printerStatus()
1164 LOGD("printer_reasons (%d): %d", idx, printer_state_dyn->printer_reasons[idx]); in debuglist_printerStatus()