1 /*
2  * Copyright (C) 2016 The Android Open Source Project
3  * Copyright (C) 2016 Mopria Alliance, Inc.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *      http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 
18 package com.android.bips.jni;
19 
20 public final class LocalJobParams {
21     public int borderless;
22     public int duplex;
23     public int pdf_render_resolution;
24     public String job_name = null;
25     public String job_originating_user_name = null;
26 
27     public int media_size;
28     public int media_type;
29     public int media_tray;
30 
31     public int render_flags;
32     public int num_copies;
33     public int color_space;
34 
35     public int print_resolution;
36     public int printable_width;
37     public int printable_height;
38 
39     public float job_margin_top;
40     public float job_margin_left;
41     public float job_margin_right;
42     public float job_margin_bottom;
43 
44     public float page_width;
45     public float page_height;
46     public float page_margin_top;
47     public float page_margin_left;
48     public float page_margin_right;
49     public float page_margin_bottom;
50 
51     public boolean fit_to_page;
52     public boolean auto_rotate;
53     public boolean fill_page;
54     public boolean portrait_mode;
55     public boolean landscape_mode;
56 
57     public String page_range = null;
58     public String document_category = null;
59 
60     public byte[] nativeData = null;
61 
62     public int alignment = 0;
63     public boolean document_scaling;
64 
65     @Override
toString()66     public String toString() {
67         return "LocalJobParams{" +
68                 " borderless=" + borderless +
69                 " duplex=" + duplex +
70                 " pdf_render_resolution=" + pdf_render_resolution +
71                 " job_name=" + job_name +
72                 " job_originating_user_name=" + job_originating_user_name +
73                 " media_size=" + media_size +
74                 " media_type=" + media_type +
75                 " media_tray=" + media_tray +
76                 " render_flags=" + render_flags +
77                 " num_copies=" + num_copies +
78                 " color_space=" + color_space +
79                 " print_resolution=" + print_resolution +
80                 " printable_width=" + printable_width +
81                 " printable_height=" + printable_height +
82                 " job_margin_top=" + job_margin_top +
83                 " job_margin_left=" + job_margin_left +
84                 " job_margin_right=" + job_margin_right +
85                 " job_margin_bottom=" + job_margin_bottom +
86                 " page_width=" + page_width +
87                 " page_height=" + page_height +
88                 " page_margin_top=" + page_margin_top +
89                 " page_margin_left=" + page_margin_left +
90                 " page_margin_right=" + page_margin_right +
91                 " page_margin_bottom=" + page_margin_bottom +
92                 " fit_to_page=" + fit_to_page +
93                 " auto_rotate=" + auto_rotate +
94                 " fill_page=" + fill_page +
95                 " portrait_mode=" + portrait_mode +
96                 " landscape_mode=" + landscape_mode +
97                 " page_range=" + page_range +
98                 " document_category=" + document_category +
99                 " nativeData=" + !(nativeData == null) +
100                 " alignment=" + alignment +
101                 " document_scaling=" + document_scaling +
102                 "}";
103     }
104 }