Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/print/
DPrintSettingsFragment.java316 for (PrintJobInfo printJob : printJobs) { in onLoadFinished()
321 preference.setKey(printJob.getId().flattenToString()); in onLoadFinished()
323 switch (printJob.getState()) { in onLoadFinished()
326 if (!printJob.isCancelling()) { in onLoadFinished()
329 printJob.getLabel())); in onLoadFinished()
333 printJob.getLabel())); in onLoadFinished()
339 printJob.getLabel())); in onLoadFinished()
342 if (!printJob.isCancelling()) { in onLoadFinished()
345 printJob.getLabel())); in onLoadFinished()
349 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.java129 static boolean shouldShowToUser(PrintJobInfo printJob) { in shouldShowToUser() argument
130 switch (printJob.getState()) { in shouldShowToUser()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/print/
DPrintSettingsFragment.java316 for (PrintJobInfo printJob : printJobs) { in onLoadFinished()
321 preference.setKey(printJob.getId().flattenToString()); in onLoadFinished()
323 switch (printJob.getState()) { in onLoadFinished()
326 if (!printJob.isCancelling()) { in onLoadFinished()
329 printJob.getLabel())); in onLoadFinished()
333 printJob.getLabel())); in onLoadFinished()
339 printJob.getLabel())); in onLoadFinished()
342 if (!printJob.isCancelling()) { in onLoadFinished()
345 printJob.getLabel())); in onLoadFinished()
349 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.java129 static boolean shouldShowToUser(PrintJobInfo printJob) { in shouldShowToUser() argument
130 switch (printJob.getState()) { in shouldShowToUser()
/packages/services/BuiltInPrintService/src/com/android/bips/ipp/
DStartJobTask.java81 StartJobTask(Context context, Backend backend, Uri destination, PrintJob printJob, in StartJobTask() argument
88 mJobId = printJob.getId().toString(); in StartJobTask()
89 mJobInfo = printJob.getInfo(); in StartJobTask()
90 mDocInfo = printJob.getDocument().getInfo(); in StartJobTask()
91 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/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.java164 protected void onPrintJobQueued(PrintJob printJob) { in onPrintJobQueued() argument
166 mJobQueue.print(new LocalPrintJob(this, mBackend, printJob)); in onPrintJobQueued()
170 protected void onRequestCancelPrintJob(PrintJob printJob) { in onRequestCancelPrintJob() argument
172 mJobQueue.cancel(printJob.getId()); in onRequestCancelPrintJob()
DLocalPrintJob.java76 LocalPrintJob(BuiltInPrintService printService, Backend backend, PrintJob printJob) { in LocalPrintJob() argument
79 mPrintJob = printJob; in LocalPrintJob()