History log of /frameworks/base/core/java/android/print/PrintFileDocumentAdapter.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
1c8f1e06a609507533609b4e04161c1c4fcb2849 21-Jan-2016 Philip P. Moltmann <moltmann@google.com> Shorten LOG_TAGs to fit in 23 characters as commented on by lint.

Change-Id: Ie9415fc3de642493bc36c0159b773d8ce2436df5
/frameworks/base/core/java/android/print/PrintFileDocumentAdapter.java
b450d0d4d7fca16674fea02f15e21dc737352c40 05-Oct-2013 Svetoslav <svetoslavganov@google.com> Small print API tweaks

1. Removed an unused public constant

2. Hide PrintFileDocumentAdapter which makes doing the wring
thing easy.

3. We allow a print service to set a tag of a print job which is
an arbitrary string it only knows how to interpret. Typically,
this is the id of a remote print job. This tag was visible to
applications which is wrong - this is data that should be
private to the print service. Now the print service is the
only one to see that.

bug:11084635

Change-Id: I763ea9ff0fdf647805bc36e1737d72263090714d
/frameworks/base/core/java/android/print/PrintFileDocumentAdapter.java
19fba5d34a444ce145ab0d3a12c578d9d5d3f38c 31-Aug-2013 Svetoslav Ganov <svetoslavganov@google.com> KLP API Review: PrintDocumentAdapter documentation

bug:10551676

Change-Id: I755cc1827ed950b8481b8b260ea3cde83bcdd418
/frameworks/base/core/java/android/print/PrintFileDocumentAdapter.java
d26d4898fcc9b78f4b66118895c375384098205e 28-Aug-2013 Svetoslav Ganov <svetoslavganov@google.com> Print spooler security and some new print service facing APIs.

1. Updated the security mode of the print spooler. Now the spooler
is not signed with the system key, it is not a privileged app so if
it gets compromised (PDF rendering is a potential attack vector)
it cannot access dangerous permissions. Also only the system
can bind to the spooler.

2. Added APIs for asking a print service to start and stop tracking
a given printer. This is need for the case when the user selects
the printer and the print service should do a best effort to keep
the system updated for the current state of the printer.

3. Added APIs for putting a print job in a blocked state. A print
service would report the print job as blocked if for some reason
the printer cannot proceed, e.g. 99 pages are printed but there
is no paper for the last one. The user has to add more paper
and the print service can resume the job.

4. Changed the read/write APIs to use ParcelFileDescriptor instead
of FileDescriptor since the latter does not have a clean API for
detaching the wrapped Linux file descriptor when one wants to
push it to native.

5. Added API for getting the size of the printed document so the
print service can avoid handling big filed over cellular network
or ask the user if needed.

6. Now the print services that are preinstalled on the system image
are automatically enabled.

Change-Id: Ia06c311d3d21cabb9e1368f13928e11cd0030918
/frameworks/base/core/java/android/print/PrintFileDocumentAdapter.java
9abf735387329758ca310acad3baa70eee1dba42 12-Aug-2013 Svetoslav <svetoslavganov@google.com> Make PrintFileDocumentAdapter non-final.

Change-Id: I89a46bf766f5270dfaba7482b7b7cd997e19821a
/frameworks/base/core/java/android/print/PrintFileDocumentAdapter.java
798bed6cc7d273e72b0253288605db9cd2b57740 11-Aug-2013 Svetoslav Ganov <svetoslavganov@google.com> Refinement of the print service APIs.

1. Factored out the printer discovery APIs of a print service in a
dedicated session object that is created by the print service on
demand. This ensures that added/removed/updated printers from
one session do not interfere with another session.

2. Updated the app facing APIs to pass in a document info along
with a printed file. Also exposed the print file adapter so
apps that create a temporary file for printing can intercept
when it is read by the system so the file can be deleted.

3. Updated the print service documentation.

Change-Id: I3473d586c26d8bda1cf7e2bdacb441aa9df982ed
/frameworks/base/core/java/android/print/PrintFileDocumentAdapter.java