Lines Matching refs:idx

348     int idx = 0;  in get_PrinterStateReason()  local
379 for (idx = 0; idx < ippGetCount(attrptr); idx++) { in get_PrinterStateReason()
382 ippGetString(attrptr, idx, NULL)); in get_PrinterStateReason()
383 if (strncmp(ippGetString(attrptr, idx, NULL), IPP_PRNT_STATE_NONE, in get_PrinterStateReason()
397 } else if (strncmp(ippGetString(attrptr, idx, NULL), IPP_PRNT_STATE_SPOOL_FULL, in get_PrinterStateReason()
411 } else if (strncmp(ippGetString(attrptr, idx, NULL), IPP_PRNT_STATE_MARKER_SUPPLY_LOW, in get_PrinterStateReason()
414 } else if (strncmp(ippGetString(attrptr, idx, NULL), IPP_PRNT_STATE_TONER_LOW, in get_PrinterStateReason()
417 } else if (strncmp(ippGetString(attrptr, idx, NULL), IPP_PRNT_STATE_OTHER_WARN, in get_PrinterStateReason()
422 if (strncmp(ippGetString(attrptr, idx, NULL), IPP_PRNT_STATE_MEDIA_NEEDED, in get_PrinterStateReason()
425 } else if (strncmp(ippGetString(attrptr, idx, NULL), IPP_PRNT_STATE_MEDIA_EMPTY, in get_PrinterStateReason()
428 } else if (strncmp(ippGetString(attrptr, idx, NULL), IPP_PRNT_STATE_TONER_EMPTY, in get_PrinterStateReason()
431 } else if (strncmp(ippGetString(attrptr, idx, NULL), in get_PrinterStateReason()
435 } else if (strncmp(ippGetString(attrptr, idx, NULL), IPP_PRNT_STATE_DOOR_OPEN, in get_PrinterStateReason()
438 } else if (strncmp(ippGetString(attrptr, idx, NULL), IPP_PRNT_STATE_COVER_OPEN, in get_PrinterStateReason()
441 } else if (strncmp(ippGetString(attrptr, idx, NULL), IPP_PRNT_STATE_MEDIA_JAM, in get_PrinterStateReason()
444 } else if (strncmp(ippGetString(attrptr, idx, NULL), IPP_PRNT_SHUTDOWN, in get_PrinterStateReason()
447 } else if (strncmp(ippGetString(attrptr, idx, NULL), IPP_PRNT_STATE_OTHER_ERR, in get_PrinterStateReason()
450 } else if (strncmp(ippGetString(attrptr, idx, NULL), IPP_PRNT_PAUSED, in get_PrinterStateReason()
968 int idx, in addMediaIfNotDuplicate() argument
972 if (idx >= 0) { in addMediaIfNotDuplicate()
976 if (media_supported->idxKeywordTranTable[j] == idx) { in addMediaIfNotDuplicate()
984 media_supported->idxKeywordTranTable[(*sizes_idx)] = idx; in addMediaIfNotDuplicate()
1018 int idx = 0; in parse_getMediaSupported() local
1071 idx = getMediaSizeNameFromDimens(mediaReadySet.x_dimension, in parse_getMediaSupported()
1074 addMediaIfNotDuplicate(idx, &sizes_idx, media_supported, media_sizeTemp); in parse_getMediaSupported()
1087 idx = getMediaSizeFromTag(media_size_tag, &media_sizeTemp); in parse_getMediaSupported()
1088 addMediaIfNotDuplicate(idx, &sizes_idx, media_supported, media_sizeTemp); in parse_getMediaSupported()
1102 idx = ipp_find_media_size(ippGetString(attrptr, i, NULL), &media_sizeTemp); in parse_getMediaSupported()
1106 if (idx >= 0) { in parse_getMediaSupported()
1108 media_supported->idxKeywordTranTable[sizes_idx] = idx; in parse_getMediaSupported()
1145 int idx = 0; in get_supportedPrinterResolutions() local
1152 if ((idx < MAX_RESOLUTIONS_SUPPORTED) && (xres == yres)) { in get_supportedPrinterResolutions()
1153 capabilities->supportedResolutions[idx] = xres; in get_supportedPrinterResolutions()
1154 idx++; in get_supportedPrinterResolutions()
1158 capabilities->numSupportedResolutions = idx; in get_supportedPrinterResolutions()
1203 int idx = 0; in parse_printerAttributes() local
1209 idx = media_supported.idxKeywordTranTable[i]; in parse_printerAttributes()
1211 idx, SupportedMediaSizes[idx].PWGName); in parse_printerAttributes()
1689 int idx = 0; in debuglist_printerStatus() local
1690 for (idx = 0; idx < (PRINT_STATUS_MAX_STATE + 1); idx++) { in debuglist_printerStatus()
1691 if (PRINT_STATUS_MAX_STATE != printer_state_dyn->printer_reasons[idx]) { in debuglist_printerStatus()
1692 LOGD("printer_reasons (%d): %d", idx, printer_state_dyn->printer_reasons[idx]); in debuglist_printerStatus()