1 /* 2 * Copyright (C) 2016 The Android Open Source Project 3 * Copyright (C) 2014-2106 Mopria Alliance, Inc. 4 * Copyright (C) 2013 Hewlett-Packard Development Company, L.P. 5 * 6 * Licensed under the Apache License, Version 2.0 (the "License"); 7 * you may not use this file except in compliance with the License. 8 * You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, software 13 * distributed under the License is distributed on an "AS IS" BASIS, 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 * See the License for the specific language governing permissions and 16 * limitations under the License. 17 */ 18 package com.android.bips.jni; 19 20 import android.view.Gravity; 21 22 public class BackendConstants { 23 public static final String RESOLUTION_300_DPI = "resolution-300-dpi"; 24 public static final String OK = "OK"; 25 public static final String ERROR = "ERROR"; 26 public static final String WPRINT_APPLICATION_ID = "Android"; 27 public static final String WPRINT_LIBRARY_PREFIX = "wfds"; 28 29 public static final int STATUS_OK = 0; 30 31 public static final String PRINT_DOCUMENT_CATEGORY__DOCUMENT = "Doc"; 32 public static final String PRINT_DOCUMENT_CATEGORY__PHOTO = "Photo"; 33 34 public static final String ALIGNMENT = "alignment"; 35 36 /** Center horizontally based on the orientation */ 37 public static final int ALIGN_CENTER_HORIZONTAL_ON_ORIENTATION = 38 Gravity.HORIZONTAL_GRAVITY_MASK; 39 40 public static final int ALIGN_CENTER_HORIZONTAL = Gravity.CENTER_HORIZONTAL; 41 public static final int ALIGN_CENTER_VERTICIAL = Gravity.CENTER_VERTICAL; 42 43 /** Center horizontally & vertically */ 44 public static final int ALIGN_CENTER = Gravity.CENTER; 45 46 public static final String JOB_STATE_QUEUED = "print-job-queued"; 47 public static final String JOB_STATE_RUNNING = "print-job-running"; 48 public static final String JOB_STATE_BLOCKED = "print-job-blocked"; 49 public static final String JOB_STATE_DONE = "print-job-complete"; 50 public static final String JOB_STATE_OTHER = "print-job-unknown"; 51 52 public static final String JOB_DONE_OK = "job-success"; 53 public static final String JOB_DONE_ERROR = "job-failed"; 54 public static final String JOB_DONE_CANCELLED = "job-cancelled"; 55 public static final String JOB_DONE_CORRUPT = "job-corrupt"; 56 public static final String JOB_DONE_OTHER = "job-result-unknown"; 57 public static final String JOB_DONE_AUTHENTICATION_CANCELED = "job-authentication-canceled"; 58 public static final String JOB_DONE_SIDES_UNSUPPORTED = "job-sides-unsupported"; 59 public static final String JOB_DONE_BAD_CERTIFICATE = "bad-certificate"; 60 public static final String JOB_DONE_ACCOUNT_INFO_NEEDED = "client-error-account-info-needed"; 61 public static final String JOB_DONE_ACCOUNT_CLOSED = "client-error-account-closed"; 62 public static final String JOB_DONE_ACCOUNT_LIMIT_REACHED = 63 "client-error-account-limit-reached"; 64 public static final String JOB_DONE_AUTHORIZATION_FAILED = 65 "client-error-account-authorization-failed"; 66 67 public static final String BLOCKED_REASON__OFFLINE = "device-offline"; 68 public static final String BLOCKED_REASON__BUSY = "device-busy"; 69 public static final String BLOCKED_REASON__CANCELLED = "print-job-cancelled"; 70 public static final String BLOCKED_REASON__OUT_OF_PAPER = "input-media-supply-empty"; 71 public static final String BLOCKED_REASON__OUT_OF_INK = "marker-ink-empty"; 72 public static final String BLOCKED_REASON__OUT_OF_TONER = "marker-toner-empty"; 73 public static final String BLOCKED_REASON__JAMMED = "jam"; 74 public static final String BLOCKED_REASON__DOOR_OPEN = "cover-open"; 75 public static final String BLOCKED_REASON__SERVICE_REQUEST = "service-request"; 76 public static final String BLOCKED_REASON__LOW_ON_INK = "marker-ink-almost-empty"; 77 public static final String BLOCKED_REASON__LOW_ON_TONER = "marker-toner-almost-empty"; 78 public static final String BLOCKED_REASON__REALLY_LOW_ON_INK = "marker-ink-really-low"; 79 public static final String BLOCKED_REASON__PAUSED = "paused"; 80 public static final String BLOCKED_REASON__INPUT_CANNOT_FEED_SIZE_SELECTED = 81 "input-cannot-feed-size-selected"; 82 public static final String BLOCKED_REASON__INTERLOCK_ERROR = "interlock"; 83 public static final String BLOCKED_REASON__ALERT_REMOVAL_OF_BINARY_CHANGE_ENTRY = 84 "alert-removal-of-binary-change-entry"; 85 public static final String BLOCKED_REASON__CONFIGURATION_CHANGED = "configuration-change"; 86 public static final String BLOCKED_REASON__CONNECTING_TO_DEVICE = "connecting-to-device"; 87 public static final String BLOCKED_REASON__DEACTIVATED = "deactivated"; 88 public static final String BLOCKED_REASON__DEVELOPER_ERROR = "developer"; 89 public static final String BLOCKED_REASON__HOLD_NEW_JOBS = "hold-new-jobs"; 90 public static final String BLOCKED_REASON__OPC_LIFE_OVER = "opc-life-over"; 91 public static final String BLOCKED_REASON__TIMED_OUT = "timed-out"; 92 public static final String BLOCKED_REASON__STOPPED = "stopped"; 93 public static final String BLOCKED_REASON__PRINTER_NMS_RESET = "printer-nms-reset"; 94 public static final String BLOCKED_REASON__PRINTER_MANUAL_RESET = "printer-manual-reset"; 95 public static final String BLOCKED_REASON__SPOOL_AREA_FULL = "spool-area-full"; 96 public static final String BLOCKED_REASON__SHUTDOWN = "shutdown"; 97 public static final String BLOCKED_REASON__OUTPUT_MAILBOX_SELECT_FAILURE = 98 "output-mailbox-select-failure"; 99 public static final String BLOCKED_REASON__OUTPUT_TRAY_MISSING = "output-tray-missing"; 100 public static final String BLOCKED_REASON__BANDER_ERROR = "bander-error"; 101 public static final String BLOCKED_REASON__POWER_ERROR = "power-error"; 102 public static final String BLOCKED_REASON__BINDER_ERROR = "binder-error"; 103 public static final String BLOCKED_REASON__CLEANER_ERROR = "cleaner-error"; 104 public static final String BLOCKED_REASON__DIE_CUTTER_ERROR = "die-cutter-error"; 105 public static final String BLOCKED_REASON__FOLDER_ERROR = "folder-error"; 106 public static final String BLOCKED_REASON__IMPRINTER_ERROR = "imprinter-error"; 107 public static final String BLOCKED_REASON__INPUT_TRAY_ERROR = "input-tray-error"; 108 public static final String BLOCKED_REASON__INSERTER_ERROR = "inserter-error"; 109 public static final String BLOCKED_REASON__INTERPRETER_ERROR = "interpereter-error"; 110 public static final String BLOCKED_REASON__MAKE_ENVELOPE_ERROR = "make-envelope-error"; 111 public static final String BLOCKED_REASON__MARKER_ERROR = "maker-error"; 112 public static final String BLOCKED_REASON__MEDIA_ERROR = "media-error"; 113 public static final String BLOCKED_REASON__PERFORATER_ERROR = "perforater-error"; 114 public static final String BLOCKED_REASON__PUNCHER_ERROR = "puncher-error"; 115 public static final String BLOCKED_REASON__SEPARATION_CUTTER_ERROR = "sepration-cutter-error"; 116 public static final String BLOCKED_REASON__SHEET_ROTATOR_ERROR = "sheet-rotator-error"; 117 public static final String BLOCKED_REASON__SLITTER_ERROR = "slitter-error"; 118 public static final String BLOCKED_REASON__STACKER_ERROR = "stacker-error"; 119 public static final String BLOCKED_REASON__STAPLER_ERROR = "stapler-error"; 120 public static final String BLOCKED_REASON__STITCHER_ERROR = "stitcher-error"; 121 public static final String BLOCKED_REASON__SUBUNIT_ERROR = "subunit-error"; 122 public static final String BLOCKED_REASON__TRIMMER_ERROR = "trimmer-error"; 123 public static final String BLOCKED_REASON__WRAPPER_ERROR = "wrapper-error"; 124 public static final String BLOCKED_REASON__CLIENT_ERROR = "client-error"; 125 public static final String BLOCKED_REASON__SERVER_ERROR = "server-error"; 126 public static final String BLOCKED_REASON__WAITING = "waiting"; 127 public static final String BLOCKED_REASON__WAITING_FOR_PIN = "waiting-for-pin"; 128 public static final String BLOCKED_REASON__WAITING_FOR_FINISHINGS_CONFIRMATION = 129 "waiting-for-finishings-confirmation"; 130 public static final String BLOCKED_REASON__WAITING_FOR_TWO_SIDED_CONFIRMATION = 131 "waiting-for-two-sided-confirmation"; 132 public static final String BLOCKED_REASON__WAITING_FOR_AUTHENTICATION_CONFIRMATION = 133 "waiting-for-authentication-confirmation"; 134 public static final String BLOCKED_REASON__WAITING_FOR_ACCOUNTING_CONFIRMATION = 135 "waiting-for-accounting-confirmation"; 136 public static final String BLOCKED_REASON__WAITING_FOR_PRINT_POLICY_CONFIRMATION = 137 "waiting-for-print-policy-confirmation"; 138 public static final String BLOCKED_REASON__BAD_CERTIFICATE = "bad-certificate"; 139 public static final String BLOCKED_REASON__UNKNOWN = "unknown"; 140 141 public static final String JOB_FAIL_REASON__ABORTED_BY_SYSTEM = 142 "failed-aborted-by-system"; 143 public static final String JOB_FAIL_REASON__UNSUPPORTED_COMPRESSION = 144 "failed-unsupported-compression"; 145 public static final String JOB_FAIL_REASON__COMPRESSION_ERROR = "failed-compression-error"; 146 public static final String JOB_FAIL_REASON__UNSUPPORTED_DOCUMENT_FORMAT = 147 "failed-unsupported-document-format"; 148 public static final String JOB_FAIL_REASON__DOCUMENT_FORMAT_ERROR = 149 "failed-document-format-error"; 150 public static final String JOB_FAIL_REASON__SERVICE_OFFLINE = 151 "failed-service-off-line"; 152 public static final String JOB_FAIL_REASON__DOCUMENT_PASSWORD_ERROR = 153 "failed-document-password-error"; 154 public static final String JOB_FAIL_REASON__DOCUMENT_PERMISSION_ERROR = 155 "failed-document-permission-error"; 156 public static final String JOB_FAIL_REASON__DOCUMENT_SECURITY_ERROR = 157 "failed-document-security-error"; 158 public static final String JOB_FAIL_REASON__DOCUMENT_UNPRINTABLE_ERROR = 159 "failed-document-unprintable-error"; 160 public static final String JOB_FAIL_REASON__DOCUMENT_ACCESS_ERROR = 161 "failed-document-access-error"; 162 public static final String JOB_FAIL_REASON__SUBMISSION_INTERRUPTED = 163 "failed-submission-interrupted"; 164 165 public static final String EVENT_JOB_ATTEMPTED = "job_attempted"; 166 public static final String EVENT_JOB_COMPLETED = "job_completed"; 167 public static final String PARAM_JOB_ID = "job_id"; 168 public static final String PARAM_JOB_PAGES = "job_pages"; 169 public static final String PARAM_SOURCE_PATH = "source_path"; 170 public static final String PARAM_DATE_TIME = "date_time"; 171 public static final String PARAM_USER_ID = "user_id"; 172 public static final String PARAM_LOCATION = "location"; 173 public static final String PARAM_RESULT = "result"; 174 public static final String PARAM_ERROR_MESSAGES = "error_messages"; 175 public static final String PARAM_ELAPSED_TIME_ALL = "elapsed_time_all"; 176 } 177