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/LocalPrinter.java
|
29b50e168dadd6354cd124e20343a6203f378015 |
|
12-Jun-2017 |
Glade Diviney <mopriadevteam@gmail.com> |
improve printer discovery am: e604a9fafd am: 97d2fc8db8 Change-Id: I53ef64d68e1a7135c38a5e73ab8213542d2b40f7
|
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/LocalPrinter.java
|
f949dfa10fd8cf312596a0b9c91e9a05e7fbbdee |
|
04-Apr-2017 |
Philip P. Moltmann <moltmann@google.com> |
Suppress printers that belong to other services Use the printservicerecommendation service to get a mapping from printer addresses to services that can handle the printers Then query if the any print service that could handle the printer is enabled. If it is enabled do not show printer. Fixes: 35765644 Test: Enable HP print service while a HP printer is visible to the default print service Change-Id: Ief6ae698abdd786acff367cc876cc89a6626beeb
/packages/services/BuiltInPrintService/src/com/android/bips/LocalPrinter.java
|
99f9b8a26fa612f14e2376df5cd319d19e874e42 |
|
05-Apr-2017 |
Philip P. Moltmann <moltmann@google.com> |
Add proper icons for default print service. Bug: 35766257 Test: Looked at icons (in settings and print spooler) on angler Change-Id: I74b59174f3890e764180dd12dc946230b664087f
/packages/services/BuiltInPrintService/src/com/android/bips/LocalPrinter.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/LocalPrinter.java
|