/frameworks/base/core/java/android/printservice/ |
D | IPrintServiceClient.aidl | 34 PrintJobInfo getPrintJobInfo(in PrintJobId printJobId); in getPrintJobInfo() argument 35 boolean setPrintJobState(in PrintJobId printJobId, int state, String error); in setPrintJobState() argument 36 boolean setPrintJobTag(in PrintJobId printJobId, String tag); in setPrintJobTag() argument 37 oneway void writePrintJobData(in ParcelFileDescriptor fd, in PrintJobId printJobId); in writePrintJobData() argument 45 void setProgress(in PrintJobId printJobId, in float progress); in setProgress() argument 53 void setStatus(in PrintJobId printJobId, in CharSequence status); in setStatus() argument 62 void setStatusRes(in PrintJobId printJobId, int status, in CharSequence appPackageName); in setStatusRes() argument
|
D | PrintDocument.java | 47 PrintDocument(PrintJobId printJobId, IPrintServiceClient printServiceClient, in PrintDocument() argument 49 mPrintJobId = printJobId; in PrintDocument()
|
/frameworks/base/core/java/android/print/ |
D | IPrintSpooler.aidl | 41 void getPrintJobInfo(in PrintJobId printJobId, IPrintSpoolerCallbacks callback, in getPrintJobInfo() argument 44 void setPrintJobState(in PrintJobId printJobId, int status, String stateReason, in setPrintJobState() argument 53 void setProgress(in PrintJobId printJobId, in float progress); in setProgress() argument 61 void setStatus(in PrintJobId printJobId, in CharSequence status); in setStatus() argument 70 void setStatusRes(in PrintJobId printJobId, int status, in CharSequence appPackageName); in setStatusRes() argument 105 void setPrintJobTag(in PrintJobId printJobId, String tag, IPrintSpoolerCallbacks callback, in setPrintJobTag() argument 107 void writePrintJobData(in ParcelFileDescriptor fd, in PrintJobId printJobId); in writePrintJobData() argument 109 void setPrintJobCancelling(in PrintJobId printJobId, boolean cancelling); in setPrintJobCancelling() argument
|
D | PrintJob.java | 203 PrintJobId printJobId = mCachedInfo.getId(); in hashCode() local 205 if (printJobId == null) { in hashCode() 208 return printJobId.hashCode(); in hashCode()
|
D | IPrintManager.aidl | 41 PrintJobInfo getPrintJobInfo(in PrintJobId printJobId, int appId, int userId); in getPrintJobInfo() argument 44 void cancelPrintJob(in PrintJobId printJobId, int appId, int userId); in cancelPrintJob() argument 45 void restartPrintJob(in PrintJobId printJobId, int appId, int userId); in restartPrintJob() argument
|
D | PrintManager.java | 220 public void onPrintJobStateChanged(PrintJobId printJobId); in onPrintJobStateChanged() argument 275 PrintJobId printJobId = (PrintJobId) args.arg2; in PrintManager() 276 listener.onPrintJobStateChanged(printJobId); in PrintManager() 301 PrintJobInfo getPrintJobInfo(PrintJobId printJobId) { in getPrintJobInfo() argument 303 return mService.getPrintJobInfo(printJobId, mAppId, mUserId); in getPrintJobInfo() 372 public PrintJob getPrintJob(PrintJobId printJobId) { in getPrintJob() argument 378 PrintJobInfo printJob = mService.getPrintJobInfo(printJobId, mAppId, mUserId); in getPrintJob() 437 void cancelPrintJob(PrintJobId printJobId) { in cancelPrintJob() argument 443 mService.cancelPrintJob(printJobId, mAppId, mUserId); in cancelPrintJob() 449 void restartPrintJob(PrintJobId printJobId) { in restartPrintJob() argument [all …]
|
D | IPrintJobStateChangeListener.aidl | 27 void onPrintJobStateChanged(in PrintJobId printJobId); in onPrintJobStateChanged() argument
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/ |
D | NotificationController.java | 118 PrintJobId printJobId = printJob.getId(); in updateNotifications() local 120 removedPrintJobs.remove(printJobId); in updateNotifications() 121 mNotifications.add(printJobId); in updateNotifications() 273 private PendingIntent createContentIntent(PrintJobId printJobId) { in createContentIntent() argument 275 if (printJobId != null) { in createContentIntent() 276 intent.putExtra(EXTRA_PRINT_JOB_ID, printJobId.flattenToString()); in createContentIntent() 277 intent.setData(Uri.fromParts("printjob", printJobId.flattenToString(), null)); in createContentIntent() 289 private PendingIntent createRestartIntent(PrintJobId printJobId) { in createRestartIntent() argument 291 intent.setAction(INTENT_ACTION_RESTART_PRINTJOB + "_" + printJobId.flattenToString()); in createRestartIntent() 292 intent.putExtra(EXTRA_PRINT_JOB_ID, printJobId); in createRestartIntent() [all …]
|
D | PrintSpoolerService.java | 347 public PrintJobInfo getPrintJobInfo(PrintJobId printJobId, int appId) { in getPrintJobInfo() argument 352 if (printJob.getId().equals(printJobId) in getPrintJobInfo() 392 PrintJobId printJobId = PrintJobId.unflattenFromString( in handleReadPrintJobsLocked() local 394 fileForJobMap.put(printJobId, file); in handleReadPrintJobsLocked() 445 public void writePrintJobData(final ParcelFileDescriptor fd, final PrintJobId printJobId) { in writePrintJobData() argument 448 printJob = getPrintJobInfo(printJobId, PrintManager.APP_ID_ANY); in writePrintJobData() 457 File file = generateFileForPrintJob(PrintSpoolerService.this, printJobId); in writePrintJobData() 484 public static File generateFileForPrintJob(Context context, PrintJobId printJobId) { in generateFileForPrintJob() argument 486 + printJobId.flattenToString() + "." + PRINT_FILE_EXTENSION); in generateFileForPrintJob() 525 private void removePrintJobFileLocked(PrintJobId printJobId) { in removePrintJobFileLocked() argument [all …]
|
/frameworks/base/services/print/java/com/android/server/print/ |
D | RemotePrintSpooler.java | 207 public final void writePrintJobData(ParcelFileDescriptor fd, PrintJobId printJobId) { in writePrintJobData() argument 214 getRemoteInstanceLazy().writePrintJobData(fd, printJobId); in writePrintJobData() 231 public final PrintJobInfo getPrintJobInfo(PrintJobId printJobId, int appId) { in getPrintJobInfo() argument 239 printJobId, appId); in getPrintJobInfo() 254 public final boolean setPrintJobState(PrintJobId printJobId, int state, String error) { in setPrintJobState() argument 262 printJobId, state, error); in setPrintJobState() 283 public final void setProgress(@NonNull PrintJobId printJobId, in setProgress() argument 291 getRemoteInstanceLazy().setProgress(printJobId, progress); in setProgress() 311 public final void setStatus(@NonNull PrintJobId printJobId, @Nullable CharSequence status) { in setStatus() argument 318 getRemoteInstanceLazy().setStatus(printJobId, status); in setStatus() [all …]
|
D | RemotePrintService.java | 701 public PrintJobInfo getPrintJobInfo(PrintJobId printJobId) { in getPrintJobInfo() argument 706 return service.mSpooler.getPrintJobInfo(printJobId, in getPrintJobInfo() 716 public boolean setPrintJobState(PrintJobId printJobId, int state, String error) { in setPrintJobState() argument 721 return service.mSpooler.setPrintJobState(printJobId, state, error); in setPrintJobState() 730 public boolean setPrintJobTag(PrintJobId printJobId, String tag) { in setPrintJobTag() argument 735 return service.mSpooler.setPrintJobTag(printJobId, tag); in setPrintJobTag() 744 public void writePrintJobData(ParcelFileDescriptor fd, PrintJobId printJobId) { in writePrintJobData() argument 749 service.mSpooler.writePrintJobData(fd, printJobId); in writePrintJobData() 757 public void setProgress(@NonNull PrintJobId printJobId, in setProgress() argument 763 service.mSpooler.setProgress(printJobId, progress); in setProgress() [all …]
|
D | PrintManagerService.java | 216 public PrintJobInfo getPrintJobInfo(PrintJobId printJobId, int appId, int userId) { in getPrintJobInfo() argument 217 if (printJobId == null) { in getPrintJobInfo() 234 return userState.getPrintJobInfo(printJobId, resolvedAppId); in getPrintJobInfo() 262 public void cancelPrintJob(PrintJobId printJobId, int appId, int userId) { in cancelPrintJob() argument 263 if (printJobId == null) { in cancelPrintJob() 280 userState.cancelPrintJob(printJobId, resolvedAppId); in cancelPrintJob() 287 public void restartPrintJob(PrintJobId printJobId, int appId, int userId) { in restartPrintJob() argument 288 if (printJobId == null || !isPrintingEnabled()) { in restartPrintJob() 306 userState.restartPrintJob(printJobId, resolvedAppId); in restartPrintJob()
|
D | UserState.java | 303 public PrintJobInfo getPrintJobInfo(@NonNull PrintJobId printJobId, int appId) { in getPrintJobInfo() argument 304 PrintJobInfo printJob = mPrintJobForAppCache.getPrintJob(printJobId, appId); in getPrintJobInfo() 306 printJob = mSpooler.getPrintJobInfo(printJobId, appId); in getPrintJobInfo() 339 public void cancelPrintJob(@NonNull PrintJobId printJobId, int appId) { in cancelPrintJob() argument 340 PrintJobInfo printJobInfo = mSpooler.getPrintJobInfo(printJobId, appId); in cancelPrintJob() 346 mSpooler.setPrintJobCancelling(printJobId, true); in cancelPrintJob() 365 mSpooler.setPrintJobState(printJobId, PrintJobInfo.STATE_CANCELED, null); in cancelPrintJob() 369 public void restartPrintJob(@NonNull PrintJobId printJobId, int appId) { in restartPrintJob() argument 370 PrintJobInfo printJobInfo = getPrintJobInfo(printJobId, appId); in restartPrintJob() 374 mSpooler.setPrintJobState(printJobId, PrintJobInfo.STATE_QUEUED, null); in restartPrintJob() [all …]
|
/frameworks/base/core/java/com/android/internal/print/ |
D | DumpUtils.java | 288 PrintJobId printJobId = printJobInfo.getId(); in writePrintJobInfo() local 289 if (printJobId != null) { in writePrintJobInfo() 291 printJobId.flattenToString()); in writePrintJobInfo()
|