Lines Matching defs:PrinterInfo

49  * Once {@link PrinterInfo.Builder#build() built} the objects are immutable.
52 public final class PrinterInfo implements Parcelable {
92 private PrinterInfo(@NonNull PrinterId printerId, @NonNull String name, @Status int status,
255 private PrinterInfo(Parcel parcel) {
304 * Compare two {@link PrinterInfo printerInfos} in all aspects beside being null and the
307 * @param other the other {@link PrinterInfo}
311 public boolean equalsIgnoringStatus(PrinterInfo other) {
358 PrinterInfo other = (PrinterInfo) obj;
371 builder.append("PrinterInfo{");
386 * Builder for creating of a {@link PrinterInfo}.
419 public Builder(@NonNull PrinterInfo other) {
436 * @see PrinterInfo#STATUS_IDLE
437 * @see PrinterInfo#STATUS_BUSY
438 * @see PrinterInfo#STATUS_UNAVAILABLE
451 * @see PrinterInfo.Builder#setHasCustomPrinterIcon
461 * {@link PrinterInfo.Builder#setIconResourceId} and a custom icon are set the resource icon
463 * {@link PrinterInfo.Builder#setIconResourceId} is not set the printer's service's icon is
527 * Creates a new {@link PrinterInfo}.
529 * @return A new {@link PrinterInfo}.
531 public @NonNull PrinterInfo build() {
532 return new PrinterInfo(mPrinterId, mName, mStatus, mIconResourceId,
538 * Increments the generation number of the custom printer icon. As the {@link PrinterInfo}
539 * does not match the previous one anymore, users of the {@link PrinterInfo} will reload the
551 public static final Parcelable.Creator<PrinterInfo> CREATOR =
552 new Parcelable.Creator<PrinterInfo>() {
554 public PrinterInfo createFromParcel(Parcel parcel) {
555 return new PrinterInfo(parcel);
559 public PrinterInfo[] newArray(int size) {
560 return new PrinterInfo[size];