Searched defs:printer (Results 1 - 9 of 9) sorted by relevance

/packages/services/BuiltInPrintService/src/com/android/bips/
H A DLocalPrintJob.java42 /** Maximum time to wait to find a printer before failing the job */
77 * Begin the process of delivering the job. Internally, discovers the target printer,
78 * obtains its capabilities, delivers the job to the printer, and waits for job completion.
130 public void onPrinterFound(DiscoveredPrinter printer) { argument
132 if (printer.getId(mPrintService).equals(mPrintJob.getInfo().getPrinterId())) {
133 if (DEBUG) Log.d(TAG, "onPrinterFound() " + printer.name + " state=" + mState);
134 mPath = printer.path;
135 mPrintService.getCapabilitiesCache().request(printer, true,
142 public void onPrinterLost(DiscoveredPrinter printer) { argument
150 private void handleCapabilities(DiscoveredPrinter printer, LocalPrinterCapabilitie argument
[all...]
H A DLocalPrinter.java35 * A session-specific printer record. Encapsulates logic for getting the latest printer
58 /** Return the address of the printer or {@code null} if not known */
66 /** Return true if this printer should be aged out */
84 // Get the most recently discovered version of this printer
85 DiscoveredPrinter printer = mPrintService.getDiscovery()
87 if (printer == null) return null;
89 String description = printer.getDescription(mPrintService);
92 mPrinterId, printer.name,
109 public void onCapabilities(DiscoveredPrinter printer, LocalPrinterCapabilitie argument
[all...]
H A DLocalDiscoverySession.java80 * <p>This print service only shows a printer if another print service does not show it.
139 // We cannot track the printer yet; wait until it is discovered
159 * A printer was found during discovery
179 * A printer was lost during discovery
206 /** A complete printer record is available */
244 * Return true if the {@link PrinterId} corresponds to a high-priority printer
251 * Return true if the {@link PrinterId} corresponds to a known printer
258 * Load "known good" printer IDs from storage, if possible
276 * Save "known good" printer IDs to storage, if possible
292 * Is this printer handle
298 isHandledByOtherService(LocalPrinter printer) argument
[all...]
/packages/services/BuiltInPrintService/src/com/android/bips/discovery/
H A DDiscovery.java33 * Parent class for all printer discovery mechanisms. Subclasses must implement onStart and onStop.
119 * Signal that a printer appeared or possibly changed state.
121 void printerFound(DiscoveredPrinter printer) { argument
122 DiscoveredPrinter current = mPrinters.get(printer.getUri());
123 if (Objects.equals(current, printer)) {
124 if (DEBUG) Log.d(TAG, "Already have the reported printer, ignoring");
127 mPrinters.put(printer.getUri(), printer);
129 listener.onPrinterFound(printer);
134 * Signal that a printer i
169 onPrinterFound(DiscoveredPrinter printer) argument
171 onPrinterLost(DiscoveredPrinter printer) argument
[all...]
H A DManualDiscovery.java52 Uri.parse("ipp://path:80/ipp/print"), Uri.parse("ipp://path:631/ipp/printer"),
65 for (DiscoveredPrinter printer : mManualPrinters) {
66 if (DEBUG) Log.d(TAG, "reporting " + printer);
67 getPrintService().getCapabilitiesCache().evictOnNetworkChange(printer.getUri());
68 printerFound(printer);
84 * Asynchronously attempt to add a new manual printer, calling back with success
91 private void addManualPrinter(DiscoveredPrinter printer) { argument
92 // Remove any prior printer with the same uri or path
94 if (other.getUri().equals(printer.getUri())) {
100 // Add new printer a
184 onFound(DiscoveredPrinter printer, boolean supported) argument
220 onCapabilities(DiscoveredPrinter printer, LocalPrinterCapabilities capabilities) argument
[all...]
H A DMdnsDiscovery.java214 // On the main thread, seek the missing printer by name and notify its loss
216 for (DiscoveredPrinter printer : getPrinters()) {
217 if (TextUtils.equals(printer.name, info.getServiceName())) {
218 cancelIppsDelay(printer.getUri());
219 printerLost(printer.getUri());
232 final DiscoveredPrinter printer = toNetworkPrinter(info);
233 if (DEBUG) Log.d(TAG, "Service " + info.getServiceName() + " resolved to " + printer);
234 if (printer == null) {
238 Uri printerUri = printer.getUri();
239 if (printer
263 final DiscoveredPrinter printer; field in class:MdnsDiscovery.IppsDelay
265 IppsDelay(DiscoveredPrinter printer) argument
[all...]
/packages/services/BuiltInPrintService/src/com/android/bips/ipp/
H A DCapabilitiesCache.java39 * A cache of printer URIs (see {@link DiscoveredPrinter#getUri}) to printer capabilities,
104 void onCapabilities(DiscoveredPrinter printer, LocalPrinterCapabilities capabilities); argument
116 public void request(DiscoveredPrinter printer, boolean highPriority, argument
118 if (DEBUG) Log.d(TAG, "request() printer=" + printer + " high=" + highPriority);
120 Uri printerUri = printer.getUri();
121 Uri printerPath = printer.path;
122 LocalPrinterCapabilities capabilities = get(printer.getUri());
124 onLocalPrinterCapabilities.onCapabilities(printer, capabilitie
248 final DiscoveredPrinter printer; field in class:CapabilitiesCache.Request
254 Request(DiscoveredPrinter printer, long timeout) argument
[all...]
/packages/services/BuiltInPrintService/src/com/android/bips/ui/
H A DManualPrintersFragment.java92 // Simulate a click on add printer since that is likely what the user came here to do.
104 public void onPrinterFound(DiscoveredPrinter printer) { argument
105 if (DEBUG) Log.d(TAG, "onPrinterFound: " + printer);
113 if (preference.printer.path.equals(printer.path)) {
119 screen.addPreference(new ManualPrinterPreference(getContext(), printer));
123 public void onPrinterLost(DiscoveredPrinter printer) { argument
124 if (DEBUG) Log.d(TAG, "onPrinterLost: " + printer);
129 if (((ManualPrinterPreference) preference).printer.getUri()
130 .equals(printer
166 final DiscoveredPrinter printer; field in class:ManualPrintersFragment.ManualPrinterPreference
168 ManualPrinterPreference(Context context, DiscoveredPrinter printer) argument
[all...]
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/html/parser/
H A DHtmlTree.java886 private final PlainTextPrinter printer = new PlainTextPrinter(); field in class:HtmlTree.DefaultPlainTextConverter
899 printer.appendPreText(str);
904 printer.appendNormalText(str);
914 printer.setSeparator(PlainTextPrinter.Separator.BlankLine);
918 printer.appendForcedLineBreak();
922 printer.setSeparator(PlainTextPrinter.Separator.LineBreak);
925 printer.appendNormalText("________________________________");
926 printer.setSeparator(PlainTextPrinter.Separator.LineBreak);
931 printer.incQuoteDepth();
946 printer
[all...]

Completed in 96 milliseconds