Home
last modified time | relevance | path

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

/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DNotificationController.java96 PrintJobInfo printJob = printJobs.get(i); in onUpdateNotifications() local
97 if (shouldNotifyForState(printJob.getState())) { in onUpdateNotifications()
98 notifyPrintJobs.add(printJob); in onUpdateNotifications()
117 PrintJobInfo printJob = printJobs.get(i); in updateNotifications() local
118 PrintJobId printJobId = printJob.getId(); in updateNotifications()
123 createSimpleNotification(printJob); in updateNotifications()
136 private void createSimpleNotification(PrintJobInfo printJob) { in createSimpleNotification() argument
137 switch (printJob.getState()) { in createSimpleNotification()
139 createFailedNotification(printJob); in createSimpleNotification()
143 if (!printJob.isCancelling()) { in createSimpleNotification()
[all …]
DPrintSpoolerService.java237 private void sendOnPrintJobQueued(PrintJobInfo printJob) { in sendOnPrintJobQueued() argument
239 PrintSpoolerService::onPrintJobQueued, this, printJob); in sendOnPrintJobQueued()
256 private void onPrintJobStateChanged(PrintJobInfo printJob) { in onPrintJobStateChanged() argument
259 mClient.onPrintJobStateChanged(printJob); in onPrintJobStateChanged()
287 private void onPrintJobQueued(PrintJobInfo printJob) { in onPrintJobQueued() argument
290 mClient.onPrintJobQueued(printJob); in onPrintJobQueued()
315 PrintJobInfo printJob = mPrintJobs.get(i); in getPrintJobInfos() local
316 PrinterId printerId = printJob.getPrinterId(); in getPrintJobInfos()
321 || printJob.getAppId() == appId; in getPrintJobInfos()
322 final boolean sameState = (state == printJob.getState()) in getPrintJobInfos()
[all …]
/frameworks/base/services/print/java/com/android/server/print/
DUserState.java188 public void onPrintJobQueued(PrintJobInfo printJob) { in onPrintJobQueued() argument
192 ComponentName printServiceName = printJob.getPrinterId().getServiceName(); in onPrintJobQueued()
196 service.onPrintJobQueued(printJob); in onPrintJobQueued()
200 mSpooler.setPrintJobState(printJob.getId(), PrintJobInfo.STATE_FAILED, in onPrintJobQueued()
225 final PrintJobInfo printJob = new PrintJobInfo(); in print() local
226 printJob.setId(new PrintJobId()); in print()
227 printJob.setAppId(appId); in print()
228 printJob.setLabel(printJobName); in print()
229 printJob.setAttributes(attributes); in print()
230 printJob.setState(PrintJobInfo.STATE_CREATED); in print()
[all …]
DRemotePrintSpooler.java121 public void onPrintJobQueued(PrintJobInfo printJob); in onPrintJobQueued() argument
123 public void onPrintJobStateChanged(PrintJobInfo printJob); in onPrintJobStateChanged() argument
186 public final void createPrintJob(PrintJobInfo printJob) { in createPrintJob() argument
193 getRemoteInstanceLazy().createPrintJob(printJob); in createPrintJob()
585 private void onPrintJobStateChanged(PrintJobInfo printJob) { in onPrintJobStateChanged() argument
586 mCallbacks.onPrintJobStateChanged(printJob); in onPrintJobStateChanged()
749 public void onGetPrintJobInfoResult(PrintJobInfo printJob, int sequence) { in GetPrintJobInfoCaller()
750 onRemoteMethodResult(printJob, sequence); in GetPrintJobInfoCaller()
876 public void onGetPrintJobInfoResult(PrintJobInfo printJob, int sequence) { in onGetPrintJobInfoResult() argument
920 public void onPrintJobQueued(PrintJobInfo printJob) { in onPrintJobQueued() argument
[all …]
DRemotePrintService.java210 public void onRequestCancelPrintJob(PrintJobInfo printJob) { in onRequestCancelPrintJob() argument
212 RemotePrintService::handleRequestCancelPrintJob, this, printJob)); in onRequestCancelPrintJob()
215 private void handleRequestCancelPrintJob(final PrintJobInfo printJob) { in handleRequestCancelPrintJob() argument
221 handleRequestCancelPrintJob(printJob); in handleRequestCancelPrintJob()
229 mPrintService.requestCancelPrintJob(printJob); in handleRequestCancelPrintJob()
236 public void onPrintJobQueued(PrintJobInfo printJob) { in onPrintJobQueued() argument
238 RemotePrintService::handleOnPrintJobQueued, this, printJob)); in onPrintJobQueued()
241 private void handleOnPrintJobQueued(final PrintJobInfo printJob) { in handleOnPrintJobQueued() argument
248 handleOnPrintJobQueued(printJob); in handleOnPrintJobQueued()
256 mPrintService.onPrintJobQueued(printJob); in handleOnPrintJobQueued()
/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.java379 PrintJobInfo printJob = mService.getPrintJobInfo(printJobId, mAppId, mUserId); in getPrintJob() local
380 if (printJob != null) { in getPrintJob()
381 return new PrintJob(printJob, this); in getPrintJob()
533 … PrintJobInfo printJob = result.getParcelable(EXTRA_PRINT_JOB, android.print.PrintJobInfo.class); in print() local
535 if (printJob == null || intent == null) { in print()
544 return new PrintJob(printJob, this); in print()
DIPrintSpooler.aidl43 void createPrintJob(in PrintJobInfo printJob); in createPrintJob() argument
/frameworks/base/core/java/android/printservice/
DPrintService.java320 protected abstract void onRequestCancelPrintJob(PrintJob printJob); in onRequestCancelPrintJob() argument
331 protected abstract void onPrintJobQueued(PrintJob printJob); in onPrintJobQueued() argument
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DPrintActivity.java3129 public DocumentTransformer(Context context, PrintJobInfo printJob, in DocumentTransformer() argument
3133 mPrintJob = printJob; in DocumentTransformer()
3267 private static PageRange[] computePagesToShred(PrintJobInfo printJob) { in computePagesToShred() argument
3271 PageRange[] printedPages = printJob.getPages(); in computePagesToShred()