Home | History | Annotate | Download | only in printservice

Lines Matching refs:PrintJobId

36 import android.print.PrintJobId;
82 private final Map<PrintJobId, PrintJob> mProcessedPrintJobs =
83 new ArrayMap<PrintJobId, PrintJob>();
143 void handleRequestCancelPrintJob(PrintJobId printJobId) {
144 PrintJob printJob = mProcessedPrintJobs.get(printJobId);
148 mProcessedPrintJobs.remove(printJobId);
156 void handleFailPrintJobDelayed(PrintJobId printJobId) {
158 MyHandler.MSG_HANDLE_FAIL_PRINT_JOB, printJobId);
162 void handleFailPrintJob(PrintJobId printJobId) {
163 PrintJob printJob = mProcessedPrintJobs.get(printJobId);
167 mProcessedPrintJobs.remove(printJobId);
173 void handleBlockPrintJobDelayed(PrintJobId printJobId) {
175 MyHandler.MSG_HANDLE_BLOCK_PRINT_JOB, printJobId);
179 void handleBlockPrintJob(PrintJobId printJobId) {
180 final PrintJob printJob = mProcessedPrintJobs.get(printJobId);
190 void handleBlockAndDelayedUnblockPrintJob(PrintJobId printJobId) {
191 handleBlockPrintJob(printJobId);
194 MyHandler.MSG_HANDLE_UNBLOCK_PRINT_JOB, printJobId);
198 void handleUnblockPrintJob(PrintJobId printJobId) {
199 final PrintJob printJob = mProcessedPrintJobs.get(printJobId);
209 void handleQueuedPrintJobDelayed(PrintJobId printJobId) {
210 final PrintJob printJob = mProcessedPrintJobs.get(printJobId);
219 MyHandler.MSG_HANDLE_DO_PRINT_JOB, printJobId);
226 * @param printJobId ID of the print job to progress
229 void handlePrintJobProgress(@NonNull PrintJobId printJobId, int progress) {
230 final PrintJob printJob = mProcessedPrintJobs.get(printJobId);
240 handleQueuedPrintJob(printJobId);
248 MyHandler.MSG_HANDLE_PRINT_JOB_PROGRESS, progress + 10, 0, printJobId);
253 void handleQueuedPrintJob(PrintJobId printJobId) {
254 final PrintJob printJob = mProcessedPrintJobs.get(printJobId);
356 PrintJobId printJobId = (PrintJobId) message.obj;
357 handleQueuedPrintJob(printJobId);
361 PrintJobId printJobId = (PrintJobId) message.obj;
362 handleFailPrintJob(printJobId);
366 PrintJobId printJobId = (PrintJobId) message.obj;
367 handleBlockPrintJob(printJobId);
371 PrintJobId printJobId = (PrintJobId) message.obj;
372 handleUnblockPrintJob(printJobId);
376 PrintJobId printJobId = (PrintJobId) message.obj;
377 handlePrintJobProgress(printJobId, message.arg1);