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 public float source_width; 66 public float source_height; 67 68 public boolean shared_photo; 69 public boolean preserve_scaling; 70 71 @Override toString()72 public String toString() { 73 return "LocalJobParams{" 74 + " borderless=" + borderless 75 + " duplex=" + duplex 76 + " pdf_render_resolution=" + pdf_render_resolution 77 + " job_name=" + job_name 78 + " job_originating_user_name=" + job_originating_user_name 79 + " media_size=" + media_size 80 + " media_type=" + media_type 81 + " media_tray=" + media_tray 82 + " render_flags=" + render_flags 83 + " num_copies=" + num_copies 84 + " color_space=" + color_space 85 + " print_resolution=" + print_resolution 86 + " printable_width=" + printable_width 87 + " printable_height=" + printable_height 88 + " job_margin_top=" + job_margin_top 89 + " job_margin_left=" + job_margin_left 90 + " job_margin_right=" + job_margin_right 91 + " job_margin_bottom=" + job_margin_bottom 92 + " page_width=" + page_width 93 + " page_height=" + page_height 94 + " page_margin_top=" + page_margin_top 95 + " page_margin_left=" + page_margin_left 96 + " page_margin_right=" + page_margin_right 97 + " page_margin_bottom=" + page_margin_bottom 98 + " fit_to_page=" + fit_to_page 99 + " auto_rotate=" + auto_rotate 100 + " fill_page=" + fill_page 101 + " portrait_mode=" + portrait_mode 102 + " landscape_mode=" + landscape_mode 103 + " page_range=" + page_range 104 + " document_category=" + document_category 105 + " nativeData=" + !(nativeData == null) 106 + " alignment=" + alignment 107 + " document_scaling=" + document_scaling 108 + " source_width=" + source_width 109 + " source_height=" + source_height 110 + " shared_photo=" + shared_photo 111 + " preserve_scaling=" + preserve_scaling 112 + "}"; 113 } 114 } 115