• Home
  • Raw
  • Download

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()
969 int idx, in addMediaIfNotDuplicate() argument
973 if (idx >= 0) { in addMediaIfNotDuplicate()
977 if (media_supported->idxKeywordTranTable[j] == idx) { in addMediaIfNotDuplicate()
985 media_supported->idxKeywordTranTable[(*sizes_idx)] = idx; in addMediaIfNotDuplicate()
1016 int idx = 0; in parse_getMediaSupported() local
1061 idx = getMediaSizeNameFromDimens(mediaReadySet.x_dimension, in parse_getMediaSupported()
1064 addMediaIfNotDuplicate(idx, &sizes_idx, media_supported, media_sizeTemp); in parse_getMediaSupported()
1077 idx = getMediaSizeFromTag(media_size_tag, &media_sizeTemp); in parse_getMediaSupported()
1078 addMediaIfNotDuplicate(idx, &sizes_idx, media_supported, media_sizeTemp); in parse_getMediaSupported()
1092 idx = ipp_find_media_size(ippGetString(attrptr, i, NULL), &media_sizeTemp); in parse_getMediaSupported()
1096 if (idx >= 0) { in parse_getMediaSupported()
1098 media_supported->idxKeywordTranTable[sizes_idx] = idx; in parse_getMediaSupported()
1110 int idx = 0; in get_supportedPrinterResolutions() local
1117 if ((idx < MAX_RESOLUTIONS_SUPPORTED) && (xres == yres)) { in get_supportedPrinterResolutions()
1118 capabilities->supportedResolutions[idx] = xres; in get_supportedPrinterResolutions()
1119 idx++; in get_supportedPrinterResolutions()
1123 capabilities->numSupportedResolutions = idx; in get_supportedPrinterResolutions()
1167 int idx = 0; in parse_printerAttributes() local
1173 idx = media_supported.idxKeywordTranTable[i]; in parse_printerAttributes()
1175 idx, SupportedMediaSizes[idx].PWGName); in parse_printerAttributes()
1621 int idx = 0; in debuglist_printerStatus() local
1622 for (idx = 0; idx < (PRINT_STATUS_MAX_STATE + 1); idx++) { in debuglist_printerStatus()
1623 if (PRINT_STATUS_MAX_STATE != printer_state_dyn->printer_reasons[idx]) { in debuglist_printerStatus()
1624 LOGD("printer_reasons (%d): %d", idx, printer_state_dyn->printer_reasons[idx]); in debuglist_printerStatus()