예제 #1
0
 @Override
 public void setPrintJobTag(
     PrintJobId printJobId, String tag, IPrintSpoolerCallbacks callback, int sequece)
     throws RemoteException {
   boolean success = false;
   try {
     success = PrintSpoolerService.this.setPrintJobTag(printJobId, tag);
   } finally {
     callback.onSetPrintJobTagResult(success, sequece);
   }
 }
예제 #2
0
 @Override
 public void getPrintJobInfo(
     PrintJobId printJobId, IPrintSpoolerCallbacks callback, int appId, int sequence)
     throws RemoteException {
   PrintJobInfo printJob = null;
   try {
     printJob = PrintSpoolerService.this.getPrintJobInfo(printJobId, appId);
   } finally {
     callback.onGetPrintJobInfoResult(printJob, sequence);
   }
 }
예제 #3
0
 @Override
 public void setPrintJobState(
     PrintJobId printJobId,
     int state,
     String error,
     IPrintSpoolerCallbacks callback,
     int sequece)
     throws RemoteException {
   boolean success = false;
   try {
     success = PrintSpoolerService.this.setPrintJobState(printJobId, state, error);
   } finally {
     callback.onSetPrintJobStateResult(success, sequece);
   }
 }
예제 #4
0
 @Override
 public void getPrintJobInfos(
     IPrintSpoolerCallbacks callback,
     ComponentName componentName,
     int state,
     int appId,
     int sequence)
     throws RemoteException {
   List<PrintJobInfo> printJobs = null;
   try {
     printJobs = PrintSpoolerService.this.getPrintJobInfos(componentName, state, appId);
   } finally {
     callback.onGetPrintJobInfosResult(printJobs, sequence);
   }
 }