Lines Matching refs:printJob
113 protected void onRequestCancelPrintJob(final PrintJob printJob) { in onRequestCancelPrintJob() argument
115 mProcessedPrintJobs.put(printJob.getId(), printJob); in onRequestCancelPrintJob() local
118 intent.putExtra(INTENT_EXTRA_PRINT_JOB_ID, printJob.getId()); in onRequestCancelPrintJob()
124 public void onPrintJobQueued(final PrintJob printJob) { in onPrintJobQueued() argument
126 mProcessedPrintJobs.put(printJob.getId(), printJob); in onPrintJobQueued() local
127 if (printJob.isQueued()) { in onPrintJobQueued()
128 printJob.start(); in onPrintJobQueued()
133 intent.putExtra(INTENT_EXTRA_PRINT_JOB_ID, printJob.getId()); in onPrintJobQueued()
139 PrintJob printJob = mProcessedPrintJobs.get(printJobId); in handleRequestCancelPrintJob() local
140 if (printJob == null) { in handleRequestCancelPrintJob()
144 if (printJob.isQueued() || printJob.isStarted() || printJob.isBlocked()) { in handleRequestCancelPrintJob()
147 printJob.cancel(); in handleRequestCancelPrintJob()
158 PrintJob printJob = mProcessedPrintJobs.get(printJobId); in handleFailPrintJob() local
159 if (printJob == null) { in handleFailPrintJob()
163 if (printJob.isQueued() || printJob.isStarted()) { in handleFailPrintJob()
164 printJob.fail(getString(R.string.fail_reason)); in handleFailPrintJob()
175 final PrintJob printJob = mProcessedPrintJobs.get(printJobId); in handleBlockPrintJob() local
176 if (printJob == null) { in handleBlockPrintJob()
180 if (printJob.isStarted()) { in handleBlockPrintJob()
181 printJob.block("Gimme some rest, dude"); in handleBlockPrintJob()
194 final PrintJob printJob = mProcessedPrintJobs.get(printJobId); in handleUnblockPrintJob() local
195 if (printJob == null) { in handleUnblockPrintJob()
199 if (printJob.isBlocked()) { in handleUnblockPrintJob()
200 printJob.start(); in handleUnblockPrintJob()
205 final PrintJob printJob = mProcessedPrintJobs.get(printJobId); in handleQueuedPrintJobDelayed() local
206 if (printJob == null) { in handleQueuedPrintJobDelayed()
210 if (printJob.isQueued()) { in handleQueuedPrintJobDelayed()
211 printJob.start(); in handleQueuedPrintJobDelayed()
225 final PrintJob printJob = mProcessedPrintJobs.get(printJobId); in handlePrintJobProgress() local
226 if (printJob == null) { in handlePrintJobProgress()
230 if (printJob.isQueued()) { in handlePrintJobProgress()
231 printJob.start(); in handlePrintJobProgress()
238 printJob.setProgress((float) progress / 100); in handlePrintJobProgress()
239 printJob.setStatus("Printing progress: " + progress + "%"); in handlePrintJobProgress()
249 final PrintJob printJob = mProcessedPrintJobs.get(printJobId); in handleQueuedPrintJob() local
250 if (printJob == null) { in handleQueuedPrintJob()
254 if (printJob.isQueued()) { in handleQueuedPrintJob()
255 printJob.start(); in handleQueuedPrintJob()
304 if (printJob.isStarted()) { in handleQueuedPrintJob()
305 printJob.complete(); in handleQueuedPrintJob()
321 if (printJob.isStarted()) { in handleQueuedPrintJob()
322 printJob.cancel(); in handleQueuedPrintJob()
327 printJob.getDocument().getData()); in handleQueuedPrintJob()