Lines Matching refs: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;
185 * Gets the printer status.
187 * @return The status.
239 * Check if status is valid.
241 * @param status The status that might be valid
242 * @return The valid status
243 * @throws IllegalArgumentException if status is not valid.
245 private static @Status int checkStatus(int status) {
246 if (!(status == STATUS_IDLE
247 || status == STATUS_BUSY
248 || status == STATUS_UNAVAILABLE)) {
249 throw new IllegalArgumentException("status is invalid.");
252 return status;
267 // mName can be null due to unchecked set in Builder.setName and status can be invalid
385 builder.append(", status=").append(mStatus);
415 * @param status The printer status. Must be a valid status.
417 * printer name is empty or the status is not a valid one.
419 public Builder(@NonNull PrinterId printerId, @NonNull String name, @Status int status) {
422 mStatus = checkStatus(status);
443 * Sets the printer status.
445 * @param status The status.
451 public @NonNull Builder setStatus(@Status int status) {
452 mStatus = checkStatus(status);