Lines Matching defs:status
45 * major components, printer properties such as name, id, status,
61 /** Printer status: the printer is idle and ready to print. */
64 /** Printer status: the printer is busy printing. */
67 /** Printer status: the printer is not available. */
92 private PrinterInfo(@NonNull PrinterId printerId, @NonNull String name, @Status int status,
98 mStatus = status;
174 * Gets the printer status.
176 * @return The status.
228 * Check if status is valid.
230 * @param status The status that might be valid
231 * @return The valid status
232 * @throws IllegalArgumentException if status is not valid.
234 private static @Status int checkStatus(int status) {
235 if (!(status == STATUS_IDLE
236 || status == STATUS_BUSY
237 || status == STATUS_UNAVAILABLE)) {
238 throw new IllegalArgumentException("status is invalid.");
241 return status;
256 // mName can be null due to unchecked set in Builder.setName and status can be invalid
374 builder.append(", status=").append(mStatus);
404 * @param status The printer status. Must be a valid status.
406 * printer name is empty or the status is not a valid one.
408 public Builder(@NonNull PrinterId printerId, @NonNull String name, @Status int status) {
411 mStatus = checkStatus(status);
432 * Sets the printer status.
434 * @param status The status.
440 public @NonNull Builder setStatus(@Status int status) {
441 mStatus = checkStatus(status);