OSDN Git Service

Print APIs update.
authorSvetoslav Ganov <svetoslavganov@google.com>
Tue, 27 Aug 2013 07:30:54 +0000 (00:30 -0700)
committerSvetoslav Ganov <svetoslavganov@google.com>
Tue, 27 Aug 2013 18:56:18 +0000 (11:56 -0700)
commitaec1417ca9eb63209668ac17da90cf8a07c6076c
treed4f7c0653ed95cca27541092c4c27b0d39337e0f
parent94366313331a789440a3c077173aafcb85cabe78
Print APIs update.

1. Added scale to fit and scale to fill fitting modes.

2. Added APIs for a print app to specify which constraints imposed
   by the print attributes were satsified during a layout so they
   are not handled by the printer again, e.g. if the content is to
   be in landscape the the app generated such content the printer
   should rotate the content again.

3. Added some printer statuses.

4. Added a helper class that generates PDF documents with correct
   size based on the passed in print attributes.

5. Exposed a ctor for PageRange which was hidden by mistake and apps
   could not create page ranges. Added API for changing the printer
   status.

Change-Id: If1334a61d2d931027b98075f653018d456b1b768
api/current.txt
core/java/android/print/PageRange.java
core/java/android/print/PrintAttributes.java
core/java/android/print/PrintDocumentAdapter.java
core/java/android/print/PrintDocumentInfo.java
core/java/android/print/PrinterCapabilitiesInfo.java
core/java/android/print/PrinterInfo.java
core/java/android/print/pdf/PdfDocument.java
core/java/android/print/pdf/PrintedPdfDocument.java [new file with mode: 0644]
packages/PrintSpooler/src/com/android/printspooler/PrintJobConfigActivity.java