5b703630f15fa72ac43a2f6fbd9fd3ee96b02108 |
|
23-Aug-2017 |
Glade Diviney <mopriadevteam@gmail.com> |
prevent IO on main thread When starting up discovery, prior code fetches IP address for manually- added printers. For named printers this results in IO on main thread, causing an exception. This change captures IP address during capability scan. Fixes: 64848540 Test: Manually add a DNS-resolvable printer and restart printing Change-Id: I0f87de92a847ce41381a94aa5d5a7bbf8ecb4165 Signed-off-by: Glade Diviney <mopriadevteam@gmail.com>
/packages/services/BuiltInPrintService/src/com/android/bips/ipp/GetCapabilitiesTask.java
|
e604a9fafd50bca9fbc86ca525196efb6f1b70b1 |
|
03-Jun-2017 |
Glade Diviney <mopriadevteam@gmail.com> |
improve printer discovery When doing IPP Get-Attribute requests, printers that are missing or slow to respond can slow down the discovery process dramatically. This change allows more control over timeout, prioritization, and cancellation of Get-Attribute requests. A "first pass" with a short timeout puts all well-behaved printers in front of the user quickly, and a second pass with a longer timeout catches any stragglers for completeness. Manual printer discovery is also improved here, by looking at :80/ipp/print, capturing the full printer name from printer-dns-sd-name or printer-info if necessary, and more consistently presenting the correct name to the user. Test: Visit the printer list on networks having multiple printers Change-Id: I9bfdbf17e617e8cc073f88bd03c6be1e4dfd21e7 Signed-off-by: Glade Diviney <mopriadevteam@gmail.com>
/packages/services/BuiltInPrintService/src/com/android/bips/ipp/GetCapabilitiesTask.java
|
3bf66744d61d18c66d46f2608de0467ad3df0268 |
|
30-Nov-2016 |
Mopria <mopriaplay@gmail.com> |
Built-In Print Service The Built-In Print Service implements a standard Android Print Service and allows printing to Wi-Fi enabled printers on the users's local network. Printers must support mDNS discovery and the IPP protocol, and must allow jobs to be sent in PCLm, PWG-raster, or PDF formats. Internally, this service implements job control, page rendering, and printer interactions in native code. This code relies on libjpeg-turbo for JPEG encoding functions required by PCLm, and selected portions of CUPS for direct interactions with printers. Test: ./gradlew test Change-Id: Ib2dca0190ba4abe028da1d9cd62308733ecce7b5 Signed-off-by: Mopria <mopriaplay@gmail.com>
/packages/services/BuiltInPrintService/src/com/android/bips/ipp/GetCapabilitiesTask.java
|