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 */
18package com.android.bips.jni;
19
20import android.view.Gravity;
21
22public 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
58    public static final String BLOCKED_REASON__OFFLINE = "device-offline";
59    public static final String BLOCKED_REASON__BUSY = "device-busy";
60    public static final String BLOCKED_REASON__CANCELLED = "print-job-cancelled";
61    public static final String BLOCKED_REASON__OUT_OF_PAPER = "input-media-supply-empty";
62    public static final String BLOCKED_REASON__OUT_OF_INK = "marker-ink-empty";
63    public static final String BLOCKED_REASON__OUT_OF_TONER = "marker-toner-empty";
64    public static final String BLOCKED_REASON__JAMMED = "jam";
65    public static final String BLOCKED_REASON__DOOR_OPEN = "cover-open";
66    public static final String BLOCKED_REASON__SERVICE_REQUEST = "service-request";
67    public static final String BLOCKED_REASON__LOW_ON_INK = "marker-ink-almost-empty";
68    public static final String BLOCKED_REASON__LOW_ON_TONER = "marker-toner-almost-empty";
69    public static final String BLOCKED_REASON__REALLY_LOW_ON_INK = "marker-ink-really-low";
70    public static final String BLOCKED_REASON__UNKNOWN = "unknown";
71}