Home
last modified time | relevance | path

Searched refs:printJob (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DNotificationController.java88 PrintJobInfo printJob = printJobs.get(i); in onUpdateNotifications() local
89 if (shouldNotifyForState(printJob.getState())) { in onUpdateNotifications()
90 notifyPrintJobs.add(printJob); in onUpdateNotifications()
116 PrintJobInfo printJob = printJobs.get(i); in updateNotifications() local
117 PrintJobId printJobId = printJob.getId(); in updateNotifications()
122 createSimpleNotification(printJob); in updateNotifications()
135 private void createSimpleNotification(PrintJobInfo printJob) { in createSimpleNotification() argument
136 switch (printJob.getState()) { in createSimpleNotification()
138 createFailedNotification(printJob); in createSimpleNotification()
142 if (!printJob.isCancelling()) { in createSimpleNotification()
[all …]
DPrintSpoolerService.java162 PrintJobInfo printJob = mPrintJobs.get(i); in dump() local
163 pw.append(prefix).append(tab).append(printJob.toString()); in dump()
189 private void sendOnPrintJobQueued(PrintJobInfo printJob) { in sendOnPrintJobQueued() argument
191 HandlerCallerCallback.MSG_ON_PRINT_JOB_QUEUED, printJob); in sendOnPrintJobQueued()
231 PrintJobInfo printJob = (PrintJobInfo) message.obj; in executeMessage() local
234 mClient.onPrintJobQueued(printJob); in executeMessage()
269 PrintJobInfo printJob = (PrintJobInfo) message.obj; in executeMessage() local
271 mClient.onPrintJobStateChanged(printJob); in executeMessage()
287 PrintJobInfo printJob = mPrintJobs.get(i); in getPrintJobInfos() local
288 PrinterId printerId = printJob.getPrinterId(); in getPrintJobInfos()
[all …]
/frameworks/base/core/tests/coretests/src/android/print/mockservice/
DStubbablePrintService.java36 public void onRequestCancelPrintJob(PrintJob printJob) { in onRequestCancelPrintJob() argument
39 callbacks.onRequestCancelPrintJob(printJob); in onRequestCancelPrintJob()
44 public void onPrintJobQueued(PrintJob printJob) { in onPrintJobQueued() argument
47 callbacks.onPrintJobQueued(printJob); in onPrintJobQueued()
DPrintServiceCallbacks.java36 public abstract void onRequestCancelPrintJob(PrintJob printJob); in onRequestCancelPrintJob() argument
38 public abstract void onPrintJobQueued(PrintJob printJob); in onPrintJobQueued() argument
/frameworks/base/services/print/java/com/android/server/print/
DUserState.java170 public void onPrintJobQueued(PrintJobInfo printJob) { in onPrintJobQueued() argument
174 ComponentName printServiceName = printJob.getPrinterId().getServiceName(); in onPrintJobQueued()
178 service.onPrintJobQueued(printJob); in onPrintJobQueued()
182 mSpooler.setPrintJobState(printJob.getId(), PrintJobInfo.STATE_FAILED, in onPrintJobQueued()
207 final PrintJobInfo printJob = new PrintJobInfo(); in print() local
208 printJob.setId(new PrintJobId()); in print()
209 printJob.setAppId(appId); in print()
210 printJob.setLabel(printJobName); in print()
211 printJob.setAttributes(attributes); in print()
212 printJob.setState(PrintJobInfo.STATE_CREATED); in print()
[all …]
DRemotePrintService.java202 public void onRequestCancelPrintJob(PrintJobInfo printJob) { in onRequestCancelPrintJob() argument
204 printJob).sendToTarget(); in onRequestCancelPrintJob()
207 private void handleRequestCancelPrintJob(final PrintJobInfo printJob) { in handleRequestCancelPrintJob() argument
214 handleRequestCancelPrintJob(printJob); in handleRequestCancelPrintJob()
222 mPrintService.requestCancelPrintJob(printJob); in handleRequestCancelPrintJob()
229 public void onPrintJobQueued(PrintJobInfo printJob) { in onPrintJobQueued() argument
231 printJob).sendToTarget(); in onPrintJobQueued()
234 private void handleOnPrintJobQueued(final PrintJobInfo printJob) { in handleOnPrintJobQueued() argument
242 handleOnPrintJobQueued(printJob); in handleOnPrintJobQueued()
250 mPrintService.onPrintJobQueued(printJob); in handleOnPrintJobQueued()
[all …]
DRemotePrintSpooler.java110 public void onPrintJobQueued(PrintJobInfo printJob); in onPrintJobQueued() argument
112 public void onPrintJobStateChanged(PrintJobInfo printJob); in onPrintJobStateChanged() argument
177 public final void createPrintJob(PrintJobInfo printJob) { in createPrintJob() argument
184 getRemoteInstanceLazy().createPrintJob(printJob); in createPrintJob()
590 private void onPrintJobStateChanged(PrintJobInfo printJob) { in onPrintJobStateChanged() argument
591 mCallbacks.onPrintJobStateChanged(printJob); in onPrintJobStateChanged()
744 public void onGetPrintJobInfoResult(PrintJobInfo printJob, int sequence) { in GetPrintJobInfoCaller()
745 onRemoteMethodResult(printJob, sequence); in GetPrintJobInfoCaller()
871 public void onGetPrintJobInfoResult(PrintJobInfo printJob, int sequence) { in onGetPrintJobInfoResult() argument
915 public void onPrintJobQueued(PrintJobInfo printJob) { in onPrintJobQueued() argument
[all …]
/frameworks/base/core/java/android/print/
DIPrintSpoolerClient.aidl29 void onPrintJobQueued(in PrintJobInfo printJob); in onPrintJobQueued() argument
32 void onPrintJobStateChanged(in PrintJobInfo printJob); in onPrintJobStateChanged() argument
DIPrintSpoolerCallbacks.aidl32 void onGetPrintJobInfosResult(in List<PrintJobInfo> printJob, int sequence); in onGetPrintJobInfosResult() argument
36 void onGetPrintJobInfoResult(in PrintJobInfo printJob, int sequence); in onGetPrintJobInfoResult() argument
DPrintManager.java385 PrintJobInfo printJob = mService.getPrintJobInfo(printJobId, mAppId, mUserId); in getPrintJob() local
386 if (printJob != null) { in getPrintJob()
387 return new PrintJob(printJob, this); in getPrintJob()
539 PrintJobInfo printJob = result.getParcelable(EXTRA_PRINT_JOB); in print() local
541 if (printJob == null || intent == null) { in print()
546 return new PrintJob(printJob, this); in print()
DIPrintSpooler.aidl43 void createPrintJob(in PrintJobInfo printJob); in createPrintJob() argument
/frameworks/base/core/java/android/printservice/
DPrintService.java297 protected abstract void onRequestCancelPrintJob(PrintJob printJob); in onRequestCancelPrintJob() argument
308 protected abstract void onPrintJobQueued(PrintJob printJob); in onPrintJobQueued() argument
/frameworks/base/docs/html/training/printing/
Dhtml-docs.jd162 PrintJob printJob = printManager.print(jobName, printAdapter,
166 mPrintJobs.add(printJob);
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DPrintActivity.java2960 public DocumentTransformer(Context context, PrintJobInfo printJob, in DocumentTransformer() argument
2964 mPrintJob = printJob; in DocumentTransformer()
3082 private static PageRange[] computePagesToShred(PrintJobInfo printJob) { in computePagesToShred() argument
3086 PageRange[] printedPages = printJob.getPages(); in computePagesToShred()