Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/print/
DPrintSettingsFragment.java315 for (PrintJobInfo printJob : printJobs) { in onLoadFinished()
320 preference.setKey(printJob.getId().flattenToString()); in onLoadFinished()
322 switch (printJob.getState()) { in onLoadFinished()
325 if (!printJob.isCancelling()) { in onLoadFinished()
328 printJob.getLabel())); in onLoadFinished()
332 printJob.getLabel())); in onLoadFinished()
338 printJob.getLabel())); in onLoadFinished()
341 if (!printJob.isCancelling()) { in onLoadFinished()
344 printJob.getLabel())); in onLoadFinished()
348 printJob.getLabel())); in onLoadFinished()
[all …]
DPrintJobSettingsFragment.java72 final PrintJob printJob = use(PrintJobPreferenceController.class).getPrintJob(); in onCreateOptionsMenu() local
73 if (printJob == null) { in onCreateOptionsMenu()
77 if (!printJob.getInfo().isCancelling()) { in onCreateOptionsMenu()
83 if (printJob.isFailed()) { in onCreateOptionsMenu()
92 final PrintJob printJob = use(PrintJobPreferenceController.class).getPrintJob(); in onOptionsItemSelected() local
94 if (printJob != null) { in onOptionsItemSelected()
97 printJob.cancel(); in onOptionsItemSelected()
103 printJob.restart(); in onOptionsItemSelected()
DPrintJobPreferenceController.java36 final PrintJob printJob = getPrintJob(); in updateUi() local
38 if (printJob == null) { in updateUi()
43 if (printJob.isCancelled() || printJob.isCompleted()) { in updateUi()
48 PrintJobInfo info = printJob.getInfo(); in updateUi()
58 if (!printJob.getInfo().isCancelling()) { in updateUi()
75 if (!printJob.getInfo().isCancelling()) { in updateUi()
DPrintJobMessagePreferenceController.java30 final PrintJob printJob = getPrintJob(); in updateUi() local
32 if (printJob == null) { in updateUi()
37 if (printJob.isCancelled() || printJob.isCompleted()) { in updateUi()
42 final PrintJobInfo info = printJob.getInfo(); in updateUi()
DPrintSettingPreferenceController.java134 static boolean shouldShowToUser(PrintJobInfo printJob) { in shouldShowToUser() argument
135 switch (printJob.getState()) { in shouldShowToUser()
/packages/services/BuiltInPrintService/src/com/android/bips/ipp/
DStartJobTask.java83 StartJobTask(Context context, Backend backend, Uri destination, PrintJob printJob, in StartJobTask() argument
90 mJobId = printJob.getId().toString(); in StartJobTask()
91 mJobInfo = printJob.getInfo(); in StartJobTask()
92 mDocInfo = printJob.getDocument().getInfo(); in StartJobTask()
93 mSourceFileDescriptor = printJob.getDocument().getData(); in StartJobTask()
DBackend.java110 public void print(Uri uri, PrintJob printJob, LocalPrinterCapabilities capabilities, in print() argument
117 mStartTask = new StartJobTask(mContext, this, uri, printJob, capabilities) { in print()
/packages/apps/Settings/tests/legacy_unit/src/com/android/settings/print/
DPrintJobSettingsActivityTest.java123 PrintJob printJob = pm.print(uuid.toString(), adapter, null); in viewPrintJobSettings() local
132 intent.putExtra(EXTRA_PRINT_JOB_ID, printJob.getId().flattenToString()); in viewPrintJobSettings()
133 intent.setData(Uri.fromParts("printjob", printJob.getId().flattenToString(), null)); in viewPrintJobSettings()
/packages/services/BuiltInPrintService/src/com/android/bips/
DBuiltInPrintService.java166 protected void onPrintJobQueued(PrintJob printJob) { in onPrintJobQueued() argument
168 mJobQueue.print(new LocalPrintJob(this, mBackend, printJob)); in onPrintJobQueued()
172 protected void onRequestCancelPrintJob(PrintJob printJob) { in onRequestCancelPrintJob() argument
174 mJobQueue.cancel(printJob.getId()); in onRequestCancelPrintJob()
DLocalPrintJob.java76 LocalPrintJob(BuiltInPrintService printService, Backend backend, PrintJob printJob) { in LocalPrintJob() argument
79 mPrintJob = printJob; in LocalPrintJob()