OSDN Git Service

Implement persistence/restoring of print spooler state.
authorSvetoslav Ganov <svetoslavganov@google.com>
Mon, 22 Jul 2013 19:32:03 +0000 (12:32 -0700)
committerSvetoslav Ganov <svetoslavganov@google.com>
Mon, 22 Jul 2013 20:07:09 +0000 (13:07 -0700)
commit88d199130d44c6bacb383a7757e782cf97483c68
tree454e94ec561afdb80a9ed209e12540c70e5df8eb
parent597945fd3a6b52ac70bb9afc5ec8c59039fffd77
Implement persistence/restoring of print spooler state.

1. Implemented the persistence and restoring of the print spooler state.
   The print spooler state is saved as an XML on every print job change
   and is restored when we bind to the spooler. The system does not
   unbind from the spooler until the state persistence completes. We
   are now storing the entire state, i.e. all print jobs, when a single
   one changes. This is not optimal but we are not expecting to have
   many such at the same time, so for now we err for simplicity of
   implementation.

2. Enforcing a non-empty print job name.

3. Hidden the STATE_CREATED print job state which should never be visible to a
   client since this is the state of a print job during construction, i.e. the
   print dialog is up and we are doing back and forth with the app.

4. Fixed some PrintAttributes APIs that were incorrectly taking in a PackageManager
   instance.

5. Updated the PrintSpooler build file due to splitting the framework into multiple
   jars.

Change-Id: I52c88eaa1ec9c64920359cc143c79832a4c3d25b
api/current.txt
core/java/android/print/PageRange.java
core/java/android/print/PrintAttributes.java
core/java/android/print/PrintDocumentInfo.java
core/java/android/print/PrintJobInfo.java
core/java/android/print/PrintManager.java
core/java/android/print/PrinterId.java
packages/PrintSpooler/Android.mk
packages/PrintSpooler/src/com/android/printspooler/PrintSpooler.java
packages/PrintSpooler/src/com/android/printspooler/PrintSpoolerService.java
services/java/com/android/server/print/RemotePrintService.java