/frameworks/base/core/java/android/print/ |
D | IPrintSpooler.aidl | 39 void getPrintJobInfo(in PrintJobId printJobId, IPrintSpoolerCallbacks callback, in getPrintJobInfo() argument 42 void setPrintJobState(in PrintJobId printJobId, int status, String stateReason, in setPrintJobState() argument 44 void setPrintJobTag(in PrintJobId printJobId, String tag, IPrintSpoolerCallbacks callback, in setPrintJobTag() argument 46 void writePrintJobData(in ParcelFileDescriptor fd, in PrintJobId printJobId); in writePrintJobData() argument 48 void setPrintJobCancelling(in PrintJobId printJobId, boolean cancelling); in setPrintJobCancelling() argument
|
D | PrintManager.java | 173 public void onPrintJobStateChanged(PrintJobId printJobId); in onPrintJobStateChanged() argument 198 PrintJobId printJobId = (PrintJobId) args.arg2; in PrintManager() 199 listener.onPrintJobStateChanged(printJobId); in PrintManager() 220 PrintJobInfo getPrintJobInfo(PrintJobId printJobId) { in getPrintJobInfo() argument 222 return mService.getPrintJobInfo(printJobId, mAppId, mUserId); in getPrintJobInfo() 224 Log.e(LOG_TAG, "Error getting a print job info:" + printJobId, re); in getPrintJobInfo() 283 public PrintJob getPrintJob(PrintJobId printJobId) { in getPrintJob() argument 285 PrintJobInfo printJob = mService.getPrintJobInfo(printJobId, mAppId, mUserId); in getPrintJob() 319 void cancelPrintJob(PrintJobId printJobId) { in cancelPrintJob() argument 321 mService.cancelPrintJob(printJobId, mAppId, mUserId); in cancelPrintJob() [all …]
|
D | IPrintManager.aidl | 36 PrintJobInfo getPrintJobInfo(in PrintJobId printJobId, int appId, int userId); in getPrintJobInfo() argument 39 void cancelPrintJob(in PrintJobId printJobId, int appId, int userId); in cancelPrintJob() argument 40 void restartPrintJob(in PrintJobId printJobId, int appId, int userId); in restartPrintJob() argument
|
D | IPrintJobStateChangeListener.aidl | 27 void onPrintJobStateChanged(in PrintJobId printJobId); in onPrintJobStateChanged() argument
|
/frameworks/base/core/java/android/printservice/ |
D | IPrintServiceClient.aidl | 33 PrintJobInfo getPrintJobInfo(in PrintJobId printJobId); in getPrintJobInfo() argument 34 boolean setPrintJobState(in PrintJobId printJobId, int state, String error); in setPrintJobState() argument 35 boolean setPrintJobTag(in PrintJobId printJobId, String tag); in setPrintJobTag() argument 36 oneway void writePrintJobData(in ParcelFileDescriptor fd, in PrintJobId printJobId); in writePrintJobData() argument
|
D | PrintDocument.java | 45 PrintDocument(PrintJobId printJobId, IPrintServiceClient printServiceClient, in PrintDocument() argument 47 mPrintJobId = printJobId; in PrintDocument()
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ |
D | NotificationController.java | 240 private PendingIntent createContentIntent(PrintJobId printJobId) { in createContentIntent() argument 242 if (printJobId != null) { in createContentIntent() 243 intent.putExtra(EXTRA_PRINT_JOB_ID, printJobId.flattenToString()); in createContentIntent() 244 intent.setData(Uri.fromParts("printjob", printJobId.flattenToString(), null)); in createContentIntent() 258 private PendingIntent createRestartIntent(PrintJobId printJobId) { in createRestartIntent() argument 260 intent.setAction(INTENT_ACTION_RESTART_PRINTJOB + "_" + printJobId.flattenToString()); in createRestartIntent() 261 intent.putExtra(EXTRA_PRINT_JOB_ID, printJobId); in createRestartIntent() 302 PrintJobId printJobId = intent.getExtras().getParcelable(EXTRA_PRINT_JOB_ID); in onReceive() local 305 handleCancelPrintJob(context, printJobId, printJobLabel, printerName); in onReceive() 307 PrintJobId printJobId = intent.getExtras().getParcelable(EXTRA_PRINT_JOB_ID); in onReceive() local [all …]
|
D | PrintSpoolerService.java | 292 public PrintJobInfo getPrintJobInfo(PrintJobId printJobId, int appId) { in getPrintJobInfo() argument 297 if (printJob.getId().equals(printJobId) in getPrintJobInfo() 338 PrintJobId printJobId = PrintJobId.unflattenFromString( in handleReadPrintJobsLocked() local 340 fileForJobMap.put(printJobId, file); in handleReadPrintJobsLocked() 391 public void writePrintJobData(final ParcelFileDescriptor fd, final PrintJobId printJobId) { in writePrintJobData() argument 394 printJob = getPrintJobInfo(printJobId, PrintManager.APP_ID_ANY); in writePrintJobData() 403 File file = generateFileForPrintJob(printJobId); in writePrintJobData() 430 public File generateFileForPrintJob(PrintJobId printJobId) { in generateFileForPrintJob() argument 432 + printJobId.flattenToString() + "." + PRINT_FILE_EXTENSION); in generateFileForPrintJob() 463 private void removePrintJobFileLocked(PrintJobId printJobId) { in removePrintJobFileLocked() argument [all …]
|
/frameworks/base/services/java/com/android/server/print/ |
D | RemotePrintSpooler.java | 154 public final void writePrintJobData(ParcelFileDescriptor fd, PrintJobId printJobId) { in writePrintJobData() argument 161 getRemoteInstanceLazy().writePrintJobData(fd, printJobId); in writePrintJobData() 180 public final PrintJobInfo getPrintJobInfo(PrintJobId printJobId, int appId) { in getPrintJobInfo() argument 188 printJobId, appId); in getPrintJobInfo() 205 public final boolean setPrintJobState(PrintJobId printJobId, int state, String error) { in setPrintJobState() argument 213 printJobId, state, error); in setPrintJobState() 230 public final boolean setPrintJobTag(PrintJobId printJobId, String tag) { in setPrintJobTag() argument 238 printJobId, tag); in setPrintJobTag() 255 public final void setPrintJobCancelling(PrintJobId printJobId, boolean cancelling) { in setPrintJobCancelling() argument 262 getRemoteInstanceLazy().setPrintJobCancelling(printJobId, in setPrintJobCancelling() [all …]
|
D | RemotePrintService.java | 694 public PrintJobInfo getPrintJobInfo(PrintJobId printJobId) { in getPrintJobInfo() argument 699 return service.mSpooler.getPrintJobInfo(printJobId, in getPrintJobInfo() 709 public boolean setPrintJobState(PrintJobId printJobId, int state, String error) { in setPrintJobState() argument 714 return service.mSpooler.setPrintJobState(printJobId, state, error); in setPrintJobState() 723 public boolean setPrintJobTag(PrintJobId printJobId, String tag) { in setPrintJobTag() argument 728 return service.mSpooler.setPrintJobTag(printJobId, tag); in setPrintJobTag() 737 public void writePrintJobData(ParcelFileDescriptor fd, PrintJobId printJobId) { in writePrintJobData() argument 742 service.mSpooler.writePrintJobData(fd, printJobId); in writePrintJobData()
|
D | UserState.java | 258 public PrintJobInfo getPrintJobInfo(PrintJobId printJobId, int appId) { in getPrintJobInfo() argument 259 PrintJobInfo printJob = mPrintJobForAppCache.getPrintJob(printJobId, appId); in getPrintJobInfo() 261 printJob = mSpooler.getPrintJobInfo(printJobId, appId); in getPrintJobInfo() 272 public void cancelPrintJob(PrintJobId printJobId, int appId) { in cancelPrintJob() argument 273 PrintJobInfo printJobInfo = mSpooler.getPrintJobInfo(printJobId, appId); in cancelPrintJob() 279 mSpooler.setPrintJobCancelling(printJobId, true); in cancelPrintJob() 294 mSpooler.setPrintJobState(printJobId, PrintJobInfo.STATE_CANCELED, null); in cancelPrintJob() 298 public void restartPrintJob(PrintJobId printJobId, int appId) { in restartPrintJob() argument 299 PrintJobInfo printJobInfo = getPrintJobInfo(printJobId, appId); in restartPrintJob() 303 mSpooler.setPrintJobState(printJobId, PrintJobInfo.STATE_QUEUED, null); in restartPrintJob() [all …]
|
D | PrintManagerService.java | 135 public PrintJobInfo getPrintJobInfo(PrintJobId printJobId, int appId, int userId) { in getPrintJobInfo() argument 144 return userState.getPrintJobInfo(printJobId, resolvedAppId); in getPrintJobInfo() 151 public void cancelPrintJob(PrintJobId printJobId, int appId, int userId) { in cancelPrintJob() argument 160 userState.cancelPrintJob(printJobId, resolvedAppId); in cancelPrintJob() 167 public void restartPrintJob(PrintJobId printJobId, int appId, int userId) { in restartPrintJob() argument 176 userState.restartPrintJob(printJobId, resolvedAppId); in restartPrintJob()
|