Lines Matching refs:status
46 * major components, printer properties such as name, id, status,
65 /** Printer status: the printer is idle and ready to print. */
68 /** Printer status: the printer is busy printing. */
71 /** Printer status: the printer is not available. */
96 private PrinterInfo(@NonNull PrinterId printerId, @NonNull String name, @Status int status,
102 mStatus = status;
189 * Gets the printer status.
191 * @return The status.
243 * Check if status is valid.
245 * @param status The status that might be valid
246 * @return The valid status
247 * @throws IllegalArgumentException if status is not valid.
249 private static @Status int checkStatus(int status) {
250 if (!(status == STATUS_IDLE
251 || status == STATUS_BUSY
252 || status == STATUS_UNAVAILABLE)) {
253 throw new IllegalArgumentException("status is invalid.");
256 return status;
271 // mName can be null due to unchecked set in Builder.setName and status can be invalid
389 builder.append(", status=").append(mStatus);
419 * @param status The printer status. Must be a valid status.
421 * printer name is empty or the status is not a valid one.
423 public Builder(@NonNull PrinterId printerId, @NonNull String name, @Status int status) {
426 mStatus = checkStatus(status);
447 * Sets the printer status.
449 * @param status The status.
455 public @NonNull Builder setStatus(@Status int status) {
456 mStatus = checkStatus(status);