• Home
  • History
  • Annotate
  • only in /frameworks/base/packages/PrintSpooler/
History log of /frameworks/base/packages/PrintSpooler/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
dcc34fd8a3f718e5e5cfaccb87eeffd64ac80f63 30-Jul-2015 Chris Wren <cwren@android.com> Instrument printing service for metrics collection.

Bug: 22837316
Change-Id: I8bf62940f5eb495d8d7a10df958d9bc8ad76662a
rc/com/android/printspooler/model/PrintSpoolerService.java
rc/com/android/printspooler/ui/PrintActivity.java
f12b393ff406a3bb8967b69a9be2dd27b0725b33 25-Jul-2015 Svet Ganov <svetoslavganov@google.com> Pass correct extras to the custom print options activity

bug:22734138

Change-Id: Iea1bc32c3e863072b2021b823bef2cefa54fa540
rc/com/android/printspooler/ui/PrintActivity.java
703170645dfb5408c4bb190195e0d8006b5de00e 15-Jul-2015 Geoff Mendal <mendal@google.com> Import translations. DO NOT MERGE

Change-Id: I7e22afc43c9029b40ba2df53dfc10a9a688c4fd2
Auto-generated-cl: translation import
es/values-fr/strings.xml
5d935e827114b08788f52e3574d32a57e0ed6f9b 06-Jul-2015 Geoff Mendal <mendal@google.com> Import translations. DO NOT MERGE

Change-Id: Ia90a9400d718b5ef61f55ed4d6c5eb9fe48d9667
Auto-generated-cl: translation import
es/values-cs/strings.xml
es/values-it/strings.xml
es/values-kn-rIN/strings.xml
es/values-sk/strings.xml
es/values-sr/strings.xml
es/values-uz-rUZ/strings.xml
15d48a16f645509cb0c6a1f3abf52ddd233cd8b5 19-Jun-2015 Alan Viverette <alanv@google.com> DO NOT MERGE: Remove DayNight theme

Do not go gentle into that good night,
Old age should burn and rave at close of day;
Rage, rage against the dying of the light.

Though wise men at their end know dark is right,
Because their words had forked no lightning they
Do not go gentle into that good night.

Bug: 21854466
Change-Id: I0b7cd116c23f7df88e94f31b3aee7dd22a102804
es/values/themes.xml
5772b5c671a13d9c4bbc1e3803667166f811cb33 11-Jun-2015 Svet Ganov <svetoslavganov@google.com> Propagete document meta-data to custom print UI.

Change-Id: I3f122224e1b311a222969253ae0336177989a414
rc/com/android/printspooler/ui/PrintActivity.java
a126f69419801ce312f6fa8a06b5208640a33eab 10-Jun-2015 Geoff Mendal <mendal@google.com> Import translations. DO NOT MERGE

Change-Id: I20b6c72047df24a7b6f9ad21db1234bdc4889925
Auto-generated-cl: translation import
es/values-fa/strings.xml
es/values-ka-rGE/strings.xml
es/values-ky-rKG/strings.xml
es/values-ur-rPK/strings.xml
es/values-zh-rCN/strings.xml
e4bd7c98323b39a47682216bebf442de206a95dd 08-Jun-2015 Makoto Onuki <omakoto@google.com> Improve string comment.

Bug 21685729

Change-Id: If6c79730778f399ed0dbf500ef62df3150fbaea6
es/values/strings.xml
40f26e1caa2805f64927411080a6b7802b316056 08-Jun-2015 Geoff Mendal <mendal@google.com> Import translations. DO NOT MERGE

Change-Id: Ib2b21a5127e5d2c29bf60c62fa90c5e1dca3ccf1
Auto-generated-cl: translation import
es/values-af/strings.xml
es/values-am/strings.xml
es/values-ar/strings.xml
es/values-az-rAZ/strings.xml
es/values-bg/strings.xml
es/values-bn-rBD/strings.xml
es/values-ca/strings.xml
es/values-cs/strings.xml
es/values-da/strings.xml
es/values-de/strings.xml
es/values-el/strings.xml
es/values-en-rAU/strings.xml
es/values-en-rGB/strings.xml
es/values-en-rIN/strings.xml
es/values-es-rUS/strings.xml
es/values-es/strings.xml
es/values-et-rEE/strings.xml
es/values-eu-rES/strings.xml
es/values-fa/strings.xml
es/values-fi/strings.xml
es/values-fr-rCA/strings.xml
es/values-fr/strings.xml
es/values-gl-rES/strings.xml
es/values-gu-rIN/strings.xml
es/values-hi/strings.xml
es/values-hr/strings.xml
es/values-hu/strings.xml
es/values-hy-rAM/strings.xml
es/values-in/strings.xml
es/values-is-rIS/strings.xml
es/values-it/strings.xml
es/values-iw/strings.xml
es/values-ja/strings.xml
es/values-ka-rGE/strings.xml
es/values-kk-rKZ/strings.xml
es/values-km-rKH/strings.xml
es/values-kn-rIN/strings.xml
es/values-ko/strings.xml
es/values-ky-rKG/strings.xml
es/values-lo-rLA/strings.xml
es/values-lt/strings.xml
es/values-lv/strings.xml
es/values-mk-rMK/strings.xml
es/values-ml-rIN/strings.xml
es/values-mn-rMN/strings.xml
es/values-mr-rIN/strings.xml
es/values-ms-rMY/strings.xml
es/values-my-rMM/strings.xml
es/values-nb/strings.xml
es/values-ne-rNP/strings.xml
es/values-nl/strings.xml
es/values-pa-rIN/strings.xml
es/values-pl/strings.xml
es/values-pt-rPT/strings.xml
es/values-pt/strings.xml
es/values-ro/strings.xml
es/values-ru/strings.xml
es/values-si-rLK/strings.xml
es/values-sk/strings.xml
es/values-sl/strings.xml
es/values-sq-rAL/strings.xml
es/values-sr/strings.xml
es/values-sv/strings.xml
es/values-sw/strings.xml
es/values-ta-rIN/strings.xml
es/values-te-rIN/strings.xml
es/values-th/strings.xml
es/values-tl/strings.xml
es/values-tr/strings.xml
es/values-uk/strings.xml
es/values-ur-rPK/strings.xml
es/values-uz-rUZ/strings.xml
es/values-vi/strings.xml
es/values-zh-rCN/strings.xml
es/values-zh-rHK/strings.xml
es/values-zh-rTW/strings.xml
es/values-zu/strings.xml
fba7f5d73cce893860faa3af9df7b4099a8565a1 05-Jun-2015 Makoto Onuki <omakoto@google.com> Merge "Fix crash on simplified Chinese." into mnc-dev
98112e886df07f6e4bb40e68f0f2ceabda0a0941 05-Jun-2015 Makoto Onuki <omakoto@google.com> Fix crash on simplified Chinese.

They use the standard A/B sizes in China too.

Bug 20340812

Change-Id: Ia0842f8ddbdcb4cb2738b746509c60de25b64966
es/values-zh-rCN/donottranslate.xml
9f9d70b6031b238db21607968141aaa83a0c3363 04-Jun-2015 Makoto Onuki <omakoto@google.com> Change option label from "Duplex" to "Two-sided"

Bug 21640154

Change-Id: Icab4754e0aeb23fc4da178e7306f5c7a74108c22
es/values/strings.xml
e5445d7bb71e3cdbc87d367b5b254f898f40535d 31-May-2015 Geoff Mendal <mendal@google.com> Import translations. DO NOT MERGE

Change-Id: Ic3da6671bd7a81f8a9c07a0a922d07b773377f96
Auto-generated-cl: translation import
es/values-az-rAZ/strings.xml
7e59bb70a6336acd0050cf29ffeeb6b6d54c7040 27-May-2015 Alan Viverette <alanv@google.com> Use DeviceDefault (dark) theme for PrintActivity

Bug: 21433656
Change-Id: If90ba72fb5862f0eb583c8e64642920c49c5fea6
es/values/themes.xml
be752b1f28f1f3724b235e3f0a77b4c07c40e631 14-May-2015 Wojciech Staszkiewicz <staszkiewicz@google.com> Merge "Pass charset to XmlPullParser.setInput instead of null" into mnc-dev
9e9e2e73c6ec7bece20268196dc89ad0c8bafad4 08-May-2015 Wojciech Staszkiewicz <staszkiewicz@google.com> Pass charset to XmlPullParser.setInput instead of null

Passing null to XmlPullParser.setInput forces it to do additional
work, which can be easily avoided if we know the charset beforehand.

bug: b/20849543

Change-Id: Iaff97be9df2d0f99d7af8f19f65934439c9658e2
rc/com/android/printspooler/model/PrintSpoolerService.java
rc/com/android/printspooler/ui/FusedPrintersProvider.java
251348d3fcfd4e1e41809063fc374a8c8b20e511 14-May-2015 Geoff Mendal <mendal@google.com> Import translations. DO NOT MERGE

Change-Id: I0096104dd65eeb3b4e7bf836c09a58f8aa34965e
Auto-generated-cl: translation import
es/values-uz-rUZ/strings.xml
b9da280ac20091673878f3c4b04c65d0510ba23d 05-May-2015 Alan Viverette <alanv@google.com> DayNight theme for framework packages

Change-Id: I745f90561c957c83540e75a2886e294633c83be1
es/values/themes.xml
7c1fa24c2c54b72bea28cc74d85d72ed63c6f12e 27-Apr-2015 Geoff Mendal <mendal@google.com> Import translations. DO NOT MERGE

Change-Id: I66a29628216bcfbb56a5820ba0598bd95af27a81
Auto-generated-cl: translation import
es/values-sq-rAL/strings.xml
9e672e0d185f7064fe9a485f69cc6574b2fc1e8d 22-Apr-2015 Geoff Mendal <mendal@google.com> Import translations. DO NOT MERGE

Change-Id: I67f51468d775874da33c28786b86c69e7f1459b1
Auto-generated-cl: translation import
es/values-gu-rIN/strings.xml
es/values-pa-rIN/strings.xml
es/values-sq-rAL/strings.xml
6c04e5e91685d6507fe7457844093e6a8b207dd5 17-Apr-2015 Deepanshu Gupta <deepanshu@google.com> Add resources to recyclerview dependency.

Change-Id: I03c1dbacf8c83149de3ee01fe6d7dbb288d1948a
(cherry picked from commit 202cbbe45383b871129743d55179cf1c6429fffc)
ndroid.mk
216bef6c358ba202f0089a8c2a7a998bfe5f5d74 25-Mar-2015 Geoff Mendal <mendal@google.com> Import translations. DO NOT MERGE

Change-Id: I9d36d679d32ee84e90eec1d51515894c36390bc1
Auto-generated-cl: translation import
es/values-hi/strings.xml
d3970398765f7dc88945c80a6b3c522ee8032d76 21-Mar-2015 Geoff Mendal <mendal@google.com> Import translations. DO NOT MERGE

Change-Id: I43f19279f08e1c5b204836ee69e715c1f889acc7
Auto-generated-cl: translation import
es/values-en-rAU/strings.xml
4a357cd2e55293402d7172766f7f9419815fc1e8 19-Mar-2015 Alan Viverette <alanv@google.com> Replace usages of deprecated Resources.getColor() and getColorStateList()

Change-Id: I8f64fe6c4c44a92ff6d07250223ba590a1d691b0
rc/com/android/printspooler/model/NotificationController.java
rc/com/android/printspooler/widget/PrintContentView.java
08c7116ab9cd04ad6dd3c04aa1017237e7f409ac 28-Feb-2015 John Spurlock <jspurlock@google.com> Remove unused imports in frameworks/base.

Change-Id: I031443de83f93eb57a98863001826671b18f3b17
rc/com/android/printspooler/model/PrintSpoolerProvider.java
a58ef5e5117edbd269ece196c37f0b752be1b559 16-Feb-2015 Geoff Mendal <mendal@google.com> Import translations. DO NOT MERGE

Change-Id: I923776f2ceb27b39485ffc29fb8422bf85e48261
Auto-generated-cl: translation import
es/values-af/strings.xml
es/values-am/strings.xml
es/values-ar/strings.xml
es/values-bg/strings.xml
es/values-bn-rBD/strings.xml
es/values-ca/strings.xml
es/values-cs/strings.xml
es/values-da/strings.xml
es/values-de/strings.xml
es/values-el/strings.xml
es/values-en-rGB/strings.xml
es/values-en-rIN/strings.xml
es/values-es-rUS/strings.xml
es/values-es/strings.xml
es/values-et-rEE/strings.xml
es/values-eu-rES/strings.xml
es/values-fa/strings.xml
es/values-fi/strings.xml
es/values-fr-rCA/strings.xml
es/values-fr/strings.xml
es/values-gl-rES/strings.xml
es/values-hi/strings.xml
es/values-hr/strings.xml
es/values-hu/strings.xml
es/values-hy-rAM/strings.xml
es/values-in/strings.xml
es/values-is-rIS/strings.xml
es/values-it/strings.xml
es/values-iw/strings.xml
es/values-ja/strings.xml
es/values-ka-rGE/strings.xml
es/values-kk-rKZ/strings.xml
es/values-km-rKH/strings.xml
es/values-kn-rIN/strings.xml
es/values-ko/strings.xml
es/values-ky-rKG/strings.xml
es/values-lo-rLA/strings.xml
es/values-lt/strings.xml
es/values-lv/strings.xml
es/values-mk-rMK/strings.xml
es/values-ml-rIN/strings.xml
es/values-mn-rMN/strings.xml
es/values-mr-rIN/strings.xml
es/values-ms-rMY/strings.xml
es/values-my-rMM/strings.xml
es/values-nb/strings.xml
es/values-ne-rNP/strings.xml
es/values-nl/strings.xml
es/values-pl/strings.xml
es/values-pt-rPT/strings.xml
es/values-pt/strings.xml
es/values-ro/strings.xml
es/values-ru/strings.xml
es/values-si-rLK/strings.xml
es/values-sk/strings.xml
es/values-sl/strings.xml
es/values-sr/strings.xml
es/values-sv/strings.xml
es/values-sw/strings.xml
es/values-ta-rIN/strings.xml
es/values-te-rIN/strings.xml
es/values-th/strings.xml
es/values-tl/strings.xml
es/values-tr/strings.xml
es/values-uk/strings.xml
es/values-ur-rPK/strings.xml
es/values-uz-rUZ/strings.xml
es/values-vi/strings.xml
es/values-zh-rCN/strings.xml
es/values-zh-rHK/strings.xml
es/values-zh-rTW/strings.xml
es/values-zu/strings.xml
23032b3f2170c96931d68e6dc4e4fcc1a4fbd51e 11-Feb-2015 Geoff Mendal <mendal@google.com> Import translations. DO NOT MERGE

Change-Id: I6498f5f266d79b90c3b41956290838e199e50999
Auto-generated-cl: translation import
es/values-si-rLK/strings.xml
ca6964d2c2f7debcca126cb81d604673bc9cb8dd 09-Feb-2015 Geoff Mendal <mendal@google.com> Import translations. DO NOT MERGE

Change-Id: I0636cbe07799e0bd53c2157bf4074d9e7a5f5b1c
Auto-generated-cl: translation import
es/values-af/strings.xml
es/values-am/strings.xml
es/values-ar/strings.xml
es/values-bg/strings.xml
es/values-bn-rBD/strings.xml
es/values-ca/strings.xml
es/values-cs/strings.xml
es/values-da/strings.xml
es/values-de/strings.xml
es/values-el/strings.xml
es/values-en-rGB/strings.xml
es/values-en-rIN/strings.xml
es/values-es-rUS/strings.xml
es/values-es/strings.xml
es/values-et-rEE/strings.xml
es/values-eu-rES/strings.xml
es/values-fa/strings.xml
es/values-fi/strings.xml
es/values-fr-rCA/strings.xml
es/values-fr/strings.xml
es/values-gl-rES/strings.xml
es/values-hi/strings.xml
es/values-hr/strings.xml
es/values-hu/strings.xml
es/values-hy-rAM/strings.xml
es/values-in/strings.xml
es/values-is-rIS/strings.xml
es/values-it/strings.xml
es/values-iw/strings.xml
es/values-ja/strings.xml
es/values-ka-rGE/strings.xml
es/values-kk-rKZ/strings.xml
es/values-km-rKH/strings.xml
es/values-kn-rIN/strings.xml
es/values-ko/strings.xml
es/values-ky-rKG/strings.xml
es/values-lo-rLA/strings.xml
es/values-lt/strings.xml
es/values-lv/strings.xml
es/values-mk-rMK/strings.xml
es/values-ml-rIN/strings.xml
es/values-mn-rMN/strings.xml
es/values-mr-rIN/strings.xml
es/values-ms-rMY/strings.xml
es/values-my-rMM/strings.xml
es/values-nb/strings.xml
es/values-ne-rNP/strings.xml
es/values-nl/strings.xml
es/values-pl/strings.xml
es/values-pt-rPT/strings.xml
es/values-pt/strings.xml
es/values-ro/strings.xml
es/values-ru/strings.xml
es/values-si-rLK/strings.xml
es/values-sk/strings.xml
es/values-sl/strings.xml
es/values-sr/strings.xml
es/values-sv/strings.xml
es/values-sw/strings.xml
es/values-ta-rIN/strings.xml
es/values-te-rIN/strings.xml
es/values-th/strings.xml
es/values-tl/strings.xml
es/values-tr/strings.xml
es/values-uk/strings.xml
es/values-ur-rPK/strings.xml
es/values-uz-rUZ/strings.xml
es/values-vi/strings.xml
es/values-zh-rCN/strings.xml
es/values-zh-rHK/strings.xml
es/values-zh-rTW/strings.xml
es/values-zu/strings.xml
a7bb6fbeab933326d58aa806d8194b7b13239d34 04-Feb-2015 Dianne Hackborn <hackbod@google.com> First quick implementation of auto assist data.

Introduce new AssistData class that contains all data
the framework automatically generates for assist. Currently
populated with a very simple tree structure representing
the app's view hierarchy.

Reworked how we populate the class name for accessibility
info, so this is provided through a new method call on View
that subclasses can override. This method is also used
to populate the class name in AssistData.

Change-Id: Ibd0acdc8354727d4291473283b5e4b70894905dc
rc/com/android/printspooler/widget/PreviewPageFrame.java
bf40f24bc24350a4bff49fba89cf12715d15e07c 04-Feb-2015 Geoff Mendal <mendal@google.com> Import translations. DO NOT MERGE

Change-Id: I1045d9d3bcb2ddce2eb2c57fff87827c5ee23f04
Auto-generated-cl: translation import
es/values-af/strings.xml
es/values-am/strings.xml
es/values-ar/strings.xml
es/values-bg/strings.xml
es/values-bn-rBD/strings.xml
es/values-ca/strings.xml
es/values-cs/strings.xml
es/values-da/strings.xml
es/values-de/strings.xml
es/values-el/strings.xml
es/values-en-rGB/strings.xml
es/values-en-rIN/strings.xml
es/values-es-rUS/strings.xml
es/values-es/strings.xml
es/values-et-rEE/strings.xml
es/values-eu-rES/strings.xml
es/values-fa/strings.xml
es/values-fi/strings.xml
es/values-fr-rCA/strings.xml
es/values-fr/strings.xml
es/values-gl-rES/strings.xml
es/values-hi/strings.xml
es/values-hr/strings.xml
es/values-hu/strings.xml
es/values-hy-rAM/strings.xml
es/values-in/strings.xml
es/values-is-rIS/strings.xml
es/values-it/strings.xml
es/values-iw/strings.xml
es/values-ja/strings.xml
es/values-ka-rGE/strings.xml
es/values-kk-rKZ/strings.xml
es/values-km-rKH/strings.xml
es/values-kn-rIN/strings.xml
es/values-ko/strings.xml
es/values-ky-rKG/strings.xml
es/values-lo-rLA/strings.xml
es/values-lt/strings.xml
es/values-lv/strings.xml
es/values-mk-rMK/strings.xml
es/values-ml-rIN/strings.xml
es/values-mn-rMN/strings.xml
es/values-mr-rIN/strings.xml
es/values-ms-rMY/strings.xml
es/values-my-rMM/strings.xml
es/values-nb/strings.xml
es/values-ne-rNP/strings.xml
es/values-nl/strings.xml
es/values-pl/strings.xml
es/values-pt-rPT/strings.xml
es/values-pt/strings.xml
es/values-ro/strings.xml
es/values-ru/strings.xml
es/values-si-rLK/strings.xml
es/values-sk/strings.xml
es/values-sl/strings.xml
es/values-sr/strings.xml
es/values-sv/strings.xml
es/values-sw/strings.xml
es/values-ta-rIN/strings.xml
es/values-te-rIN/strings.xml
es/values-th/strings.xml
es/values-tl/strings.xml
es/values-tr/strings.xml
es/values-uk/strings.xml
es/values-ur-rPK/strings.xml
es/values-uz-rUZ/strings.xml
es/values-vi/strings.xml
es/values-zh-rCN/strings.xml
es/values-zh-rHK/strings.xml
es/values-zh-rTW/strings.xml
es/values-zu/strings.xml
948c9a6393e0995a4d988d5d164998aa0e12b25d 03-Feb-2015 Svetoslav <svetoslavganov@google.com> Add duplex mode support.

This change adds support for duplex printing. The print UI now has a duplex
option which allows the user to choose one of the supported duplex options
by the currently selected printer. The chosen duplex mode is propaged to the
print service that manages this printer.

Change-Id: I807ba9da2723531535c0e1e33f2f4e1b503a54b0
es/layout/print_activity_controls.xml
es/values/strings.xml
rc/com/android/printspooler/model/PrintSpoolerService.java
rc/com/android/printspooler/ui/PrintActivity.java
85d6a63d41676abef92701c8d61af7552aa478a4 28-Jan-2015 Svetoslav <svetoslavganov@google.com> am fcecdccc: am 369f1ec6: Merge "Add a missing file to print spooler resources" into lmp-mr1-dev
automerge: 3fd1ebf

* commit '3fd1ebff6c017ba4495070cb34f1ed7652b33cc9':
Add a missing file to print spooler resources
3fd1ebff6c017ba4495070cb34f1ed7652b33cc9 27-Jan-2015 Svetoslav <svetoslavganov@google.com> am fcecdccc: am 369f1ec6: Merge "Add a missing file to print spooler resources" into lmp-mr1-dev

* commit 'fcecdccc0f24b9c9447fe5bd69c31ca29c35d5c8':
Add a missing file to print spooler resources
fcecdccc0f24b9c9447fe5bd69c31ca29c35d5c8 27-Jan-2015 Svetoslav <svetoslavganov@google.com> am 369f1ec6: Merge "Add a missing file to print spooler resources" into lmp-mr1-dev

* commit '369f1ec6ea78637870f35822456628e7ae8caf95':
Add a missing file to print spooler resources
c0198ce12e806f65ccaa0f005fb07df2c5ca4f65 24-Jan-2015 Svetoslav <svetoslavganov@google.com> Add a missing file to print spooler resources

bug:19120603

Change-Id: Id33c77696a47ef48b0095fd8289f92d7bba71f19
es/values-ca/arrays.xml
596bf7a3e13f52925f2dcd639cdd2b54458a5643 21-Jan-2015 Geoff Mendal <mendal@google.com> Import translations. DO NOT MERGE

Change-Id: I3ed20770355daeb44c7ec26a0cd70d224dde7e9b
Auto-generated-cl: translation import
es/values-km-rKH/strings.xml
es/values-my-rMM/strings.xml
4a682c1b449d4ca925541aae3602589a3e3bdb71 05-Jan-2015 Geoff Mendal <mendal@google.com> Import translations. DO NOT MERGE

Change-Id: I9c93551bd46a5ef15b327a8f7ae332e69578ad90
Auto-generated-cl: translation import
es/values-ca/strings.xml
es/values-km-rKH/strings.xml
es/values-my-rMM/strings.xml
2d9543abca783b3af87aefd84c08e4fd661f7184 23-Dec-2014 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: I502afa35fad7c98a1a6728b88706245891296c18
Auto-generated-cl: translation import
es/values-km-rKH/strings.xml
es/values-my-rMM/strings.xml
b9f23453502b472f553531fecc8106300c57da59 03-Dec-2014 Svetoslav <svetoslavganov@google.com> am dc026baf: am 5303451e: am 4667d247: Merge "Inconsistent media sizes for es-US locale." into lmp-mr1-dev

* commit 'dc026bafa97ad0c2cc2446bfe8ae5992f660ed21':
Inconsistent media sizes for es-US locale.
dc026bafa97ad0c2cc2446bfe8ae5992f660ed21 03-Dec-2014 Svetoslav <svetoslavganov@google.com> am 5303451e: am 4667d247: Merge "Inconsistent media sizes for es-US locale." into lmp-mr1-dev

* commit '5303451efc8553f83d921185c6aac30a178d632f':
Inconsistent media sizes for es-US locale.
5303451efc8553f83d921185c6aac30a178d632f 03-Dec-2014 Svetoslav <svetoslavganov@google.com> am 4667d247: Merge "Inconsistent media sizes for es-US locale." into lmp-mr1-dev

* commit '4667d247bbff30d7fe47a4022b91eb03da17be4d':
Inconsistent media sizes for es-US locale.
4667d247bbff30d7fe47a4022b91eb03da17be4d 03-Dec-2014 Svetoslav <svetoslavganov@google.com> Merge "Inconsistent media sizes for es-US locale." into lmp-mr1-dev
67880ce3ff1973756c8fb59a6515f54ff21bcf45 03-Dec-2014 Svetoslav <svetoslavganov@google.com> am 935702b6: am 95482c28: am cdd3356d: Merge "Allow more space for the printer spinner to avoid truncation." into lmp-mr1-dev

* commit '935702b6d5873d028c5f5c0e35e46a35b5e11a22':
Allow more space for the printer spinner to avoid truncation.
935702b6d5873d028c5f5c0e35e46a35b5e11a22 03-Dec-2014 Svetoslav <svetoslavganov@google.com> am 95482c28: am cdd3356d: Merge "Allow more space for the printer spinner to avoid truncation." into lmp-mr1-dev

* commit '95482c28f5b6fba7427770212374c3c8d22b280e':
Allow more space for the printer spinner to avoid truncation.
95482c28f5b6fba7427770212374c3c8d22b280e 03-Dec-2014 Svetoslav <svetoslavganov@google.com> am cdd3356d: Merge "Allow more space for the printer spinner to avoid truncation." into lmp-mr1-dev

* commit 'cdd3356da9386bff842d9a29fad09a1d5edc1e73':
Allow more space for the printer spinner to avoid truncation.
cdd3356da9386bff842d9a29fad09a1d5edc1e73 03-Dec-2014 Svetoslav <svetoslavganov@google.com> Merge "Allow more space for the printer spinner to avoid truncation." into lmp-mr1-dev
a1ec54b454134b5eebe99ed784e755ad28bd7917 02-Dec-2014 Svetoslav <svetoslavganov@google.com> Inconsistent media sizes for es-US locale.

The pdf_printer_media_sizes array for es-US was missing
resulting in using European paper sizes for US locale and
as a result no default media size for this locale. This
resulted in printing not working for es-US.

bug:18536264

Change-Id: Ied552a63d628be38dc5249f3cd6107cbeaa692a8
es/values-es-rUS/arrays.xml
864eedc40105ad47f01d536f3a7fe84bcf861c6f 02-Dec-2014 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: I1fa46bb80033e1eee5de30cbf0d0d5d07ae4147c
Auto-generated-cl: translation import
es/values-bn-rBD/strings.xml
es/values-eu-rES/strings.xml
es/values-gl-rES/strings.xml
es/values-hi/strings.xml
es/values-is-rIS/strings.xml
es/values-kk-rKZ/strings.xml
es/values-km-rKH/strings.xml
es/values-kn-rIN/strings.xml
es/values-ky-rKG/strings.xml
es/values-mk-rMK/strings.xml
es/values-ml-rIN/strings.xml
es/values-mr-rIN/strings.xml
es/values-my-rMM/strings.xml
es/values-ne-rNP/strings.xml
es/values-si-rLK/strings.xml
es/values-ta-rIN/strings.xml
es/values-te-rIN/strings.xml
es/values-ur-rPK/strings.xml
es/values-uz-rUZ/strings.xml
94ef9e6bc86dbcb5559385748103ea16d918e81c 02-Dec-2014 Svetoslav <svetoslavganov@google.com> Allow more space for the printer spinner to avoid truncation.

The save to PDF option is truncated in Russian. While the printer
name can be arbitrarily long, the Save to PDF printer should not
be truncated.

bug:18546218

Change-Id: Id35bd638c505783a2288c1602960e8d74ec3b882
es/values-sw600dp-land/constants.xml
es/values/constants.xml
fc00c9e6c9a8533883df21f1bf09dc9803300405 02-Dec-2014 Svet Ganov <svetoslavganov@google.com> am 66a12001: am f9c93ba2: am eaaf0512: Crash in print spooler when back pressed before content update complted.

* commit '66a1200156aa0d7b003ce6d7dacfa5c1a54dd0d7':
Crash in print spooler when back pressed before content update complted.
66a1200156aa0d7b003ce6d7dacfa5c1a54dd0d7 02-Dec-2014 Svet Ganov <svetoslavganov@google.com> am f9c93ba2: am eaaf0512: Crash in print spooler when back pressed before content update complted.

* commit 'f9c93ba26790cf26df40d21d7e8b6e1e83391dd1':
Crash in print spooler when back pressed before content update complted.
eaaf0512fcbf03b926cdbbbb7f54df474ecf861a 26-Nov-2014 Svet Ganov <svetoslavganov@google.com> Crash in print spooler when back pressed before content update complted.

We are updating the printed content asynchronously. If the user cancels
printing before the first update is complete the spooler components are
in a destroyed state but we attempt to handle the completed update resulting
in a crash. Now if printing is cancelled we ignore the update result.

bug:18525491

Change-Id: I1ef47a17de19896cba2c7a1dd2bfc205065e0a5a
rc/com/android/printspooler/model/PageContentRepository.java
rc/com/android/printspooler/ui/PrintActivity.java
657fcb172e76772198505e4acfd8b67b74bc3c30 25-Nov-2014 Svet Ganov <svetoslavganov@google.com> am 846aac1a: am 48956f26: am f51d7015: Merge "Lockup in the print spooler." into lmp-mr1-dev

* commit '846aac1a22a23df440e39c642cb9213a025f21b7':
Lockup in the print spooler.
846aac1a22a23df440e39c642cb9213a025f21b7 25-Nov-2014 Svet Ganov <svetoslavganov@google.com> am 48956f26: am f51d7015: Merge "Lockup in the print spooler." into lmp-mr1-dev

* commit '48956f266df46bc852c8c2886f16dbb7ac61b3fe':
Lockup in the print spooler.
6f206983b94561324474f84be5b57103ad8ff0e1 25-Nov-2014 Svet Ganov <svetoslavganov@google.com> am f0de3a5c: am f34896bb: am c9f499d2: Merge "Print spooler crash when printing after a rotation." into lmp-mr1-dev

* commit 'f0de3a5ca35df8f94c1546bde60b6d89f2741b13':
Print spooler crash when printing after a rotation.
f0de3a5ca35df8f94c1546bde60b6d89f2741b13 25-Nov-2014 Svet Ganov <svetoslavganov@google.com> am f34896bb: am c9f499d2: Merge "Print spooler crash when printing after a rotation." into lmp-mr1-dev

* commit 'f34896bbeb49aef3509e55ccf9afc7b62ae4dafd':
Print spooler crash when printing after a rotation.
c80814e70aea8940d0d43cd7170baae8c0c4e8e3 24-Nov-2014 Svet Ganov <svetoslavganov@google.com> Lockup in the print spooler.

A recent change modified the way we destroy the remote renderer from
asynchronous to synchronous. This caused problems since it was possible
that the remote rendering service is unbound while we are reading the
contents of a rendered page. As a result the reader was blocking on I/O
and the print spooler was getting into a locked state that required a
restart of its process. Now the remote renderer is destroyed
asynchronously.

bug:18498626

Change-Id: I1312bf808f30430728b4038dd4be43c55d2be825
rc/com/android/printspooler/model/PageContentRepository.java
rc/com/android/printspooler/ui/PageAdapter.java
rc/com/android/printspooler/ui/PrintActivity.java
rc/com/android/printspooler/ui/PrintPreviewController.java
f6cd14dbc99b38af7afe1e5f72347395603d7de2 20-Nov-2014 Svet Ganov <svetoslavganov@google.com> Print spooler crash when printing after a rotation.

1. Available printers are provided by a loader driven by the activity
lifecycle. After a rotation of an app that does not handle rotation
the print activity is destroyed in a delayed fashion. When another
print task is started the loader of the destroed activity gets two
cancellations, one when the activity is stopped and one when it is
destroyed but when the second cancellation happens the loader has a
bad state that it is loading while it is not and a NPE occurs.

2. If a rotation happens early before the print activity is fully initialized
(there are asyncrconous operations that take place) we get a NPE as
the print preview controller is not created yet.

3. A lockup of the print preview process occurs if the print print
activity is destroyed after we initiated binding to the rendering
service but before we receive the remote interface. In this case no
remote service is received as exepcted since we already unbound from
it resulting in a missed signal.

bug:18238590

Change-Id: I81817d81702f649ded97dfbab7d7bba28f22fa91
rc/com/android/printspooler/model/PageContentRepository.java
rc/com/android/printspooler/ui/FusedPrintersProvider.java
rc/com/android/printspooler/ui/PrintActivity.java
e9e6399245cecc62291f8e51d805e6b2f8ae1f54 17-Nov-2014 Geoff Mendal <mendal@google.com> Import translations. DO NOT MERGE

Change-Id: Icb02f0081bd43d87299e3275d1a25b2560dcf5d3
Auto-generated-cl: translation import
es/values-km-rKH/strings.xml
es/values-my-rMM/strings.xml
2e4ad0a64162446f9632b45bf08bf5405fab54f1 14-Nov-2014 Andreas Gampe <agampe@google.com> am d99c25ef: am 37079e29: Merge "Frameworks/base: Wall Werror in packages"

* commit 'd99c25eff3ad421b900caf7af82f970b23a81733':
Frameworks/base: Wall Werror in packages
d99c25eff3ad421b900caf7af82f970b23a81733 14-Nov-2014 Andreas Gampe <agampe@google.com> am 37079e29: Merge "Frameworks/base: Wall Werror in packages"

* commit '37079e29171df20b6355244882dce9d745da55db':
Frameworks/base: Wall Werror in packages
423ba098bd6ed9e90fa3f940b58c5c058c6cbee8 11-Nov-2014 Andreas Gampe <agampe@google.com> Frameworks/base: Wall Werror in packages

Turn on -Wall -Werror in packages/. Fix warnings.

Change-Id: I4ec7256a7df46017e1895575719f2b5aca978bd0
ni/Android.mk
ni/com_android_printspooler_util_BitmapSerializeUtils.cpp
8ed13bae002f053e29c566d41d8e71417bc249d2 13-Nov-2014 Geoff Mendal <mendal@google.com> Import translations. DO NOT MERGE

Change-Id: Ided235f0fea28f4036c0ac64543c63b53665784d
Auto-generated-cl: translation import
es/values-km-rKH/strings.xml
es/values-my-rMM/strings.xml
318ef31d73e32a086f507772b8f1cbec83477528 10-Nov-2014 Geoff Mendal <mendal@google.com> Import translations. DO NOT MERGE

Change-Id: I632600da887656ee853fe527b9193577582e45f1
Auto-generated-cl: translation import
es/values-km-rKH/strings.xml
es/values-my-rMM/strings.xml
b25b3ffd922ac5520b10ee122969d95b767c0104 07-Nov-2014 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: I897991ab8499a1a73219e861c365771fc7eb905e
Auto-generated-cl: translation import
es/values-km-rKH/strings.xml
es/values-my-rMM/strings.xml
e73c6d93b9a207713ef2cf5f6b927f5e54271295 01-Nov-2014 Svet Ganov <svetoslavganov@google.com> am 28d51a39: am 182f0a13: Merge "Crash apps that print malformed or password protected PDFs." into lmp-mr1-dev automerge: 4f5b8a6

* commit '28d51a39a1bed35855b0fe75a65ad4a6d43a4460':
Crash apps that print malformed or password protected PDFs.
28d51a39a1bed35855b0fe75a65ad4a6d43a4460 01-Nov-2014 Svet Ganov <svetoslavganov@google.com> am 182f0a13: Merge "Crash apps that print malformed or password protected PDFs." into lmp-mr1-dev
automerge: 4f5b8a6

* commit '4f5b8a6b9b1966b42c929f89e1e91827ec495719':
Crash apps that print malformed or password protected PDFs.
fce84f035c35606c5707e735f503f7bdcfd5b2a1 01-Nov-2014 Svet Ganov <svetoslavganov@google.com> Crash apps that print malformed or password protected PDFs.

If apps are writing malformed content (typically not a PDF file) or if the
PDF content they provide to the print system is password protected, are now
crashed as both of these are app bugs.

bug:17636435

Change-Id: Ifce6a3199e587448dd38f6a84290a965c24b698b
rc/com/android/printspooler/model/OpenDocumentCallback.java
rc/com/android/printspooler/model/PageContentRepository.java
rc/com/android/printspooler/model/RemotePrintDocument.java
rc/com/android/printspooler/renderer/PdfManipulationService.java
rc/com/android/printspooler/ui/PageAdapter.java
rc/com/android/printspooler/ui/PrintActivity.java
a3b6fc48b7a768117b2235038a409aca59ae2225 31-Oct-2014 Svetoslav <svetoslavganov@google.com> am 2a6749ad: am 93134ce8: Merge "Save to a PDF file should look like print preview." into lmp-mr1-dev automerge: 160021d

* commit '2a6749adc0d0693b97c81b6083629e13b604d45a':
Save to a PDF file should look like print preview.
2a6749adc0d0693b97c81b6083629e13b604d45a 31-Oct-2014 Svetoslav <svetoslavganov@google.com> am 93134ce8: Merge "Save to a PDF file should look like print preview." into lmp-mr1-dev
automerge: 160021d

* commit '160021d8cf62f566587d899498c72fff82b6969f':
Save to a PDF file should look like print preview.
93134ce87e7b33e599c9ef9ed8b19ec2556ca8f1 31-Oct-2014 Svetoslav <svetoslavganov@google.com> Merge "Save to a PDF file should look like print preview." into lmp-mr1-dev
bec22beb99b279d381f720d761ca75fe3e7414dc 25-Sep-2014 Svetoslav <svetoslavganov@google.com> Save to a PDF file should look like print preview.

When rendering a PDF file for print preview we take into account
the selected print options such as paper size, orientation, etc
without modifying the document. To print we send the doc in its
original form and the print options so the print service can apply
the necessary transforms in addition to the optional custom options
it supports. When saving to PDF we have to actually change the
document as we act as a print service.

bug:13545980

Change-Id: Icdcecf962bec6ff742cc6015df5af9d9086ce760
rc/com/android/printspooler/renderer/IPdfEditor.aidl
rc/com/android/printspooler/renderer/PdfManipulationService.java
rc/com/android/printspooler/ui/PrintActivity.java
840e230d4e58b3fb69abe7f3252a70ebfe85898e 31-Oct-2014 Svetoslav <svetoslavganov@google.com> am 65895fac: am 39f35336: am d3786a59: Merge "Print preview disappearing if printer is changed." into lmp-mr1-dev

* commit '65895facf2b7c4d31bd8dbd0132e1471b381f0d8':
Print preview disappearing if printer is changed.
65895facf2b7c4d31bd8dbd0132e1471b381f0d8 31-Oct-2014 Svetoslav <svetoslavganov@google.com> am 39f35336: am d3786a59: Merge "Print preview disappearing if printer is changed." into lmp-mr1-dev

* commit '39f35336e528434e59f4ea317498919d8d4f9dbd':
Print preview disappearing if printer is changed.
abeca149d71d73260586555a19f030c3e79b9b13 30-Oct-2014 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: I37bac04e94e138a6bea3d16bbbad8926bf3d98bd
Auto-generated-cl: translation import
es/values-af/strings.xml
es/values-am/strings.xml
es/values-ar/strings.xml
es/values-bg/strings.xml
es/values-bn-rBD/strings.xml
es/values-ca/strings.xml
es/values-cs/strings.xml
es/values-da/strings.xml
es/values-de/strings.xml
es/values-el/strings.xml
es/values-en-rGB/strings.xml
es/values-en-rIN/strings.xml
es/values-es-rUS/strings.xml
es/values-es/strings.xml
es/values-et-rEE/strings.xml
es/values-eu-rES/strings.xml
es/values-fa/strings.xml
es/values-fi/strings.xml
es/values-fr-rCA/strings.xml
es/values-fr/strings.xml
es/values-gl-rES/strings.xml
es/values-hi/strings.xml
es/values-hr/strings.xml
es/values-hu/strings.xml
es/values-hy-rAM/strings.xml
es/values-in/strings.xml
es/values-is-rIS/strings.xml
es/values-it/strings.xml
es/values-iw/strings.xml
es/values-ja/strings.xml
es/values-ka-rGE/strings.xml
es/values-kk-rKZ/strings.xml
es/values-km-rKH/strings.xml
es/values-kn-rIN/strings.xml
es/values-ko/strings.xml
es/values-ky-rKG/strings.xml
es/values-lo-rLA/strings.xml
es/values-lt/strings.xml
es/values-lv/strings.xml
es/values-mk-rMK/strings.xml
es/values-ml-rIN/strings.xml
es/values-mn-rMN/strings.xml
es/values-mr-rIN/strings.xml
es/values-ms-rMY/strings.xml
es/values-my-rMM/strings.xml
es/values-nb/strings.xml
es/values-ne-rNP/strings.xml
es/values-nl/strings.xml
es/values-pl/strings.xml
es/values-pt-rPT/strings.xml
es/values-pt/strings.xml
es/values-ro/strings.xml
es/values-ru/strings.xml
es/values-si-rLK/strings.xml
es/values-sk/strings.xml
es/values-sl/strings.xml
es/values-sr/strings.xml
es/values-sv/strings.xml
es/values-sw/strings.xml
es/values-ta-rIN/strings.xml
es/values-te-rIN/strings.xml
es/values-th/strings.xml
es/values-tl/strings.xml
es/values-tr/strings.xml
es/values-uk/strings.xml
es/values-ur-rPK/strings.xml
es/values-uz-rUZ/strings.xml
es/values-vi/strings.xml
es/values-zh-rCN/strings.xml
es/values-zh-rHK/strings.xml
es/values-zh-rTW/strings.xml
es/values-zu/strings.xml
7c053c1e414c77ae28adb90390027e21ce57bc5e 29-Oct-2014 Svetoslav <svetoslavganov@google.com> Print preview disappearing if printer is changed.

This is a regression caused by my previous patch.

Change-Id: I80a0b4d880fd4e48e6a44fac303a4c8204e8ec0d
rc/com/android/printspooler/model/PageContentRepository.java
5329b48404b8989263812f4d6fdf7ec422491f25 25-Oct-2014 Svet Ganov <svetoslavganov@google.com> am a6a440b6: am b32f04b7: Merge "Printing from two apps at the same time not working." into lmp-mr1-dev automerge: 5e1e4ef

* commit 'a6a440b69114ec74502c52254059a9c902d4f6d4':
Printing from two apps at the same time not working.
ea7400780983944ff735b2381867f1ae9c00eb6c 25-Oct-2014 Svet Ganov <svetoslavganov@google.com> am d1cd7725: Merge "Crash in print spooler if printing app killed from recents." into lmp-mr1-dev automerge: 7cf7c36 automerge: fb7c62c

* commit 'd1cd77254bf6000f9c2ca742e4870ffd7d033f5a':
Crash in print spooler if printing app killed from recents.
a6a440b69114ec74502c52254059a9c902d4f6d4 25-Oct-2014 Svet Ganov <svetoslavganov@google.com> am b32f04b7: Merge "Printing from two apps at the same time not working." into lmp-mr1-dev
automerge: 5e1e4ef

* commit '5e1e4ef41917315c46e577ddabb469164c56c515':
Printing from two apps at the same time not working.
b32f04b785306f06d7d07b824fb8dcc1b4a61aa6 25-Oct-2014 Svet Ganov <svetoslavganov@google.com> Merge "Printing from two apps at the same time not working." into lmp-mr1-dev
99a82437ed8e0537d9a355a124d2bb30aea46ad8 25-Oct-2014 Svet Ganov <svetoslavganov@google.com> Printing from two apps at the same time not working.

When printing from two apps at the same time the second print UI is
getting stuck. There were a couple of issues here:

AdapterView was not notifying for item selection if the data changes
after scheduling a dalayed selection notification and the notification
execution. The code assumed that a layout pass will occur and posponed
the notification after the layout pass but it is not guaranteed that
such a layout pass will occur. Now we delay only if a layout pass is
being scheduled.

Also when binding to the PDF rendering service the print spooler was
using the same intent and as a result two print activites were getting
the same renderer instance while they should get separate ones. Now
we use different data in the intent to ensure we get separate renderer
instances.

Change-Id: I6aa7c7b041957804b4273549dd837a6d70064efc
rc/com/android/printspooler/model/PageContentRepository.java
d1cd77254bf6000f9c2ca742e4870ffd7d033f5a 24-Oct-2014 Svet Ganov <svetoslavganov@google.com> Merge "Crash in print spooler if printing app killed from recents." into lmp-mr1-dev automerge: 7cf7c36
automerge: fb7c62c

* commit 'fb7c62c143d210b9ecd01c3054ae2dfbd0dda2b6':
Crash in print spooler if printing app killed from recents.
7cf7c364386d18b94d212d98072e97c1c3d87e26 24-Oct-2014 Svet Ganov <svetoslavganov@google.com> Merge "Crash in print spooler if printing app killed from recents." into lmp-mr1-dev
4237c92d850b7fb0fa0be15df94e4d1689e353fc 24-Oct-2014 Svet Ganov <svetoslavganov@google.com> Crash in print spooler if printing app killed from recents.

If the printing app with the print UI on top is killed from recents we get
a crash because: 1) the remote print document was not transitioned to a
failed state if the printing app dies (this is an unrecoverable failure);
2) the print preview controller was destroyed asyncronosly during which it
also asynchronously disconnects from the rendering service which however
happens after the system has already cleaned up all connections of the print
UI activity as it is being destoryed.

bug:18109386

Change-Id: If6200b14a8aa90622228bbb659e9c4962226f561
rc/com/android/printspooler/model/PageContentRepository.java
rc/com/android/printspooler/model/PrintSpoolerService.java
rc/com/android/printspooler/model/RemotePrintDocument.java
rc/com/android/printspooler/ui/PageAdapter.java
rc/com/android/printspooler/ui/PrintActivity.java
rc/com/android/printspooler/ui/PrintPreviewController.java
15254095f87d863db65b4f892b964a202e36da2c 24-Oct-2014 Svet Ganov <svetoslavganov@google.com> am 026e959d: am 0abcda59: am fdef09ec: Merge "Sometimes historical printers not properly ordered." into lmp-mr1-dev

* commit '026e959d11f13d6f17f5a1d477150094fdbf9583':
Sometimes historical printers not properly ordered.
026e959d11f13d6f17f5a1d477150094fdbf9583 24-Oct-2014 Svet Ganov <svetoslavganov@google.com> am 0abcda59: am fdef09ec: Merge "Sometimes historical printers not properly ordered." into lmp-mr1-dev

* commit '0abcda5929aac1746219c87dbdd26c33d990f3c6':
Sometimes historical printers not properly ordered.
2916f658c9a55aa5b08a3bbe3056dbfd78e0e1b0 24-Oct-2014 Svet Ganov <svetoslavganov@google.com> Sometimes historical printers not properly ordered.

We order printers based on past usage. In some cases the ordering
does not work. The reason for that was an incorrect assumption that
the entries in an ArrayMap are ordered in the order they are added.

bug:18109283

Change-Id: Ie367e4ca5e6bd79f335a060074c9211054e3a931
rc/com/android/printspooler/ui/FusedPrintersProvider.java
a4b101abc1db465d0a7a4709b79ca839a819f137 24-Oct-2014 Svet Ganov <svetoslavganov@google.com> am 532f0a29: am 9920a0dc: Merge "Set copies to one when saving to PDF." into lmp-mr1-dev automerge: 9dec5df

* commit '532f0a29548c1ebc9467fe8960626981d24fd26f':
Set copies to one when saving to PDF.
532f0a29548c1ebc9467fe8960626981d24fd26f 24-Oct-2014 Svet Ganov <svetoslavganov@google.com> am 9920a0dc: Merge "Set copies to one when saving to PDF." into lmp-mr1-dev
automerge: 9dec5df

* commit '9dec5df3a3df9df1786a7a9e74f140e1c165272e':
Set copies to one when saving to PDF.
9920a0dcf15ba2036cdcc5d6548efa6b4a8bc944 24-Oct-2014 Svet Ganov <svetoslavganov@google.com> Merge "Set copies to one when saving to PDF." into lmp-mr1-dev
45e50e99cdb10b43b062612c2e87e75841f2c424 23-Oct-2014 Svet Ganov <svetoslavganov@google.com> Set copies to one when saving to PDF.

One can save only one copy to PDF. Showing more that one copy when saving
to PDF enven in a disabled input box is confusing to the user. We now set
the copies to one when the PDF printer is selected.

bug:17631303

Change-Id: Ia04d144efc899e7f3836c19349d9c87f3ae8f0f0
rc/com/android/printspooler/ui/PrintActivity.java
2107d3c103639eeb95bcb617606f981613015c05 20-Oct-2014 Geoff Mendal <mendal@google.com> Import translations. DO NOT MERGE

Change-Id: Ie1293460014a50bb5a6e35258ccbba37fa005e3d
Auto-generated-cl: translation import
es/values-hi/strings.xml
es/values-km-rKH/strings.xml
es/values-my-rMM/strings.xml
d0502d37fc7c53058f2d57d3945d3948c2b57619 15-Oct-2014 Svetoslav <svetoslavganov@google.com> am 4e3b2426: am a23ad0b7: am 0c8e15c0: am 60cdb909: am 0a1ffdb3: Merge "Handle if the printing app is killed while saving to PDF." into lmp-dev

* commit '4e3b2426ac54557bf8502f3b1240a02e2b64a58b':
Handle if the printing app is killed while saving to PDF.
4e3b2426ac54557bf8502f3b1240a02e2b64a58b 15-Oct-2014 Svetoslav <svetoslavganov@google.com> am a23ad0b7: am 0c8e15c0: am 60cdb909: am 0a1ffdb3: Merge "Handle if the printing app is killed while saving to PDF." into lmp-dev

* commit 'a23ad0b7dd159e7fb0e8c2ff6b86683c7da6225e':
Handle if the printing app is killed while saving to PDF.
0c8e15c016efa64cc8db6a1f1fbcade34543cf3f 15-Oct-2014 Svetoslav <svetoslavganov@google.com> am 60cdb909: am 0a1ffdb3: Merge "Handle if the printing app is killed while saving to PDF." into lmp-dev

* commit '60cdb909304f0d4b93a1a17228bdcc888f16cf41':
Handle if the printing app is killed while saving to PDF.
60cdb909304f0d4b93a1a17228bdcc888f16cf41 15-Oct-2014 Svetoslav <svetoslavganov@google.com> am 0a1ffdb3: Merge "Handle if the printing app is killed while saving to PDF." into lmp-dev

* commit '0a1ffdb3f89705eeeb89349fcd31c82b2d15b0a5':
Handle if the printing app is killed while saving to PDF.
9784d4b8f33b2e0f7d791cf7386e81d82bd7b49a 15-Oct-2014 Svetoslav <svetoslavganov@google.com> am 0a1ffdb3: Merge "Handle if the printing app is killed while saving to PDF." into lmp-dev

* commit '0a1ffdb3f89705eeeb89349fcd31c82b2d15b0a5':
Handle if the printing app is killed while saving to PDF.
05e041b013d8750a66787f5f7eb77c7ec95a670f 14-Oct-2014 Svetoslav <svetoslavganov@google.com> Handle if the printing app is killed while saving to PDF.

When saving to PDF we bring up the file picker UI which covers
the print UI. In this case the printing app may get killed as
it is not in the forground (the system is bound to the print
spooler so it cannot get killed). If that happens we are ending
up with an empty file. However, if the file chooser UI is up
we already have everything from the app we need and it dying
does not matter. This change takes care if ignoring printing
app death while saving to PDF.

bug:17922948

Change-Id: I10d808e3c3e93e850dbc2a948f2482381a887928
rc/com/android/printspooler/ui/PrintActivity.java
7ae1953d24d4ef6cb27a9c408cbea7a60c928849 13-Oct-2014 Geoff Mendal <mendal@google.com> Import translations. DO NOT MERGE

Change-Id: I600e821cd0067e2d5178dd08aef5890bc8abeb4b
Auto-generated-cl: translation import
es/values-km-rKH/strings.xml
es/values-my-rMM/strings.xml
d9bc67bfcc601bcc20fa66db0c5bf60c3d45ddef 08-Oct-2014 Svet Ganov <svetoslavganov@google.com> am 0d70c69f: am e0818520: am 40014e1d: Merge "Custom print settings cannot change resolution." into lmp-mr1-dev

* commit '0d70c69f2561c961706c90a907199877f366df4c':
Custom print settings cannot change resolution.
0d70c69f2561c961706c90a907199877f366df4c 08-Oct-2014 Svet Ganov <svetoslavganov@google.com> am e0818520: am 40014e1d: Merge "Custom print settings cannot change resolution." into lmp-mr1-dev

* commit 'e081852014538b01f06c61ea8c2f1499606a1d8a':
Custom print settings cannot change resolution.
2eb7fadcd64120f0e94ebb0f91188900e916c559 02-Oct-2014 Svet Ganov <svetoslavganov@google.com> Custom print settings cannot change resolution.

bug:17677133

Change-Id: Ib8a24101f12d431fe221c1e91711d93a6a517273
rc/com/android/printspooler/ui/PrintActivity.java
7fad343e296cbcac136953d7ff9028fbafeb9c6b 06-Oct-2014 Geoff Mendal <mendal@google.com> Import translations. DO NOT MERGE

Change-Id: I3638ac261b138409a73c927c8c3d2f6e4040e52b
Auto-generated-cl: translation import
es/values-km-rKH/strings.xml
es/values-my-rMM/strings.xml
c1a064dd94293bee722020c4405af456b1cf4dda 06-Oct-2014 Geoff Mendal <mendal@google.com> Import translations. DO NOT MERGE

Change-Id: I391b269b0d535fa7d8a4082cb0271b0aeb16a497
Auto-generated-cl: translation import
es/values-km-rKH/strings.xml
f65288da060a5055655192166912b52070d0118e 06-Oct-2014 Geoff Mendal <mendal@google.com> Import translations. DO NOT MERGE

Change-Id: Ieb7aeaea1204f4ba7daf3abd7a30f647564807dd
Auto-generated-cl: translation import
es/values-km-rKH/strings.xml
86dec04749b0eba50f96abb22c0142a14aeb3494 06-Oct-2014 Geoff Mendal <mendal@google.com> Import translations. DO NOT MERGE

Change-Id: I2100b649d1f2866cdc5ffd13f264afba347b6685
Auto-generated-cl: translation import
es/values-km-rKH/strings.xml
es/values-my-rMM/strings.xml
4113147a5145c840a17d5c48a967fe462a270f12 30-Sep-2014 Svetoslav <svetoslavganov@google.com> am ab1e1bdb: am 7288d989: am 903365a9: am 59bb49fb: am 922fcc2f: Merge "Crash in print spooler if save to PDF selected early." into lmp-dev

* commit 'ab1e1bdbdc7fe545b1f99aaf50a583cec7f8fdf9':
Crash in print spooler if save to PDF selected early.
6545f1ec7efcb67c737d28b93fba9b4b30a6cd00 30-Sep-2014 Svetoslav <svetoslavganov@google.com> am 7e7e23f5: am 1662a9b9: am 90f2f122: am 1fd73590: am b179bed3: Merge "Fix carsh in print spooler if custom print setings return bad pages." into lmp-dev

* commit '7e7e23f50cb3d6ba1026a41b81841257901a0e92':
Fix carsh in print spooler if custom print setings return bad pages.
ab1e1bdbdc7fe545b1f99aaf50a583cec7f8fdf9 30-Sep-2014 Svetoslav <svetoslavganov@google.com> am 7288d989: am 903365a9: am 59bb49fb: am 922fcc2f: Merge "Crash in print spooler if save to PDF selected early." into lmp-dev

* commit '7288d9899020d4359ecbb2abe99fa8755547c874':
Crash in print spooler if save to PDF selected early.
7e7e23f50cb3d6ba1026a41b81841257901a0e92 30-Sep-2014 Svetoslav <svetoslavganov@google.com> am 1662a9b9: am 90f2f122: am 1fd73590: am b179bed3: Merge "Fix carsh in print spooler if custom print setings return bad pages." into lmp-dev

* commit '1662a9b9ad82a2599fc6c54e6a51ae5d290b9172':
Fix carsh in print spooler if custom print setings return bad pages.
ce8d47600b0b9926edd86d9eb35d0a150dd79874 30-Sep-2014 Svetoslav <svetoslavganov@google.com> am 922fcc2f: Merge "Crash in print spooler if save to PDF selected early." into lmp-dev

* commit '922fcc2f9e2370b34672af0e91e5754c6f8d6da7':
Crash in print spooler if save to PDF selected early.
ed62f5d8c83598bb80be8df8a2d96e8d9d48e6b2 30-Sep-2014 Svetoslav <svetoslavganov@google.com> am b179bed3: Merge "Fix carsh in print spooler if custom print setings return bad pages." into lmp-dev

* commit 'b179bed35302704bce809029ab424f919de351c3':
Fix carsh in print spooler if custom print setings return bad pages.
59bb49fbf72defb41561f1e25e5167092a6230c7 29-Sep-2014 Svetoslav <svetoslavganov@google.com> am 922fcc2f: Merge "Crash in print spooler if save to PDF selected early." into lmp-dev

* commit '922fcc2f9e2370b34672af0e91e5754c6f8d6da7':
Crash in print spooler if save to PDF selected early.
1fd7359038f95dd1625f968d0fa2ca4b620407a8 29-Sep-2014 Svetoslav <svetoslavganov@google.com> am b179bed3: Merge "Fix carsh in print spooler if custom print setings return bad pages." into lmp-dev

* commit 'b179bed35302704bce809029ab424f919de351c3':
Fix carsh in print spooler if custom print setings return bad pages.
922fcc2f9e2370b34672af0e91e5754c6f8d6da7 28-Sep-2014 Svetoslav <svetoslavganov@google.com> Merge "Crash in print spooler if save to PDF selected early." into lmp-dev
e1dcb397d595c110faadaae6bab861bae97717b8 27-Sep-2014 Svetoslav <svetoslavganov@google.com> Crash in print spooler if save to PDF selected early.

The first issue is that the save to pdf button is enabled
before the first layout completed and at this point we do
not know anything about the document. The second is that
if a layout is in progress and we select save to pdf we
end up starting the documents UI twice and finishing the
second instance carshes the spooler.

bug:17676878

Change-Id: Id0b1f06e4d377347286c2dde09669d431441234b
rc/com/android/printspooler/ui/PrintActivity.java
528424c26cb118a68f77cef94992a0282cfdc12c 27-Sep-2014 Svetoslav <svetoslavganov@google.com> Fix carsh in print spooler if custom print setings return bad pages.

The custom settings activity of a print serivce can change the selected
pages and the spooler was not checking whether the returned pages were
valid leading to a crash.

bug:17678553

Change-Id: Id8ea3d482d2909b97a06752d61b416dfe5948483
rc/com/android/printspooler/ui/PrintActivity.java
ca33504512496713627b57732ea6876cd1872b5e 25-Sep-2014 Svetoslav <svetoslavganov@google.com> am 17aee50f: am 0804f1f5: am d32e5cc8: am 737fa54b: am 299a89b5: Merge "Print spooler should not crash if fed non-PDF content." into lmp-dev

* commit '17aee50f9cf1965c36c8140577c3bd9df375c283':
Print spooler should not crash if fed non-PDF content.
067f3fbfdf5f484ecbbd7722ba3330c60d3c0353 25-Sep-2014 Svetoslav <svetoslavganov@google.com> am 0804f1f5: am d32e5cc8: am 737fa54b: am 299a89b5: Merge "Print spooler should not crash if fed non-PDF content." into lmp-dev

* commit '0804f1f543686026febf980614b4d98254c86b8f':
Print spooler should not crash if fed non-PDF content.
9ad78720955b94353f036620d94a67e68dc09844 24-Sep-2014 Svetoslav <svetoslavganov@google.com> am 299a89b5: Merge "Print spooler should not crash if fed non-PDF content." into lmp-dev

* commit '299a89b50f1268f3c4cd0e58727f7d7805b573b2':
Print spooler should not crash if fed non-PDF content.
9aacf5d3f2c64e98cded70acde5d9e863cad20ba 24-Sep-2014 Svetoslav <svetoslavganov@google.com> am 299a89b5: Merge "Print spooler should not crash if fed non-PDF content." into lmp-dev

* commit '299a89b50f1268f3c4cd0e58727f7d7805b573b2':
Print spooler should not crash if fed non-PDF content.
d23bfa9d42c477970189a96d4562d627d609e604 24-Sep-2014 Svetoslav <svetoslavganov@google.com> Print spooler should not crash if fed non-PDF content.

It is possible that a buggy app breaks the contract and provides
content to be printed in format other than PDF. This was leading
to a crash in the print spooler. This change fixes the crash and
shows a user friendly error message.

bug:17642690

Change-Id: I5a4acb06080a152562655da6851467b3e71d8658
rc/com/android/printspooler/model/PageContentRepository.java
rc/com/android/printspooler/renderer/PdfManipulationService.java
418cf8fbb202177bab7abc3e02732b1b8a4c0c09 24-Sep-2014 Svetoslav <svetoslavganov@google.com> am df3a0fc1: am cbcb9786: am 5d554082: am 1f859a83: am 15c86a84: Merge "Missing pages in print preview when scorolling." into lmp-dev

* commit 'df3a0fc18cb8f2b38af0ae1f6898c659791aef01':
Missing pages in print preview when scorolling.
0c62b9f21761470a81545aa7545f745ff58240d5 24-Sep-2014 Svetoslav <svetoslavganov@google.com> am f080ea0b: am 35e8b096: am 205840f0: am 097cf25e: am 857f8013: Merge "Fix ANR in print spooler." into lmp-dev

* commit 'f080ea0bb64f29fd0af7086b236351a74f7dd43e':
Fix ANR in print spooler.
f64d6f8baf87e1da8ae9cb0f26fd4dbb37c0ec7f 24-Sep-2014 Svetoslav <svetoslavganov@google.com> am 86822226: am c99f265c: am 74036092: am 6853ed42: am ea5d75d8: Merge "Print spooler crash on back before first layout is complete." into lmp-dev

* commit '8682222655f96f0dcbe27f65496ad33e49e00ecc':
Print spooler crash on back before first layout is complete.
eaf576b0b0df466097fcac3a500be246a9fad237 24-Sep-2014 Svetoslav <svetoslavganov@google.com> am cbcb9786: am 5d554082: am 1f859a83: am 15c86a84: Merge "Missing pages in print preview when scorolling." into lmp-dev

* commit 'cbcb97862c9122a02811f58865679f0ea7ce1e7c':
Missing pages in print preview when scorolling.
f61ed942cdb3465da037522fc19c4554c19221eb 24-Sep-2014 Svetoslav <svetoslavganov@google.com> am 15c86a84: Merge "Missing pages in print preview when scorolling." into lmp-dev

* commit '15c86a84a5b595b43eecec611de22e6bd0c0eea4':
Missing pages in print preview when scorolling.
721e549ca66d311f69971b63cac7773837341cef 24-Sep-2014 Svetoslav <svetoslavganov@google.com> am 15c86a84: Merge "Missing pages in print preview when scorolling." into lmp-dev

* commit '15c86a84a5b595b43eecec611de22e6bd0c0eea4':
Missing pages in print preview when scorolling.
2bac6129a46b89c5e361fafc2c23b16c5716f847 24-Sep-2014 Svetoslav <svetoslavganov@google.com> Merge "Missing pages in print preview when scorolling." into lmp-dev
237806bbc540938a87a26b53f117c82ce75025fa 24-Sep-2014 Svetoslav <svetoslavganov@google.com> Missing pages in print preview when scorolling.

It is possible that two providers for the same page are assigned
to two preview views despite temporariliy while rebinding. We were
however releasing the provider from the view which is being bound
if not for the same page which as a result was cancelling rendering
of this page which is provided to another view via another provider.
Hence, having an empty page. Removed the unnecessary code to release
a provider when binding the view - release is happening only if the
view holder is recycled.

bug:17515670

Change-Id: I197438c16cfdb363f521cd1320f154da54eea5f5
rc/com/android/printspooler/ui/PageAdapter.java
b9773075730cebe0ecf5efda22bf556f9a130084 24-Sep-2014 Svetoslav <svetoslavganov@google.com> am 35e8b096: am 205840f0: am 097cf25e: am 857f8013: Merge "Fix ANR in print spooler." into lmp-dev

* commit '35e8b096238da4f461f973f479c154b2dd23b307':
Fix ANR in print spooler.
e3e27067584e18a6633d7491f9c6db45c8c8a5ba 24-Sep-2014 Svetoslav <svetoslavganov@google.com> am c99f265c: am 74036092: am 6853ed42: am ea5d75d8: Merge "Print spooler crash on back before first layout is complete." into lmp-dev

* commit 'c99f265c8fefbecedd2048c111fd34125efa8933':
Print spooler crash on back before first layout is complete.
41c8d0ea8243d8ff679763e87b4470bcfa2490e7 24-Sep-2014 Svetoslav <svetoslavganov@google.com> am 857f8013: Merge "Fix ANR in print spooler." into lmp-dev

* commit '857f80134d6c23894f5589457883c57137b2ed27':
Fix ANR in print spooler.
b8cea47370017ceed1dc84b7d9e8fecaecc5ea71 24-Sep-2014 Svetoslav <svetoslavganov@google.com> am ea5d75d8: Merge "Print spooler crash on back before first layout is complete." into lmp-dev

* commit 'ea5d75d807b379592f3bfd6ccd4cb43d02f72f49':
Print spooler crash on back before first layout is complete.
822a58aad302bf2276bfc7f760761d99756de93e 24-Sep-2014 Svetoslav <svetoslavganov@google.com> am 857f8013: Merge "Fix ANR in print spooler." into lmp-dev

* commit '857f80134d6c23894f5589457883c57137b2ed27':
Fix ANR in print spooler.
24ef6e43db9f1cec923293df8461efcd323b13eb 24-Sep-2014 Svetoslav <svetoslavganov@google.com> am ea5d75d8: Merge "Print spooler crash on back before first layout is complete." into lmp-dev

* commit 'ea5d75d807b379592f3bfd6ccd4cb43d02f72f49':
Print spooler crash on back before first layout is complete.
09eb0b203329b1d846de227a8b03774c903b86f0 24-Sep-2014 Svetoslav <svetoslavganov@google.com> Merge "Fix ANR in print spooler." into lmp-dev
56683481381003325481143af15d519c1bf0148f 24-Sep-2014 Svetoslav <svetoslavganov@google.com> Fix ANR in print spooler.

Saving to PDF a subset of the pages requires trimming the
undesired pages and when this is done writing the ready doc
to a URI. To write the file to URI we have to obtain it but
it is aquired by the shredding task and never released. Now
we are releasing the document immediately after trimming it.

bug:17631301

Change-Id: I4db7966c65c75f0f14c3cb52fd83b4d8fd5a4687
rc/com/android/printspooler/ui/PrintActivity.java
254361f136aa9461e16f11f0170fde05e83a1b92 24-Sep-2014 Svetoslav <svetoslavganov@google.com> Print spooler crash on back before first layout is complete.

If the user presses back before the remote print document
update has completed we get a crash. The reason is that
after the update completion we were trying to finish the
activity if we are in a cancelled state but this is not
needed as we aready handled the back key so we will finish.
Handling finish twice was creating the problem as classes
with lifecycles are not designed to be used after being
finished. In particular, we were calling doFinish() twice.

bug:17630561

Change-Id: If418f237a2def7c8e4a072ac8826283f4dd7fc85
rc/com/android/printspooler/model/PageContentRepository.java
rc/com/android/printspooler/ui/PrintActivity.java
5e7eeccd056f104f380e45bb507458621595937c 23-Sep-2014 Svetoslav <svetoslavganov@google.com> am 515c7c94: am cd343325: am e821fc43: am 87c9fb76: am e9456781: Merge "Loosen the constraint for releasing a shared file." into lmp-dev

* commit '515c7c9416e33f17c9a937931d43ebfb391dcd44':
Loosen the constraint for releasing a shared file.
8b366ef3eeafea3839f78104f05266a12b8c0a87 23-Sep-2014 Svetoslav <svetoslavganov@google.com> am cd343325: am e821fc43: am 87c9fb76: am e9456781: Merge "Loosen the constraint for releasing a shared file." into lmp-dev

* commit 'cd3433251e0a1e1141ee11fd5b72864b56f6b807':
Loosen the constraint for releasing a shared file.
b889173558a6b6d5b1e3947972355763907bf640 22-Sep-2014 Svetoslav <svetoslavganov@google.com> am e9456781: Merge "Loosen the constraint for releasing a shared file." into lmp-dev

* commit 'e9456781c0b4d6ccc70a5378ecd802fd28554796':
Loosen the constraint for releasing a shared file.
ca506af8b0169314ded1493c08c377245d7c8de1 22-Sep-2014 Svetoslav <svetoslavganov@google.com> am e9456781: Merge "Loosen the constraint for releasing a shared file." into lmp-dev

* commit 'e9456781c0b4d6ccc70a5378ecd802fd28554796':
Loosen the constraint for releasing a shared file.
cf3a86b55981313e1fdfafbef89ab5ba7276a862 22-Sep-2014 Svetoslav <svetoslavganov@google.com> Loosen the constraint for releasing a shared file.

In the spooler we have the renderer reading a file to visualize
content and the app writing a file to produce the content. Since
we have to swap the file under the renderer we have a mutex file
provider that both parties can request, use when released, and
release when required. This enables us to request the file which
closes the renderer and when the renderer is closed ask the app
to write some more pages, then open the renderer, and so on. The
mutex file provider was throwing of a thread that does not own
the file thries to relase it which is not needed, this should be
just a nop.

bug:17607134

Change-Id: Id6a2ce92d70077f57978b95315648faf02c13c68
rc/com/android/printspooler/model/MutexFileProvider.java
ed9b1a848d487ea962feef3c91ac1cd743900687 20-Sep-2014 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: Ieb412ac9804570a48077a9cf8f425d7fe306016e
Auto-generated-cl: translation import
es/values-hi/strings.xml
es/values-pt/strings.xml
d5270550b1b5fa48bfd86b1d3720b98da8284a06 20-Sep-2014 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: I87cc837c719968aa778af92a4f119a266d2c2c42
Auto-generated-cl: translation import
es/values-hi/strings.xml
es/values-pt/strings.xml
78ec95e7147045edb68d333e70ed897f93da61b7 20-Sep-2014 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: Ib08e8991a092d8404352d9709d837be2eb392b55
Auto-generated-cl: translation import
es/values-hi/strings.xml
es/values-pt/strings.xml
40f1a329d172ac794a8fd726a526dab39fbed904 20-Sep-2014 Svetoslav <svetoslavganov@google.com> am e289f35b: am e5350332: am 63f3936c: am 0d397697: am a2201272: Merge "Fix a print spooler crash when printing." into lmp-dev

* commit 'e289f35bb7a0ec003e9707ce6ffb7e3279fb3a39':
Fix a print spooler crash when printing.
52dc625669cd6997b0e9e77c2e9e914a021d5d46 20-Sep-2014 Svetoslav <svetoslavganov@google.com> am e5350332: am 63f3936c: am 0d397697: am a2201272: Merge "Fix a print spooler crash when printing." into lmp-dev

* commit 'e535033270273ce07384647c99828ab11a5564d0':
Fix a print spooler crash when printing.
cfcce6bddd19da7c2359971358d820c1884b869c 20-Sep-2014 Svetoslav <svetoslavganov@google.com> am 0d397697: am a2201272: Merge "Fix a print spooler crash when printing." into lmp-dev

* commit '0d397697d0df2b08f5aa0b0e27108e79ea04f764':
Fix a print spooler crash when printing.
518b9dd9231243d5196214e7fffd6d147e59af95 19-Sep-2014 Svetoslav <svetoslavganov@google.com> am a2201272: Merge "Fix a print spooler crash when printing." into lmp-dev

* commit 'a2201272b5b27f3ac9cf90d6332e81fb474c1dbb':
Fix a print spooler crash when printing.
8b91705169a14366b547a037b5f26ff9249dd1d5 19-Sep-2014 Svetoslav <svetoslavganov@google.com> am a2201272: Merge "Fix a print spooler crash when printing." into lmp-dev

* commit 'a2201272b5b27f3ac9cf90d6332e81fb474c1dbb':
Fix a print spooler crash when printing.
9424b733c7f777fc806a751a7f00d234c11c0e7c 19-Sep-2014 Svetoslav <svetoslavganov@google.com> Fix a print spooler crash when printing.

The spooler communicates with he remote PDF renderer asynchronously.
When print is confirmed we close the renderer, destroy it, and unbind
from its service. If we unbind from the service after the print activiy
is finished we get a crash. The bug was that we did not wait until we
disconnect from the remote renderer before finishing the print activity.

bug:17583115

Change-Id: I55b0135f9c5658b3a4fda2901b8b3bdef044e211
rc/com/android/printspooler/model/PageContentRepository.java
rc/com/android/printspooler/ui/PageAdapter.java
rc/com/android/printspooler/ui/PrintActivity.java
rc/com/android/printspooler/ui/PrintPreviewController.java
d373c032bcd5ecf12f89713ca5ea2b7a88a14fdc 18-Sep-2014 Svetoslav <svetoslavganov@google.com> am 4b725f70: am 64ae6b01: am 5fe3bb76: am d972e2df: Merge "Print UI stuck when backing out of documents UI." into lmp-dev

* commit '4b725f701ba65b61716e3f572cf4a5238e91cf2d':
Print UI stuck when backing out of documents UI.
25754ff475dfb5be11b3f773b756c39e8f472ea6 18-Sep-2014 Svetoslav <svetoslavganov@google.com> am 42c1c428: am 1c46bae1: am d972e2df: Merge "Print UI stuck when backing out of documents UI." into lmp-dev

* commit '42c1c4289cf5c693a407a35f8d1a8dfbfe4e1fd4':
Print UI stuck when backing out of documents UI.
f14783bc511f0853912b0edd3c884b47dffc525c 18-Sep-2014 Svetoslav <svetoslavganov@google.com> am 5fe3bb76: am d972e2df: Merge "Print UI stuck when backing out of documents UI." into lmp-dev

* commit '5fe3bb76eb26707b096e20565a39fd3963c47134':
Print UI stuck when backing out of documents UI.
11549dd25884973f2ea7a906c6e20cb375ac60d6 18-Sep-2014 Svetoslav <svetoslavganov@google.com> am d972e2df: Merge "Print UI stuck when backing out of documents UI." into lmp-dev

* commit 'd972e2dff33679a3c7fddd058396fd6437266709':
Print UI stuck when backing out of documents UI.
f05441f21b8695c9bad7501ade2f73acf08bcffd 18-Sep-2014 Svetoslav <svetoslavganov@google.com> am d972e2df: Merge "Print UI stuck when backing out of documents UI." into lmp-dev

* commit 'd972e2dff33679a3c7fddd058396fd6437266709':
Print UI stuck when backing out of documents UI.
688a994f4d156db6a9310c438545f014accba5ed 18-Sep-2014 Svetoslav <svetoslavganov@google.com> Merge "Print UI stuck when backing out of documents UI." into lmp-dev
b75632c7366d3c848a5d31782d9942dd2818adcb 18-Sep-2014 Svetoslav <svetoslavganov@google.com> Print UI stuck when backing out of documents UI.

When user chooses to save to PDF we open the document chooser UI.
Now if the user now backs to the print UI without choosing a file,
the print UI has all options disabled and the back button does
not work - the user is stuck. This is because we were not
transitioning the print UI in the correct state.

bug:17557454

Change-Id: I385129e106ed41564b89137ca54d409127ba8ff0
rc/com/android/printspooler/ui/PrintActivity.java
9bbf280b97fdbb8e70a3db6340fa8af20b056f01 18-Sep-2014 Baligh Uddin <baligh@google.com> Merge "Import translations. DO NOT MERGE"
6641c1051f21d321f364846c8ce13aadd120895b 18-Sep-2014 Baligh Uddin <baligh@google.com> Merge "Import translations. DO NOT MERGE" into lmp-dev
2f70e40f34900c11f9fff2252e5e0ca79c40bf8d 18-Sep-2014 Baligh Uddin <baligh@google.com> Merge "Import translations. DO NOT MERGE" into lmp-sprout-dev
1551a1075f8d9f5ca7594b189c32f18882786025 18-Sep-2014 Svetoslav <svetoslavganov@google.com> am 0489737e: am 0b7ca62e: am 3193edac: am 0bb6e05d: Page content sometimes missing in preview when scrolling.

* commit '0489737e0b0dea2b6372791ad5ce666e9194a914':
Page content sometimes missing in preview when scrolling.
aaf53c42adf509b1caf128d4309400aa42c50147 18-Sep-2014 Svetoslav <svetoslavganov@google.com> am f64e9294: am d0d98c75: am 0bb6e05d: Page content sometimes missing in preview when scrolling.

* commit 'f64e929453a7d8b527a5549e4c28f6c34b01a2b2':
Page content sometimes missing in preview when scrolling.
9af14fbc3be54265667dc4c8af276aca3968c5b8 18-Sep-2014 Svetoslav <svetoslavganov@google.com> am 0bb6e05d: Page content sometimes missing in preview when scrolling.

* commit '0bb6e05dcd5e809ca25ac79fc4d81c4c5957a8e2':
Page content sometimes missing in preview when scrolling.
ba34368920dea97190ad0d98fbaf87fb3e8f0552 18-Sep-2014 Svetoslav <svetoslavganov@google.com> am 0bb6e05d: Page content sometimes missing in preview when scrolling.

* commit '0bb6e05dcd5e809ca25ac79fc4d81c4c5957a8e2':
Page content sometimes missing in preview when scrolling.
0d2d9637ed4f46062d508cfa7da0e9776fc444f8 18-Sep-2014 Svetoslav <svetoslavganov@google.com> Page content sometimes missing in preview when scrolling.

Removed the restriction for the page content providers to
be singletons as the RecyclerView may hold on views with
providers and ask us to bind other views for the same page.
Note that the views that RecyclerView is holding will be
soon rebound or recycled just they are not at the time we
bind other views for the same position. We were guarding
against this but caused some pages not appearing sometimes
on scrolling. Also now keeping the media size and magins
of recycled page view (will be updated if needed on
rebinding) or avoid changes of the background to null as
setting it to not null later causes an undesired layout pass.

bug:17537922

Change-Id: If029f6c413e15d4f5c1ba1ac5e4d52ad2cad5904
rc/com/android/printspooler/model/PageContentRepository.java
rc/com/android/printspooler/ui/PageAdapter.java
e57e91ba7dd02ceb92f2893d28320bee3e26d82a 17-Sep-2014 Svetoslav <svetoslavganov@google.com> am 45a0a909: am cafb35db: am 809041d8: am 84ad5f75: Merge "Page content sometimes disappears when scrolling a long doc in print preview." into lmp-dev

* commit '45a0a9095849f61bfcad0363b59bb3cffc2ea92b':
Page content sometimes disappears when scrolling a long doc in print preview.
4fcaa85cf395a2516394fed66bb1ba0f1e2b4638 17-Sep-2014 Svetoslav <svetoslavganov@google.com> am 74953519: am 1110de7b: am 84ad5f75: Merge "Page content sometimes disappears when scrolling a long doc in print preview." into lmp-dev

* commit '7495351927b383e7b236d854deb98c4f498188ad':
Page content sometimes disappears when scrolling a long doc in print preview.
f58fe2518ee0f0ab861400f521d1a5ca6e1d936b 17-Sep-2014 Svetoslav <svetoslavganov@google.com> am 84ad5f75: Merge "Page content sometimes disappears when scrolling a long doc in print preview." into lmp-dev

* commit '84ad5f75e1c7d4f4d5113b413e814bde3aaa1747':
Page content sometimes disappears when scrolling a long doc in print preview.
6cdeaaa2914faa4e627addc5bfbccfbf0721755a 17-Sep-2014 Svetoslav <svetoslavganov@google.com> am 84ad5f75: Merge "Page content sometimes disappears when scrolling a long doc in print preview." into lmp-dev

* commit '84ad5f75e1c7d4f4d5113b413e814bde3aaa1747':
Page content sometimes disappears when scrolling a long doc in print preview.
7fd5ada98aa9e035682531d9fe25633fdd24a058 16-Sep-2014 Svetoslav <svetoslavganov@google.com> Page content sometimes disappears when scrolling a long doc in print preview.

The operations of the remote renderer have to be performed in order, open,
render some pages, close. One of the tasks was executed on the wrong executor
resuling in a race and an occassional bad state.

Also fixed a NPE if the preview list is flinged and then the user presses
back.

bug:17537922

Change-Id: I5048078ba2b875a2a8335f3a4324afaa34d014a2
rc/com/android/printspooler/model/PageContentRepository.java
rc/com/android/printspooler/ui/PageAdapter.java
rc/com/android/printspooler/ui/PrintActivity.java
rc/com/android/printspooler/ui/PrintPreviewController.java
rc/com/android/printspooler/widget/PageContentView.java
59fc6fb95b350c49e212be51012f93f8d8f25702 17-Sep-2014 Svetoslav <svetoslavganov@google.com> am 34a7ef08: am 5c151cae: am d6a1b7ed: am 03371fde: Merge "Print preview disappearing on screen off/on." into lmp-dev

* commit '34a7ef08958a3304a77346a24695683126a69a36':
Print preview disappearing on screen off/on.
a6b93b006fe5b048d2bdae0c651dcec37d350f5d 17-Sep-2014 Svetoslav <svetoslavganov@google.com> am 6f24a5c2: am bce7a884: am 79541afa: am ccf13317: Merge "Do not change fragments if print activity finishing." into lmp-dev

* commit '6f24a5c2a092136706f0921c4876c4a10f7a3ba6':
Do not change fragments if print activity finishing.
58d0353b9230595bb966da9c0a63d5ffd6331bac 16-Sep-2014 Svetoslav <svetoslavganov@google.com> am a32f976b: am 0d091661: am 03371fde: Merge "Print preview disappearing on screen off/on." into lmp-dev

* commit 'a32f976b2066052fd2b4fa7fac215aac9938fcf3':
Print preview disappearing on screen off/on.
a569f316d1703929c4dad5352aeb30d2518ec405 16-Sep-2014 Svetoslav <svetoslavganov@google.com> am d8a373f6: am 4bcd0cb1: am b4ab924b: am 42f75e9f: Merge "Missing or wrong pages in preview when scorlling large docs." into lmp-dev

* commit 'd8a373f612ecc90398e2cc4ed78b9e0ea480606c':
Missing or wrong pages in preview when scorlling large docs.
09cd090fdbb71fe8971722b5c9acf533106b71b5 16-Sep-2014 Svetoslav <svetoslavganov@google.com> am 5f0516b2: am e9259192: am 555d9acc: am 9208a81b: Merge "Page shredder callback invoked on the wrong thread." into lmp-dev

* commit '5f0516b2d5bc58dfcf2336c3416a67a422a24734':
Page shredder callback invoked on the wrong thread.
2ac9198d4f4adceb0d5a21f88a8d0672b395a1c2 16-Sep-2014 Svetoslav <svetoslavganov@google.com> am 8c46f96e: am 9b6cc5fd: am 75500def: am c59be126: Merge "Update print preview when a printer becomes available" into lmp-dev

* commit '8c46f96ef8c1c044e6776be2a7898d13f5c2b637':
Update print preview when a printer becomes available
bc7456716d1efa918be43e227c111b1022aa405c 16-Sep-2014 Svet Ganov <svetoslavganov@google.com> am af7bd717: am f8cfe1b9: am 734a9a7b: am f7d0cd92: Merge "Fix a crash in pring spooler." into lmp-dev

* commit 'af7bd717065055ad5843ea81c0876c3b11a12055':
Fix a crash in pring spooler.
d05d6e985f981d26e35465d1cb85e41fc4ecbfe3 16-Sep-2014 Svetoslav <svetoslavganov@google.com> am 03371fde: Merge "Print preview disappearing on screen off/on." into lmp-dev

* commit '03371fde628b999744cc75854ea656aa59371837':
Print preview disappearing on screen off/on.
c11e43f9cbda68028d818692a6be93cb37ce6e05 16-Sep-2014 Svetoslav <svetoslavganov@google.com> am 03371fde: Merge "Print preview disappearing on screen off/on." into lmp-dev

* commit '03371fde628b999744cc75854ea656aa59371837':
Print preview disappearing on screen off/on.
e9f275d309bfe314921dba51dd7c90686f2748bf 16-Sep-2014 Svetoslav <svetoslavganov@google.com> Merge "Print preview disappearing on screen off/on." into lmp-dev
a528e0e051a239c03c806d0376f2f67de18e8f4b 16-Sep-2014 Svetoslav <svetoslavganov@google.com> am 9b75a500: am 45c692b2: am ccf13317: Merge "Do not change fragments if print activity finishing." into lmp-dev

* commit '9b75a500c35e2abef04f527e3a1fd0c046a78751':
Do not change fragments if print activity finishing.
95b433814f96de5acabb986b29a0e56e06d40b56 16-Sep-2014 Svetoslav <svetoslavganov@google.com> am ccf13317: Merge "Do not change fragments if print activity finishing." into lmp-dev

* commit 'ccf133173bf628df149a27481f879cd9eeacbfba':
Do not change fragments if print activity finishing.
863c0bf99315082474a7131c7a9a5c709d299f27 16-Sep-2014 Svetoslav <svetoslavganov@google.com> am ccf13317: Merge "Do not change fragments if print activity finishing." into lmp-dev

* commit 'ccf133173bf628df149a27481f879cd9eeacbfba':
Do not change fragments if print activity finishing.
d724a40136f168251f6f62e5a51ad73bf8fe5d1e 16-Sep-2014 Svetoslav <svetoslavganov@google.com> Print preview disappearing on screen off/on.

We were not clearing the tracked printer when the print activity is
paused and then not setting the tracked printer when the activity
is resumed.

bug:17525271

Change-Id: Ib0fb29006bfcf5ad03dce24b3407cd96dc421442
rc/com/android/printspooler/ui/PrintActivity.java
23d3361e1747ee286157f9c61c3d02e6e20cac58 16-Sep-2014 Svetoslav <svetoslavganov@google.com> Do not change fragments if print activity finishing.

It is possible that we try to switch framents after the print
activity finish method is called. In this state the activity
is going away and trying to perform a fragment operation throws.
Now if we are finishing no fragment opration is performed.

bug:17520007

Change-Id: I0dd935d3cdaeddca31fccf49bd5de97e878abb9d
rc/com/android/printspooler/ui/PrintActivity.java
86b1cdd1fcdfbbd9ed42fbaea5b23ce7984a9eba 16-Sep-2014 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: Ief394aab91b856296c225261cc8215d8bd052092
Auto-generated-cl: translation import
es/values-af/strings.xml
es/values-am/strings.xml
es/values-ar/strings.xml
es/values-bg/strings.xml
es/values-bn-rBD/strings.xml
es/values-ca/strings.xml
es/values-cs/strings.xml
es/values-da/strings.xml
es/values-de/strings.xml
es/values-el/strings.xml
es/values-en-rGB/strings.xml
es/values-en-rIN/strings.xml
es/values-es-rUS/strings.xml
es/values-es/strings.xml
es/values-et-rEE/strings.xml
es/values-eu-rES/strings.xml
es/values-fa/strings.xml
es/values-fi/strings.xml
es/values-fr-rCA/strings.xml
es/values-fr/strings.xml
es/values-gl-rES/strings.xml
es/values-hi/strings.xml
es/values-hr/strings.xml
es/values-hu/strings.xml
es/values-hy-rAM/strings.xml
es/values-in/strings.xml
es/values-is-rIS/strings.xml
es/values-it/strings.xml
es/values-iw/strings.xml
es/values-ja/strings.xml
es/values-ka-rGE/strings.xml
es/values-kk-rKZ/strings.xml
es/values-km-rKH/strings.xml
es/values-kn-rIN/strings.xml
es/values-ko/strings.xml
es/values-ky-rKG/strings.xml
es/values-lo-rLA/strings.xml
es/values-lt/strings.xml
es/values-lv/strings.xml
es/values-mk-rMK/strings.xml
es/values-ml-rIN/strings.xml
es/values-mn-rMN/strings.xml
es/values-mr-rIN/strings.xml
es/values-ms-rMY/strings.xml
es/values-my-rMM/strings.xml
es/values-nb/strings.xml
es/values-ne-rNP/strings.xml
es/values-nl/strings.xml
es/values-pl/strings.xml
es/values-pt-rPT/strings.xml
es/values-pt/strings.xml
es/values-ro/strings.xml
es/values-ru/strings.xml
es/values-si-rLK/strings.xml
es/values-sk/strings.xml
es/values-sl/strings.xml
es/values-sr/strings.xml
es/values-sv/strings.xml
es/values-sw/strings.xml
es/values-ta-rIN/strings.xml
es/values-te-rIN/strings.xml
es/values-th/strings.xml
es/values-tl/strings.xml
es/values-tr/strings.xml
es/values-uk/strings.xml
es/values-ur-rPK/strings.xml
es/values-uz-rUZ/strings.xml
es/values-vi/strings.xml
es/values-zh-rCN/strings.xml
es/values-zh-rHK/strings.xml
es/values-zh-rTW/strings.xml
es/values-zu/strings.xml
94562a73b27ee18fdb174c77bcc55380d5a92a9c 16-Sep-2014 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: Ib05ba70bddef4f0c406498a0005da785fcde2138
Auto-generated-cl: translation import
es/values-af/strings.xml
es/values-am/strings.xml
es/values-ar/strings.xml
es/values-bg/strings.xml
es/values-ca/strings.xml
es/values-cs/strings.xml
es/values-da/strings.xml
es/values-de/strings.xml
es/values-el/strings.xml
es/values-en-rGB/strings.xml
es/values-en-rIN/strings.xml
es/values-es-rUS/strings.xml
es/values-es/strings.xml
es/values-et-rEE/strings.xml
es/values-fa/strings.xml
es/values-fi/strings.xml
es/values-fr-rCA/strings.xml
es/values-fr/strings.xml
es/values-hi/strings.xml
es/values-hr/strings.xml
es/values-hu/strings.xml
es/values-hy-rAM/strings.xml
es/values-in/strings.xml
es/values-it/strings.xml
es/values-iw/strings.xml
es/values-ja/strings.xml
es/values-ka-rGE/strings.xml
es/values-km-rKH/strings.xml
es/values-ko/strings.xml
es/values-lo-rLA/strings.xml
es/values-lt/strings.xml
es/values-lv/strings.xml
es/values-mn-rMN/strings.xml
es/values-ms-rMY/strings.xml
es/values-nb/strings.xml
es/values-nl/strings.xml
es/values-pl/strings.xml
es/values-pt-rPT/strings.xml
es/values-pt/strings.xml
es/values-ro/strings.xml
es/values-ru/strings.xml
es/values-sk/strings.xml
es/values-sl/strings.xml
es/values-sr/strings.xml
es/values-sv/strings.xml
es/values-sw/strings.xml
es/values-th/strings.xml
es/values-tl/strings.xml
es/values-tr/strings.xml
es/values-uk/strings.xml
es/values-vi/strings.xml
es/values-zh-rCN/strings.xml
es/values-zh-rHK/strings.xml
es/values-zh-rTW/strings.xml
es/values-zu/strings.xml
5e85ddd67523e34478828f683fb14649b01e611a 16-Sep-2014 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: Ie9fb53c8c5a93a7059ede5961f2967c1892e0faf
Auto-generated-cl: translation import
es/values-es-rUS/strings.xml
es/values-eu-rES/strings.xml
es/values-lo-rLA/strings.xml
es/values-pt-rPT/strings.xml
es/values-ro/strings.xml
es/values-zh-rCN/strings.xml
es/values-zh-rTW/strings.xml
8f06311db699c46cfa7ef3e29f54e45942a9234b 16-Sep-2014 Svetoslav <svetoslavganov@google.com> am 8e0c2e8d: am 88025747: am 42f75e9f: Merge "Missing or wrong pages in preview when scorlling large docs." into lmp-dev

* commit '8e0c2e8de282664c367cfbd2f36efc0d443481fe':
Missing or wrong pages in preview when scorlling large docs.
f52b71ad9e86a60ab64b3751865c186698ea8975 16-Sep-2014 Svetoslav <svetoslavganov@google.com> am 6e52e742: am 94e2d608: am 9208a81b: Merge "Page shredder callback invoked on the wrong thread." into lmp-dev

* commit '6e52e742d1e2bd0fece88d114d57ce388ba88157':
Page shredder callback invoked on the wrong thread.
73faf7a4b2fc003e2c3f4b8fb8aff8b2a7987e27 16-Sep-2014 Svetoslav <svetoslavganov@google.com> am b0797d2a: am ec88fbf7: am c59be126: Merge "Update print preview when a printer becomes available" into lmp-dev

* commit 'b0797d2a95c6046c1281aa74a9cffff905f2e081':
Update print preview when a printer becomes available
aed25e376be4f214fc319b036e6afec1ed132035 16-Sep-2014 Svet Ganov <svetoslavganov@google.com> am f2352b42: am 3a8c2787: am f7d0cd92: Merge "Fix a crash in pring spooler." into lmp-dev

* commit 'f2352b422054d706549064ccfdcf214d596f47b4':
Fix a crash in pring spooler.
653b9cf1a4b73482e41183bf696390ce705ddfed 16-Sep-2014 Svetoslav <svetoslavganov@google.com> am 42f75e9f: Merge "Missing or wrong pages in preview when scorlling large docs." into lmp-dev

* commit '42f75e9f5cfddb56d23a027bceed2f72e172aae0':
Missing or wrong pages in preview when scorlling large docs.
7431b661be48b1bdfbc94fb06b3e7cef057b500d 16-Sep-2014 Svetoslav <svetoslavganov@google.com> am 9208a81b: Merge "Page shredder callback invoked on the wrong thread." into lmp-dev

* commit '9208a81b4bfd22ab73fa9c459653fe6d18a7b8ea':
Page shredder callback invoked on the wrong thread.
6419ab46056fd51fa99c9a2c24269d80952559d2 16-Sep-2014 Svetoslav <svetoslavganov@google.com> am c59be126: Merge "Update print preview when a printer becomes available" into lmp-dev

* commit 'c59be126443a89c23a193e67f633ccccbfd939e0':
Update print preview when a printer becomes available
5a51947deec62ec72a73269d511feb0598a93441 16-Sep-2014 Svetoslav <svetoslavganov@google.com> am 42f75e9f: Merge "Missing or wrong pages in preview when scorlling large docs." into lmp-dev

* commit '42f75e9f5cfddb56d23a027bceed2f72e172aae0':
Missing or wrong pages in preview when scorlling large docs.
bff16debdcb3e15b30f50f6f806e166fce85a178 16-Sep-2014 Svetoslav <svetoslavganov@google.com> am 9208a81b: Merge "Page shredder callback invoked on the wrong thread." into lmp-dev

* commit '9208a81b4bfd22ab73fa9c459653fe6d18a7b8ea':
Page shredder callback invoked on the wrong thread.
9dd2ff496d6b5b2682c6f9ab23198e5eb0ac52c6 16-Sep-2014 Svetoslav <svetoslavganov@google.com> am c59be126: Merge "Update print preview when a printer becomes available" into lmp-dev

* commit 'c59be126443a89c23a193e67f633ccccbfd939e0':
Update print preview when a printer becomes available
e3cdd4dc6cc3188d5d1fdecb37798e49887f6d5f 16-Sep-2014 Svetoslav <svetoslavganov@google.com> Merge "Missing or wrong pages in preview when scorlling large docs." into lmp-dev
f3f963b0bebea91b17f7e60d9b826c458bfde38c 16-Sep-2014 Svetoslav <svetoslavganov@google.com> Missing or wrong pages in preview when scorlling large docs.

The bound pages in the adapter were not properly tracked, more
specifically we did not remove pages from the bound set ending
up in a bad state. Also when the printer changes and if the
new one has different page size the content disappears due to
us not notifying for the data set change.

bug:17515670

Change-Id: Iac74e864609012f6804584fa133e87c27dc186a5
rc/com/android/printspooler/ui/PageAdapter.java
rc/com/android/printspooler/ui/PrintPreviewController.java
56bdeeeb80d31d2c299a7e55b233658b5bc6fe01 16-Sep-2014 Svetoslav <svetoslavganov@google.com> Merge "Page shredder callback invoked on the wrong thread." into lmp-dev
fb3532eea391574cda69cae274915e9e1a7b6cf2 16-Sep-2014 Svetoslav <svetoslavganov@google.com> Page shredder callback invoked on the wrong thread.

The code executed in the shredder completion callback must
be called on the main thread but instead it was called on
another one. This led to a crash.

bug:17514533

Change-Id: Id9e86d38a90fedadc60f967b193470fd83eb3362
rc/com/android/printspooler/ui/PrintActivity.java
e0fa06c088ea95a01c0219e9711c3bcc93ad2685 16-Sep-2014 Svetoslav <svetoslavganov@google.com> Update print preview when a printer becomes available

We laizily request printer capabilities and when they are reported
we were not updating the preview and as a result the content was not
rendered, hence pages showing an empty state.

bug:17514117

Change-Id: Icfee7eaa1ab63f5e4d7655d4057ef2110c27cd43
rc/com/android/printspooler/ui/PrintActivity.java
4aa35d71ed1ce60df5a9d6d896c09f60c691093d 16-Sep-2014 Svet Ganov <svetoslavganov@google.com> am f7d0cd92: Merge "Fix a crash in pring spooler." into lmp-dev

* commit 'f7d0cd92c6a049a54efc2e29ec69c34f096be46d':
Fix a crash in pring spooler.
654f9279cc784e019bc9ed340e3da95aaa128dcf 16-Sep-2014 Svet Ganov <svetoslavganov@google.com> am f7d0cd92: Merge "Fix a crash in pring spooler." into lmp-dev

* commit 'f7d0cd92c6a049a54efc2e29ec69c34f096be46d':
Fix a crash in pring spooler.
f230c5d21be416f276009b0fd0524931cd671488 15-Sep-2014 Svet Ganov <svetoslavganov@google.com> Merge "Fix a crash in pring spooler." into lmp-dev
e771caf332bb3f2b668aaf249b30f37f13755553 15-Sep-2014 Svet Ganov <svetoslavganov@google.com> Fix a crash in pring spooler.

If the printer capabilities are reported with a delay which is pretty
common we were trying to evaluate the preview page dimensions without
having a media size resulting in a NPE.

bug:17501953

Change-Id: I6765137f61b8fd060e9eabff07e632875d934963
rc/com/android/printspooler/ui/PageAdapter.java
0fc76f07554df8f0df6461c4968eaf587a696db9 15-Sep-2014 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: Ifb234cb1ae0c96f393e3b203488f61467d97c267
Auto-generated-cl: translation import
es/values-af/strings.xml
es/values-am/strings.xml
es/values-ar/strings.xml
es/values-bg/strings.xml
es/values-bn-rBD/strings.xml
es/values-ca/strings.xml
es/values-cs/strings.xml
es/values-da/strings.xml
es/values-de/strings.xml
es/values-el/strings.xml
es/values-en-rGB/strings.xml
es/values-en-rIN/strings.xml
es/values-es-rUS/strings.xml
es/values-es/strings.xml
es/values-et-rEE/strings.xml
es/values-eu-rES/strings.xml
es/values-fa/strings.xml
es/values-fi/strings.xml
es/values-fr-rCA/strings.xml
es/values-fr/strings.xml
es/values-gl-rES/strings.xml
es/values-hi/strings.xml
es/values-hr/strings.xml
es/values-hu/strings.xml
es/values-hy-rAM/strings.xml
es/values-in/strings.xml
es/values-is-rIS/strings.xml
es/values-it/strings.xml
es/values-iw/strings.xml
es/values-ja/strings.xml
es/values-ka-rGE/strings.xml
es/values-kk-rKZ/strings.xml
es/values-km-rKH/strings.xml
es/values-kn-rIN/strings.xml
es/values-ko/strings.xml
es/values-ky-rKG/strings.xml
es/values-lo-rLA/strings.xml
es/values-lt/strings.xml
es/values-lv/strings.xml
es/values-mk-rMK/strings.xml
es/values-ml-rIN/strings.xml
es/values-mn-rMN/strings.xml
es/values-mr-rIN/strings.xml
es/values-ms-rMY/strings.xml
es/values-my-rMM/strings.xml
es/values-nb/strings.xml
es/values-ne-rNP/strings.xml
es/values-nl/strings.xml
es/values-pl/strings.xml
es/values-pt-rPT/strings.xml
es/values-pt/strings.xml
es/values-ro/strings.xml
es/values-ru/strings.xml
es/values-si-rLK/strings.xml
es/values-sk/strings.xml
es/values-sl/strings.xml
es/values-sr/strings.xml
es/values-sv/strings.xml
es/values-sw/strings.xml
es/values-ta-rIN/strings.xml
es/values-te-rIN/strings.xml
es/values-th/strings.xml
es/values-tl/strings.xml
es/values-tr/strings.xml
es/values-uk/strings.xml
es/values-ur-rPK/strings.xml
es/values-uz-rUZ/strings.xml
es/values-vi/strings.xml
es/values-zh-rCN/strings.xml
es/values-zh-rHK/strings.xml
es/values-zh-rTW/strings.xml
es/values-zu/strings.xml
7cf8907bc5e51952939baaf3d4286a0dc0c5485a 13-Sep-2014 Svetoslav <svetoslavganov@google.com> am 3ddf6652: am cc2f1ab3: am c2281007: Merge "Page content sometimes missing while scrolling." into lmp-dev

* commit '3ddf665212d5306c330e457e35b3e06f254fa315':
Page content sometimes missing while scrolling.
16c8e53b331d32da486b2f0e010ff6d79f4d0125 13-Sep-2014 Svetoslav <svetoslavganov@google.com> am c2281007: Merge "Page content sometimes missing while scrolling." into lmp-dev

* commit 'c2281007f190ab197b23484fd087c30955ffdd6b':
Page content sometimes missing while scrolling.
2047df6f5f6af14cdb93f220c0329f1bff7a43ff 13-Sep-2014 Svetoslav <svetoslavganov@google.com> Merge "Page content sometimes missing while scrolling." into lmp-dev
7387063b79c65fddc4b1934fe241e943efab121f 13-Sep-2014 Svet Ganov <svetoslavganov@google.com> am 9a52dac5: am 1fb38aad: am 16238096: Merge changes Ife1c7cb0,I398ff797 into lmp-dev

* commit '9a52dac5ed9432746427f14521d363621efe4531':
Fixing controls allignment in print UI.
Fix a crash in print spooler.
b5be0803dd14cbbb3e80433ed9ec9c813b93b8f4 13-Sep-2014 Svet Ganov <svetoslavganov@google.com> am 16238096: Merge changes Ife1c7cb0,I398ff797 into lmp-dev

* commit '16238096409899271f40e4404646412a384b1512':
Fixing controls allignment in print UI.
Fix a crash in print spooler.
922507026a6e1702d207a4e8dc65c50a7b0e77d4 13-Sep-2014 Svet Ganov <svetoslavganov@google.com> Fixing controls allignment in print UI.

Making some allignment tweaks based on UX feedback.

bug:17489187

Change-Id: Ife1c7cb0f55eb0398bca4a5e015ace24437ff2a6
es/layout/print_activity_controls.xml
0df1cff1f47f2acb6e7ad00d97cdad7ef1bc057d 13-Sep-2014 Svetoslav <svetoslavganov@google.com> am e01c70a9: am 376926b7: am 60eed0e5: Merge "Fix crash in spooler if printing app dies." into lmp-dev

* commit 'e01c70a99f2d777ddc145639cedd2e8517fce171':
Fix crash in spooler if printing app dies.
8a1918c8b2c201d73635cc51023d03b68fc80ec2 13-Sep-2014 Svetoslav <svetoslavganov@google.com> am 7ee92d90: am ff3e07bd: am 8e925e55: Merge "Fix a crash in print preview on multiple rotations." into lmp-dev

* commit '7ee92d906d257d8c65dcff08414b54d6ec243314':
Fix a crash in print preview on multiple rotations.
05ff998fd86eff15e91694bc205ea0af0de83284 13-Sep-2014 Svet Ganov <svetoslavganov@google.com> Fix a crash in print spooler.

A recent bug fix exposed another one where we were not updating
the internal state of the remote print document after it finishes
updating. This resulted in a crash on every print.

bug:16966145

Change-Id: I398ff7976533241e3d4cb6cd27f69cdc25e67be9
rc/com/android/printspooler/model/RemotePrintDocument.java
ba46eb6b6d19e9ab8d2efa0990d056bbfc56a8be 13-Sep-2014 Svetoslav <svetoslavganov@google.com> am 60eed0e5: Merge "Fix crash in spooler if printing app dies." into lmp-dev

* commit '60eed0e500c2d5964431d9afd6b72b40040448ed':
Fix crash in spooler if printing app dies.
e6ecba59fd618b80dd13f581b625eea420672a0a 12-Sep-2014 Svetoslav <svetoslavganov@google.com> Page content sometimes missing while scrolling.

The logic when a page view to request the content had a logical
error and it was getting in a bad state where it never requested
the content anymore. This change simplifies the logic and minimizes
the kept state.

Removed unnecessary calls to recycle for a bitmap as according
to the graphics folks we should not be calling this API anymore.

bug:16966145

Change-Id: Idda8314b43343136d3b867167261790481116fac
rc/com/android/printspooler/model/PageContentRepository.java
rc/com/android/printspooler/widget/PageContentView.java
011bdc4006b80f65df923b68ea924bdbee85c731 12-Sep-2014 Svetoslav <svetoslavganov@google.com> am 8e925e55: Merge "Fix a crash in print preview on multiple rotations." into lmp-dev

* commit '8e925e55e44b9ebc568f3e0bc59e32a1153ffbef':
Fix a crash in print preview on multiple rotations.
2fb64a5cb160a2615f07ed669aa5738dbb74ad6c 12-Sep-2014 Svetoslav <svetoslavganov@google.com> Fix crash in spooler if printing app dies.

bug:16966145

Change-Id: I092c489a7f1b4000a96d3f12f2996ccabf734b9a
ndroidManifest.xml
rc/com/android/printspooler/model/RemotePrintDocument.java
ffec747bece9c0a3cd6db2a6b5c2476dd7ba9ab1 12-Sep-2014 Svetoslav <svetoslavganov@google.com> am 01243f18: am 7d3db59d: am 59d0713d: Merge "Fix back button behavior and clean up in print preview activity." into lmp-dev

* commit '01243f18f8530062d8a57158de4a1e47e24d1cf1':
Fix back button behavior and clean up in print preview activity.
a534ebbbf47e5ba7a0937e612a461f28c2b47e73 12-Sep-2014 Svet Ganov <svetoslavganov@google.com> am 2e216abb: am 6e0f0619: am 60d4306b: Merge "Fix edit text error state in the print UI." into lmp-dev

* commit '2e216abb8ee1e65a731122df5679f74fdd1873d0':
Fix edit text error state in the print UI.
139ba7fb0ed976bdbc7c283e3f7fe9980eed22a6 12-Sep-2014 Svetoslav <svetoslavganov@google.com> Fix a crash in print preview on multiple rotations.

bug:16966145

Change-Id: I8266315bd9253953cb6c3b9dab1ba36f104a74a5
rc/com/android/printspooler/ui/PageAdapter.java
rc/com/android/printspooler/ui/PrinterRegistry.java
8c3297ece1f9265f3a137d91ac8acd589bf4a9d6 12-Sep-2014 Svetoslav <svetoslavganov@google.com> am 59d0713d: Merge "Fix back button behavior and clean up in print preview activity." into lmp-dev

* commit '59d0713d816dd8e9a04885b1907384ba4de6cf19':
Fix back button behavior and clean up in print preview activity.
34e67af34febe103611a2665a5317c54d343bd78 12-Sep-2014 Svet Ganov <svetoslavganov@google.com> am 60d4306b: Merge "Fix edit text error state in the print UI." into lmp-dev

* commit '60d4306bfd3125543b1a207c82b78e0bfbe7a8d4':
Fix edit text error state in the print UI.
36f6951e325feb32f9fe61a80e120dacfd41d473 12-Sep-2014 Svetoslav <svetoslavganov@google.com> Merge "Fix back button behavior and clean up in print preview activity." into lmp-dev
c946e9ab465fd363dc996efbffcf58f354266aaa 12-Sep-2014 Svet Ganov <svetoslavganov@google.com> Merge "Fix edit text error state in the print UI." into lmp-dev
e17123dd6d3666c88b47172b8efc995523b47346 11-Sep-2014 Svetoslav <svetoslavganov@google.com> Fix back button behavior and clean up in print preview activity.

The print preview UI owns and drives the lifecycle of several objects.
These objects were torn down too late resulting in an attempt to use
the activity as a context when it was no longer valid and service unbind
resulting in causing a crash.

Fixed a bug where if the back button is pressed mutiple times when
the print UI is being initialized a crash occurs.

bug:17454041

Change-Id: Ic1455b467586f0ad65f907e2160ec5cfb2d17d05
rc/com/android/printspooler/model/PrintSpoolerProvider.java
rc/com/android/printspooler/model/RemotePrintDocument.java
rc/com/android/printspooler/ui/PrintActivity.java
rc/com/android/printspooler/ui/PrinterRegistry.java
43212264dd0eaa5deea6539b8d4eb3a3edd7d22d 11-Sep-2014 Svet Ganov <svetoslavganov@google.com> Fix edit text error state in the print UI.

If the user input in the print UI is invalid we show an error icon
next to it. The design requires no error message being shown in a
popup but TextView does show the popup all the time.

bug:16966145

Change-Id: I7aa1ec8093bc76e2f440bcb243609e92e049786b
es/layout/print_activity_controls.xml
rc/com/android/printspooler/widget/CustomErrorEditText.java
d8858a22e328fb6349762b0d9e70d0d1e2074b87 11-Sep-2014 Svetoslav <svetoslavganov@google.com> am 72c8cd0e: am 14a1444e: am a6b5869f: Merge "Fix a crash in print spooler." into lmp-dev

* commit '72c8cd0eb7bb1c549dad25bfc43e1954832c0e8e':
Fix a crash in print spooler.
26b6c1e5fbff11b01c0dd0fc1116b6090ff7dff4 11-Sep-2014 Svetoslav <svetoslavganov@google.com> am 3a04f3cb: am 7e115924: am 930f4fe4: Merge "Accessibilty support for the print UI." into lmp-dev

* commit '3a04f3cbdf624eda7d4f8a91004c874022523cdd':
Accessibilty support for the print UI.
bff7a979a8d69a5e30cd1d2c7f70b9d0f5158839 11-Sep-2014 Svetoslav <svetoslavganov@google.com> am dbd75236: am b875ca77: am 0f2e085d: Merge "RTL support for print UI." into lmp-dev

* commit 'dbd75236e88d2ed43d63d65e57d0b9cb6a7b48af':
RTL support for print UI.
ac22532165c399d4dbe15e1c7cd5c8827479a2a5 11-Sep-2014 Svetoslav <svetoslavganov@google.com> am 595b69d2: am deaa395a: am d327046d: Merge "Fix page spacing in preview list." into lmp-dev

* commit '595b69d237316974574fdb76f8175ef87a9f9de6':
Fix page spacing in preview list.
212a8bf326a2a8c64fbca7d8311776b12ca3cbf1 11-Sep-2014 Svetoslav <svetoslavganov@google.com> am a6b5869f: Merge "Fix a crash in print spooler." into lmp-dev

* commit 'a6b5869f409f9674ef046e8f997e5f97b71b794a':
Fix a crash in print spooler.
993137dcdc5a326827da1af9b81f795dffd05b8f 11-Sep-2014 Svetoslav <svetoslavganov@google.com> am 930f4fe4: Merge "Accessibilty support for the print UI." into lmp-dev

* commit '930f4fe4cb27f9363d177848f4f832b4a79d2819':
Accessibilty support for the print UI.
e03ddd0bcc683b31f155bfd96f543c38539abf44 11-Sep-2014 Svetoslav <svetoslavganov@google.com> Merge "Fix a crash in print spooler." into lmp-dev
c65510a7bc0a1519c5633940bce52d7f2334b640 11-Sep-2014 Svetoslav <svetoslavganov@google.com> Merge "Accessibilty support for the print UI." into lmp-dev
3ef8e203c887a0cf6c121fdbb428e2fcef21758a 10-Sep-2014 Svetoslav <svetoslavganov@google.com> Fix a crash in print spooler.

1. Leftover code was setting the state to configuring
before initialization is complete.

2. We were not cancelling the print job if cancelled
when initializing.

3. The remote print document was cancelled even if
doing nothing.

bug:17451600

Change-Id: I79a80b723af8537da260012470748b4e8831fd9e
rc/com/android/printspooler/ui/PrintActivity.java
689ae852eaaf52a0ac71c29dbac08416d7a52f3e 10-Sep-2014 Svetoslav <svetoslavganov@google.com> am 0f2e085d: Merge "RTL support for print UI." into lmp-dev

* commit '0f2e085da75d003a2f3b7490dda9b9ac2aef58ba':
RTL support for print UI.
cfb3fb16db3062b6d65fc56fb5b368da0bd3a81b 10-Sep-2014 Svetoslav <svetoslavganov@google.com> am d327046d: Merge "Fix page spacing in preview list." into lmp-dev

* commit 'd327046d05f6823e5ad3ee2ee81bf3531f23bbdc':
Fix page spacing in preview list.
fc81bfe3fb43296ca7040b8f259e1cbec50898ca 10-Sep-2014 Svetoslav <svetoslavganov@google.com> Merge "RTL support for print UI." into lmp-dev
e652b02d45bbda11c9cb8f663fa7f25903b90225 10-Sep-2014 Svetoslav <svetoslavganov@google.com> Accessibilty support for the print UI.

bug:15816751

Change-Id: I5dcdbdd0357843b870ddd47d7c41cfba114d194c
es/layout/preview_page.xml
es/values/strings.xml
rc/com/android/printspooler/ui/PageAdapter.java
rc/com/android/printspooler/ui/PrintActivity.java
rc/com/android/printspooler/widget/PageContentView.java
rc/com/android/printspooler/widget/PreviewPageFrame.java
rc/com/android/printspooler/widget/PrintContentView.java
3ab1ec05491d5da8eea070889c03b6ea4f2af5bc 10-Sep-2014 Svetoslav <svetoslavganov@google.com> RTL support for print UI.

bug:16966145

Change-Id: I488d11f1941545630d52eea4c4d48c43667c6067
es/layout/print_activity.xml
rc/com/android/printspooler/widget/PrintContentView.java
rc/com/android/printspooler/widget/PrintOptionsLayout.java
dfa3e7c6fd4e8a28ba51b54c769b891191459012 10-Sep-2014 Svetoslav <svetoslavganov@google.com> Fix page spacing in preview list.

bug:16966145

Change-Id: I2c4bde3a50ee0fc202fc169a63d4eeeb43c5f4ae
rc/com/android/printspooler/ui/PageAdapter.java
5014c1daf7eac44c4275808843ae20bdbe654de3 10-Sep-2014 Svetoslav <svetoslavganov@google.com> am 36a9a4c7: am f1b72b86: am 3f49b128: Merge "Trim unnecessary pages when printing." into lmp-dev

* commit '36a9a4c7920e7faa02a4b9444b7a247e89923b9d':
Trim unnecessary pages when printing.
08dd15e1f416e83cb092c725f5501ebf6220bc0a 10-Sep-2014 Svetoslav <svetoslavganov@google.com> am 3f49b128: Merge "Trim unnecessary pages when printing." into lmp-dev

* commit '3f49b128bc94c1b1e66decf96d46a83bcdb9a62b':
Trim unnecessary pages when printing.
62ce332c141cf7bc7200c4c87d63e395874fc3ec 05-Sep-2014 Svetoslav <svetoslavganov@google.com> Trim unnecessary pages when printing.

A user may request a subset of the document's pages to be printed.
In this case the expectation is that the resulting document does
not include not selected pages. While print serivices can do the
trimming themselves or the printer may do so, moving, potantually
many, redundant pages is inefficient. The real problem is when
saving to a PDF file where the saved file must not have the pages
the user did not select. This change adds shredding of undesired
pages from the PDF before saving it or passing it to a print service.
:
bug:17285994

Change-Id: I7deba535af99457bea3c118202314f0f3812e809
ndroid.mk
ndroidManifest.xml
rc/com/android/printspooler/model/PageContentRepository.java
rc/com/android/printspooler/renderer/IPdfEditor.aidl
rc/com/android/printspooler/renderer/IPdfRenderer.aidl
rc/com/android/printspooler/renderer/PdfManipulationService.java
rc/com/android/printspooler/renderer/PdfRendererService.java
rc/com/android/printspooler/ui/PrintActivity.java
rc/com/android/printspooler/ui/PrintPreviewController.java
a95800046950b3155a4d9154bd945c8dae184789 06-Sep-2014 Svetoslav <svetoslavganov@google.com> am ad1b9d87: am 1458f58e: am 3b42928c: Merge "Print spooler UI polish and bug fixes." into lmp-dev

* commit 'ad1b9d8779447bd3eacc0dd12519f28b964b868b':
Print spooler UI polish and bug fixes.
ca9dde993249643e6377603942996bc9bba753a4 06-Sep-2014 Svetoslav <svetoslavganov@google.com> am 3b42928c: Merge "Print spooler UI polish and bug fixes." into lmp-dev

* commit '3b42928c318d2732d75bb9c0ed7b864c47a265a2':
Print spooler UI polish and bug fixes.
6552bf3da60159607d9266eb295ee3c448f6c3de 04-Sep-2014 Svetoslav <svetoslavganov@google.com> Print spooler UI polish and bug fixes.

1. Added an empty state for pages that are being rendered.

2. Fixed a NPA on a binder thread when destoroying the
remote print adapter.

3. Fixed a rare crash when the print activity gets an
activity class callback while initializing.

4. Changed the preview pages on phone in land to four.

5. Fixed a flicker from a list of pages to an empty state
and then back to the list of pages.

bug:15704969
bug:16966145

Change-Id: I0eea2f30a102d8fefcbf90187fa6d8612fb19434

Conflicts:
packages/PrintSpooler/src/com/android/printspooler/widget/PageContentView.java
es/layout/preview_page_loading.xml
es/values-land/constants.xml
es/values/strings.xml
rc/com/android/printspooler/model/RemotePrintDocument.java
rc/com/android/printspooler/ui/PageAdapter.java
rc/com/android/printspooler/ui/PrintActivity.java
rc/com/android/printspooler/ui/PrintPreviewController.java
rc/com/android/printspooler/widget/PageContentView.java
3dbb8cb8c16efc655c6824724de262e6587dc517 05-Sep-2014 Svetoslav <svetoslavganov@google.com> am 69cf25a0: am 79b43f5b: am f1a858c7: Fix broken aidl

* commit '69cf25a0a31cc37c6abfd06e9ef57bd5df42600c':
Fix broken aidl
de5684b5a7595c2a156a1798fbf06d5029e7a8a7 05-Sep-2014 Svetoslav <svetoslavganov@google.com> am 35c2aca2: am 1d85c1a4: am 4c8c9ac0: Merge "Update FrameStats API per api-council request." into lmp-dev

* commit '35c2aca25a56efc9479f03094052f16cf7f94219':
Update FrameStats API per api-council request.
5cf8b4b7515e860273dde69c3493a3f549fb468a 05-Sep-2014 Svetoslav <svetoslavganov@google.com> am f1a858c7: Fix broken aidl

* commit 'f1a858c7887ba8af0cf991fd6fa8a1f72e069ff1':
Fix broken aidl
d0c362de1c23b6113fc35236c2908d71cfad7877 05-Sep-2014 Svetoslav <svetoslavganov@google.com> Fix broken aidl

Change-Id: I2187abd75b4f60e790b747a492ad610592f2ef53
rc/com/android/printspooler/renderer/IPdfRenderer.aidl
6fadd4436bffa206f792f77011e5e1c069fdbd83 05-Sep-2014 Svetoslav <svetoslavganov@google.com> am 4c8c9ac0: Merge "Update FrameStats API per api-council request." into lmp-dev

* commit '4c8c9ac06fc213d9bc9d82c39d55f425fee5b429':
Update FrameStats API per api-council request.
53dcd394aa389e1e80aa1113be38255716bf2e4c 05-Sep-2014 Svetoslav <svetoslavganov@google.com> Update FrameStats API per api-council request.

bug:17390382

Change-Id: I50518834569f4d0ec394709294537256f03530e0
rc/com/android/printspooler/renderer/IPdfRenderer.aidl
f2238b40b05913c07e4109194f31cfc8b6c285de 04-Sep-2014 Prabhakar Thirumoorthy <prabhakar@google.com> am 163960d3: am fd21f082: am bbc5508d: Merge "Add a missing dependency on a shared JNI library" into lmp-dev

* commit '163960d37fc5c1f6b9531dc2676f90d7ca4b6cda':
Add a missing dependency on a shared JNI library
94e1134448d1d0b0966c0f3f672e0b4773c5d23a 04-Sep-2014 Prabhakar Thirumoorthy <prabhakar@google.com> am bbc5508d: Merge "Add a missing dependency on a shared JNI library" into lmp-dev

* commit 'bbc5508df13852f2e95bedaedc3fba9b202f9a67':
Add a missing dependency on a shared JNI library
d97bf6920b9a11708632217f0acedff115878710 04-Sep-2014 Svetoslav <svetoslavganov@google.com> Add a missing dependency on a shared JNI library

bug:17389508

Change-Id: I38e1ad7daf991f37458eac391b472eb3816d7838
ndroid.mk
bb97a306c98d349529b2ea4161ce628280c23f93 04-Sep-2014 Brian Carlstrom <bdc@google.com> am 88727d32: am a4411ee0: am 12799b2f: Used LOCAL_SHARED_LIBRARIES for proper dependencies

* commit '88727d32be3527797477adc2a7c62e60b95391ee':
Used LOCAL_SHARED_LIBRARIES for proper dependencies
7dfd6908886c8e7201d0ea2f52e891f1405983b3 04-Sep-2014 Brian Carlstrom <bdc@google.com> am 12799b2f: Used LOCAL_SHARED_LIBRARIES for proper dependencies

* commit '12799b2f1a8db1171ff1dd8db99d8de72574738a':
Used LOCAL_SHARED_LIBRARIES for proper dependencies
191cbad91f19c14316810c806c4b0560d9386c8c 04-Sep-2014 Brian Carlstrom <bdc@google.com> Used LOCAL_SHARED_LIBRARIES for proper dependencies

bug:15938254
Change-Id: I710f689e8bcad66988ef3aa0aa189b185c8ad662
ni/Android.mk
6ba8107110046063a2b3892b1a55d3b252247619 04-Sep-2014 Svet Ganov <svetoslavganov@google.com> am acb46c49: am 3d32b758: am 26aa29dd: Merge "Switching to raw byte copy of bitmaps for print preview." into lmp-dev

* commit 'acb46c498be18447d52e6966534eab2175171bf9':
Switching to raw byte copy of bitmaps for print preview.
c0c72b27689de415dc3c8d05dc2982d2f622ea04 04-Sep-2014 Svetoslav <svetoslavganov@google.com> am 32b243e3: am 0181321d: am c07c5902: Merge "Fix some print UI issues." into lmp-dev

* commit '32b243e32952dbad516b6959cb7c4491bae5e332':
Fix some print UI issues.
9b06bfb0415695d8953b60effbfe385dd775ad6a 04-Sep-2014 Svetoslav <svetoslavganov@google.com> am cfcbad0d: am ede02f37: am de985e74: Merge "Update print chooser drop down width." into lmp-dev

* commit 'cfcbad0d28e39e5cfdb8e08fcf0467fd123e1274':
Update print chooser drop down width.
a33c57a0f568e3f720c00d868257ec720ce412b5 04-Sep-2014 Svetoslav <svetoslavganov@google.com> am d80a9aef: am 88713679: am 87263510: Merge "Unregister from the remote renderer only if bound." into lmp-dev

* commit 'd80a9aef134504bed1e73fe92b7e8c855e6d7626':
Unregister from the remote renderer only if bound.
4b5facda2fee8e9bc9a6eedd759d6f0978f12004 04-Sep-2014 Svet Ganov <svetoslavganov@google.com> am 26aa29dd: Merge "Switching to raw byte copy of bitmaps for print preview." into lmp-dev

* commit '26aa29ddc7c818ff1272b687aeb2412701155bf3':
Switching to raw byte copy of bitmaps for print preview.
def58cbffc32d12445b60ed1a0d8bb81d8dc6625 04-Sep-2014 Svet Ganov <svetoslavganov@google.com> Merge "Switching to raw byte copy of bitmaps for print preview." into lmp-dev
c7afa4104e6f9a4154021adcadffd4e58ad5623a 04-Sep-2014 Svetoslav <svetoslavganov@google.com> am c07c5902: Merge "Fix some print UI issues." into lmp-dev

* commit 'c07c5902d70dd411839810d42d3ed747da52333c':
Fix some print UI issues.
8c07e8d2a370a6d59dfe5150af3b07ff031ac165 04-Sep-2014 Svetoslav <svetoslavganov@google.com> Merge "Fix some print UI issues." into lmp-dev
9622365dd64e5116c3ee04737193f713c0e81a94 04-Sep-2014 Svetoslav <svetoslavganov@google.com> am de985e74: Merge "Update print chooser drop down width." into lmp-dev

* commit 'de985e7411fb4ca0b17c7273856392a043a4ea08':
Update print chooser drop down width.
baa5bccb19ee7369608e6557380dab81379f4cd7 04-Sep-2014 Svetoslav <svetoslavganov@google.com> Merge "Update print chooser drop down width." into lmp-dev
e04dcca5933582872d6d7c37a52a3682320dbda8 03-Sep-2014 Svetoslav <svetoslavganov@google.com> Update print chooser drop down width.

bug:16324744

Change-Id: I1f0b79ae5da06de97ca80a800537d815ce59bf41
es/layout/print_activity.xml
es/values-sw600dp-land/constants.xml
es/values/constants.xml
a1b3bb9f738305f4331e9cbff81a484274aa8b72 03-Sep-2014 Svetoslav <svetoslavganov@google.com> am 87263510: Merge "Unregister from the remote renderer only if bound." into lmp-dev

* commit '87263510e60bb163dc85152405217538797646e8':
Unregister from the remote renderer only if bound.
9e795e19c7f900fb2636c5dff3ba30098da65f1b 03-Sep-2014 Svetoslav <svetoslavganov@google.com> Unregister from the remote renderer only if bound.

bug:8213791

Change-Id: Ia9efa33331437c4db447acf0c510d4cb4932a593
rc/com/android/printspooler/model/PageContentRepository.java
df6444931b030d3cdd9769e23f16f0a16fe9c654 30-Aug-2014 Svet Ganov <svetoslavganov@google.com> Switching to raw byte copy of bitmaps for print preview.

Using compression and decompression for moving bitmap data
acorss processes is slow as compression is expensive. This
change switches to using direct streaming of the bitmap
data.

bug:15938254

Change-Id: I78bc450031ee60ada4c3b66f14586a73c72ce34f
ndroid.mk
ni/Android.mk
ni/com_android_printspooler_util_BitmapSerializeUtils.cpp
rc/com/android/printspooler/model/PageContentRepository.java
rc/com/android/printspooler/renderer/PdfRendererService.java
rc/com/android/printspooler/util/BitmapSerializeUtils.java
rc/com/android/printspooler/widget/PageContentView.java
6f249835a4ff9e7e7e3ca0190b7ecf72e689656d 03-Sep-2014 Svetoslav <svetoslavganov@google.com> Fix some print UI issues.

1. Fixed a crash when orientation changes and the content
is scrolled due to wrong size bitmap being requested.

2. Closed a file dscriptior that was being left open.

3. Clearing the bitmap before passing it to the renderer to
ensure it is white for pixels not touched when rendering.

4. Removed debug logs.

5. Switched to the correct layout manager for RecyclerView.

bug:16966145

Change-Id: I8ab9d22635c93cac5ff85c6f4b5d82e58cd8df5c
rc/com/android/printspooler/model/PageContentRepository.java
rc/com/android/printspooler/model/RemotePrintDocument.java
rc/com/android/printspooler/renderer/PdfRendererService.java
rc/com/android/printspooler/ui/PrintPreviewController.java
rc/com/android/printspooler/widget/PageContentView.java
7007cc7c30289326a6615cd4c87993513c86b9ef 03-Sep-2014 Svet Ganov <svetoslavganov@google.com> am a53f8061: am 87ca3b16: am 668b4765: Merge "Move print rendering in an isolated process." into lmp-dev

* commit 'a53f80617f36df48789b7153ffda4bc1b5586486':
Move print rendering in an isolated process.
825b4321510a20edb520a5ee10a299ba5a5e3f46 03-Sep-2014 Svet Ganov <svetoslavganov@google.com> am 668b4765: Merge "Move print rendering in an isolated process." into lmp-dev

* commit '668b4765de3e97d69aaebb3bd58fe23eb800264d':
Move print rendering in an isolated process.
561b8931742503d58ae842edea790e86f359870f 02-Sep-2014 Svet Ganov <svetoslavganov@google.com> Merge "Move print rendering in an isolated process." into lmp-dev
13f542cabd635c55ade5442764cc4a3d2f7880ea 30-Aug-2014 Svet Ganov <svetoslavganov@google.com> Move print rendering in an isolated process.

Security review of the PDF rendering code revealed that it is
not sercure. Therefore, this code must be run in a sandbox.
This change moves the rendering code in an isolated process.

bug:16897933

Change-Id: I711ce42a56892db1837950137bfaa79e1d61a7c4
ndroid.mk
ndroidManifest.xml
rc/com/android/printspooler/model/PageContentRepository.java
rc/com/android/printspooler/renderer/IPdfRenderer.aidl
rc/com/android/printspooler/renderer/PdfRendererService.java
rc/com/android/printspooler/ui/PrintActivity.java
rc/com/android/printspooler/ui/PrintPreviewController.java
rc/com/android/printspooler/widget/PageContentView.java
8a01aa95f46923fe19a330d913d821d6d1d01840 29-Aug-2014 Svetoslav <svetoslavganov@google.com> am 58691e29: am 221ae208: am 6a353ad0: Merge "Print UI polish." into lmp-dev

* commit '58691e2945f554849d606a6ed052c181e227e4ac':
Print UI polish.
2d3cac2128e715bbd5a630cec2819900ae10b6c5 29-Aug-2014 Svetoslav <svetoslavganov@google.com> am 6a353ad0: Merge "Print UI polish." into lmp-dev

* commit '6a353ad0caaaf634804c18467838a5804c2abe06':
Print UI polish.
c404cacd3a480776dd625fb300810ffccc5f51b0 28-Aug-2014 Svetoslav <svetoslavganov@google.com> Print UI polish.

1. Fixed an issue where input focus is given to the copies
edit text every other time we expand the options UI. We
want focus there only if the user touches the control.

bug:16966145

2. Fixed the all printers list view to have item dividers
reaching the left and right ends of the list view.

bug:17288761

3. Fixed an issue where the user can deselect all pages
which is not only an invalid state but also causes a crash.

bug:17286198

4. Tweaked the minimal size of the preview in landscape on
phone to better accomodate the page.

bug:17288904

5. Fixed a regression introduced by a change from the UI folks.

Change-Id: Ida7dad7eea413295a840028060810b2619c616e8
es/layout/print_activity.xml
es/layout/print_activity_controls.xml
es/layout/printer_dropdown_item.xml
es/layout/select_printer_activity.xml
es/layout/spinner_dropdown_item.xml
es/values-land/constants.xml
es/values/constants.xml
es/values/themes.xml
rc/com/android/printspooler/ui/PageAdapter.java
rc/com/android/printspooler/ui/PrintActivity.java
rc/com/android/printspooler/widget/FirstFocusableEditText.java
rc/com/android/printspooler/widget/PrintContentView.java
890052f07f9f0b99243b45dcd52f6aef917b0051 27-Aug-2014 Svetoslav <svetoslavganov@google.com> am f5b5d4a5: am c466f26d: am f25081e0: Merge "Fix a crash in PrintSpooler." into lmp-dev

* commit 'f5b5d4a5ab3bb0961d2f7097d73a150a2fbe811e':
Fix a crash in PrintSpooler.
0e23dd870a90ebcce8e4b1132581574c8f75d88c 27-Aug-2014 Svetoslav <svetoslavganov@google.com> am f25081e0: Merge "Fix a crash in PrintSpooler." into lmp-dev

* commit 'f25081e063e495bf53ac0f5e1ea41b10231145e3':
Fix a crash in PrintSpooler.
9c9888b8c59e35717ecfc32e9b96fb8702ceb480 27-Aug-2014 Svetoslav <svetoslavganov@google.com> Fix a crash in PrintSpooler.

If the user cancels printing we cancel the current
pring operation in the RemotePrintDocument which is
a state machine enforcing valid state transitions.
A valid transition was not allowed: finishing after
canceled.

bug:17182301

Change-Id: Iccf3a78d7dc736a64bf5c44941a8f8064dcd0ec3
rc/com/android/printspooler/model/RemotePrintDocument.java
397ca90661344edda0649588711d8c2c11985764 26-Aug-2014 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: Ie191b1750a02be1a7aecbe110fa3720dc6cd0e61
Auto-generated-cl: translation import
es/values-km-rKH/strings.xml
es/values-my-rMM/strings.xml
es/values-zh-rCN/strings.xml
f4c2e445c5377ebdb8d97e4ee564c4c9983af5d3 26-Aug-2014 Alan Viverette <alanv@google.com> am c0073bfa: am 77cc46f2: am 20862a7f: Merge "Update material colors" into lmp-dev

* commit 'c0073bfa6b3043ca7ddc1f410f8085887267ef91':
Update material colors
042a0cee902fcdd8a4d104839f2fb92b9cfbc3ee 26-Aug-2014 Alan Viverette <alanv@google.com> am 20862a7f: Merge "Update material colors" into lmp-dev

* commit '20862a7fe43f05b12a6f95515ab08ae0bffb1bae':
Update material colors
a1fe772bd7e56a96198cefb924becfa843c8e165 26-Aug-2014 Alan Viverette <alanv@google.com> Update material colors

BUG: 17212898
Change-Id: Ic0806db57e88d5143b4241e419970ffeb2468d50
es/layout/preview_page.xml
es/values/colors.xml
es/values/themes.xml
4879a5c9e26bc6388381d1ad2bdbf3579da7280b 24-Aug-2014 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: Ic42db2aebb4777ec9a7107851b5479d0b25e048f
Auto-generated-cl: translation import
es/values-km-rKH/strings.xml
es/values-my-rMM/strings.xml
es/values-zh-rCN/strings.xml
546003aa530ac7d3429773015c72b7c32f0ac4d0 22-Aug-2014 Baligh Uddin <baligh@google.com> Merge "Import translations. DO NOT MERGE"
5bfeb961a8f6407912fc7ba6bb2a6db90919b259 21-Aug-2014 Svetoslav <svetoslavganov@google.com> am f8df297b: am 5af18576: am 0ab2d34b: Merge "Using default system icon for print spooler" into lmp-dev

* commit 'f8df297b975094e10f5d0ad1a912ab441cdd55b6':
Using default system icon for print spooler
df96fa2aa203e3d17c3c3e728fdaccc42db4e5ab 21-Aug-2014 Svetoslav <svetoslavganov@google.com> am d1ca6533: am ae0bb518: am d5f8a500: Merge "Update the "More options" button in printing." into lmp-dev

* commit 'd1ca6533a7d3bad57036bdcd1e7cab5ae3efe9c1':
Update the "More options" button in printing.
c3c5ad6fdf3c98327a7449e54d1890a3cd20e779 21-Aug-2014 Svetoslav <svetoslavganov@google.com> am 0ab2d34b: Merge "Using default system icon for print spooler" into lmp-dev

* commit '0ab2d34bb6a182fc15994c3e212ea458a5f048f7':
Using default system icon for print spooler
748b9a16385764e4a20d4635a3203ad003156884 21-Aug-2014 Svetoslav <svetoslavganov@google.com> am d5f8a500: Merge "Update the "More options" button in printing." into lmp-dev

* commit 'd5f8a5008cf56e33b5bd99ed8ef80179691e0966':
Update the "More options" button in printing.
49cbfcc10c311d1b9f1b316512632ec4d88f068d 21-Aug-2014 Svetoslav <svetoslavganov@google.com> Merge "Using default system icon for print spooler" into lmp-dev
fed717330678ceea5c238d29dddd25e7c25b9684 20-Aug-2014 Svetoslav <svetoslavganov@google.com> Using default system icon for print spooler

bug:16568027

Change-Id: I87c7e7d60864b6d28899210bb400e56e21bf43f8
ndroidManifest.xml
3c238245eb3c0a7371fb25b6e96be0a0056a638d 19-Aug-2014 Svetoslav <svetoslavganov@google.com> Update the "More options" button in printing.

The "More options" button needed changes to match the
new UX spec. Also fixed some identation issues as well
as a missing marging in the erorr UI.

bug:16301066

Change-Id: I29f0d41915d1816d754f2c6288a7387aafeba2c2
es/drawable/ic_savetopdf.xml
es/layout/print_activity_controls.xml
es/layout/print_error_fragment.xml
rc/com/android/printspooler/ui/PrintActivity.java
rc/com/android/printspooler/widget/PrintContentView.java
522cb106dcc91a9ef874518015fb94d4e7e3c4c6 20-Aug-2014 Selim Cinek <cinek@google.com> am 65dbc328: am 53006cab: am cc19946d: Added notification color to all system notifications

* commit '65dbc32814ed265a0c1adcd4100f80029402ef40':
Added notification color to all system notifications
60ea8ac9919aeb9721b609b25650c0361804cc86 20-Aug-2014 Selim Cinek <cinek@google.com> am cc19946d: Added notification color to all system notifications

* commit 'cc19946d947cf553ee9fd23778a3c811c18ae633':
Added notification color to all system notifications
255dd04271088590fedc46c8e22b2fd4ab142d39 19-Aug-2014 Selim Cinek <cinek@google.com> Added notification color to all system notifications

Bug: 17128331
Change-Id: I81a94510ef51b99916f314c0dd65852426a1fbeb
rc/com/android/printspooler/model/NotificationController.java
f9bc02b3625c56e642c31d16b3de6a4962b919f4 20-Aug-2014 Svetoslav <svetoslavganov@google.com> am 9c7efe2d: am a08da437: am 4b6229fd: Merge "Update the print spooler theme." into lmp-dev

* commit '9c7efe2ddcf18732ee33f03fc35feb2b02c21086':
Update the print spooler theme.
e2078eb03b6ce9107b0188ad7810a230d95f935f 20-Aug-2014 Svetoslav <svetoslavganov@google.com> am 4b6229fd: Merge "Update the print spooler theme." into lmp-dev

* commit '4b6229fd5e5d352ebe782ce7d5b738f4bf91fc7f':
Update the print spooler theme.
31b9fbc7576d660e8f7d74ad884b39ba31c1e947 19-Aug-2014 Svetoslav <svetoslavganov@google.com> am ea7d9ffd: am 4c82c6d7: am 8dab46b4: Merge "Update the print spooler icon." into lmp-dev

* commit 'ea7d9ffdcfd57086dfff03a7151c7dc6fae4ea2f':
Update the print spooler icon.
128518a9427097ce36073fe0d9909fed8ff748c2 19-Aug-2014 Svetoslav <svetoslavganov@google.com> am 8dab46b4: Merge "Update the print spooler icon." into lmp-dev

* commit '8dab46b479203b0b5ebad303d97d2eae25dad060':
Update the print spooler icon.
b832eac87ba18fca294b132c73eb44c81ada6263 18-Aug-2014 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: I65219ba6aa2053c3a63f684267a2dd2e52e6ce2c
Auto-generated-cl: translation import
es/values-km-rKH/strings.xml
es/values-my-rMM/strings.xml
c558220b07d4811b70d40a7326f866d044e0f87a 19-Aug-2014 Svetoslav <svetoslavganov@google.com> Update the print spooler theme.

bug:16966145

Change-Id: Ib72642bf8f9002d8bcf9cbfce19fa364b2487876
es/values/themes.xml
309f6a0e1b2ec39bd516fdfe217a526fe4b8acf6 19-Aug-2014 Svetoslav <svetoslavganov@google.com> Update the print spooler icon.

Removed a duplicate resource also defined in the platform
resources. Added a tint to the print spooler icon.

bug:16568027

Change-Id: I1c0b9a7bd75bc59d1d86653c05d8fc2bb77056c1
ndroidManifest.xml
es/drawable-hdpi/ic_menu_print.png
es/drawable-mdpi/ic_menu_print.png
es/drawable-xhdpi/ic_menu_print.png
es/drawable/ic_print.xml
rc/com/android/printspooler/ui/SelectPrinterActivity.java
291eacdd138fe01458f6ab0071d026b99f21c63a 16-Aug-2014 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: I31fd074b4124de3fabbc62a7a161497bd2865a4c
Auto-generated-cl: translation import
es/values-km-rKH/strings.xml
es/values-my-rMM/strings.xml
424fce174876df5552f15b57dfffc54b68f875cb 13-Aug-2014 Svet Ganov <svetoslavganov@google.com> am 89db6504: am f9372016: am b130ba2b: Fix some minor print UX bugs.

* commit '89db6504f960f52e84bcce3368a34c843f71eddc':
Fix some minor print UX bugs.
da33c3b51d66f444baf33092a297e427ea3c36fb 13-Aug-2014 Svet Ganov <svetoslavganov@google.com> am b130ba2b: Fix some minor print UX bugs.

* commit 'b130ba2baf6af52c252a3daa58d1284cf2182c11':
Fix some minor print UX bugs.
38781bd2c2c61385651314098b4a615cb8e8efa1 12-Aug-2014 Svet Ganov <svetoslavganov@google.com> Fix some minor print UX bugs.

1. The last row of print options was not visible on a phone.

2. The preview page size on a phone in landscape unusably small.

3. Updated the Save to PDF icon.

bug:16966145

Change-Id: I25ce1572758c62f34344683af2452fb045bb857e
es/drawable/ic_savetopdf.xml
es/layout/preview_page.xml
es/layout/print_activity.xml
es/layout/print_activity_controls.xml
es/values/constants.xml
rc/com/android/printspooler/ui/PageAdapter.java
rc/com/android/printspooler/ui/PrintActivity.java
rc/com/android/printspooler/widget/PageContentView.java
rc/com/android/printspooler/widget/PrintOptionsLayout.java
32c042055d6a0bfcca13e997493b6754a080cfd1 11-Aug-2014 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: Ib3b91d5ff866567a593291a2350f4857ad1c5bf2
Auto-generated-cl: translation import
es/values-km-rKH/strings.xml
es/values-my-rMM/strings.xml
10b363434b8a6697b30de111fdd3881e0bcc3008 11-Aug-2014 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: I05a1dc49c04d92092723d84c7fdadf7e190b5476
Auto-generated-cl: translation import
es/values-km-rKH/strings.xml
es/values-my-rMM/strings.xml
c175ea474bd06cc198f2a44bb23816d58a57391e 07-Aug-2014 Alan Viverette <alanv@google.com> am 37f56e55: Update branding colors

* commit '37f56e55592be690c031090eed3e9e32adb3c1af':
Update branding colors
ec9d464a5986bbf0834b290e20e20c8960944b49 07-Aug-2014 Alan Viverette <alanv@google.com> Update branding colors

BUG: 16845793
BUG: 16851916
Change-Id: I79a15752b5dda8f3c9f159826c61e3d2a6c8bd48
es/values/themes.xml
dba9dc04811c1b168a19f73c594b1148201a9ec2 07-Aug-2014 Alan Viverette <alanv@google.com> am 919aea08: am 654d6aa4: am 37f56e55: Update branding colors

* commit '919aea08da49815ea5456d7dee0cd9a0c7d51da5':
Update branding colors
5b749565baa3c5259fe0208e9ec0a2fd4d17cada 04-Aug-2014 Geoff Mendal <mendal@google.com> Import translations. DO NOT MERGE

Change-Id: Ia3cbcf8bcc30202085f20e3709a9159fa36732e1
Auto-generated-cl: translation import
es/values-hi/strings.xml
fddc4e95785c06b8247fc1b616d6a58110b557ee 04-Aug-2014 Geoff Mendal <mendal@google.com> Import translations. DO NOT MERGE

Change-Id: I9416cdb82f88c7cf05339c23a241100b0fb09bc4
Auto-generated-cl: translation import
es/values-hi/strings.xml
bead503b158eb626f6d9dc491e617ecaf403d607 30-Jul-2014 Geoff Mendal <mendal@google.com> Import translations. DO NOT MERGE

Change-Id: Iec046e9a3d34bef3d8055f3eb00e243baf69c8fa
Auto-generated-cl: translation import
es/values-km-rKH/strings.xml
es/values-my-rMM/strings.xml
613a68c6f0eb088228aa62974c02b0994e208828 30-Jul-2014 Geoff Mendal <mendal@google.com> Import translations. DO NOT MERGE

Change-Id: Id04b1e49ebd9a2b5480f00d6a6fa73e86324428b
Auto-generated-cl: translation import
es/values-km-rKH/strings.xml
es/values-my-rMM/strings.xml
6e809d00afe8f97df2c489240689f73eb0411b84 25-Jul-2014 Svetoslav <svetoslavganov@google.com> am be47e0ee: am 695ac3a5: am a6960246: Print to PDF putting a pring job in a wrong state.

* commit 'be47e0ee5bafa9a22c4f2e64a2f6ebcc7016ac59':
Print to PDF putting a pring job in a wrong state.
3063849fdf8f39bab5967938b03dc7072fea4a8c 24-Jul-2014 Svetoslav <svetoslavganov@google.com> am a6960246: Print to PDF putting a pring job in a wrong state.

* commit 'a6960246b2053d29ee61080903762c5d75131573':
Print to PDF putting a pring job in a wrong state.
b59555ca743118c45103c0c11aedeefb8893f0f0 24-Jul-2014 Svetoslav <svetoslavganov@google.com> Print to PDF putting a pring job in a wrong state.

When printing to a PDF file we get a Uri from the storage APIs
and write the content. Once the file is written to storage the
print job is completed and there is print service involved. Th
spooler was wrongly putting the job in a failed state instead
of a complete state.

bug:16522267

Change-Id: I4741c9b9eb763e118e7dfb2c7c502bd7fc13f7a1
rc/com/android/printspooler/ui/PrintActivity.java
df1f88b8531654c552cfdc3e9f67872975d82617 24-Jul-2014 Svetoslav <svetoslavganov@google.com> am c23191a3: am 8edeea8a: am f214b4ce: Merge "Handle wrong file format when printing." into lmp-dev

* commit 'c23191a36a0160f356df9a8c5bf71f1054be548b':
Handle wrong file format when printing.
0c0c1b1e7b07b49f29209ec5002b67559ef0e5d4 24-Jul-2014 Svetoslav <svetoslavganov@google.com> am 4b36af4d: am 54d27760: am 51bc2b53: Updating the save to PDF button icon.

* commit '4b36af4d0c5bc1335162d5e8dec740564fa97a45':
Updating the save to PDF button icon.
592af78b6354155cf9d4b78bcb9c08b46c776ad1 24-Jul-2014 Svetoslav <svetoslavganov@google.com> am f214b4ce: Merge "Handle wrong file format when printing." into lmp-dev

* commit 'f214b4ceb7b728931e2576d9b0a4d782980aedef':
Handle wrong file format when printing.
7d8e9af27235426ab61651952e914e68b8c98892 24-Jul-2014 Svetoslav <svetoslavganov@google.com> am 51bc2b53: Updating the save to PDF button icon.

* commit '51bc2b53f8edba1928c38ece83d1a06030761582':
Updating the save to PDF button icon.
f8ffa567b5ac418b72268ae01fe8401b801268c7 24-Jul-2014 Svetoslav <svetoslavganov@google.com> Updating the save to PDF button icon.

Change-Id: Ie62a22d6e16d15426f10afa0512b0083c52ff507
es/drawable-hdpi/ic_menu_savetopdf.png
es/drawable-mdpi/ic_menu_savetopdf.png
es/drawable-xhdpi/ic_menu_savetopdf.png
es/drawable-xxhdpi/ic_menu_savetopdf.png
es/drawable-xxxhdpi/ic_menu_savetopdf.png
rc/com/android/printspooler/ui/PrintActivity.java
5ef522bc19cc9fc1af48cccd2865744228c5ec02 24-Jul-2014 Svetoslav <svetoslavganov@google.com> Handle wrong file format when printing.

PDF is the only format suppored for printing but a buggy app
can write content in another format which was crashing the
print spooler. Now we are generating an error instead of
crashing.

bug:16487161

Change-Id: Ic59d2ac6d57213f4e8f364659d8dc7df2140e61d
rc/com/android/printspooler/model/PageContentRepository.java
rc/com/android/printspooler/ui/PageAdapter.java
rc/com/android/printspooler/ui/PrintActivity.java
300a7c5623f06c4199d43f98777028074a4fdf7e 22-Jul-2014 Ying Wang <wangying@google.com> am 1e976fd5: Build framework.jar with multidex support.

* commit '1e976fd50f83a43a1df49a6670f813a57d1a625a':
Build framework.jar with multidex support.
88e199045bbe10296124203837b24dea116bf108 21-Jul-2014 Ying Wang <wangying@google.com> Build framework.jar with multidex support.

We don't need the framework/framework2 split now with the multidex
support.

Change-Id: I30ee5c7e24df87b2c54e854f17fbf0b5adef4c60
ndroid.mk
ded9fdc608b2204396db5cb4006da622f56d7288 20-Jul-2014 Baligh Uddin <baligh@google.com> am 4aa0295b: Merge "Remove deprecated locales - DO NOT MERGE" into lmp-dev

* commit '4aa0295b355ce17e2da195907ea5dc0322837351':
Remove deprecated locales - DO NOT MERGE
193c9f54393c0b04a8af4c2c5dad0435bc34fe78 18-Jul-2014 Yigit Boyar <yboyar@google.com> am d81c4869: Update RecyclerView scroll listener to the new API

* commit 'd81c4869401b42bec84c935a1223134862089547':
Update RecyclerView scroll listener to the new API
753c114d84328219a0ccbffdd462a69e04ef8c4f 15-Jul-2014 Yigit Boyar <yboyar@google.com> Update RecyclerView scroll listener to the new API

Bug: 16054949
Change-Id: I264a701e8b298a08f09bb30284099734054d518c
rc/com/android/printspooler/ui/PrintPreviewController.java
5a4bdf8144e8e347cb48ac1eb24819ed318a9878 21-Jul-2014 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: I5f9b029d8be54fb3ed6ce28b5e64640ab3d676ea
Auto-generated-cl: translation import
es/values-cs/strings.xml
es/values-fr-rCA/strings.xml
es/values-hr/strings.xml
es/values-hy-rAM/strings.xml
es/values-ka-rGE/strings.xml
es/values-kk-rKZ/strings.xml
es/values-ky-rKG/strings.xml
es/values-ms-rMY/strings.xml
es/values-ru/strings.xml
es/values-si-rLK/strings.xml
es/values-sk/strings.xml
es/values-sr/strings.xml
es/values-th/strings.xml
es/values-tl/strings.xml
es/values-tr/strings.xml
es/values-ur-rPK/strings.xml
es/values-uz-rUZ/strings.xml
es/values-zh-rTW/strings.xml
010408e11a9e5764ef55181196067d9169f5083d 21-Jul-2014 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: I7863cd672b9b28b29b97c9d69e8d0391dcb0bf62
Auto-generated-cl: translation import
es/values-af/strings.xml
es/values-am/strings.xml
es/values-ar/strings.xml
es/values-bg/strings.xml
es/values-bn-rBD/strings.xml
es/values-ca/strings.xml
es/values-cs/strings.xml
es/values-da/strings.xml
es/values-de/strings.xml
es/values-el/strings.xml
es/values-en-rGB/strings.xml
es/values-en-rIN/strings.xml
es/values-es-rUS/strings.xml
es/values-es/strings.xml
es/values-et-rEE/strings.xml
es/values-eu-rES/strings.xml
es/values-fa/strings.xml
es/values-fi/strings.xml
es/values-fr-rCA/strings.xml
es/values-fr/strings.xml
es/values-gl-rES/strings.xml
es/values-hi/strings.xml
es/values-hr/strings.xml
es/values-hu/strings.xml
es/values-hy-rAM/strings.xml
es/values-in/strings.xml
es/values-is-rIS/strings.xml
es/values-it/strings.xml
es/values-iw/strings.xml
es/values-ja/strings.xml
es/values-ka-rGE/strings.xml
es/values-kk-rKZ/strings.xml
es/values-km-rKH/strings.xml
es/values-kn-rIN/strings.xml
es/values-ko/strings.xml
es/values-ky-rKG/strings.xml
es/values-lo-rLA/strings.xml
es/values-lt/strings.xml
es/values-lv/strings.xml
es/values-mk-rMK/strings.xml
es/values-ml-rIN/strings.xml
es/values-mn-rMN/strings.xml
es/values-mr-rIN/strings.xml
es/values-ms-rMY/strings.xml
es/values-my-rMM/strings.xml
es/values-nb/strings.xml
es/values-ne-rNP/strings.xml
es/values-nl/strings.xml
es/values-pl/strings.xml
es/values-pt-rPT/strings.xml
es/values-pt/strings.xml
es/values-ro/strings.xml
es/values-ru/strings.xml
es/values-si-rLK/strings.xml
es/values-sk/strings.xml
es/values-sl/strings.xml
es/values-sr/strings.xml
es/values-sv/strings.xml
es/values-sw/strings.xml
es/values-ta-rIN/strings.xml
es/values-te-rIN/strings.xml
es/values-th/strings.xml
es/values-tl/strings.xml
es/values-tr/strings.xml
es/values-uk/strings.xml
es/values-ur-rPK/strings.xml
es/values-uz-rUZ/strings.xml
es/values-vi/strings.xml
es/values-zh-rCN/strings.xml
es/values-zh-rHK/strings.xml
es/values-zh-rTW/strings.xml
es/values-zu/strings.xml
802603572c77591183a6ef27163137aff88ee1dd 20-Jul-2014 Baligh Uddin <baligh@google.com> Merge "Remove deprecated locales - DO NOT MERGE" into lmp-dev
50af6d7ae646189c44c642717d24c1d1269e1134 19-Jul-2014 Baligh Uddin <baligh@google.com> Remove deprecated locales - DO NOT MERGE

Change-Id: Iac5489639edae2373ed0ce92f7d0fe22629a249a
es/values-bn-rWB/strings.xml
es/values-eu-rPV/strings.xml
es/values-gl-rGA/strings.xml
es/values-kn-rKA/strings.xml
es/values-ml-rKL/strings.xml
es/values-mr-rMH/strings.xml
es/values-ta-rTN/strings.xml
es/values-te-rAP/strings.xml
4fc8c66cd49d13677d7d8f089b8883405a427d7a 18-Jul-2014 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: I7b6175e9d105f252fd57427b2c15ec31905e6184
Auto-generated-cl: translation import
es/values-am/strings.xml
es/values-bn-rBD/strings.xml
es/values-ca/strings.xml
es/values-el/strings.xml
es/values-en-rGB/strings.xml
es/values-en-rIN/strings.xml
es/values-eu-rES/strings.xml
es/values-gl-rES/strings.xml
es/values-hu/strings.xml
es/values-is-rIS/strings.xml
es/values-kk-rKZ/strings.xml
es/values-km-rKH/strings.xml
es/values-kn-rIN/strings.xml
es/values-ky-rKG/strings.xml
es/values-mk-rMK/strings.xml
es/values-ml-rIN/strings.xml
es/values-mr-rIN/strings.xml
es/values-my-rMM/strings.xml
es/values-ne-rNP/strings.xml
es/values-pt-rPT/strings.xml
es/values-si-rLK/strings.xml
es/values-ta-rIN/strings.xml
es/values-te-rIN/strings.xml
es/values-ur-rPK/strings.xml
es/values-uz-rUZ/strings.xml
6129e1de00e0b699af9b744bcd91f18e66b271f2 20-Jul-2014 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: I6fe58205152413f355bf5f8b13c792d421b6a15e
Auto-generated-cl: translation import
es/values-af/strings.xml
es/values-ar/strings.xml
es/values-bg/strings.xml
es/values-bn-rBD/strings.xml
es/values-da/strings.xml
es/values-de/strings.xml
es/values-es-rUS/strings.xml
es/values-es/strings.xml
es/values-et-rEE/strings.xml
es/values-eu-rES/strings.xml
es/values-fa/strings.xml
es/values-fi/strings.xml
es/values-fr/strings.xml
es/values-gl-rES/strings.xml
es/values-hi/strings.xml
es/values-hu/strings.xml
es/values-hy-rAM/strings.xml
es/values-in/strings.xml
es/values-is-rIS/strings.xml
es/values-it/strings.xml
es/values-iw/strings.xml
es/values-ja/strings.xml
es/values-ka-rGE/strings.xml
es/values-kn-rIN/strings.xml
es/values-ko/strings.xml
es/values-lt/strings.xml
es/values-lv/strings.xml
es/values-ml-rIN/strings.xml
es/values-mn-rMN/strings.xml
es/values-mr-rIN/strings.xml
es/values-nb/strings.xml
es/values-ne-rNP/strings.xml
es/values-nl/strings.xml
es/values-pl/strings.xml
es/values-pt/strings.xml
es/values-ro/strings.xml
es/values-sl/strings.xml
es/values-sv/strings.xml
es/values-sw/strings.xml
es/values-ta-rIN/strings.xml
es/values-te-rIN/strings.xml
es/values-uk/strings.xml
es/values-vi/strings.xml
es/values-zh-rHK/strings.xml
es/values-zu/strings.xml
02b73a5f02c74273780e3c7c3f6a4c35c3d87b76 17-Jul-2014 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: I11c9c29232a06253d5edb83b02237ba9a9493213
Auto-generated-cl: translation import
es/values-af/strings.xml
es/values-am/strings.xml
es/values-ar/strings.xml
es/values-bg/strings.xml
es/values-ca/strings.xml
es/values-cs/strings.xml
es/values-da/strings.xml
es/values-de/strings.xml
es/values-el/strings.xml
es/values-en-rGB/strings.xml
es/values-en-rIN/strings.xml
es/values-es-rUS/strings.xml
es/values-es/strings.xml
es/values-et-rEE/strings.xml
es/values-fa/strings.xml
es/values-fi/strings.xml
es/values-fr-rCA/strings.xml
es/values-fr/strings.xml
es/values-hi/strings.xml
es/values-hr/strings.xml
es/values-hu/strings.xml
es/values-hy-rAM/strings.xml
es/values-in/strings.xml
es/values-it/strings.xml
es/values-iw/strings.xml
es/values-ja/strings.xml
es/values-ka-rGE/strings.xml
es/values-km-rKH/strings.xml
es/values-ko/strings.xml
es/values-lo-rLA/strings.xml
es/values-lt/strings.xml
es/values-lv/strings.xml
es/values-mn-rMN/strings.xml
es/values-ms-rMY/strings.xml
es/values-nb/strings.xml
es/values-nl/strings.xml
es/values-pl/strings.xml
es/values-pt-rPT/strings.xml
es/values-pt/strings.xml
es/values-ro/strings.xml
es/values-ru/strings.xml
es/values-sk/strings.xml
es/values-sl/strings.xml
es/values-sr/strings.xml
es/values-sv/strings.xml
es/values-sw/strings.xml
es/values-th/strings.xml
es/values-tl/strings.xml
es/values-tr/strings.xml
es/values-uk/strings.xml
es/values-vi/strings.xml
es/values-zh-rCN/strings.xml
es/values-zh-rHK/strings.xml
es/values-zh-rTW/strings.xml
es/values-zu/strings.xml
cc2b210ff8d4aefc890c016e4d352f069a5d3eef 16-Jul-2014 Svetoslav <svetoslavganov@google.com> Merge "Update the promoted action background color per UX spec" into lmp-dev
4bcc4a042c760a776ef52a0f727331db3fa315d2 16-Jul-2014 Svetoslav <svetoslavganov@google.com> Update the promoted action background color per UX spec

bug:16303010

Change-Id: I54663a0be79b232a29d8fced4a772a32b4d83ae5
es/values/colors.xml
rc/com/android/printspooler/ui/PageAdapter.java
e323dcc31d403085d6ede0f8884c816f4420ef25 16-Jul-2014 Svetoslav <svetoslavganov@google.com> Drop of the final UX assets for printing.

bug:15705610

Change-Id: I82104a2c0b3d1f4e34f71357b10bed24c0583e71
es/drawable-hdpi/ic_check_circle.png
es/drawable-hdpi/ic_expand_less.png
es/drawable-hdpi/ic_expand_less_24dp.png
es/drawable-hdpi/ic_expand_more.png
es/drawable-hdpi/ic_expand_more_24dp.png
es/drawable-hdpi/ic_remove_circle.png
es/drawable-mdpi/ic_check_circle.png
es/drawable-mdpi/ic_expand_less.png
es/drawable-mdpi/ic_expand_more.png
es/drawable-mdpi/ic_remove_circle.png
es/drawable-xhdpi/ic_check_circle.png
es/drawable-xhdpi/ic_expand_less.png
es/drawable-xhdpi/ic_expand_less_24dp.png
es/drawable-xhdpi/ic_expand_more.png
es/drawable-xhdpi/ic_expand_more_24dp.png
es/drawable-xhdpi/ic_remove_circle.png
es/drawable-xxhdpi/ic_check_circle.png
es/drawable-xxhdpi/ic_expand_less.png
es/drawable-xxhdpi/ic_expand_less_24dp.png
es/drawable-xxhdpi/ic_expand_more.png
es/drawable-xxhdpi/ic_expand_more_24dp.png
es/drawable-xxhdpi/ic_remove_circle.png
es/drawable-xxxhdpi/ic_check_circle.png
es/drawable-xxxhdpi/ic_expand_less.png
es/drawable-xxxhdpi/ic_expand_less_24dp.png
es/drawable-xxxhdpi/ic_expand_more.png
es/drawable-xxxhdpi/ic_expand_more_24dp.png
es/drawable-xxxhdpi/ic_remove_circle.png
es/drawable/ic_expand_less.xml
es/drawable/ic_expand_more.xml
es/drawable/page_selector_background.xml
es/drawable/print_button_background.xml
es/layout/preview_page.xml
es/values/colors.xml
rc/com/android/printspooler/ui/PageAdapter.java
73764e347d387657b3e2f8027d135de612cf454f 16-Jul-2014 Svetoslav <svetoslavganov@google.com> Update the page count in the print UI to meet new UX.

bug:15912257

Change-Id: I1aa3eb4f7e28d3d9c955f60a570c2f8800fdb88d
es/layout/print_activity_controls.xml
es/values/strings.xml
rc/com/android/printspooler/ui/PrintActivity.java
283203e204af88fced290c885142e151122e893c 15-Jul-2014 Svetoslav <svetoslavganov@google.com> Style the all printers activity in material theme.

bug:16301078

Change-Id: Ib96f1e232914802d0b5ddc874be4a4d24a74b685
ndroidManifest.xml
es/drawable/ic_search.xml
es/layout/printer_list_item.xml
es/menu/select_printer_activity.xml
es/values/themes.xml
38408ff5b7203f811644961637fde85eb7a34387 15-Jul-2014 Svetoslav <svetoslavganov@google.com> Remove text selector and hide ime on print options close.

bug:16301754

Change-Id: I69bf09df9976b12c611821737eb4abb794c1df80
rc/com/android/printspooler/widget/PrintContentView.java
b4d873288d969a73d9456ffcc605878bfda12761 15-Jul-2014 Svetoslav <svetoslavganov@google.com> Adjust preview page footer height and font size.

bug:16300627

Change-Id: I135c13085fa0c48de6bedaa58b3974f800547e99
es/layout/preview_page.xml
fd9369c7ae150ccc537c0414af9cc26f4001371b 15-Jul-2014 Svetoslav <svetoslavganov@google.com> Update the color pallete of the print options UI.

The print options UI now uses the material theme with custom
branding collors that follow the rest of the system UI.

bug:16301325

Change-Id: I5fefcd95ada0172a028574550dcfdf628f9ce22d
es/layout/print_activity.xml
es/layout/print_activity_controls.xml
es/layout/spinner_dropdown_item.xml
es/values/styles.xml
es/values/themes.xml
41233447f9c2368946ef1266ae339c71cbe310b1 16-Jul-2014 Svetoslav <svetoslavganov@google.com> Merge "Drop of the final UX assets for printing." into lmp-dev
67eb5bbd5374fe96209cf7b68543cb48ee959b96 16-Jul-2014 Svetoslav <svetoslavganov@google.com> Merge "Update the page count in the print UI to meet new UX." into lmp-dev
6114981ccebe5e32df850e5739cf484271b11332 15-Jul-2014 Svetoslav <svetoslavganov@google.com> Merge "Style the all printers activity in material theme." into lmp-dev
5150bcba8e72165baa061d7648e4f2f1e49fc424 15-Jul-2014 Svetoslav <svetoslavganov@google.com> Merge "Remove text selector and hide ime on print options close." into lmp-dev
e9866fdfa34e357d8a38309ebdd3c4d01fc70e62 15-Jul-2014 Svetoslav <svetoslavganov@google.com> Merge "Adjust preview page footer height and font size." into lmp-dev
5a554fb5b9cb7fb5a748bf52ef337577d416d00d 15-Jul-2014 Svetoslav <svetoslavganov@google.com> Merge "Update the color pallete of the print options UI." into lmp-dev
17d734fee434ca4a37104b783a78fabcda0ac2a5 14-Jul-2014 Svetoslav <svetoslavganov@google.com> Page size not always adjusted

A user can select the pages to print by selecting a range from the
UI after which the selected pages appear in the preview list. Now
the user can further prune pages by clicking on them. If the number
of pages change to two or one the page position and size were not
adjusted. Now after the constraints of desected by clicking pages
are propafated the page size position is also computed.

bug:16297811

Change-Id: I62c0ae8ab5b1d91b120cbf9faa9653ef4ccbd97f
rc/com/android/printspooler/ui/PageAdapter.java
25885ecbe4306165872c1b24628e9646778a0535 14-Jul-2014 Svet Ganov <svetoslavganov@google.com> Rename historical records if printer name changed.

We keep track of previously used printers. It is possible that the name
of a previously used printer changed. In this case we want to change
this printer's name in the historical records to be able to show the
correct name in the UI when loading the history.

bug:13524346

Change-Id: I0a37bd52a564df5a84c816abfcf03db83de93b97
rc/com/android/printspooler/ui/FusedPrintersProvider.java
a4ab780877808dbee334f7c7cc4acefa0aa313b2 14-Jul-2014 Svet Ganov <svetoslavganov@google.com> Fix broken actions in print notifications.

The notification handling broadcast receiver was renamed but the
manifest was not updated, hence the receiver was not registered.

bug:16289408

Change-Id: I094e20e472abff1f926e1dbfbac32f422f498f74
ndroidManifest.xml
rc/com/android/printspooler/model/NotificationController.java
6f60e56b3c37839dfec1a9fb61c52fa2c631a5cb 14-Jul-2014 Svet Ganov <svetoslavganov@google.com> Improve print options click to open behavior.

When print options are closed we show a summary and a handle to open
the options panel. Often the user instinctively clicks on the summary
and also the expand handle is a somehow small target. To improve user
experience clicking on the summary also opens the print options.

Change-Id: Ia2f3b80f5acf11b40af864729f67fa29e82729fc
rc/com/android/printspooler/widget/PrintContentView.java
9fb7b07c6cbdd1c6f394bfc456ccc034619b6727 14-Jul-2014 Svet Ganov <svetoslavganov@google.com> Dimming deselected preview pages

For print preview we show the pages the user selected in the range
affordance but the user can optionally further prune pages to be
printed by deselecting them in the preview. The deselected pages
change elevation and now also are dimmed.

bug:15912256

Change-Id: I53357b8e8b592387bbc26b937eda786bb4660d85
es/values/constants.xml
rc/com/android/printspooler/ui/PageAdapter.java
48fec5c9a3e4d78bc4cd175fae05be153ac587af 14-Jul-2014 Svet Ganov <svetoslavganov@google.com> Top printer not properly selected.

We keep track of historically used printers and when the print dialog
is opened we load them. We were selecting the first printer before the
historical ones are loaded which led to a case where the PDF printer
is selected and then a better printer appears but we have the PDF one
selected.

Also we were asking the printer spinner for the current printer but
if the data set of the adapter changes and we ask the spinner for the
selection we get a wrong answer because the adapter and the view are
off sync since the view is updated on the next message.

Change-Id: I0c12d2d3b19227a8f6af6e421b92013ec06cc021
rc/com/android/printspooler/ui/FusedPrintersProvider.java
rc/com/android/printspooler/ui/PrintActivity.java
rc/com/android/printspooler/ui/PrinterRegistry.java
000f88c9e8be154dbff43afc6e14b52d3727eb53 12-Jul-2014 Svetoslav <svetoslavganov@google.com> Adding back accidentally removed constants

Change-Id: Ib99000da8f31437e7d40eceb69779a0f4c2982e1
es/values-land/constants.xml
es/values/constants.xml
39afc200f299ffd7e6a2a507017c3de2a548f877 12-Jul-2014 Svetoslav <svetoslavganov@google.com> Remove commented out dead code

Change-Id: I3e59d0ee55fd864ea0d8bc5f99cdb74d9b0e49bb
rc/com/android/printspooler/model/PageContentRepository.java
1710e0318db5db833974e390eb4bde54ab2f3c62 12-Jul-2014 Svetoslav <svetoslavganov@google.com> Fix print preview rendered page preloading.

After the preview list is scrolled we are preloading the
pages around the ones that are shown, so now if the user
does a slight adjustment (expected after a scroll) the
pages around are rendered. There was an off by one error
and one of the bitmaps of the shown pages was reused and
as a result the wrong content was shown.

Change-Id: If04aebf46bcc637491221c6218005ecc1a7253d2
rc/com/android/printspooler/model/PageContentRepository.java
rc/com/android/printspooler/ui/PageAdapter.java
53912d07d211f20d2d70b0fba127ddc587aa897e 11-Jul-2014 Svetoslav <svetoslavganov@google.com> Fix the print button appearance.

Change-Id: Ie19a52eaf08e1e39bb488c5afa2344c72e646b0b
es/drawable-hdpi/print_button_background.png
es/drawable-mdpi/print_button_background.png
es/drawable-xhdpi/print_button_background.png
es/drawable/print_button_background.xml
es/layout/print_activity.xml
15cbc8a03250eafdf947cd8ad4e77f34444d5ba4 11-Jul-2014 Svetoslav <svetoslavganov@google.com> Addressing comments for the print preview feature.

Change-Id: Ib72140a912e22f859258d970e0d1c4ef06e807d5
es/layout/print_activity.xml
es/layout/print_activity_controls.xml
es/values/constants.xml
rc/com/android/printspooler/model/PageContentRepository.java
rc/com/android/printspooler/ui/PageAdapter.java
rc/com/android/printspooler/ui/PrintActivity.java
rc/com/android/printspooler/ui/PrintPreviewController.java
rc/com/android/printspooler/widget/PageContentView.java
rc/com/android/printspooler/widget/PrintContentView.java
525a66b2bb5abf844aff2109bdc9ed819566bece 15-Jun-2014 Svet Ganov <svetoslavganov@google.com> Adding print preview.

This change adds the pring preview part of the new print UX. The
UI has two parts, the top section is the print options and the
bottom section print preview with a list of pages. The user can
interact only with one of them. When print options are expanded
they cover the preview content and a scrim is laid out on top of
the preview. Tapping the scrim collapses the print options. When
the user types in page ranges and closes the options to look at
the preview, the latter is updated to show only these pages. In
the list of pages the user can further prune pages by deselecting
them.

Change-Id: I0b23d2c598afe2a34400ccfa43e4e935af83c72f
ndroid.mk
ndroidManifest.xml
es/layout/preview_page.xml
es/layout/print_activity.xml
es/layout/print_progress_fragment.xml
es/values-land/constants.xml
es/values-sw600dp-land/constants.xml
es/values-sw600dp/constants.xml
es/values/colors.xml
es/values/constants.xml
es/values/strings.xml
es/values/themes.xml
rc/com/android/printspooler/model/MutexFileProvider.java
rc/com/android/printspooler/model/NotificationController.java
rc/com/android/printspooler/model/PageContentRepository.java
rc/com/android/printspooler/model/RemotePrintDocument.java
rc/com/android/printspooler/ui/PageAdapter.java
rc/com/android/printspooler/ui/PrintActivity.java
rc/com/android/printspooler/ui/PrintErrorFragment.java
rc/com/android/printspooler/ui/PrintPreviewController.java
rc/com/android/printspooler/ui/PrintPreviewFragment.java
rc/com/android/printspooler/ui/PrintProgressFragment.java
rc/com/android/printspooler/util/PageRangeUtils.java
rc/com/android/printspooler/widget/ContentView.java
rc/com/android/printspooler/widget/EmbeddedContentContainer.java
rc/com/android/printspooler/widget/PageContentView.java
rc/com/android/printspooler/widget/PrintContentView.java
rc/com/android/printspooler/widget/PrintOptionsLayout.java
40b9a2a59a4c8ec07c3750924952b2770f65790f 05-Jul-2014 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: I004e0eca54b3f3e8bc06237abcec0790e0eddd57
Auto-generated-cl: translation import
es/values-bn-rBD/strings.xml
es/values-eu-rES/strings.xml
es/values-gl-rES/strings.xml
es/values-hi/strings.xml
es/values-kn-rIN/strings.xml
es/values-ml-rIN/strings.xml
es/values-mr-rIN/strings.xml
es/values-ta-rIN/strings.xml
es/values-te-rIN/strings.xml
700c8ad6c828d6344ba3451d30f2fdd9e2c2cc70 30-Jun-2014 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: I19ba0a7849975b5f1674a9b04ec1d1bf08c25a9f
Auto-generated-cl: translation import
es/values-bn-rWB/strings.xml
es/values-eu-rPV/strings.xml
es/values-gl-rGA/strings.xml
es/values-is-rIS/strings.xml
es/values-kk-rKZ/strings.xml
es/values-km-rKH/strings.xml
es/values-kn-rKA/strings.xml
es/values-ky-rKG/strings.xml
es/values-mk-rMK/strings.xml
es/values-ml-rKL/strings.xml
es/values-mr-rMH/strings.xml
es/values-my-rMM/strings.xml
es/values-ne-rNP/strings.xml
es/values-si-rLK/strings.xml
es/values-ta-rTN/strings.xml
es/values-te-rAP/strings.xml
es/values-ur-rPK/strings.xml
es/values-uz-rUZ/strings.xml
ae40bcbe6179b22099b3e8b1ca13ce3a80448596 26-Jun-2014 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: I14733d99735d38e73451e9df11da28e78d1ac973
Auto-generated-cl: translation import
es/values-km-rKH/strings.xml
18f51dddd99bc8dd8fb73c1d6d8e7ee68ad2e55a 23-Jun-2014 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: I3e3a10ece8f548783744aaec1c0c705e207701a4
Auto-generated-cl: translation import
es/values-km-rKH/strings.xml
e52ee5688ddb196974fe52811a10e27deecf870d 18-Jun-2014 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: I78454917ebab5e086504ea688c5b6b05991bb27d
Auto-generated-cl: translation import
es/values-km-rKH/strings.xml
4a66b07c7f9ba942e6966c3c0ade2a15c108b6c5 13-Jun-2014 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: If49c63f7cf5e95fcaba6852dfc44ed702ed625b9
Auto-generated-cl: translation import
es/values-af/strings.xml
es/values-am/strings.xml
es/values-bg/strings.xml
es/values-ca/strings.xml
es/values-cs/strings.xml
es/values-da/strings.xml
es/values-de/strings.xml
es/values-es-rUS/strings.xml
es/values-es/strings.xml
es/values-et-rEE/strings.xml
es/values-fi/strings.xml
es/values-fr-rCA/strings.xml
es/values-fr/strings.xml
es/values-hi/strings.xml
es/values-hr/strings.xml
es/values-hu/strings.xml
es/values-hy-rAM/strings.xml
es/values-in/strings.xml
es/values-it/strings.xml
es/values-ja/strings.xml
es/values-ka-rGE/strings.xml
es/values-km-rKH/strings.xml
es/values-ko/strings.xml
es/values-lo-rLA/strings.xml
es/values-lt/strings.xml
es/values-lv/strings.xml
es/values-mn-rMN/strings.xml
es/values-ms-rMY/strings.xml
es/values-nb/strings.xml
es/values-nl/strings.xml
es/values-pl/strings.xml
es/values-pt-rPT/strings.xml
es/values-pt/strings.xml
es/values-ro/strings.xml
es/values-ru/strings.xml
es/values-sk/strings.xml
es/values-sl/strings.xml
es/values-sr/strings.xml
es/values-sv/strings.xml
es/values-sw/strings.xml
es/values-th/strings.xml
es/values-tl/strings.xml
es/values-tr/strings.xml
es/values-uk/strings.xml
es/values-vi/strings.xml
es/values-zh-rCN/strings.xml
es/values-zh-rHK/strings.xml
es/values-zh-rTW/strings.xml
es/values-zu/strings.xml
e3bbb3d6c09a29cddeb544308e5b3210908fa256 12-Jun-2014 Svetoslav <svetoslavganov@google.com> Fix NPE in PrintActivity.

It is possible that the orientation is chosen before the media size.
The code handling orientation change was wrognly expecting to have
a selected media size all the time resulting in a NPE.

bug:15512333

Change-Id: I9f2786af314641144a24c1d1363c8d2590b0df57
rc/com/android/printspooler/ui/PrintActivity.java
ef1b1398e9366b65d7ffb4e7908cb266d0ab4794 11-Jun-2014 Ruben Brunk <rubenbrunk@google.com> fixbuild: Remove 'pinned' attr.

Needed by ag/481620

BUG: 15523923
BUG: 15473856

Change-Id: I5e8bf417368b60fcc33c80852e12f27b8c580774
es/drawable/print_button.xml
12bfa7cd68747a213e495b7d9499c92109ec4e49 09-Jun-2014 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: I471ee84c28b6ea15be4e54fd9ec2f7e262fa76ed
Auto-generated-cl: translation import
es/values-af/strings.xml
es/values-am/strings.xml
es/values-ar/strings.xml
es/values-bg/strings.xml
es/values-ca/strings.xml
es/values-cs/strings.xml
es/values-da/strings.xml
es/values-de/strings.xml
es/values-el/strings.xml
es/values-en-rGB/strings.xml
es/values-en-rIN/strings.xml
es/values-es-rUS/strings.xml
es/values-es/strings.xml
es/values-et-rEE/strings.xml
es/values-fa/strings.xml
es/values-fi/strings.xml
es/values-fr-rCA/strings.xml
es/values-fr/strings.xml
es/values-hi/strings.xml
es/values-hr/strings.xml
es/values-hu/strings.xml
es/values-hy-rAM/strings.xml
es/values-in/strings.xml
es/values-it/strings.xml
es/values-iw/strings.xml
es/values-ja/strings.xml
es/values-ka-rGE/strings.xml
es/values-km-rKH/strings.xml
es/values-ko/strings.xml
es/values-lo-rLA/strings.xml
es/values-lt/strings.xml
es/values-lv/strings.xml
es/values-mn-rMN/strings.xml
es/values-ms-rMY/strings.xml
es/values-nb/strings.xml
es/values-nl/strings.xml
es/values-pl/strings.xml
es/values-pt-rPT/strings.xml
es/values-pt/strings.xml
es/values-ro/strings.xml
es/values-ru/strings.xml
es/values-sk/strings.xml
es/values-sl/strings.xml
es/values-sr/strings.xml
es/values-sv/strings.xml
es/values-sw/strings.xml
es/values-th/strings.xml
es/values-tl/strings.xml
es/values-tr/strings.xml
es/values-uk/strings.xml
es/values-vi/strings.xml
es/values-zh-rCN/strings.xml
es/values-zh-rHK/strings.xml
es/values-zh-rTW/strings.xml
es/values-zu/strings.xml
48798325edb5901062ba28321944bd602e2e6d4f 07-Jun-2014 Baligh Uddin <baligh@google.com> Merge "Import translations. DO NOT MERGE"
a798c0a984f29f7180883a61839f68d2cbf0c6ce 15-May-2014 Svetoslav <svetoslavganov@google.com> Refactor printing

Change-Id: I19850154ef2798afff511e4490a268ce38e8cbae
ndroid.mk
ndroidManifest.xml
es/drawable-hdpi/ic_expand_less_24dp.png
es/drawable-hdpi/ic_expand_more_24dp.png
es/drawable-hdpi/ic_grayedout_printer.png
es/drawable-hdpi/print_button_background.png
es/drawable-mdpi/ic_expand_less_24dp.png
es/drawable-mdpi/ic_expand_more_24dp.png
es/drawable-mdpi/ic_grayedout_printer.png
es/drawable-mdpi/print_button_background.png
es/drawable-xhdpi/ic_expand_less_24dp.png
es/drawable-xhdpi/ic_expand_more_24dp.png
es/drawable-xhdpi/ic_grayedout_printer.png
es/drawable-xhdpi/print_button_background.png
es/drawable-xxhdpi/ic_expand_less_24dp.png
es/drawable-xxhdpi/ic_expand_more_24dp.png
es/drawable-xxxhdpi/ic_expand_less_24dp.png
es/drawable-xxxhdpi/ic_expand_more_24dp.png
es/drawable/ic_expand_less.xml
es/drawable/ic_expand_more.xml
es/drawable/print_button.xml
es/layout/print_activity.xml
es/layout/print_error_fragment.xml
es/layout/print_job_config_activity_container.xml
es/layout/print_job_config_activity_content_editing.xml
es/layout/print_job_config_activity_content_error.xml
es/layout/print_job_config_activity_content_generating.xml
es/layout/print_progress_fragment.xml
es/layout/printer_dropdown_item.xml
es/layout/printer_list_item.xml
es/layout/select_printer_activity.xml
es/layout/select_printer_fragment.xml
es/layout/spinner_dropdown_item.xml
es/values-land/constants.xml
es/values-sw600dp-land/constants.xml
es/values-sw600dp/constants.xml
es/values/attrs.xml
es/values/colors.xml
es/values/constants.xml
es/values/strings.xml
es/values/styles.xml
es/values/themes.xml
rc/com/android/printspooler/FusedPrintersProvider.java
rc/com/android/printspooler/MediaSizeUtils.java
rc/com/android/printspooler/NotificationController.java
rc/com/android/printspooler/PrintDialogFrame.java
rc/com/android/printspooler/PrintJobConfigActivity.java
rc/com/android/printspooler/PrintSpoolerService.java
rc/com/android/printspooler/RemotePrintDocumentAdapter.java
rc/com/android/printspooler/SelectPrinterActivity.java
rc/com/android/printspooler/SelectPrinterFragment.java
rc/com/android/printspooler/model/NotificationController.java
rc/com/android/printspooler/model/PrintSpoolerProvider.java
rc/com/android/printspooler/model/PrintSpoolerService.java
rc/com/android/printspooler/model/RemotePrintDocument.java
rc/com/android/printspooler/ui/FusedPrintersProvider.java
rc/com/android/printspooler/ui/PrintActivity.java
rc/com/android/printspooler/ui/PrintErrorFragment.java
rc/com/android/printspooler/ui/PrintPreviewFragment.java
rc/com/android/printspooler/ui/PrintProgressFragment.java
rc/com/android/printspooler/ui/PrinterRegistry.java
rc/com/android/printspooler/ui/SelectPrinterActivity.java
rc/com/android/printspooler/util/MediaSizeUtils.java
rc/com/android/printspooler/util/PageRangeUtils.java
rc/com/android/printspooler/util/PrintOptionUtils.java
rc/com/android/printspooler/widget/ContentView.java
rc/com/android/printspooler/widget/FirstFocusableEditText.java
rc/com/android/printspooler/widget/PrintOptionsLayout.java
269bfa18f8c0097ad5c61e252cd80dcd4e719e2a 04-Jun-2014 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: I30f36cd83def8e860e1535bdd75f7564e71b97d6
Auto-generated-cl: translation import
es/values-km-rKH/strings.xml
ae12a0fbb316a507d59cf9484ccfbecb6bd51ddd 02-Jun-2014 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: Id7173460a1e17e91f6d119dea4b0f318bf51d78e
Auto-generated-cl: translation import
es/values-km-rKH/strings.xml
da506a607e5b86dd654e5a7ab50b74cb4e4906f8 28-May-2014 Geoff Mendal <mendal@google.com> Import translations. DO NOT MERGE

Change-Id: I0ad03f1c00243b191db304b1d7f6974db0f06022
Auto-generated-cl: translation import
es/values-km-rKH/strings.xml
c8128b0bd83fcee783517fd03c6063a256790fa7 20-May-2014 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: Idcca08557f575b7a9f5cb66df19eaa01f7989ac8
Auto-generated-cl: translation import
es/values-am/strings.xml
es/values-da/strings.xml
es/values-fr/strings.xml
es/values-ja/strings.xml
es/values-sl/strings.xml
es/values-sw/strings.xml
2cf184233ba5a596a4fc187289bba848ff341cf1 14-May-2014 Ed Heyl <edheyl@google.com> merge master nova by hand, skipped translations

Change-Id: I4bea0bb9e375361f21d995bf4698d5eb6300ecfb
bc3c9ec4ff7cc80aa574721d952aa74ea3a1541b 12-May-2014 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: I7d5f832b6c632d75c580cff1b30d7234c30d64a9
Auto-generated-cl: translation import
es/values-km-rKH/strings.xml
d7ee61112e26c67f641a39dbc1c011065920fecb 16-Apr-2014 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: I9c1fa79848e6ddb1190309328e3dd9a5636b3281
Auto-generated-cl: translation import
es/values-da/strings.xml
es/values-ja/strings.xml
es/values-sl/strings.xml
es/values-sw/strings.xml
01cefbc5b35485d4295744aec360a143faf63df4 03-Apr-2014 Alan Viverette <alanv@google.com> am b325345e: Merge "Switch framework Holo references to Quantum.Light"

* commit 'b325345ef0adf2849350d339de1ec5f92b67b7ae':
Switch framework Holo references to Quantum.Light
3a3395042e51e1f2ade01cf1225df356e63cc27d 03-Apr-2014 Alan Viverette <alanv@google.com> am b325345e: Merge "Switch framework Holo references to Quantum.Light"

* commit 'b325345ef0adf2849350d339de1ec5f92b67b7ae':
Switch framework Holo references to Quantum.Light
6259933ec99dee566f200c5fdfe1756ee72b1513 01-Apr-2014 Alan Viverette <alanv@google.com> Switch framework Holo references to Quantum.Light

Change-Id: Ib545a143f1959b6104adbc9d594dd626851d90b3
es/layout/select_printer_activity.xml
es/values/themes.xml
456696ac9821fb4be5235f0f2a914e1716715b00 24-Mar-2014 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: I9d33cc058a79b8ea1b265104afbaa0dba76762a8
Auto-generated-cl: translation import
es/values-da/strings.xml
es/values-sl/strings.xml
es/values-sw/strings.xml
8b6d9fee1fd76cf1b6195b07606334b46cab40f7 19-Mar-2014 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: Ic4396a06837a9e5c6f32ec9237567f886bdae8bd
Auto-generated-cl: translation import
es/values-fr/strings.xml
554428c327f7e8e0282ef800d30a22462dbcc1a1 17-Mar-2014 Geoff Mendal <mendal@google.com> Import translations. DO NOT MERGE

Change-Id: I997192f031eea02fbad2f41370db984dce84b65c
Auto-generated-cl: translation import
es/values-am/strings.xml
267bba6f64b450d27597ff76c7349cc61364375a 08-Jan-2014 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: Ia1ebb3566930294e42b3310a5d8ffa845852fa77
Auto-generated-cl: translation import
es/values-ja/strings.xml
b0d97b87ba5f23ee867f381a4e5916ebb2e5f762 02-Jan-2014 Svetoslav <svetoslavganov@google.com> PrintSpooler crash if printer is reported to have only one color mode.

bug:11993304

Change-Id: I4932cf1b5b9b89f0cbf97011782ede037e7d814c
rc/com/android/printspooler/PrintJobConfigActivity.java
2c1b177dcfbf140eb1409c646eefb8b0507fa534 21-Dec-2013 Svetoslav <svetoslavganov@google.com> Sometimes write may be called twice in a row for the same content.

In a rare case it is possible that on write of a print document
adapter is called twice for the same pages with nothing being
changed. This happens if while doing a write we get an update
request which correctly avoids calling layout on the adapter
but does call on write as we ignore that we are waining for the
requested pages to be written. Fun.

Change-Id: I33d7d26c7c4b083dc7b66bf762697b6dafd1ccc4
rc/com/android/printspooler/PrintJobConfigActivity.java
38bae539f8208be542474eb05ab635cc9c0f3bdd 09-Dec-2013 Baligh Uddin <baligh@google.com> Remove deprecated locales

Bug:11340849
Change-Id: Ib99486303927a6bce308b113d70f8e5b5bce4a13
es/values-be/donottranslate.xml
d487eb3c03542ce7068d64c2c9c3625c740f26e0 19-Nov-2013 Dave Langemak <dlangemak@google.com> am 741c9c74: am d220d820: am c04aa87e: Merge "Fix incorrent page range parsing when custom print options used." into klp-dev

* commit '741c9c74ffead322c349242e3f72e8fd2957bd3d':
Fix incorrent page range parsing when custom print options used.
741c9c74ffead322c349242e3f72e8fd2957bd3d 19-Nov-2013 Dave Langemak <dlangemak@google.com> am d220d820: am c04aa87e: Merge "Fix incorrent page range parsing when custom print options used." into klp-dev

* commit 'd220d8202e67a82075ee20351657509ca0885b67':
Fix incorrent page range parsing when custom print options used.
d220d8202e67a82075ee20351657509ca0885b67 19-Nov-2013 Dave Langemak <dlangemak@google.com> am c04aa87e: Merge "Fix incorrent page range parsing when custom print options used." into klp-dev

* commit 'c04aa87e4ac41b6c65dceb7b20d7a7f92c2efec1':
Fix incorrent page range parsing when custom print options used.
c04aa87e4ac41b6c65dceb7b20d7a7f92c2efec1 19-Nov-2013 Dave Langemak <dlangemak@google.com> Merge "Fix incorrent page range parsing when custom print options used." into klp-dev
cff08b4cabd0369de74bb253744b167425f34b7c 18-Nov-2013 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: I73cde7061a849fa76822f468ec79c7eb9021c9be
Auto-generated-cl: translation import
es/values-ru/strings.xml
564fb1b8ce4aa603bd0d5b3a077ba27d66e77c32 18-Nov-2013 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: I6eea0f5a4b57c4686d1f6ff4fc137358400651b8
Auto-generated-cl: translation import
es/values-ru/strings.xml
1a85d9fb243aae3750001094aa1514d4303cb3e0 16-Nov-2013 Svetoslav Ganov <svetoslavganov@google.com> Fix incorrent page range parsing when custom print options used.

We have APIs for a print service to declare an activity with custom
print options. In this activity the service can add custom properties
as well as change the standard ones such as pages to print. The ranges
of selected pages from the custom activity was incorrectly parsed
resulting in an off by one error in what is shown to the user and as a
result getting an exception when trying to print.

bug:11719051

Change-Id: Id04c94608178895f1d47381a63133f0eba7645e1
rc/com/android/printspooler/PrintJobConfigActivity.java
5b3574a9aaba8949c8febbd371871da34378cd35 15-Nov-2013 Baligh Uddin <baligh@google.com> Merge "Import translations. DO NOT MERGE"
573f0db661e3a200578b7d3d684a60f80964ead9 15-Nov-2013 Svetoslav <svetoslavganov@google.com> am 172c5a24: am d2b27cbd: am 6874bfe1: Merge "Created print jobs should not be persisted until they are queued." into klp-dev

* commit '172c5a2473c82dfb72de289011fe615c28c572cd':
Created print jobs should not be persisted until they are queued.
18658d18633c1e5b1b2343bc7f952a7d5fdbf149 15-Nov-2013 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: Ie93ca6d1a6baab26ef47fca55e5d3f27efb5997b
Auto-generated-cl: translation import
es/values-ar/strings.xml
2785892dbf6c53b7e1a08596969bfcdf0148c8e9 15-Nov-2013 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: I6d1283da139ad2ef60213d83d7ac00939a4bfc04
Auto-generated-cl: translation import
es/values-ar/strings.xml
172c5a2473c82dfb72de289011fe615c28c572cd 15-Nov-2013 Svetoslav <svetoslavganov@google.com> am d2b27cbd: am 6874bfe1: Merge "Created print jobs should not be persisted until they are queued." into klp-dev

* commit 'd2b27cbde92dc57b5b6fe9b7434a5189a73dd2b2':
Created print jobs should not be persisted until they are queued.
d2b27cbde92dc57b5b6fe9b7434a5189a73dd2b2 15-Nov-2013 Svetoslav <svetoslavganov@google.com> am 6874bfe1: Merge "Created print jobs should not be persisted until they are queued." into klp-dev

* commit '6874bfe19b6bc1522e07e53eb96a07e21d148b41':
Created print jobs should not be persisted until they are queued.
885810de69d75979df4299d21fa236490767eae4 15-Nov-2013 Svetoslav <svetoslavganov@google.com> Created print jobs should not be persisted until they are queued.

Print jobs in a created state should not be persisted. However,
if a print service sets the tag to a print job that is queued,
we were persisting even print jobs in a created state. This
change adds a simple check while persisting to avoid storing
created print jobs.

bug:11696785

Change-Id: Idf28f3634b91fd5bf345f376114af4ed478ed3c6
es/layout/print_job_config_activity_content_error.xml
rc/com/android/printspooler/PrintSpoolerService.java
1b967a1b23cd237d3df49f7b0e0af771c8aef077 14-Nov-2013 Svetoslav <svetoslavganov@google.com> resolved conflicts for merge of 9358d98d to master

Change-Id: I1facdcec6eeaa10805300c9d634957fbb86815d3
9358d98d83dc79734ca2da00a371e0966e9ddfe1 13-Nov-2013 Svetoslav Ganov <svetoslavganov@google.com> am 852a8895: am d697ba73: Merge "Fix NPE at PrintSpooler in Japanese environment." into klp-dev

* commit '852a8895e18ad578a4c299d13615a4cbb3ee1211':
Fix NPE at PrintSpooler in Japanese environment.
852a8895e18ad578a4c299d13615a4cbb3ee1211 13-Nov-2013 Svetoslav Ganov <svetoslavganov@google.com> am d697ba73: Merge "Fix NPE at PrintSpooler in Japanese environment." into klp-dev

* commit 'd697ba73b5a5fc5dc502a117a8f06e8f1a5359b9':
Fix NPE at PrintSpooler in Japanese environment.
1a8c7135f0dc01956aa4f159225569d797dcfbc7 13-Nov-2013 Keiji Ariyama <keiji_ariyama@c-lis.co.jp> Fix NPE at PrintSpooler in Japanese environment.

MediaSize ID have to be upper cases.

Change-Id: I84af01dbd185df210b5ebb1de282a4091e06df05
Related-issue: https://code.google.com/p/android/issues/detail?id=61984
es/values-ja/arrays.xml
de0bb5a097f249e77d9121350c41c1e3422b33ee 11-Nov-2013 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: I44ee60eb6a5bf5ec7099461ecf11930436a1fc05
Auto-generated-cl: translation import
es/values-am/strings.xml
es/values-bg/strings.xml
es/values-cs/strings.xml
es/values-de/strings.xml
es/values-es-rUS/strings.xml
es/values-et-rEE/strings.xml
es/values-fa/strings.xml
es/values-fi/strings.xml
es/values-fr-rCA/strings.xml
es/values-fr/strings.xml
es/values-hi/strings.xml
es/values-hr/strings.xml
es/values-hy-rAM/strings.xml
es/values-in/strings.xml
es/values-ja/strings.xml
es/values-ka-rGE/strings.xml
es/values-km-rKH/strings.xml
es/values-ko/strings.xml
es/values-ms-rMY/strings.xml
es/values-nb/strings.xml
es/values-pl/strings.xml
es/values-pt/strings.xml
es/values-ro/strings.xml
es/values-ru/strings.xml
es/values-sk/strings.xml
es/values-sl/strings.xml
es/values-sv/strings.xml
es/values-sw/strings.xml
es/values-th/strings.xml
es/values-tl/strings.xml
es/values-tr/strings.xml
es/values-vi/strings.xml
es/values-zh-rCN/strings.xml
es/values-zh-rHK/strings.xml
es/values-zh-rTW/strings.xml
es/values-zu/strings.xml
9c530e1855abd42d2cc10b3c9917c5e424cb9b21 11-Nov-2013 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: I75eb5e47f9851174f7bd7e8301537bf7c94a8b5a
Auto-generated-cl: translation import
es/values-am/strings.xml
es/values-bg/strings.xml
es/values-cs/strings.xml
es/values-de/strings.xml
es/values-es-rUS/strings.xml
es/values-et-rEE/strings.xml
es/values-fa/strings.xml
es/values-fi/strings.xml
es/values-fr-rCA/strings.xml
es/values-fr/strings.xml
es/values-hi/strings.xml
es/values-hr/strings.xml
es/values-hy-rAM/strings.xml
es/values-in/strings.xml
es/values-ja/strings.xml
es/values-ka-rGE/strings.xml
es/values-km-rKH/strings.xml
es/values-ko/strings.xml
es/values-ms-rMY/strings.xml
es/values-nb/strings.xml
es/values-pl/strings.xml
es/values-pt/strings.xml
es/values-ro/strings.xml
es/values-ru/strings.xml
es/values-sk/strings.xml
es/values-sl/strings.xml
es/values-sv/strings.xml
es/values-sw/strings.xml
es/values-th/strings.xml
es/values-tl/strings.xml
es/values-tr/strings.xml
es/values-vi/strings.xml
es/values-zh-rCN/strings.xml
es/values-zh-rHK/strings.xml
es/values-zh-rTW/strings.xml
es/values-zu/strings.xml
6ccf6255595503528389a003b361137db597e057 06-Nov-2013 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: I659e58b641a7a154bca5ea33413aff6cde07635a
Auto-generated-cl: translation import
es/values-af/strings.xml
es/values-am/strings.xml
es/values-ar/strings.xml
es/values-bg/strings.xml
es/values-ca/strings.xml
es/values-cs/strings.xml
es/values-da/strings.xml
es/values-de/strings.xml
es/values-el/strings.xml
es/values-en-rGB/strings.xml
es/values-en-rIN/strings.xml
es/values-es-rUS/strings.xml
es/values-es/strings.xml
es/values-et-rEE/strings.xml
es/values-fa/strings.xml
es/values-fi/strings.xml
es/values-fr-rCA/strings.xml
es/values-fr/strings.xml
es/values-hi/strings.xml
es/values-hr/strings.xml
es/values-hu/strings.xml
es/values-hy-rAM/strings.xml
es/values-in/strings.xml
es/values-it/strings.xml
es/values-iw/strings.xml
es/values-ja/strings.xml
es/values-ka-rGE/strings.xml
es/values-km-rKH/strings.xml
es/values-ko/strings.xml
es/values-lo-rLA/strings.xml
es/values-lt/strings.xml
es/values-lv/strings.xml
es/values-mn-rMN/strings.xml
es/values-ms-rMY/strings.xml
es/values-nb/strings.xml
es/values-nl/strings.xml
es/values-pl/strings.xml
es/values-pt-rPT/strings.xml
es/values-pt/strings.xml
es/values-ro/strings.xml
es/values-ru/strings.xml
es/values-sk/strings.xml
es/values-sl/strings.xml
es/values-sr/strings.xml
es/values-sv/strings.xml
es/values-sw/strings.xml
es/values-th/strings.xml
es/values-tl/strings.xml
es/values-tr/strings.xml
es/values-uk/strings.xml
es/values-vi/strings.xml
es/values-zh-rCN/strings.xml
es/values-zh-rHK/strings.xml
es/values-zh-rTW/strings.xml
es/values-zu/strings.xml
3b79bf493c1e2f9afe1efd58bb7c7664d2e0a8c5 06-Nov-2013 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: I13dd4dfd6492c31975cd61e28caeea940a5f66cb
Auto-generated-cl: translation import
es/values-af/strings.xml
es/values-am/strings.xml
es/values-ar/strings.xml
es/values-bg/strings.xml
es/values-ca/strings.xml
es/values-cs/strings.xml
es/values-da/strings.xml
es/values-de/strings.xml
es/values-el/strings.xml
es/values-en-rGB/strings.xml
es/values-en-rIN/strings.xml
es/values-es-rUS/strings.xml
es/values-es/strings.xml
es/values-et-rEE/strings.xml
es/values-fa/strings.xml
es/values-fi/strings.xml
es/values-fr-rCA/strings.xml
es/values-fr/strings.xml
es/values-hi/strings.xml
es/values-hr/strings.xml
es/values-hu/strings.xml
es/values-hy-rAM/strings.xml
es/values-in/strings.xml
es/values-it/strings.xml
es/values-iw/strings.xml
es/values-ja/strings.xml
es/values-ka-rGE/strings.xml
es/values-km-rKH/strings.xml
es/values-ko/strings.xml
es/values-lo-rLA/strings.xml
es/values-lt/strings.xml
es/values-lv/strings.xml
es/values-mn-rMN/strings.xml
es/values-ms-rMY/strings.xml
es/values-nb/strings.xml
es/values-nl/strings.xml
es/values-pl/strings.xml
es/values-pt-rPT/strings.xml
es/values-pt/strings.xml
es/values-ro/strings.xml
es/values-ru/strings.xml
es/values-sk/strings.xml
es/values-sl/strings.xml
es/values-sr/strings.xml
es/values-sv/strings.xml
es/values-sw/strings.xml
es/values-th/strings.xml
es/values-tl/strings.xml
es/values-tr/strings.xml
es/values-uk/strings.xml
es/values-vi/strings.xml
es/values-zh-rCN/strings.xml
es/values-zh-rHK/strings.xml
es/values-zh-rTW/strings.xml
es/values-zu/strings.xml
8045a50ed1902ff4007be7cd35b43188a61cafb0 05-Nov-2013 Svetoslav <svetoslavganov@google.com> am 05d15b36: am 3976afb5: am c445b3f2: Merge "Add missing null pointer check in PrintSpoolerService." into klp-dev

* commit '05d15b36bf133ac06c93e181c922d8119561ad5f':
Add missing null pointer check in PrintSpoolerService.
b066a136d72e753836be17a73f25826605b8a92f 05-Nov-2013 Svetoslav <svetoslavganov@google.com> am d4879eec: am 628264c4: am 4033c94b: Merge "Add way for the user to forget previously used printers." into klp-dev

* commit 'd4879eec5f1749d34d59a19ccde820c4eaabdfcf':
Add way for the user to forget previously used printers.
05d15b36bf133ac06c93e181c922d8119561ad5f 05-Nov-2013 Svetoslav <svetoslavganov@google.com> am 3976afb5: am c445b3f2: Merge "Add missing null pointer check in PrintSpoolerService." into klp-dev

* commit '3976afb5ac2036864f8d75c26e144c5761c6b20c':
Add missing null pointer check in PrintSpoolerService.
d4879eec5f1749d34d59a19ccde820c4eaabdfcf 05-Nov-2013 Svetoslav <svetoslavganov@google.com> am 628264c4: am 4033c94b: Merge "Add way for the user to forget previously used printers." into klp-dev

* commit '628264c4f3828e0c4c997bb91f289a91d54c75c4':
Add way for the user to forget previously used printers.
3976afb5ac2036864f8d75c26e144c5761c6b20c 05-Nov-2013 Svetoslav <svetoslavganov@google.com> am c445b3f2: Merge "Add missing null pointer check in PrintSpoolerService." into klp-dev

* commit 'c445b3f2cba67b7dbb8f926ef5e80ec14fb2f8d4':
Add missing null pointer check in PrintSpoolerService.
628264c4f3828e0c4c997bb91f289a91d54c75c4 05-Nov-2013 Svetoslav <svetoslavganov@google.com> am 4033c94b: Merge "Add way for the user to forget previously used printers." into klp-dev

* commit '4033c94bb7566a652442ae1fa164d1efa7562761':
Add way for the user to forget previously used printers.
c445b3f2cba67b7dbb8f926ef5e80ec14fb2f8d4 05-Nov-2013 Svetoslav <svetoslavganov@google.com> Merge "Add missing null pointer check in PrintSpoolerService." into klp-dev
75d28505c8f73a977cc7ae0cc08a60120f7c92b2 05-Nov-2013 Svetoslav <svetoslavganov@google.com> Add missing null pointer check in PrintSpoolerService.

bug:11474389

Change-Id: I80ea01ba04ab71a212c1f78af62b377110ed072a
rc/com/android/printspooler/PrintSpoolerService.java
1c664b6defd20ab4a83c4a83d01b9ed8603f7c2c 04-Nov-2013 Svetoslav <svetoslavganov@google.com> Add way for the user to forget previously used printers.

We keep track of historical printers but some of them may disappear
forever, say the user changes his printer. In such a case the print
system has no idea that the previous printer will never appear so
this change allows the user to remove historical printers.

In the all printers list the user can now long press on a printer
and if the printer is available he can select it from the context
menu. If the printer was used before regardless if it is active the
user may choose to forget it.

bug:11282742

Change-Id: Idc2dda70920ad045149eea1bcfc75ad1992827e9
es/values/strings.xml
rc/com/android/printspooler/FusedPrintersProvider.java
rc/com/android/printspooler/PrintJobConfigActivity.java
rc/com/android/printspooler/SelectPrinterFragment.java
e63f9ded6b201484c768f63a8081527ecf455d28 01-Nov-2013 Baligh Uddin <baligh@google.com> Merge "Import translations. DO NOT MERGE"
2bc2574e60b5050107c28e4bc4f1fd505467c9d6 01-Nov-2013 Baligh Uddin <baligh@google.com> Merge "Import translations. DO NOT MERGE" into klp-dev
7b4bb2f75e7a87ba394a67a5e4b78330932f8b24 31-Oct-2013 Svetoslav <svetoslavganov@google.com> am 4379bd75: am eccfe65f: am 6ce161d1: Merge "Cancel current work in PrintDocumentAdatper if printing is cancelled." into klp-dev

* commit '4379bd751877056ffa236d0eb8a6cf59b8732d2c':
Cancel current work in PrintDocumentAdatper if printing is cancelled.
4379bd751877056ffa236d0eb8a6cf59b8732d2c 31-Oct-2013 Svetoslav <svetoslavganov@google.com> am eccfe65f: am 6ce161d1: Merge "Cancel current work in PrintDocumentAdatper if printing is cancelled." into klp-dev

* commit 'eccfe65f9daf459342ebc658b8a40584dfcea016':
Cancel current work in PrintDocumentAdatper if printing is cancelled.
eccfe65f9daf459342ebc658b8a40584dfcea016 31-Oct-2013 Svetoslav <svetoslavganov@google.com> am 6ce161d1: Merge "Cancel current work in PrintDocumentAdatper if printing is cancelled." into klp-dev

* commit '6ce161d1762a1c74b1ed6931c1d54f1f553267b0':
Cancel current work in PrintDocumentAdatper if printing is cancelled.
d270cb9264f762257d1aadbeba9c4b38866e171c 31-Oct-2013 Svetoslav <svetoslavganov@google.com> Cancel current work in PrintDocumentAdatper if printing is cancelled.

Layout and write may take some time during which the user can
cancel printing. Currently we wait for the last operation,
being write or layout, to complete before closing the print
dialog. Now in such a scenario we request a cancellation of
the ongoing operation.

bug:11329523

Change-Id: Ia9d747163cc73509369a86c8b5afc83b7ee54859
rc/com/android/printspooler/PrintJobConfigActivity.java
rc/com/android/printspooler/RemotePrintDocumentAdapter.java
407fd711d3fb5e11d89915eebb77d3d7e61ab5ae 30-Oct-2013 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: I1a818740cb5af5e65e17c7d3716b59b261e560b1
Auto-generated-cl: translation import
es/values-af/strings.xml
es/values-am/strings.xml
es/values-ar/strings.xml
es/values-bg/strings.xml
es/values-ca/strings.xml
es/values-cs/strings.xml
es/values-da/strings.xml
es/values-de/strings.xml
es/values-el/strings.xml
es/values-en-rGB/strings.xml
es/values-en-rIN/strings.xml
es/values-es-rUS/strings.xml
es/values-es/strings.xml
es/values-et-rEE/strings.xml
es/values-fa/strings.xml
es/values-fi/strings.xml
es/values-fr-rCA/strings.xml
es/values-fr/strings.xml
es/values-hi/strings.xml
es/values-hr/strings.xml
es/values-hu/strings.xml
es/values-hy-rAM/strings.xml
es/values-in/strings.xml
es/values-it/strings.xml
es/values-iw/strings.xml
es/values-ja/strings.xml
es/values-ka-rGE/strings.xml
es/values-km-rKH/strings.xml
es/values-ko/strings.xml
es/values-lo-rLA/strings.xml
es/values-lt/strings.xml
es/values-lv/strings.xml
es/values-mn-rMN/strings.xml
es/values-ms-rMY/strings.xml
es/values-nb/strings.xml
es/values-nl/strings.xml
es/values-pl/strings.xml
es/values-pt-rPT/strings.xml
es/values-pt/strings.xml
es/values-ro/strings.xml
es/values-ru/strings.xml
es/values-sk/strings.xml
es/values-sl/strings.xml
es/values-sr/strings.xml
es/values-sv/strings.xml
es/values-sw/strings.xml
es/values-th/strings.xml
es/values-tl/strings.xml
es/values-tr/strings.xml
es/values-uk/strings.xml
es/values-vi/strings.xml
es/values-zh-rCN/strings.xml
es/values-zh-rHK/strings.xml
es/values-zh-rTW/strings.xml
es/values-zu/strings.xml
f1228e355025404bd968b0d9852b2da2d19ed4bc 30-Oct-2013 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: I6275ae5da91b961e11974efd80e6b4947bd44972
Auto-generated-cl: translation import
es/values-af/strings.xml
es/values-am/strings.xml
es/values-ar/strings.xml
es/values-bg/strings.xml
es/values-ca/strings.xml
es/values-cs/strings.xml
es/values-da/strings.xml
es/values-de/strings.xml
es/values-el/strings.xml
es/values-en-rGB/strings.xml
es/values-en-rIN/strings.xml
es/values-es-rUS/strings.xml
es/values-es/strings.xml
es/values-et-rEE/strings.xml
es/values-fa/strings.xml
es/values-fi/strings.xml
es/values-fr-rCA/strings.xml
es/values-fr/strings.xml
es/values-hi/strings.xml
es/values-hr/strings.xml
es/values-hu/strings.xml
es/values-hy-rAM/strings.xml
es/values-in/strings.xml
es/values-it/strings.xml
es/values-iw/strings.xml
es/values-ja/strings.xml
es/values-ka-rGE/strings.xml
es/values-km-rKH/strings.xml
es/values-ko/strings.xml
es/values-lo-rLA/strings.xml
es/values-lt/strings.xml
es/values-lv/strings.xml
es/values-mn-rMN/strings.xml
es/values-ms-rMY/strings.xml
es/values-nb/strings.xml
es/values-nl/strings.xml
es/values-pl/strings.xml
es/values-pt-rPT/strings.xml
es/values-pt/strings.xml
es/values-ro/strings.xml
es/values-ru/strings.xml
es/values-sk/strings.xml
es/values-sl/strings.xml
es/values-sr/strings.xml
es/values-sv/strings.xml
es/values-sw/strings.xml
es/values-th/strings.xml
es/values-tl/strings.xml
es/values-tr/strings.xml
es/values-uk/strings.xml
es/values-vi/strings.xml
es/values-zh-rCN/strings.xml
es/values-zh-rHK/strings.xml
es/values-zh-rTW/strings.xml
es/values-zu/strings.xml
cdc2280a6e1837d3813cb5eab9a11c4f4efe8dc9 28-Oct-2013 Svetoslav <svetoslavganov@google.com> am 0298ebb2: am 60fb1e28: am 714ba345: Merge "Complete implementation of the advanced print options." into klp-dev

* commit '0298ebb2db5b7c24d68fd3817b11e2f887471d0c':
Complete implementation of the advanced print options.
0298ebb2db5b7c24d68fd3817b11e2f887471d0c 28-Oct-2013 Svetoslav <svetoslavganov@google.com> am 60fb1e28: am 714ba345: Merge "Complete implementation of the advanced print options." into klp-dev

* commit '60fb1e28375b9c0dc7505214f3ab33bdd38f7aa8':
Complete implementation of the advanced print options.
60fb1e28375b9c0dc7505214f3ab33bdd38f7aa8 28-Oct-2013 Svetoslav <svetoslavganov@google.com> am 714ba345: Merge "Complete implementation of the advanced print options." into klp-dev

* commit '714ba34556572d36b1f9f8d9b860c4da24da6361':
Complete implementation of the advanced print options.
b4fda134761c9521a7e127db3806a07a18763b77 26-Oct-2013 Svetoslav <svetoslavganov@google.com> Complete implementation of the advanced print options.

1. Implemented the advanced printer options integration. Now a print service
may declare an advanced print options activity which may be launched by
the user if the current printer supports advanced print options. These options
are visible only to the print service that added them and it is the only party
that will interpret the options.

2. Fixed a couple of bugs in the saved print jobs parsing. One was that if there
are more than one page range, a half of the print job properties was not
properly parsed. The other was that the media size constructor was using
incorrect argument order, thus creating a media size with wring width.

3. Fixed and edge case where old print jobs and their docs can get stuck in
the spooler. If the app did not write the requested pages we were not showing
an error message, rather just finish the activity without canceling the print
job and this print job is stuck in the spooler. Now we show an error message
and the user may retry, cancel. If the user cancels the print job is also
cancelled, thus no leftover in the spooler.

4. Fixed the background color of the print dialog to meet UX spec.

bug:11241800

Change-Id: I352440bc86aec824a805883fc9579d96a06d11e6
es/layout/print_job_config_activity_container.xml
es/layout/print_job_config_activity_content_editing.xml
es/layout/print_job_config_activity_content_error.xml
es/layout/print_job_config_activity_content_generating.xml
es/values/colors.xml
es/values/strings.xml
rc/com/android/printspooler/PrintJobConfigActivity.java
rc/com/android/printspooler/PrintSpoolerService.java
9f598351ca16f939cacf72b53d0461cc66dc7e3d 25-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> am 01b1e661: am 1aae2c47: am 2a40da55: Merge "Update the documentaton of the android.print package." into klp-dev

* commit '01b1e66135f3e727be47300510443d149d8679cd':
Update the documentaton of the android.print package.
01b1e66135f3e727be47300510443d149d8679cd 25-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> am 1aae2c47: am 2a40da55: Merge "Update the documentaton of the android.print package." into klp-dev

* commit '1aae2c477772378b447da35717882c76aa39fb67':
Update the documentaton of the android.print package.
1aae2c477772378b447da35717882c76aa39fb67 25-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> am 2a40da55: Merge "Update the documentaton of the android.print package." into klp-dev

* commit '2a40da558b267b91ed0b0c9090656bdc02db2833':
Update the documentaton of the android.print package.
2a40da558b267b91ed0b0c9090656bdc02db2833 25-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> Merge "Update the documentaton of the android.print package." into klp-dev
4d4c66dd38e940082e385b49a33f4022ab04c738 25-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> Update the documentaton of the android.print package.

bug:10551786
bug:10551697
bug:10705082
bug:10741641
bug:11318976
bug:10550979
bug:10551761

Change-Id: I46ceb66a69b6d32d6b417356178f67f2e25e891a
rc/com/android/printspooler/PrintJobConfigActivity.java
383813e33f173384d9a7ed4a0a7cfbdbf0daf0c7 21-Oct-2013 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: I5fb89f28b23b715dc5de02a0c507cb5eba9ff7f5
Auto-generated-cl: translation import
es/values-af/strings.xml
es/values-lv/strings.xml
es/values-zh-rHK/strings.xml
d33e5f4d9931651842e278b7cab161cc10ffa7ec 21-Oct-2013 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: I1609ae278c6e7fe7af1d440df91940e0a0b07e45
Auto-generated-cl: translation import
es/values-af/strings.xml
es/values-lv/strings.xml
es/values-zh-rHK/strings.xml
e9ffeac1389dd9c99fff120475127af8a065c1a8 19-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> am 8a51e2f4: am a53e1f81: am 23757527: Merge "Hide the print dialog if the printing activity is destroyed." into klp-dev

* commit '8a51e2f48cb24113e8463eb251a097080eb46a7f':
Hide the print dialog if the printing activity is destroyed.
8a51e2f48cb24113e8463eb251a097080eb46a7f 19-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> am a53e1f81: am 23757527: Merge "Hide the print dialog if the printing activity is destroyed." into klp-dev

* commit 'a53e1f81380c018705dc56ee82ec2db155f23489':
Hide the print dialog if the printing activity is destroyed.
a53e1f81380c018705dc56ee82ec2db155f23489 19-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> am 23757527: Merge "Hide the print dialog if the printing activity is destroyed." into klp-dev

* commit '237575278de8cae5d20ee333fcb2ccceee257d67':
Hide the print dialog if the printing activity is destroyed.
237575278de8cae5d20ee333fcb2ccceee257d67 19-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> Merge "Hide the print dialog if the printing activity is destroyed." into klp-dev
d431ffbe3013de7038b4714d6fdd4d681d2f1786 18-Oct-2013 Svetoslav <svetoslavganov@google.com> am 1fb5ea38: am 0acad1de: am 30d9161b: Merge "Printer list items have wrong width." into klp-dev

* commit '1fb5ea38533b0a163194441f4f28cd64a5835446':
Printer list items have wrong width.
1fb5ea38533b0a163194441f4f28cd64a5835446 18-Oct-2013 Svetoslav <svetoslavganov@google.com> am 0acad1de: am 30d9161b: Merge "Printer list items have wrong width." into klp-dev

* commit '0acad1de81799f765863118092caef0b6d306df5':
Printer list items have wrong width.
0acad1de81799f765863118092caef0b6d306df5 18-Oct-2013 Svetoslav <svetoslavganov@google.com> am 30d9161b: Merge "Printer list items have wrong width." into klp-dev

* commit '30d9161b8e84652d9ac504b70adacaf729fdb58b':
Printer list items have wrong width.
30d9161b8e84652d9ac504b70adacaf729fdb58b 18-Oct-2013 Svetoslav <svetoslavganov@google.com> Merge "Printer list items have wrong width." into klp-dev
858a1850e2e1c4516129d27ecdf54aaeade606ca 18-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> Hide the print dialog if the printing activity is destroyed.

1. For an app to print it creates a PrintDocumentAdapter implementation
which is passed to the print dialog activity. If the activity that
created the adapter is destroyed then the adapter, which may rely on
the activity state, may be in an invalid state. For example, an app
creates an adapter and calls print resuting in the app activity and
the print dialog activity being stacked. Now the user rotates the
device which triggers the recreating of the activity stack (assume the
app does not handle rotation). The recreated print dialog activity
receives the intent that originally created it with containing the
adapter that was constructed in the context of the old, now destroyed,
app activity instance.

To handle this we are limiting an app to be able to print only from
and activity and when this activity is destroyed we mark the adapter
as invalid which will result in hiding the print dialog activity. Note
that if the app process is killed we already handle this in the print
dialog activiy by registering a death recipient on the adapter binder.

2. In the PrintManager.PrintDocumentAdapterDelegate some of the state is
accessed only on the main thread and some from miltiple threads. The
code was trying to avoid locking for state that is not accessed by
multiple threads but this is error prone and the benefit does not
justify the complexity and added fragility. Now grabbing a lock all
the time.

3. The PrintJobConfigActivity waits for it to bind to the print spooler
service before instantiating its print controller and editor. However,
these can be accessed by invoking some of the activity cycle callbacks.
This change is adding null checks for the case where the activity
callbacks are called before the binding to the spooler is completed.

bug:11242661

Change-Id: Id906b3170e4f0a0553772dfa62686f06fdca0eaf
rc/com/android/printspooler/PrintJobConfigActivity.java
da5132c2b069f84481fa1d4a5a3b39ea9ed06fe2 17-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> am 6f570bd8: am a225bbdd: am 54e55759: Merge "All printers list has incorrect padding and item height." into klp-dev

* commit '6f570bd8c08df3eac750b7b0d7dae470bb23673d':
All printers list has incorrect padding and item height.
6f570bd8c08df3eac750b7b0d7dae470bb23673d 17-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> am a225bbdd: am 54e55759: Merge "All printers list has incorrect padding and item height." into klp-dev

* commit 'a225bbddeccff76b92f18e620df0a8b773d4befd':
All printers list has incorrect padding and item height.
a225bbddeccff76b92f18e620df0a8b773d4befd 17-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> am 54e55759: Merge "All printers list has incorrect padding and item height." into klp-dev

* commit '54e5575924d3abba8129268d2d0553efc9a841eb':
All printers list has incorrect padding and item height.
ed513d7e4a624a9f82e15923a7052d4c18a020a7 17-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> All printers list has incorrect padding and item height.

1. We were using the layout for the printer drop down from the
print dialog as the list item in the all printers activity.
This layout was not high enough. Now we have a separate
layout for the drop down and for the list. Note that they
are almost identical but this is better that writing java
code to lookup the height from the theme and change it
programatically since the java code is almost half the size
of the layout and leads to spreading the logic in both the
layout file and the java code.

2. The padding of the printers list was not correct. Now it
mimics the bahavior in settings where we change the padding
based on orientation.

bug:11261157

Change-Id: I8507c4ee86e9196fe1777cf9577f1886ccfbb1ad
es/layout/printer_list_item.xml
es/layout/select_printer_fragment.xml
es/values-land/constants.xml
es/values/constants.xml
rc/com/android/printspooler/SelectPrinterFragment.java
b196106a43355ec56bc2354cae1d1bbf21ab9b4b 17-Oct-2013 Svetoslav <svetoslavganov@google.com> Printer list items have wrong width.

1. There was leftover code in the printers adapter that was
hard coding the item width with no reason to do so.

2. Changed the icon view visibility to invisible to allow
the text of all list items including save to PDF and all
printers to be left aligned.

bug:11225340

Change-Id: I5b51d0d30577699f5cd73c7c58521358653d135b
es/layout/printer_dropdown_item.xml
rc/com/android/printspooler/PrintJobConfigActivity.java
19d0448512fe1ea60a23ba24c8a3d4cecbe1b048 16-Oct-2013 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: I60e1dfdf59f5790fb58d59946d25b2e14cd252bb
Auto-generated-cl: translation import
es/values-af/strings.xml
es/values-ca/strings.xml
es/values-es-rUS/strings.xml
es/values-es/strings.xml
es/values-fr-rCA/strings.xml
es/values-fr/strings.xml
es/values-in/strings.xml
es/values-lv/strings.xml
es/values-mn-rMN/strings.xml
es/values-ms-rMY/strings.xml
es/values-pt-rPT/strings.xml
es/values-ro/strings.xml
es/values-ru/strings.xml
es/values-sk/strings.xml
es/values-sr/strings.xml
es/values-sw/strings.xml
es/values-tr/strings.xml
es/values-zh-rCN/strings.xml
d232a6f988770d0e55f41b0f3e68b4bce65e761a 16-Oct-2013 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: I45af8da3d23c08e5f32133336e1805149dbdba64
Auto-generated-cl: translation import
es/values-af/strings.xml
es/values-ca/strings.xml
es/values-es-rUS/strings.xml
es/values-es/strings.xml
es/values-fr-rCA/strings.xml
es/values-fr/strings.xml
es/values-in/strings.xml
es/values-lv/strings.xml
es/values-mn-rMN/strings.xml
es/values-ms-rMY/strings.xml
es/values-pt-rPT/strings.xml
es/values-ro/strings.xml
es/values-ru/strings.xml
es/values-sk/strings.xml
es/values-sr/strings.xml
es/values-sw/strings.xml
es/values-tr/strings.xml
es/values-zh-rCN/strings.xml
ffe8b79f36d7ae997bb75751f2d8b1920eb2cd97 16-Oct-2013 Baligh Uddin <baligh@google.com> am e1b6b6c5: Bring deleted files from the dead. These files were dropped by the translation pipelines because they do not contain any translated elements, but in reality they are needed.

* commit 'e1b6b6c5816b321864b6a5d72a46860fda8fa7cd':
Bring deleted files from the dead. These files were dropped by the translation pipelines because they do not contain any translated elements, but in reality they are needed.
e1b6b6c5816b321864b6a5d72a46860fda8fa7cd 16-Oct-2013 Baligh Uddin <baligh@google.com> Bring deleted files from the dead.
These files were dropped by the translation
pipelines because they do not contain any
translated elements, but in reality they
are needed.

Bug: 11226380
es/values-be/arrays.xml
es/values-es-rUS/arrays.xml
es/values-ja/arrays.xml
es/values-zh-rCN/arrays.xml
0ec8b5282e8c47bbc2b2dcae626f2f5f5bda07c3 15-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> am 5a736fcd: Merge "Adding a missing resource file." into klp-dev

* commit '5a736fcd203f67c1d4d072fc4e96bb123d083800':
Adding a missing resource file.
5a736fcd203f67c1d4d072fc4e96bb123d083800 15-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> Merge "Adding a missing resource file." into klp-dev
809ddcf1c9e2d8f66d058d7dacb0a731a52fae6c 15-Oct-2013 Svetoslav <svetoslavganov@google.com> am a3378956: am 2c163ee4: am 1e639d2d: Merge "Update the message for unavailable printers." into klp-dev

* commit 'a337895682d86e9d71b04562a8b6e0dae889c8ac':
Update the message for unavailable printers.
b3918ae4184bb8ed953cf26da056210bf0d35e0d 15-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> am 2f807975: am f62e2629: am fe3b58fb: Merge "Update the print spooler action bar icon." into klp-dev

* commit '2f8079753d40e7ee3f3af0d709c83c1e42480349':
Update the print spooler action bar icon.
a8068cb02d3c51e06e87ef97d670ace3d0f4afaf 15-Oct-2013 Svetoslav <svetoslavganov@google.com> am 9773b379: am 79662942: am c89e5a6a: Merge "Layout may be called with invalid print attributes." into klp-dev

* commit '9773b379fecb7671bc02c1096ee23875d727f827':
Layout may be called with invalid print attributes.
2d996fb687fe05604f6e7114d73d3e8cbbce75ea 15-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> Adding a missing resource file.

This is a resource file cotaining the media sizes for the Catalan
locale. Without it the print spooler crashes all the time for that
locale since it cannot construct the PDF printer correctly.

bug:11226380

Change-Id: I7fa9c9bf4ed073e5f4ddf0d0fe9de4998e3467d4
es/values-ca/arrays.xml
a337895682d86e9d71b04562a8b6e0dae889c8ac 15-Oct-2013 Svetoslav <svetoslavganov@google.com> am 2c163ee4: am 1e639d2d: Merge "Update the message for unavailable printers." into klp-dev

* commit '2c163ee4eb1e1ec835bba1c906e4ba1f86983c46':
Update the message for unavailable printers.
2f8079753d40e7ee3f3af0d709c83c1e42480349 15-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> am f62e2629: am fe3b58fb: Merge "Update the print spooler action bar icon." into klp-dev

* commit 'f62e262932daaea8b5eda3893a56e2fdbb17ea0a':
Update the print spooler action bar icon.
9773b379fecb7671bc02c1096ee23875d727f827 15-Oct-2013 Svetoslav <svetoslavganov@google.com> am 79662942: am c89e5a6a: Merge "Layout may be called with invalid print attributes." into klp-dev

* commit '796629422f3023c1cc3c8d970f5b66c1b34599d2':
Layout may be called with invalid print attributes.
2c163ee4eb1e1ec835bba1c906e4ba1f86983c46 15-Oct-2013 Svetoslav <svetoslavganov@google.com> am 1e639d2d: Merge "Update the message for unavailable printers." into klp-dev

* commit '1e639d2d77dc225a6d5f191ce97561f1b987e402':
Update the message for unavailable printers.
2fa010cf5bf76af826776ada8a35cf8fe2945b64 15-Oct-2013 Svetoslav <svetoslavganov@google.com> Update the message for unavailable printers.

If a printer disappears or we do not get its capabilities, we
show the user a message that the printer is unavailable. This
message was appended after the printer name but they tend to
be very long and the user does not see that the printer is not
available due to ellipsis. Now we append the message after the
subtitle which tends to be much shorter.

bug:10983508

Change-Id: Ib3f7ad3bd82ff6decd49dc45461fb5131338e8c2
rc/com/android/printspooler/PrintJobConfigActivity.java
f62e262932daaea8b5eda3893a56e2fdbb17ea0a 15-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> am fe3b58fb: Merge "Update the print spooler action bar icon." into klp-dev

* commit 'fe3b58fbed7a02d3e9f559ed2f814b42934dc784':
Update the print spooler action bar icon.
796629422f3023c1cc3c8d970f5b66c1b34599d2 15-Oct-2013 Svetoslav <svetoslavganov@google.com> am c89e5a6a: Merge "Layout may be called with invalid print attributes." into klp-dev

* commit 'c89e5a6af1514320f90329dadebdfa26a3ae93d2':
Layout may be called with invalid print attributes.
2f0ec7af06e206b1747b93efbd65d88189fc2df1 14-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> Update the print spooler action bar icon.

1. Updated the print spooler icon shown in the action bar
when searching for printers in the all printers activity.

2. If the current printer's capabilities are not immediately
available the page count label in the dialog contained the
argument placeholders.

bug:10983508

Change-Id: Id4f78d6cc31647f043f8e3044ab54f30584d1ebe
es/drawable-hdpi/ic_menu_print.png
es/drawable-mdpi/ic_menu_print.png
es/drawable-xhdpi/ic_menu_print.png
es/layout/print_job_config_activity_content_editing.xml
rc/com/android/printspooler/SelectPrinterFragment.java
9d843e09caa8c32a3fec22bb66cba8e6d4dfa5b1 14-Oct-2013 Svetoslav <svetoslavganov@google.com> Layout may be called with invalid print attributes.

If a print service reports a printer with no capabilities and then
removes and adds the same printer again with no capabilities we can
call layout with invalid attributes. While the print service should
not do that we must not crash. The reason is that the print dialog
code was lacking a check whether something changed before handling
the change of the current printer. This resulted in calling layout
even though we still do not have the printer capabilities resulting
in passing bogus print attributes to the app.

bug:11216402

Change-Id: Icb9161930a70a7f9ead589a0ab0b4eb35091666f
rc/com/android/printspooler/PrintJobConfigActivity.java
906f33022aacab699c3628d7935e38adefbc76e6 14-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> am b7180852: am f5adedba: am 188d0953: Merge "The print dialog in bad state after pressing back from prnt to PDF." into klp-dev

* commit 'b71808524c6def5a903e15ad5d6a62c024a32569':
The print dialog in bad state after pressing back from prnt to PDF.
64e4896dbb38a2b57a95dd5536a41105b579ed97 14-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> am b6fd5789: am 64655e81: am 65d7b8d0: Merge "The list of active print jobs in print service retunring wrong result." into klp-dev

* commit 'b6fd5789ee73ae8abeaa69818d74d9461bd38165':
The list of active print jobs in print service retunring wrong result.
09854a9b3eb75ebe60ff6bbebda2ba11ed06f9aa 14-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> am c7db2855: am 64ee79dd: am 3cccec4c: Merge "The callbacks for tracking a printer called more than once without printer change." into klp-dev

* commit 'c7db28558d737d2d06fc2f0545f19350dc603666':
The callbacks for tracking a printer called more than once without printer change.
e50c500924e7114ef2f27cceb30bd1f6c10f2a7f 14-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> am ff98feec: am 79ddf835: am bececbfa: Merge "Printed document size not persisted." into klp-dev

* commit 'ff98feec6f37485b7f5e025d221fe5c9ae147b03':
Printed document size not persisted.
132a9e2a6e24823ec83ac1d153b2a56a07735ac9 14-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> am 603ece2e: am bfc8edcf: am 63ce2019: Merge "Fail only scheduled print jobs, i.e. handed to a service, if the service is disabled." into klp-dev

* commit '603ece2e8e3f5a73007fd42d3be52123a351eef0':
Fail only scheduled print jobs, i.e. handed to a service, if the service is disabled.
58a22cdf2941741a76e82f9c62f71202a77e277c 14-Oct-2013 Svetoslav <svetoslavganov@google.com> am 455e95eb: am 1f5c1f3e: am 036f05b8: Merge "Putting the cursor at the end of the copies and range inputs." into klp-dev

* commit '455e95ebab93c1d5c692114186807a058b454d73':
Putting the cursor at the end of the copies and range inputs.
0983f49eff5f2c4771b83adefe96060396e4c771 14-Oct-2013 Svetoslav <svetoslavganov@google.com> am 00040103: am 8e80d1f9: am 33021d95: Merge "Adding timeout if the current printer or its capabilities disappear." into klp-dev

* commit '0004010369ef713ae9bdbdeb8e16bfbdcd835811':
Adding timeout if the current printer or its capabilities disappear.
7d8b77f036afc584c28e9f6ca42f15e4ac11a505 14-Oct-2013 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: Ib9ba58f8e1486581d71443234db99a12f925cf0a
Auto-generated-cl: translation import
es/values-af/strings.xml
es/values-am/strings.xml
es/values-ar/strings.xml
es/values-bg/strings.xml
es/values-ca/strings.xml
es/values-cs/strings.xml
es/values-da/strings.xml
es/values-de/strings.xml
es/values-el/strings.xml
es/values-en-rGB/strings.xml
es/values-en-rIN/strings.xml
es/values-es-rUS/strings.xml
es/values-es/strings.xml
es/values-et-rEE/strings.xml
es/values-fa/strings.xml
es/values-fi/strings.xml
es/values-fr-rCA/strings.xml
es/values-fr/strings.xml
es/values-hi/strings.xml
es/values-hr/strings.xml
es/values-hu/strings.xml
es/values-hy-rAM/strings.xml
es/values-in/strings.xml
es/values-it/strings.xml
es/values-iw/strings.xml
es/values-ja/strings.xml
es/values-ka-rGE/strings.xml
es/values-km-rKH/strings.xml
es/values-ko/strings.xml
es/values-lo-rLA/strings.xml
es/values-lt/strings.xml
es/values-lv/strings.xml
es/values-mn-rMN/strings.xml
es/values-ms-rMY/strings.xml
es/values-nb/strings.xml
es/values-nl/strings.xml
es/values-pl/strings.xml
es/values-pt-rPT/strings.xml
es/values-pt/strings.xml
es/values-ro/strings.xml
es/values-ru/strings.xml
es/values-sk/strings.xml
es/values-sl/strings.xml
es/values-sr/strings.xml
es/values-sv/strings.xml
es/values-sw/strings.xml
es/values-th/strings.xml
es/values-tl/strings.xml
es/values-tr/strings.xml
es/values-uk/strings.xml
es/values-vi/strings.xml
es/values-zh-rCN/strings.xml
es/values-zh-rHK/strings.xml
es/values-zh-rTW/strings.xml
es/values-zu/strings.xml
d898bb00034397d78b239f78537fb238df360c8e 14-Oct-2013 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: Ic05225f9a7ed59b8534c5637187ced07b660252a
Auto-generated-cl: translation import
es/values-af/strings.xml
es/values-am/strings.xml
es/values-ar/strings.xml
es/values-bg/strings.xml
es/values-ca/strings.xml
es/values-cs/strings.xml
es/values-da/strings.xml
es/values-de/strings.xml
es/values-el/strings.xml
es/values-en-rGB/strings.xml
es/values-en-rIN/strings.xml
es/values-es-rUS/strings.xml
es/values-es/strings.xml
es/values-et-rEE/strings.xml
es/values-fa/strings.xml
es/values-fi/strings.xml
es/values-fr-rCA/strings.xml
es/values-fr/strings.xml
es/values-hi/strings.xml
es/values-hr/strings.xml
es/values-hu/strings.xml
es/values-hy-rAM/strings.xml
es/values-in/strings.xml
es/values-it/strings.xml
es/values-iw/strings.xml
es/values-ja/strings.xml
es/values-ka-rGE/strings.xml
es/values-km-rKH/strings.xml
es/values-ko/strings.xml
es/values-lo-rLA/strings.xml
es/values-lt/strings.xml
es/values-lv/strings.xml
es/values-mn-rMN/strings.xml
es/values-ms-rMY/strings.xml
es/values-nb/strings.xml
es/values-nl/strings.xml
es/values-pl/strings.xml
es/values-pt-rPT/strings.xml
es/values-pt/strings.xml
es/values-ro/strings.xml
es/values-ru/strings.xml
es/values-sk/strings.xml
es/values-sl/strings.xml
es/values-sr/strings.xml
es/values-sv/strings.xml
es/values-sw/strings.xml
es/values-th/strings.xml
es/values-tl/strings.xml
es/values-tr/strings.xml
es/values-uk/strings.xml
es/values-vi/strings.xml
es/values-zh-rCN/strings.xml
es/values-zh-rHK/strings.xml
es/values-zh-rTW/strings.xml
es/values-zu/strings.xml
b71808524c6def5a903e15ad5d6a62c024a32569 13-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> am f5adedba: am 188d0953: Merge "The print dialog in bad state after pressing back from prnt to PDF." into klp-dev

* commit 'f5adedba578f0e776a1c21186dd5a2f9ed7214e2':
The print dialog in bad state after pressing back from prnt to PDF.
b6fd5789ee73ae8abeaa69818d74d9461bd38165 13-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> am 64655e81: am 65d7b8d0: Merge "The list of active print jobs in print service retunring wrong result." into klp-dev

* commit '64655e81640ad5623d6a1b03f04320c16be8b101':
The list of active print jobs in print service retunring wrong result.
c7db28558d737d2d06fc2f0545f19350dc603666 13-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> am 64ee79dd: am 3cccec4c: Merge "The callbacks for tracking a printer called more than once without printer change." into klp-dev

* commit '64ee79dd2d0b7a5bdff2590f252661d2fa5f76d7':
The callbacks for tracking a printer called more than once without printer change.
ff98feec6f37485b7f5e025d221fe5c9ae147b03 13-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> am 79ddf835: am bececbfa: Merge "Printed document size not persisted." into klp-dev

* commit '79ddf835227283979dc353e57711a9d6dff8edb0':
Printed document size not persisted.
603ece2e8e3f5a73007fd42d3be52123a351eef0 13-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> am bfc8edcf: am 63ce2019: Merge "Fail only scheduled print jobs, i.e. handed to a service, if the service is disabled." into klp-dev

* commit 'bfc8edcf55c4f65ec00ca5d921a3cae1b367b248':
Fail only scheduled print jobs, i.e. handed to a service, if the service is disabled.
7ff610ee029d990a6b9b6d8c90a79fe79fbd8368 13-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> The print dialog in bad state after pressing back from prnt to PDF.

When selecting print to PDF and then pressing back to return from the
storage UI activity, the print dialog was in a state where nothing
is selected.

bug:10983508

Change-Id: I9c14b5fa18e812104ade6a2eacd626b5f7387111
rc/com/android/printspooler/PrintJobConfigActivity.java
d91cb3ea61ea5096637c5d2b5e3e6147d0d2cce3 13-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> The list of active print jobs in print service retunring wrong result.

1. The getActivePrintJobs() method in print service is designed to return
the active print job i.e. ones scheduled to be processed by the print
service. Now the correct list is returned.

2. The listeners for observing the state of print jobs may be called even
after being unregistered. Ex: state change occurs and we schedule a
message on the app's main thread to make the notificaion. Now the app
unregisretes the callback and on the next loop the notification message
is handled.

bug:11200258

Change-Id: I4a497b5c9a7287a22023cafe41ce966d14300ca6
rc/com/android/printspooler/NotificationController.java
d3c197d97250af93041e6aa05ef0dfca323f1767 12-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> The callbacks for tracking a printer called more than once without printer change.

When the user selectes a printer in the UI we ask the print service to start tracking
the printer, i.e. to observe changes of the printer state and capabilities. The callback
for the initially selected printer is called twice which breaks the contract and also
may trigger potentially expensive operations on the print service side.

More precisely the printer does not change and we ask the service to start tracking,
stop tracking, and again start tracking.

bug:11199851

Change-Id: Ib761e6da03f670b3098c69b1c0927177a8e4ae6b
rc/com/android/printspooler/FusedPrintersProvider.java
7d7888d1c7daa78ee0ad24a24c8dd54b01749259 12-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> Printed document size not persisted.

We persist ongoing print jobs so they can be restarted if the device
dies. The data size of the printed document was not persisted to disc.

bug:11199352

Change-Id: I53ef1ee285aa4808917dd6a5c7335226aba1ef0a
rc/com/android/printspooler/PrintSpoolerService.java
9b6d3a153f44010a75907c6a9742c89a57d4e5ee 12-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> Fail only scheduled print jobs, i.e. handed to a service, if the service is disabled.

When a print service is disabled we assume all print jobs for it failed as we have
no way to know what happens to them. However we are also failing created print jobs,
i.e. ones not given to the service. Such jobs are in process of construction and
the print dialog is up. We should not fail such jobs as the dialog can still modify
their state and potentially select a print from a different service. Therefore, we
leave them alone and they will be failed if when constructed are passed to a
disabled/uninstalled service.

bug:11197432

Change-Id: Ie4fe54327e3e25776b1dd572be2dfafdd700c2e5
rc/com/android/printspooler/PrintSpoolerService.java
ea9aec27cc792027c94fe2d1d60586efb4f85d24 12-Oct-2013 Baligh Uddin <baligh@google.com> Merge "Import translations. DO NOT MERGE" into klp-dev
455e95ebab93c1d5c692114186807a058b454d73 12-Oct-2013 Svetoslav <svetoslavganov@google.com> am 1f5c1f3e: am 036f05b8: Merge "Putting the cursor at the end of the copies and range inputs." into klp-dev

* commit '1f5c1f3eee2df06ae42bc9e2bb9b5502316502cc':
Putting the cursor at the end of the copies and range inputs.
1f5c1f3eee2df06ae42bc9e2bb9b5502316502cc 12-Oct-2013 Svetoslav <svetoslavganov@google.com> am 036f05b8: Merge "Putting the cursor at the end of the copies and range inputs." into klp-dev

* commit '036f05b8b0dabc72e6ce68372516c3d98da137e4':
Putting the cursor at the end of the copies and range inputs.
89ed9fcf9b2fe061626c910701a35f1ea576a370 12-Oct-2013 Svetoslav <svetoslavganov@google.com> Putting the cursor at the end of the copies and range inputs.

bug:10983508

Change-Id: I767876fada2f28b00283ed9140fca1a40729f38f
rc/com/android/printspooler/PrintJobConfigActivity.java
b48966885e499a0f0c3793fe816cf27758462f95 12-Oct-2013 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: I11e36ca2c03ecbe1a6c99a8cc4f7e4afed3e5427
Auto-generated-cl: translation import
es/values-af/strings.xml
es/values-am/strings.xml
es/values-ar/strings.xml
es/values-bg/strings.xml
es/values-ca/arrays.xml
es/values-ca/strings.xml
es/values-cs/strings.xml
es/values-da/strings.xml
es/values-de/strings.xml
es/values-el/strings.xml
es/values-en-rGB/strings.xml
es/values-en-rIN/strings.xml
es/values-es-rUS/strings.xml
es/values-es/strings.xml
es/values-et-rEE/strings.xml
es/values-fa/strings.xml
es/values-fi/strings.xml
es/values-fr-rCA/strings.xml
es/values-fr/strings.xml
es/values-hi/strings.xml
es/values-hr/strings.xml
es/values-hu/strings.xml
es/values-hy-rAM/strings.xml
es/values-in/strings.xml
es/values-it/strings.xml
es/values-iw/strings.xml
es/values-ja/arrays.xml
es/values-ja/strings.xml
es/values-ka-rGE/strings.xml
es/values-km-rKH/strings.xml
es/values-ko/strings.xml
es/values-lo-rLA/strings.xml
es/values-lt/strings.xml
es/values-lv/strings.xml
es/values-mn-rMN/strings.xml
es/values-ms-rMY/strings.xml
es/values-nb/strings.xml
es/values-nl/strings.xml
es/values-pl/strings.xml
es/values-pt-rPT/strings.xml
es/values-pt/strings.xml
es/values-ro/strings.xml
es/values-ru/strings.xml
es/values-sk/strings.xml
es/values-sl/strings.xml
es/values-sr/strings.xml
es/values-sv/strings.xml
es/values-sw/strings.xml
es/values-th/strings.xml
es/values-tl/strings.xml
es/values-tr/strings.xml
es/values-uk/strings.xml
es/values-vi/strings.xml
es/values-zh-rCN/strings.xml
es/values-zh-rHK/strings.xml
es/values-zh-rTW/strings.xml
es/values-zu/strings.xml
3532cb4bba5940616ff524134cad49f0f4f0d81e 12-Oct-2013 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: I66efc38992968ef463f4d02f1af101053adfb41e
Auto-generated-cl: translation import
es/values-af/strings.xml
es/values-am/strings.xml
es/values-ar/strings.xml
es/values-be/arrays.xml
es/values-bg/strings.xml
es/values-ca/arrays.xml
es/values-ca/strings.xml
es/values-cs/strings.xml
es/values-da/strings.xml
es/values-de/strings.xml
es/values-el/strings.xml
es/values-en-rGB/strings.xml
es/values-en-rIN/strings.xml
es/values-es-rUS/arrays.xml
es/values-es-rUS/strings.xml
es/values-es/strings.xml
es/values-et-rEE/strings.xml
es/values-fa/strings.xml
es/values-fi/strings.xml
es/values-fr-rCA/strings.xml
es/values-fr/strings.xml
es/values-hi/strings.xml
es/values-hr/strings.xml
es/values-hu/strings.xml
es/values-hy-rAM/strings.xml
es/values-in/strings.xml
es/values-it/strings.xml
es/values-iw/strings.xml
es/values-ja/arrays.xml
es/values-ja/strings.xml
es/values-ka-rGE/strings.xml
es/values-km-rKH/strings.xml
es/values-ko/strings.xml
es/values-lo-rLA/strings.xml
es/values-lt/strings.xml
es/values-lv/strings.xml
es/values-mn-rMN/strings.xml
es/values-ms-rMY/strings.xml
es/values-nb/strings.xml
es/values-nl/strings.xml
es/values-pl/strings.xml
es/values-pt-rPT/strings.xml
es/values-pt/strings.xml
es/values-ro/strings.xml
es/values-ru/strings.xml
es/values-sk/strings.xml
es/values-sl/strings.xml
es/values-sr/strings.xml
es/values-sv/strings.xml
es/values-sw/strings.xml
es/values-th/strings.xml
es/values-tl/strings.xml
es/values-tr/strings.xml
es/values-uk/strings.xml
es/values-vi/strings.xml
es/values-zh-rCN/arrays.xml
es/values-zh-rCN/strings.xml
es/values-zh-rHK/strings.xml
es/values-zh-rTW/strings.xml
es/values-zu/strings.xml
0004010369ef713ae9bdbdeb8e16bfbdcd835811 11-Oct-2013 Svetoslav <svetoslavganov@google.com> am 8e80d1f9: am 33021d95: Merge "Adding timeout if the current printer or its capabilities disappear." into klp-dev

* commit '8e80d1f953932ad867ff4f0b23b466565f1b15f0':
Adding timeout if the current printer or its capabilities disappear.
8e80d1f953932ad867ff4f0b23b466565f1b15f0 11-Oct-2013 Svetoslav <svetoslavganov@google.com> am 33021d95: Merge "Adding timeout if the current printer or its capabilities disappear." into klp-dev

* commit '33021d95a8f3ca127c1df6aeb54c3a9219f46093':
Adding timeout if the current printer or its capabilities disappear.
02dded1a63bb5ae2968fb9df0c29bad115416a28 11-Oct-2013 Svetoslav <svetoslavganov@google.com> Adding timeout if the current printer or its capabilities disappear.

If the current printer becomes unavailable or its capabilities
go away we are scheduling a timeout to declare the printer as
unavailable.

bug:10983508

Change-Id: Iab85cfd35fc0cecc3dd4abac6232347f9da18fb0
rc/com/android/printspooler/PrintJobConfigActivity.java
1d4a8bf4c465902264fb493b347ddb1121576f4f 11-Oct-2013 Svetoslav <svetoslavganov@google.com> am 6346a928: am c8c943a9: am 3691dd06: Merge "Print spooler not starting." into klp-dev

* commit '6346a9285a3a1a45da4cfda26ea6ed454a87114f':
Print spooler not starting.
6346a9285a3a1a45da4cfda26ea6ed454a87114f 11-Oct-2013 Svetoslav <svetoslavganov@google.com> am c8c943a9: am 3691dd06: Merge "Print spooler not starting." into klp-dev

* commit 'c8c943a93044f63e27b725901568dc62a84606a8':
Print spooler not starting.
c8c943a93044f63e27b725901568dc62a84606a8 11-Oct-2013 Svetoslav <svetoslavganov@google.com> am 3691dd06: Merge "Print spooler not starting." into klp-dev

* commit '3691dd063f297162facebf723ac53831126395b5':
Print spooler not starting.
54adee86af495311fc9ef62d65e035605043413f 11-Oct-2013 Svetoslav <svetoslavganov@google.com> Print spooler not starting.

1. In my previous change I fixed a typo in the Java constant with
intent action to launch the print dialog but failed to updated
the print spooler manifest.

2. Removed dead code - the user id is no longer needed since the
spooler is an app that runs per user. Every user has its spooler.
This code was not referenced from anywhere.

3. Added a default icon to the print spooler.

4. Fixed a bug where if the print history is empty the UI goes
to the all pritners activity.

bug:11059554

Change-Id: If74c23b418a8c67620ba14435ee7f3b2c4527099
ndroidManifest.xml
rc/com/android/printspooler/PrintJobConfigActivity.java
rc/com/android/printspooler/PrintSpoolerService.java
ad9f1cce8c95c238cc673efd5deb3d8bcbec5b6f 11-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> am 0d24a810: am 9ce7ae3e: am f22a767e: Merge "Added UI for errors during layout and write." into klp-dev

* commit '0d24a810d2ab6b5f7092aff3d11442debd78396a':
Added UI for errors during layout and write.
a1f9936c6ba5ab6761e0bd9de894997ae6ba9ba6 11-Oct-2013 Svetoslav <svetoslavganov@google.com> am 5c880d0d: am 6f688e87: am 8f34715b: Merge "Refactor how the print dialog activity is started." into klp-dev

* commit '5c880d0d1551603dcc4366406ec9ee3b812a8fc4':
Refactor how the print dialog activity is started.
0d24a810d2ab6b5f7092aff3d11442debd78396a 11-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> am 9ce7ae3e: am f22a767e: Merge "Added UI for errors during layout and write." into klp-dev

* commit '9ce7ae3e2001f378199845d4c14b4304a60b3daf':
Added UI for errors during layout and write.
9ce7ae3e2001f378199845d4c14b4304a60b3daf 11-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> am f22a767e: Merge "Added UI for errors during layout and write." into klp-dev

* commit 'f22a767e872ec8f5c2531a88819e0f4574c78fe3':
Added UI for errors during layout and write.
f22a767e872ec8f5c2531a88819e0f4574c78fe3 11-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> Merge "Added UI for errors during layout and write." into klp-dev
5c880d0d1551603dcc4366406ec9ee3b812a8fc4 11-Oct-2013 Svetoslav <svetoslavganov@google.com> am 6f688e87: am 8f34715b: Merge "Refactor how the print dialog activity is started." into klp-dev

* commit '6f688e879a2523393e8e0da072e1f62cb456276f':
Refactor how the print dialog activity is started.
6f688e879a2523393e8e0da072e1f62cb456276f 11-Oct-2013 Svetoslav <svetoslavganov@google.com> am 8f34715b: Merge "Refactor how the print dialog activity is started." into klp-dev

* commit '8f34715b94a1733f4cc5f31426d5dafcd57052c7':
Refactor how the print dialog activity is started.
caff38821ad81389b5baf2053ba851c38272ec63 09-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> Added UI for errors during layout and write.

1. If an error happens during layout or write we show an error
message with the string provided by the application which
has an OK button to retry or tap outside to cancel.

2. Updated the targed and min SDK version for the PrintSpooler.

bug:11127269

Change-Id: I4301cf3716119b1e33b95347a8451fc1c128343b
ndroidManifest.xml
es/layout/print_job_config_activity_content_error.xml
es/values/strings.xml
rc/com/android/printspooler/PrintJobConfigActivity.java
8f34715b94a1733f4cc5f31426d5dafcd57052c7 11-Oct-2013 Svetoslav <svetoslavganov@google.com> Merge "Refactor how the print dialog activity is started." into klp-dev
7bfbbcb04bf4ba8f3069b2df136f708c9849bacf 10-Oct-2013 Svetoslav <svetoslavganov@google.com> Refactor how the print dialog activity is started.

1. Before the print job activity was started asyncronously with
respect to the print call on to the print manager. This was
creating a situation where the starting activity may finish
before the print dialog appears which may lead to an orphaned
print document adapter with no data to print (as the UI is
is gone), or strange behaviors where the print dialog starts
on as a separate task.

To address this the pending intent for starting the print
dialog is not started by the print spooler since we cannot
call into it synchronously as we have to start its process
and bind to the spooler service which leads to jankyness in
the client app. Now the pending intent is created by the
print manager service in the synchronous print call so
from an app's perspective calling print starts the activity.

The side effect of this design is that the print dialog
activity may start before the system is bound to the spooler
service. In such a case the print activity cannot start
poking the print spooler state as the system registers
callback to observe the spooler state. To address this
the print spooler activity disables the UI and also binds
to the spooler service which happenes immediately after it
is started. As soon as the print dialog binds to the
service it starts the UI.

2. Fixed an bug in the printer adapter of the print dialog that
was leading to a crash if the only item in the adater is the
all pritners option and it is selected.

3. Piping the package name that started the printing so we can
pass it to the storage UI as a hint to open the last location
the app used.

bug:11127269

Change-Id: Ia93820bdae0b0e7600a0930b1f10d9708bd86b68
ndroidManifest.xml
rc/com/android/printspooler/PrintJobConfigActivity.java
rc/com/android/printspooler/PrintSpoolerService.java
260c29d0f051c6c48434bad351574d66ceb5f0a9 11-Oct-2013 Baligh Uddin <baligh@google.com> Merge "Import translations. DO NOT MERGE"
576124688bc63db7371436905cf16cd248ce6b8a 11-Oct-2013 Baligh Uddin <baligh@google.com> Merge "Import translations. DO NOT MERGE" into klp-ub-dev
d32e9b7ffb9e7657c510f69cc2c770bd8986c95c 11-Oct-2013 Baligh Uddin <baligh@google.com> Merge "Import translations. DO NOT MERGE" into klp-dev
d1810e3931063e3b72a709cba696d41a62b0c7a6 11-Oct-2013 Svetoslav <svetoslavganov@google.com> am 9b74a780: am 5b8f01b6: am 466c046f: Merge "Fixing jank when transition from print dialog to generating one." into klp-dev

* commit '9b74a78063707c45ffd1a173de51e215fd7e53b4':
Fixing jank when transition from print dialog to generating one.
518fb915d236806be985504ac7e07c560962162a 11-Oct-2013 Svetoslav <svetoslavganov@google.com> resolved conflicts for merge of 93e12a7c to master

Change-Id: I94b488bdfce77c5f0708f5ccdced6800aa939785
9b74a78063707c45ffd1a173de51e215fd7e53b4 11-Oct-2013 Svetoslav <svetoslavganov@google.com> am 5b8f01b6: am 466c046f: Merge "Fixing jank when transition from print dialog to generating one." into klp-dev

* commit '5b8f01b62a09b001da4959d367fa99e46143791b':
Fixing jank when transition from print dialog to generating one.
93e12a7c25b778d16124df83de40b6b0a8129d07 11-Oct-2013 Svetoslav <svetoslavganov@google.com> resolved conflicts for merge of 92aa5f4e to klp-dev-plus-aosp

Change-Id: Ib2a3bd688256cb2e6bed13ebac01a31bd2601788
5b8f01b62a09b001da4959d367fa99e46143791b 11-Oct-2013 Svetoslav <svetoslavganov@google.com> am 466c046f: Merge "Fixing jank when transition from print dialog to generating one." into klp-dev

* commit '466c046f204e98b44506dfb1718f0b56094486f7':
Fixing jank when transition from print dialog to generating one.
466c046f204e98b44506dfb1718f0b56094486f7 11-Oct-2013 Svetoslav <svetoslavganov@google.com> Merge "Fixing jank when transition from print dialog to generating one." into klp-dev
5239b89ac6326333de94195673a92342b2dc9923 11-Oct-2013 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: I05a9b361d37d6ec99db7218cb091847ebfb3383b
Auto-generated-cl: translation import
es/values-af/strings.xml
es/values-am/strings.xml
es/values-ar/strings.xml
es/values-bg/strings.xml
es/values-ca/strings.xml
es/values-cs/strings.xml
es/values-da/strings.xml
es/values-de/strings.xml
es/values-el/strings.xml
es/values-en-rGB/strings.xml
es/values-en-rIN/strings.xml
es/values-es-rUS/strings.xml
es/values-es/strings.xml
es/values-et-rEE/strings.xml
es/values-fa/strings.xml
es/values-fi/strings.xml
es/values-fr-rCA/strings.xml
es/values-fr/strings.xml
es/values-hi/strings.xml
es/values-hr/strings.xml
es/values-hu/strings.xml
es/values-hy-rAM/strings.xml
es/values-in/strings.xml
es/values-it/strings.xml
es/values-iw/strings.xml
es/values-ja/strings.xml
es/values-ka-rGE/strings.xml
es/values-km-rKH/strings.xml
es/values-ko/strings.xml
es/values-lo-rLA/strings.xml
es/values-lt/strings.xml
es/values-lv/strings.xml
es/values-mn-rMN/strings.xml
es/values-ms-rMY/strings.xml
es/values-nb/strings.xml
es/values-nl/strings.xml
es/values-pl/strings.xml
es/values-pt-rPT/strings.xml
es/values-pt/strings.xml
es/values-ro/strings.xml
es/values-ru/strings.xml
es/values-sk/strings.xml
es/values-sl/strings.xml
es/values-sr/strings.xml
es/values-sv/strings.xml
es/values-sw/strings.xml
es/values-th/strings.xml
es/values-tl/strings.xml
es/values-tr/strings.xml
es/values-uk/strings.xml
es/values-vi/strings.xml
es/values-zh-rCN/strings.xml
es/values-zh-rHK/strings.xml
es/values-zh-rTW/strings.xml
es/values-zu/strings.xml
9a9eef2894727dcee4708264a1ea8c83a526c761 11-Oct-2013 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: I23fe12c08af8ee2eeaf1e6d92a1f8c2ccb69a74e
Auto-generated-cl: translation import
es/values-af/strings.xml
es/values-am/strings.xml
es/values-ar/strings.xml
es/values-bg/strings.xml
es/values-ca/strings.xml
es/values-cs/strings.xml
es/values-da/strings.xml
es/values-de/strings.xml
es/values-el/strings.xml
es/values-en-rGB/strings.xml
es/values-es-rUS/strings.xml
es/values-es/strings.xml
es/values-et-rEE/strings.xml
es/values-fa/strings.xml
es/values-fi/strings.xml
es/values-fr/strings.xml
es/values-hi/strings.xml
es/values-hr/strings.xml
es/values-hu/strings.xml
es/values-in/strings.xml
es/values-it/strings.xml
es/values-iw/strings.xml
es/values-ja/strings.xml
es/values-ko/strings.xml
es/values-lt/strings.xml
es/values-lv/strings.xml
es/values-ms-rMY/strings.xml
es/values-nb/strings.xml
es/values-nl/strings.xml
es/values-pl/strings.xml
es/values-pt-rPT/strings.xml
es/values-pt/strings.xml
es/values-ro/strings.xml
es/values-ru/strings.xml
es/values-sk/strings.xml
es/values-sl/strings.xml
es/values-sr/strings.xml
es/values-sv/strings.xml
es/values-sw/strings.xml
es/values-th/strings.xml
es/values-tl/strings.xml
es/values-tr/strings.xml
es/values-uk/strings.xml
es/values-vi/strings.xml
es/values-zh-rCN/strings.xml
es/values-zh-rTW/strings.xml
es/values-zu/strings.xml
454d33ad8997d0ec63761a1af9b0e16c3229fc8e 11-Oct-2013 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: I902ff15c7df70eef8986dc2dcfbac59551f085fa
Auto-generated-cl: translation import
es/values-af/strings.xml
es/values-am/strings.xml
es/values-ar/strings.xml
es/values-bg/strings.xml
es/values-ca/strings.xml
es/values-cs/strings.xml
es/values-da/strings.xml
es/values-de/strings.xml
es/values-el/strings.xml
es/values-en-rGB/strings.xml
es/values-en-rIN/strings.xml
es/values-es-rUS/strings.xml
es/values-es/strings.xml
es/values-et-rEE/strings.xml
es/values-fa/strings.xml
es/values-fi/strings.xml
es/values-fr-rCA/strings.xml
es/values-fr/strings.xml
es/values-hi/strings.xml
es/values-hr/strings.xml
es/values-hu/strings.xml
es/values-hy-rAM/strings.xml
es/values-in/strings.xml
es/values-it/strings.xml
es/values-iw/strings.xml
es/values-ja/strings.xml
es/values-ka-rGE/strings.xml
es/values-km-rKH/strings.xml
es/values-ko/strings.xml
es/values-lo-rLA/strings.xml
es/values-lt/strings.xml
es/values-lv/strings.xml
es/values-mn-rMN/strings.xml
es/values-ms-rMY/strings.xml
es/values-nb/strings.xml
es/values-nl/strings.xml
es/values-pl/strings.xml
es/values-pt-rPT/strings.xml
es/values-pt/strings.xml
es/values-ro/strings.xml
es/values-ru/strings.xml
es/values-sk/strings.xml
es/values-sl/strings.xml
es/values-sr/strings.xml
es/values-sv/strings.xml
es/values-sw/strings.xml
es/values-th/strings.xml
es/values-tl/strings.xml
es/values-tr/strings.xml
es/values-uk/strings.xml
es/values-vi/strings.xml
es/values-zh-rCN/strings.xml
es/values-zh-rHK/strings.xml
es/values-zh-rTW/strings.xml
es/values-zu/strings.xml
92aa5f4ed21f2baa2d48a3d8aa249d6e856d0777 11-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> am 896a9b17: Merge "Adding missing resourcs for the defaul PDF printer media sizes." into klp-dev

* commit '896a9b172627ec318f908e734941afb06cc68169':
Adding missing resourcs for the defaul PDF printer media sizes.
3aa2e2b3ab21fda7045fbe2bb142e7a6830340e5 11-Oct-2013 Svetoslav <svetoslavganov@google.com> Fixing jank when transition from print dialog to generating one.

Initially we show the print dialog and when the user presses print
we show a generating dialog with an indefinite spinner and a cancel
button. The transition between the two UIs which are really different
layouts show in the print activity is animated. In the middle of
the animation from print to generating UI there was a jump of the
content and an undesired window animation kicking in. This is a
side effect of changing the activity to floating so now changing the
container size was causing window resize and hence animation. Fun!

bug:10983508

Change-Id: I7d88e073c55863b945cdb50822401592f32d44c3
es/layout/print_job_config_activity_container.xml
rc/com/android/printspooler/PrintDialogFrame.java
rc/com/android/printspooler/PrintJobConfigActivity.java
896a9b172627ec318f908e734941afb06cc68169 11-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> Merge "Adding missing resourcs for the defaul PDF printer media sizes." into klp-dev
58724ac0f34e23bfe3bd07f1f20f398238566994 10-Oct-2013 Svetoslav <svetoslavganov@google.com> am 0c6b23ae: am 4208b408: am 6f71ed5b: Merge "Sometimes the print button not enabled and an accessibility fix." into klp-dev

* commit '0c6b23ae95bb9490df2995d3f4a29636eaa5cc7e':
Sometimes the print button not enabled and an accessibility fix.
4071e05b296475fcf700ae5dc91bbec9749c2e3a 10-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> am 0a41b054: am bf74156f: am 0ea16e9e: Merge "Coalescing multiple print job notifications." into klp-dev

* commit '0a41b0547b5851121fdc833e08dccf665112fc00':
Coalescing multiple print job notifications.
0c6b23ae95bb9490df2995d3f4a29636eaa5cc7e 10-Oct-2013 Svetoslav <svetoslavganov@google.com> am 4208b408: am 6f71ed5b: Merge "Sometimes the print button not enabled and an accessibility fix." into klp-dev

* commit '4208b4088b9a677f62c635f2661c246f626f7928':
Sometimes the print button not enabled and an accessibility fix.
0a41b0547b5851121fdc833e08dccf665112fc00 10-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> am bf74156f: am 0ea16e9e: Merge "Coalescing multiple print job notifications." into klp-dev

* commit 'bf74156f59013dc5c284c224f14a382f813e8825':
Coalescing multiple print job notifications.
4208b4088b9a677f62c635f2661c246f626f7928 10-Oct-2013 Svetoslav <svetoslavganov@google.com> am 6f71ed5b: Merge "Sometimes the print button not enabled and an accessibility fix." into klp-dev

* commit '6f71ed5b58a9bcf23fd252d13cc4206d38921960':
Sometimes the print button not enabled and an accessibility fix.
bf74156f59013dc5c284c224f14a382f813e8825 10-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> am 0ea16e9e: Merge "Coalescing multiple print job notifications." into klp-dev

* commit '0ea16e9e763b5815707971f503d5408dc1b66c10':
Coalescing multiple print job notifications.
4ba9254824a702c8ca31b54727c129eaf1bcf5db 10-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> Adding missing resourcs for the defaul PDF printer media sizes.

Some regions have different media size standards and the fake PDF
printer shows the media sizes for the current locale. Interestingly,
these files were skipped in my previous change while I remember
adding them - maybe did not upload the patch.

bug:11147920

Change-Id: I819ab08fbef08305be89e3acf297328b1a0ded11
es/values-be/arrays.xml
es/values-ca/arrays.xml
es/values-ca/donottranslate.xml
es/values-es-rUS/arrays.xml
es/values-ja/arrays.xml
es/values-zh-rCN/arrays.xml
ebec46847d4bbd72161fb32282ab7a68effa00a7 09-Oct-2013 Svetoslav <svetoslavganov@google.com> Sometimes the print button not enabled and an accessibility fix.

1. Sometimes the print button is not enabled after selecting a printer
from the all printers activity. This was happening after a printer
was selected, we had to do a layout due to changed print attributes
(because of the new printer's capabilities), and the content did not
change. In this case we did not call the updateUi function which
enables the print button after layout is completed.

2. The accessibility code in the all printers activity was not checking
whether accessibility is on and doing some unnecessary work - not sending
events though but still. Further, the delayed runnable that was
doing the accessibilty announcements was not removed when the activity
was paused.

bug:10983508

Change-Id: Ib263116a3e21e4c75a25aa051cecbd9194417319
rc/com/android/printspooler/PrintJobConfigActivity.java
rc/com/android/printspooler/SelectPrinterFragment.java
a18661d5922e5ae24ccce8e815aeba437a2fba82 10-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> Coalescing multiple print job notifications.

1. We used to show a single notificaiton for every print job but
this is against th UX guidelines. Since we have to lead by
example, this change adds coalescing of multiple notifications.

bug:11155212

2. Print job state callback in the PrintManager now correctly
invoked on the main thread.

bug:10983508

Change-Id: I906e9e62198fa37cb4d2f71fce07ed475d61e1bd
es/values/strings.xml
rc/com/android/printspooler/NotificationController.java
rc/com/android/printspooler/PrintSpoolerService.java
e039b0fe67bcd219e5c3abc792cfe6b80d8047d6 09-Oct-2013 Svetoslav <svetoslavganov@google.com> am e0ac69db: am ea7f975b: am dcd05b44: Merge "Fix a crash in the select printers activity." into klp-dev

* commit 'e0ac69db93991e80be866e54571cfe6c15d9dc4f':
Fix a crash in the select printers activity.
e0ac69db93991e80be866e54571cfe6c15d9dc4f 08-Oct-2013 Svetoslav <svetoslavganov@google.com> am ea7f975b: am dcd05b44: Merge "Fix a crash in the select printers activity." into klp-dev

* commit 'ea7f975b957e3361211e250abdc3e46d995001cf':
Fix a crash in the select printers activity.
ea7f975b957e3361211e250abdc3e46d995001cf 08-Oct-2013 Svetoslav <svetoslavganov@google.com> am dcd05b44: Merge "Fix a crash in the select printers activity." into klp-dev

* commit 'dcd05b440d81ededd567a417a6e10a02ccdfa07b':
Fix a crash in the select printers activity.
53e8a26d6178c41c59c3dcad4a8a04ce2449f246 08-Oct-2013 Svetoslav <svetoslavganov@google.com> Fix a crash in the select printers activity.

When the search view is attached and detached we announce that
for accessibility. The trouble is that if the activity is being
torn down we are trying to access resources from a fragment that
is detached and the qcrash occurs. This change does not try to
access resources if the activity is finishing and also we do not
load resource strings if accessibility is not enabled.

bug:11127814

Change-Id: I4a47a8ed3b6a13544cf17b4395560246a33f0e2d
rc/com/android/printspooler/SelectPrinterFragment.java
70b7fd36f057bae08fa360d4dca1bf96bacab9c1 08-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> am bd91ecfa: am 84e95d19: am c2242aac: Merge "Show unavailable printers disabled and grayed out." into klp-dev

* commit 'bd91ecfa0de6e4833c0eb7fe3d2b8814eaa6eb80':
Show unavailable printers disabled and grayed out.
a9ac787e97cb3cfda2c8f171dfa4a24601948c0b 08-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> am 61b1e48a: am 06c74315: am 92f8648e: Merge "Make the print dialog floating." into klp-dev

* commit '61b1e48afc4cb6f9a6bd33baf0022084e496abff':
Make the print dialog floating.
bd91ecfa0de6e4833c0eb7fe3d2b8814eaa6eb80 08-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> am 84e95d19: am c2242aac: Merge "Show unavailable printers disabled and grayed out." into klp-dev

* commit '84e95d19d2f97dc03b235076e3134541cf161676':
Show unavailable printers disabled and grayed out.
84e95d19d2f97dc03b235076e3134541cf161676 08-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> am c2242aac: Merge "Show unavailable printers disabled and grayed out." into klp-dev

* commit 'c2242aac0cd6c214422a1507dfd4b4673642cd98':
Show unavailable printers disabled and grayed out.
61b1e48afc4cb6f9a6bd33baf0022084e496abff 08-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> am 06c74315: am 92f8648e: Merge "Make the print dialog floating." into klp-dev

* commit '06c74315e920f91feb9536d4aa25e1dc7fc0afa9':
Make the print dialog floating.
06c74315e920f91feb9536d4aa25e1dc7fc0afa9 08-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> am 92f8648e: Merge "Make the print dialog floating." into klp-dev

* commit '92f8648ebd5b569d489420badd1895df763085ae':
Make the print dialog floating.
c2242aac0cd6c214422a1507dfd4b4673642cd98 08-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> Merge "Show unavailable printers disabled and grayed out." into klp-dev
92f8648ebd5b569d489420badd1895df763085ae 08-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> Merge "Make the print dialog floating." into klp-dev
69b91e0ecb8cef95c030f5076779e07d363a45f2 08-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> Show unavailable printers disabled and grayed out.

1. If a printer is not available it has to disabled and grayed out.

2. Cancle a print job if the app does not provide the requested pages.

3. Fix current printer selection flicker when the print dialog is
showing up. Often the current printer is initially set to the user's
favorite and then it is changed back to the PDF one.

bug:10983508

Change-Id: I8d53eb992cf1c92675ec09f61b2ec272b962fa68
es/layout/printer_dropdown_item.xml
rc/com/android/printspooler/PrintJobConfigActivity.java
rc/com/android/printspooler/SelectPrinterFragment.java
b20d63a671915e00d7ee1b3b53db8d9052fa0fd5 08-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> Make the print dialog floating.

The print dialog was full-screen which was not really needed and was
causing the dialog to jump instead of animate up/down when the IME
shows/hides.

bug:11116648

Change-Id: Ifb46fd80a90948270a1fa9c875258b8d0cdfc111
es/values/themes.xml
8a4bd3ab3d5893f9ac9017a2249c07b616be5453 07-Oct-2013 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: Ic6acf9da0bedd418f4fb9b30e5ee08058a676736
Auto-generated-cl: translation import
es/values-af/strings.xml
es/values-am/strings.xml
es/values-ar/strings.xml
es/values-be/arrays.xml
es/values-bg/strings.xml
es/values-ca/strings.xml
es/values-cs/strings.xml
es/values-da/strings.xml
es/values-de/strings.xml
es/values-el/strings.xml
es/values-en-rGB/strings.xml
es/values-en-rIN/strings.xml
es/values-es-rUS/arrays.xml
es/values-es-rUS/strings.xml
es/values-es/strings.xml
es/values-et-rEE/strings.xml
es/values-fa/strings.xml
es/values-fi/strings.xml
es/values-fr-rCA/strings.xml
es/values-fr/strings.xml
es/values-hi/strings.xml
es/values-hr/strings.xml
es/values-hu/strings.xml
es/values-hy-rAM/strings.xml
es/values-in/strings.xml
es/values-it/strings.xml
es/values-iw/strings.xml
es/values-ja/arrays.xml
es/values-ja/strings.xml
es/values-ka-rGE/strings.xml
es/values-km-rKH/strings.xml
es/values-ko/strings.xml
es/values-lo-rLA/strings.xml
es/values-lt/strings.xml
es/values-lv/strings.xml
es/values-mn-rMN/strings.xml
es/values-ms-rMY/strings.xml
es/values-nb/strings.xml
es/values-nl/strings.xml
es/values-pl/strings.xml
es/values-pt-rPT/strings.xml
es/values-pt/strings.xml
es/values-ro/strings.xml
es/values-ru/strings.xml
es/values-sk/strings.xml
es/values-sl/strings.xml
es/values-sr/strings.xml
es/values-sv/strings.xml
es/values-sw/strings.xml
es/values-th/strings.xml
es/values-tl/strings.xml
es/values-tr/strings.xml
es/values-uk/strings.xml
es/values-vi/strings.xml
es/values-zh-rCN/arrays.xml
es/values-zh-rCN/strings.xml
es/values-zh-rHK/strings.xml
es/values-zh-rTW/strings.xml
es/values-zu/strings.xml
a5ea69ff2802c1f8bb3a8660f2ff09812c8c95e4 07-Oct-2013 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: Ie31c027871b65270af282ba9253c35be93d7490d
Auto-generated-cl: translation import
es/values-af/strings.xml
es/values-am/strings.xml
es/values-ar/strings.xml
es/values-be/arrays.xml
es/values-bg/strings.xml
es/values-ca/strings.xml
es/values-cs/strings.xml
es/values-da/strings.xml
es/values-de/strings.xml
es/values-el/strings.xml
es/values-en-rGB/strings.xml
es/values-es-rUS/arrays.xml
es/values-es-rUS/strings.xml
es/values-es/strings.xml
es/values-et-rEE/strings.xml
es/values-fa/strings.xml
es/values-fi/strings.xml
es/values-fr/strings.xml
es/values-hi/strings.xml
es/values-hr/strings.xml
es/values-hu/strings.xml
es/values-in/strings.xml
es/values-it/strings.xml
es/values-iw/strings.xml
es/values-ja/arrays.xml
es/values-ja/strings.xml
es/values-ko/strings.xml
es/values-lt/strings.xml
es/values-lv/strings.xml
es/values-ms-rMY/strings.xml
es/values-nb/strings.xml
es/values-nl/strings.xml
es/values-pl/strings.xml
es/values-pt-rPT/strings.xml
es/values-pt/strings.xml
es/values-ro/strings.xml
es/values-ru/strings.xml
es/values-sk/strings.xml
es/values-sl/strings.xml
es/values-sr/strings.xml
es/values-sv/strings.xml
es/values-sw/strings.xml
es/values-th/strings.xml
es/values-tl/strings.xml
es/values-tr/strings.xml
es/values-uk/strings.xml
es/values-vi/strings.xml
es/values-zh-rCN/arrays.xml
es/values-zh-rCN/strings.xml
es/values-zh-rTW/strings.xml
es/values-zu/strings.xml
a44c31bda0c9880f69d68f3c06d80b3952bb0a87 07-Oct-2013 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: I107cb20c67c52a5d2c6d82cb31f5ac41a75cdf4d
Auto-generated-cl: translation import
es/values-af/strings.xml
es/values-am/strings.xml
es/values-ar/strings.xml
es/values-be/arrays.xml
es/values-bg/strings.xml
es/values-ca/strings.xml
es/values-cs/strings.xml
es/values-da/strings.xml
es/values-de/strings.xml
es/values-el/strings.xml
es/values-en-rGB/strings.xml
es/values-en-rIN/strings.xml
es/values-es-rUS/arrays.xml
es/values-es-rUS/strings.xml
es/values-es/strings.xml
es/values-et-rEE/strings.xml
es/values-fa/strings.xml
es/values-fi/strings.xml
es/values-fr-rCA/strings.xml
es/values-fr/strings.xml
es/values-hi/strings.xml
es/values-hr/strings.xml
es/values-hu/strings.xml
es/values-hy-rAM/strings.xml
es/values-in/strings.xml
es/values-it/strings.xml
es/values-iw/strings.xml
es/values-ja/arrays.xml
es/values-ja/strings.xml
es/values-ka-rGE/strings.xml
es/values-km-rKH/strings.xml
es/values-ko/strings.xml
es/values-lo-rLA/strings.xml
es/values-lt/strings.xml
es/values-lv/strings.xml
es/values-mn-rMN/strings.xml
es/values-ms-rMY/strings.xml
es/values-nb/strings.xml
es/values-nl/strings.xml
es/values-pl/strings.xml
es/values-pt-rPT/strings.xml
es/values-pt/strings.xml
es/values-ro/strings.xml
es/values-ru/strings.xml
es/values-sk/strings.xml
es/values-sl/strings.xml
es/values-sr/strings.xml
es/values-sv/strings.xml
es/values-sw/strings.xml
es/values-th/strings.xml
es/values-tl/strings.xml
es/values-tr/strings.xml
es/values-uk/strings.xml
es/values-vi/strings.xml
es/values-zh-rCN/arrays.xml
es/values-zh-rCN/strings.xml
es/values-zh-rHK/strings.xml
es/values-zh-rTW/strings.xml
es/values-zu/strings.xml
5b9c63886ced5083aa25f39a81104667f5913a87 07-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> am d64d41b3: am 719e486f: am 9470cd95: Merge "Polish print dialog accessibility." into klp-dev

* commit 'd64d41b3345aefd1a73512944e33a38d29d9b15c':
Polish print dialog accessibility.
f035c92ee5be41dca992597185488e348e1e4c99 07-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> am 016e163f: am 13c64b1d: am 253b628d: Merge "Update all printers activity\'s empty state and avoid selected printer flicker." into klp-dev

* commit '016e163f301158c5a0243830e7517866e7d14cc5':
Update all printers activity's empty state and avoid selected printer flicker.
0168a254146f08ee1f469a800627866b89066b49 07-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> am f3f27382: am f2bbe037: am 589a5505: Merge "Update the empty state for the "all printers activity"" into klp-dev

* commit 'f3f27382830d29d0ba045f5c2680e2f6831ae274':
Update the empty state for the "all printers activity"
a4b913aa10a749dac546a3560ac3f50c334b64fb 07-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> am 22df192a: am 455def39: am a99cedc6: Merge "Update the "add print service" dialog as per UX spec." into klp-dev

* commit '22df192aaf1875ebd534dfc0523b9012cee61eac':
Update the "add print service" dialog as per UX spec.
d64d41b3345aefd1a73512944e33a38d29d9b15c 07-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> am 719e486f: am 9470cd95: Merge "Polish print dialog accessibility." into klp-dev

* commit '719e486f54b668d13680552f96558ee30d220a00':
Polish print dialog accessibility.
016e163f301158c5a0243830e7517866e7d14cc5 07-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> am 13c64b1d: am 253b628d: Merge "Update all printers activity\'s empty state and avoid selected printer flicker." into klp-dev

* commit '13c64b1d957b65a0cc0fc8e9ac8963b4e850baad':
Update all printers activity's empty state and avoid selected printer flicker.
f3f27382830d29d0ba045f5c2680e2f6831ae274 07-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> am f2bbe037: am 589a5505: Merge "Update the empty state for the "all printers activity"" into klp-dev

* commit 'f2bbe03726df6dd24a34444ec3a583bf1f23d886':
Update the empty state for the "all printers activity"
22df192aaf1875ebd534dfc0523b9012cee61eac 07-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> am 455def39: am a99cedc6: Merge "Update the "add print service" dialog as per UX spec." into klp-dev

* commit '455def3967109c7553625bc0985c0699057afcb2':
Update the "add print service" dialog as per UX spec.
56ddf1ffa5b7bd3b8d4b8b7d5c68d7e0e99e5e15 06-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> Polish print dialog accessibility.

bug:10983508

Change-Id: I7391e06b661caac18d04ae279639ff447701f151
es/menu/select_printer_activity.xml
es/values/strings.xml
rc/com/android/printspooler/PrintJobConfigActivity.java
rc/com/android/printspooler/SelectPrinterFragment.java
24c686b8b56950d5a1881cc660e53816d47e5e03 06-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> Update all printers activity's empty state and avoid selected printer flicker.

1. Updated the empty state of the all printers activity to show no printers message
if the user is searching and there are no matches and a searching for printers
message if the user is not filtering the printers list.

2. Adding the fake PDF printer after the historical printers are loaded to avoid the case
where we select the PDF printer and immediately after that the most used printer is
selected resulting in an undesirable UI flicker.

3. Fixed a bug where if the most used printer which is initially considered unavailable
is reported by the print service as available but the UI is not properly updated
leaving the user in no way to click on the print button.

bug: 10983508

Change-Id: I60fdb7761332850fd5b9ffc0cb572a6213024dba
es/values/styles.xml
rc/com/android/printspooler/FusedPrintersProvider.java
rc/com/android/printspooler/PrintJobConfigActivity.java
rc/com/android/printspooler/SelectPrinterFragment.java
264c566a7f7d829de48131ac6d811b3db6f520bc 05-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> Update the empty state for the "all printers activity"

The empty state is now showing searching for printers hint if
the user is not searching, otherwise the empty state's hint is
a searching for printers message.

bug:10983508

Change-Id: I3df79c167546998c8055d9ff85efa8b460a15e48
es/layout/select_printer_activity.xml
es/values/strings.xml
rc/com/android/printspooler/SelectPrinterFragment.java
0ea7d1e869ad618a7c8c2bbbb7f96729e7d84ed3 05-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> Update the "add print service" dialog as per UX spec.

The dialog button is now the last item in the adapter if the
search for print service settings is not empty and resolves
to an intent.

bug:10983508

Change-Id: I348e1ede1097d6f3b78c72e871bf3097b99004b6
rc/com/android/printspooler/SelectPrinterFragment.java
45cbf1fd27ae5dc09ad5ca196ddb482994695c5a 05-Oct-2013 Svetoslav <svetoslavganov@google.com> am 06aecf1b: am 9dd0b996: am fd65373d: Merge "Print UI tweaks." into klp-dev

* commit '06aecf1bcb936c60d03b4c5f30f2fc1a113f076a':
Print UI tweaks.
06aecf1bcb936c60d03b4c5f30f2fc1a113f076a 05-Oct-2013 Svetoslav <svetoslavganov@google.com> am 9dd0b996: am fd65373d: Merge "Print UI tweaks." into klp-dev

* commit '9dd0b996f93413ac44b5d8195f11b29af34663e2':
Print UI tweaks.
5ab717f21a2dbcd78fb37d40e31393d129743599 05-Oct-2013 Svetoslav <svetoslavganov@google.com> Print UI tweaks.

1. The refresh button in a print notification was using
wrong asset.

2. If the page count is unknown, just not show the page
count instead unknown.

bug:10983508

Change-Id: I15f1fcbff60fe1f30d37868864da41550bb14487
es/drawable-hdpi/ic_restart.png
es/drawable-mdpi/ic_restart.png
es/drawable-xhdpi/ic_restart.png
es/values/strings.xml
rc/com/android/printspooler/NotificationController.java
rc/com/android/printspooler/PrintJobConfigActivity.java
2829955b6cfd8295c68d5b79adbf1cc691240574 05-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> am 0d9ff161: am 538df343: am 331f9e79: Merge "Print attributes hint not honored." into klp-dev

* commit '0d9ff1613a290a0c9b197a099c898ccc9cc5f60c':
Print attributes hint not honored.
0d9ff1613a290a0c9b197a099c898ccc9cc5f60c 05-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> am 538df343: am 331f9e79: Merge "Print attributes hint not honored." into klp-dev

* commit '538df3437b80d15b07cda2464b2ae4e5bae8219b':
Print attributes hint not honored.
331f9e79ad16e7d9d51e8481e6bc21642a51c340 05-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> Merge "Print attributes hint not honored." into klp-dev
7be27acac922b5ea66ec6b464ded6f057bd6f1e5 30-Sep-2013 Svetoslav Ganov <svetoslavganov@google.com> Print attributes hint not honored.

1. Initially we have a single printer, the fake PDF printer, and
wait for printers to be discovered. This printer was handling
only a couple of media sizes. Hence, if the app provides a
media size hint and the PDF printer does not support it, we
were essentially ignoring the suggested media size since it
was not supported by the selected printer and we fell back to
the default paper size for that printer. The fake PDF printer
should support all predefined media sizes.

2. The list of available paper sizes was shown in the order they
are added ignoring the current locale. It is much better user
experience if the media sizes used in the current locale are
shown at the top and all others after that. Also the media
sizes for the current locale should be alphabetically ordered
so the user can quickly find the desired one.

3. The orientation was reset on media size or printer change.

bug:10564537

Change-Id: Iaa0d42242730ce69cea3effd4d0f4bc087068804
es/values-be/arrays.xml
es/values-be/donottranslate.xml
es/values-en-rCA/arrays.xml
es/values-en-rCA/donottranslate.xml
es/values-en-rUS/arrays.xml
es/values-en-rUS/donottranslate.xml
es/values-es-rUS/arrays.xml
es/values-es-rUS/donottranslate.xml
es/values-ja/arrays.xml
es/values-ja/donottranslate.xml
es/values-zh-rCN/arrays.xml
es/values-zh-rCN/donottranslate.xml
es/values/arrays.xml
es/values/donottranslate.xml
rc/com/android/printspooler/MediaSizeUtils.java
rc/com/android/printspooler/PrintJobConfigActivity.java
21201f4e0dc7d9600667657392aec496a708f92d 04-Oct-2013 Baligh Uddin <baligh@google.com> Merge "Import translations. DO NOT MERGE"
b0215287a805d548f509c318f1313501acd9b455 04-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> am 57f1c60f: am 2658f35a: am 6bf10299: Merge "Deleting print job files when we do not have to." into klp-dev

* commit '57f1c60f41404b3fe1c7f10e9e81576a027c2c38':
Deleting print job files when we do not have to.
a7e6ddb6089a2e95501289833164fe496417a441 04-Oct-2013 Svetoslav <svetoslavganov@google.com> am 6077037a: am 2f6aabd7: am 5c126892: Merge "Print UI tweaks as per UX request." into klp-dev

* commit '6077037abf6f44390e762e7f302373d435db71f8':
Print UI tweaks as per UX request.
5e3d3ba85ccbf59303e7480e848b49da06bdd07d 04-Oct-2013 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: Ia6e68f8160731c8366dc09eba214343ef204bb1b
Auto-generated-cl: translation import
es/values-af/strings.xml
es/values-am/strings.xml
es/values-ar/strings.xml
es/values-bg/strings.xml
es/values-ca/strings.xml
es/values-cs/strings.xml
es/values-da/strings.xml
es/values-de/strings.xml
es/values-el/strings.xml
es/values-en-rGB/strings.xml
es/values-en-rIN/strings.xml
es/values-es-rUS/strings.xml
es/values-es/strings.xml
es/values-et-rEE/strings.xml
es/values-fa/strings.xml
es/values-fi/strings.xml
es/values-fr-rCA/strings.xml
es/values-fr/strings.xml
es/values-hi/strings.xml
es/values-hr/strings.xml
es/values-hu/strings.xml
es/values-hy-rAM/strings.xml
es/values-in/strings.xml
es/values-it/strings.xml
es/values-iw/strings.xml
es/values-ja/strings.xml
es/values-ka-rGE/strings.xml
es/values-km-rKH/strings.xml
es/values-ko/strings.xml
es/values-lo-rLA/strings.xml
es/values-lt/strings.xml
es/values-lv/strings.xml
es/values-mn-rMN/strings.xml
es/values-ms-rMY/strings.xml
es/values-nb/strings.xml
es/values-nl/strings.xml
es/values-pl/strings.xml
es/values-pt-rPT/strings.xml
es/values-pt/strings.xml
es/values-ro/strings.xml
es/values-ru/strings.xml
es/values-sk/strings.xml
es/values-sl/strings.xml
es/values-sr/strings.xml
es/values-sv/strings.xml
es/values-sw/strings.xml
es/values-th/strings.xml
es/values-tl/strings.xml
es/values-tr/strings.xml
es/values-uk/strings.xml
es/values-vi/strings.xml
es/values-zh-rCN/strings.xml
es/values-zh-rHK/strings.xml
es/values-zh-rTW/strings.xml
es/values-zu/strings.xml
3eb6b8d626ff0e3b475f66998b09d582cf799a80 04-Oct-2013 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: Id91951dbb1084dd04fd93aa1cd26b6b558ff33ef
Auto-generated-cl: translation import
es/values-af/strings.xml
es/values-am/strings.xml
es/values-ar/strings.xml
es/values-bg/strings.xml
es/values-ca/strings.xml
es/values-cs/strings.xml
es/values-da/strings.xml
es/values-de/strings.xml
es/values-el/strings.xml
es/values-en-rGB/strings.xml
es/values-en-rIN/strings.xml
es/values-es-rUS/strings.xml
es/values-es/strings.xml
es/values-et-rEE/strings.xml
es/values-fa/strings.xml
es/values-fi/strings.xml
es/values-fr-rCA/strings.xml
es/values-fr/strings.xml
es/values-hi/strings.xml
es/values-hr/strings.xml
es/values-hu/strings.xml
es/values-hy-rAM/strings.xml
es/values-in/strings.xml
es/values-it/strings.xml
es/values-iw/strings.xml
es/values-ja/strings.xml
es/values-ka-rGE/strings.xml
es/values-km-rKH/strings.xml
es/values-ko/strings.xml
es/values-lo-rLA/strings.xml
es/values-lt/strings.xml
es/values-lv/strings.xml
es/values-mn-rMN/strings.xml
es/values-ms-rMY/strings.xml
es/values-nb/strings.xml
es/values-nl/strings.xml
es/values-pl/strings.xml
es/values-pt-rPT/strings.xml
es/values-pt/strings.xml
es/values-ro/strings.xml
es/values-ru/strings.xml
es/values-sk/strings.xml
es/values-sl/strings.xml
es/values-sr/strings.xml
es/values-sv/strings.xml
es/values-sw/strings.xml
es/values-th/strings.xml
es/values-tl/strings.xml
es/values-tr/strings.xml
es/values-uk/strings.xml
es/values-vi/strings.xml
es/values-zh-rCN/strings.xml
es/values-zh-rHK/strings.xml
es/values-zh-rTW/strings.xml
es/values-zu/strings.xml
57f1c60f41404b3fe1c7f10e9e81576a027c2c38 04-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> am 2658f35a: am 6bf10299: Merge "Deleting print job files when we do not have to." into klp-dev

* commit '2658f35a5e58c65b9d5ff063f16a22dae4472669':
Deleting print job files when we do not have to.
2658f35a5e58c65b9d5ff063f16a22dae4472669 04-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> am 6bf10299: Merge "Deleting print job files when we do not have to." into klp-dev

* commit '6bf1029900d09d0432fb82f8c076bdb3eefc1f6c':
Deleting print job files when we do not have to.
6bf1029900d09d0432fb82f8c076bdb3eefc1f6c 04-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> Merge "Deleting print job files when we do not have to." into klp-dev
6077037abf6f44390e762e7f302373d435db71f8 04-Oct-2013 Svetoslav <svetoslavganov@google.com> am 2f6aabd7: am 5c126892: Merge "Print UI tweaks as per UX request." into klp-dev

* commit '2f6aabd7c399377e4ea033e5882b71420737017c':
Print UI tweaks as per UX request.
2f6aabd7c399377e4ea033e5882b71420737017c 04-Oct-2013 Svetoslav <svetoslavganov@google.com> am 5c126892: Merge "Print UI tweaks as per UX request." into klp-dev

* commit '5c126892ec53772d784fcf9cef9165acf1d92ce3':
Print UI tweaks as per UX request.
5c126892ec53772d784fcf9cef9165acf1d92ce3 04-Oct-2013 Svetoslav <svetoslavganov@google.com> Merge "Print UI tweaks as per UX request." into klp-dev
2b40c83ae1ec17ea9371c3fd3ac6c79c156faa1d 04-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> Deleting print job files when we do not have to.

The print job file name was not properly parsed. This resulted
in incorrect mapping from file to print job, thus deleting the
file when we do not have to.

bug:11069354

Change-Id: I7b8a7a7f98dd77b34119f2a9cd16a6ec3c22b63b
rc/com/android/printspooler/PrintSpoolerService.java
0a6db6691b80492dbc82e86a65a583c0ff6f2ab6 03-Oct-2013 Baligh Uddin <baligh@google.com> Merge "Import translations. DO NOT MERGE"
a6b90f39f1372e45b6026517d3b7085e0448e765 03-Oct-2013 Baligh Uddin <baligh@google.com> Merge "Import translations. DO NOT MERGE" into klp-dev
39e71de6b49d1cb67ce30b411cede8d4f40dc765 03-Oct-2013 Svetoslav <svetoslavganov@google.com> Print UI tweaks as per UX request.

1. Limit the width of the dropdown of the printers list.

2. Add icons the the list in the all pritners activity.

3. Update the empty state view for the all printers activity.

bug:10983508

Change-Id: I19effcf32770fdda278009a060b5170a3f29988e
es/layout/select_printer_activity.xml
es/values/strings.xml
rc/com/android/printspooler/PrintJobConfigActivity.java
rc/com/android/printspooler/SelectPrinterFragment.java
b0c0c88e790e00cf0721066ac7015ea3fc575dea 03-Oct-2013 Svetoslav <svetoslavganov@google.com> am 7132b9b8: am 57344fea: am 913f87ef: Merge "IndexOutOfBoundsException in the PrintSpoolerService dump." into klp-dev

* commit '7132b9b88aad250ab59e6cfd5a3d30b6db2a3cf2':
IndexOutOfBoundsException in the PrintSpoolerService dump.
7132b9b88aad250ab59e6cfd5a3d30b6db2a3cf2 03-Oct-2013 Svetoslav <svetoslavganov@google.com> am 57344fea: am 913f87ef: Merge "IndexOutOfBoundsException in the PrintSpoolerService dump." into klp-dev

* commit '57344fea1cba51c179dd153ba60f87391595fec8':
IndexOutOfBoundsException in the PrintSpoolerService dump.
57344fea1cba51c179dd153ba60f87391595fec8 03-Oct-2013 Svetoslav <svetoslavganov@google.com> am 913f87ef: Merge "IndexOutOfBoundsException in the PrintSpoolerService dump." into klp-dev

* commit '913f87ef637fc1d9a006c543833b6815090b94e8':
IndexOutOfBoundsException in the PrintSpoolerService dump.
913f87ef637fc1d9a006c543833b6815090b94e8 03-Oct-2013 Svetoslav <svetoslavganov@google.com> Merge "IndexOutOfBoundsException in the PrintSpoolerService dump." into klp-dev
b67a637e60c356ab520050b2bd09a95ae47f3017 02-Oct-2013 Svetoslav <svetoslavganov@google.com> IndexOutOfBoundsException in the PrintSpoolerService dump.

The dump code in PrintSpoolerService was relying on being
called only as a result of "adb shell dumpsys print" which
is apparently wrong. As a result the code was making wrong
assumption about the input arguments.

bug:11046234

Change-Id: Ie38f3cc5f17cac98b808fef6d6bbeaca22a62ef0
rc/com/android/printspooler/PrintSpoolerService.java
cea40b25bd47aff5db8f5651d7e62c89c3ee9d88 02-Oct-2013 Svetoslav <svetoslavganov@google.com> am 7f0e8be0: am c114e19c: am 228a7d2a: Merge "Sometimes printer selection from all printers activity does not work." into klp-dev

* commit '7f0e8be082590dadb8606f71f4b9b28b88851360':
Sometimes printer selection from all printers activity does not work.
7f0e8be082590dadb8606f71f4b9b28b88851360 02-Oct-2013 Svetoslav <svetoslavganov@google.com> am c114e19c: am 228a7d2a: Merge "Sometimes printer selection from all printers activity does not work." into klp-dev

* commit 'c114e19c10a7485d8b7c10c94a268a2703b29217':
Sometimes printer selection from all printers activity does not work.
c114e19c10a7485d8b7c10c94a268a2703b29217 02-Oct-2013 Svetoslav <svetoslavganov@google.com> am 228a7d2a: Merge "Sometimes printer selection from all printers activity does not work." into klp-dev

* commit '228a7d2a157c4e6ceee5fdea389f207bbf4990ba':
Sometimes printer selection from all printers activity does not work.
228a7d2a157c4e6ceee5fdea389f207bbf4990ba 02-Oct-2013 Svetoslav <svetoslavganov@google.com> Merge "Sometimes printer selection from all printers activity does not work." into klp-dev
17e98098afeedc636108c3065470991366360470 02-Oct-2013 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: I4380f0069eaef0df57367ada16caa152ff939f55
Auto-generated-cl: translation import
es/values-af/strings.xml
es/values-am/strings.xml
es/values-ar/strings.xml
es/values-bg/strings.xml
es/values-ca/strings.xml
es/values-cs/strings.xml
es/values-da/strings.xml
es/values-de/strings.xml
es/values-el/strings.xml
es/values-en-rGB/strings.xml
es/values-en-rIN/strings.xml
es/values-es-rUS/strings.xml
es/values-es/strings.xml
es/values-et-rEE/strings.xml
es/values-fa/strings.xml
es/values-fi/strings.xml
es/values-fr-rCA/strings.xml
es/values-fr/strings.xml
es/values-hi/strings.xml
es/values-hr/strings.xml
es/values-hu/strings.xml
es/values-hy-rAM/strings.xml
es/values-in/strings.xml
es/values-it/strings.xml
es/values-iw/strings.xml
es/values-ja/strings.xml
es/values-ka-rGE/strings.xml
es/values-km-rKH/strings.xml
es/values-ko/strings.xml
es/values-lo-rLA/strings.xml
es/values-lt/strings.xml
es/values-lv/strings.xml
es/values-mn-rMN/strings.xml
es/values-ms-rMY/strings.xml
es/values-nb/strings.xml
es/values-nl/strings.xml
es/values-pl/strings.xml
es/values-pt-rPT/strings.xml
es/values-pt/strings.xml
es/values-ro/strings.xml
es/values-ru/strings.xml
es/values-sk/strings.xml
es/values-sl/strings.xml
es/values-sr/strings.xml
es/values-sv/strings.xml
es/values-sw/strings.xml
es/values-th/strings.xml
es/values-tl/strings.xml
es/values-tr/strings.xml
es/values-uk/strings.xml
es/values-vi/strings.xml
es/values-zh-rCN/strings.xml
es/values-zh-rHK/strings.xml
es/values-zh-rTW/strings.xml
es/values-zu/strings.xml
82b8c8c73c36458961b941dd805e7174e68fc4c3 02-Oct-2013 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: I4aa7e1ed8ccce520518231a116608bc8e013bb4c
Auto-generated-cl: translation import
es/values-af/strings.xml
es/values-am/strings.xml
es/values-ar/strings.xml
es/values-bg/strings.xml
es/values-ca/strings.xml
es/values-cs/strings.xml
es/values-da/strings.xml
es/values-de/strings.xml
es/values-el/strings.xml
es/values-en-rGB/strings.xml
es/values-en-rIN/strings.xml
es/values-es-rUS/strings.xml
es/values-es/strings.xml
es/values-et-rEE/strings.xml
es/values-fa/strings.xml
es/values-fi/strings.xml
es/values-fr-rCA/strings.xml
es/values-fr/strings.xml
es/values-hi/strings.xml
es/values-hr/strings.xml
es/values-hu/strings.xml
es/values-hy-rAM/strings.xml
es/values-in/strings.xml
es/values-it/strings.xml
es/values-iw/strings.xml
es/values-ja/strings.xml
es/values-ka-rGE/strings.xml
es/values-km-rKH/strings.xml
es/values-ko/strings.xml
es/values-lo-rLA/strings.xml
es/values-lt/strings.xml
es/values-lv/strings.xml
es/values-mn-rMN/strings.xml
es/values-ms-rMY/strings.xml
es/values-nb/strings.xml
es/values-nl/strings.xml
es/values-pl/strings.xml
es/values-pt-rPT/strings.xml
es/values-pt/strings.xml
es/values-ro/strings.xml
es/values-ru/strings.xml
es/values-sk/strings.xml
es/values-sl/strings.xml
es/values-sr/strings.xml
es/values-sv/strings.xml
es/values-sw/strings.xml
es/values-th/strings.xml
es/values-tl/strings.xml
es/values-tr/strings.xml
es/values-uk/strings.xml
es/values-vi/strings.xml
es/values-zh-rCN/strings.xml
es/values-zh-rHK/strings.xml
es/values-zh-rTW/strings.xml
es/values-zu/strings.xml
abfe8d2046cb6ea940ce7842821335e0e5058ce8 02-Oct-2013 Svetoslav <svetoslavganov@google.com> am f7851e3f: am 2f5440bd: am cbf3f2cd: Merge "Adding an empty state UI for the printer search activity in the spooler." into klp-dev

* commit 'f7851e3f80b724ac65c589985b81e0a89a54bae0':
Adding an empty state UI for the printer search activity in the spooler.
f7851e3f80b724ac65c589985b81e0a89a54bae0 02-Oct-2013 Svetoslav <svetoslavganov@google.com> am 2f5440bd: am cbf3f2cd: Merge "Adding an empty state UI for the printer search activity in the spooler." into klp-dev

* commit '2f5440bd3bfbd102051928b9e38711ffb3ad59fe':
Adding an empty state UI for the printer search activity in the spooler.
2f5440bd3bfbd102051928b9e38711ffb3ad59fe 02-Oct-2013 Svetoslav <svetoslavganov@google.com> am cbf3f2cd: Merge "Adding an empty state UI for the printer search activity in the spooler." into klp-dev

* commit 'cbf3f2cde569aac3a49d888d2bd52d77dc139738':
Adding an empty state UI for the printer search activity in the spooler.
4e4874bb71ddebc80fd10b7b3f0ec6b13aca25ec 02-Oct-2013 Svetoslav <svetoslavganov@google.com> Sometimes printer selection from all printers activity does not work.

1. Sometimes selecting a printer from the full printer list does not
work if the selected printer was not in the initial drop down list
of the print dialog.

The reason was that there is a race. We use loaders in the print
dialog activity and the all printers one. When these loaders are
stopped we stop printer discovery since we do not want to keep this
potentially expensive process on going if the activity is paused
because say the user decide to press home and start playing his
favorite game while the printers dialog is up. As a result the
loader does not get printer updates until it is started.

The loader of the print dialog activity is stopped while the user is
selecting a printer from the all printers activity whose loader is
getting discovered recent printers. Now when the user selects a printer
the loader of the print dialog activity is started but may not get
the latest printers by the time onActivityResult is called with the
selected printer. Now we cache the selected printer id and if the
loader reports it we select that printer.

2. In the print dialog we show only a few of the discovered printers.
If the user selects a printer from the all printers activity that
is not in the initial list we shuffle the adapter data to make sure
the selected printer is in the shown subset. Now if the printers
change, i.e. the printers loader reports new result we were not
respecting the reshuffling made before so the short list of
printers changes yet again.

bug:11034216

Change-Id: I54fe3619e3328b65839d9f4b02309699eae7f8eb
rc/com/android/printspooler/PrintJobConfigActivity.java
a4e395057f988e65b3e906a014fc6a10d098f097 02-Oct-2013 Svetoslav <svetoslavganov@google.com> am c6568719: Merge "Ignore historical printer records for installed services" into klp-dev

* commit 'c6568719671206e726f260fad390680f7fb0ee9e':
Ignore historical printer records for installed services
976b4e6312ca7a4cca56211fa5b347b018dd305a 01-Oct-2013 Svetoslav <svetoslavganov@google.com> Adding an empty state UI for the printer search activity in the spooler.

The user can select all printers from the print dropdown to get to
a search for printers activity where one can filter out the list
of a available printers. We did not have an empty state UI for the
case when the query yields no printers.

bug:11009053

Change-Id: I6b45517b8a7b319992019a1bf65858319a19a0de
es/layout/select_printer_activity.xml
es/values/strings.xml
rc/com/android/printspooler/SelectPrinterFragment.java
ce5cb02ecade4d7fa924d30773281588639a00f3 01-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> am b415525a: Merge "Print job files and print job records not always cleaned up." into klp-dev

* commit 'b415525a16074b6dc8e295655648b7c7c1074bbb':
Print job files and print job records not always cleaned up.
d04f0265a4ba6c2975cd5cae23b4fc6dd883d8d2 01-Oct-2013 Baligh Uddin <baligh@google.com> Merge "Import translations. DO NOT MERGE"
82d2d7e4b073d08b462bdc9c3188f50ced54cc30 01-Oct-2013 Svetoslav <svetoslavganov@google.com> am c6568719: Merge "Ignore historical printer records for installed services" into klp-dev

* commit 'c6568719671206e726f260fad390680f7fb0ee9e':
Ignore historical printer records for installed services
b84aa9fee339301153f2471c544844510c26637b 01-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> am b415525a: Merge "Print job files and print job records not always cleaned up." into klp-dev

* commit 'b415525a16074b6dc8e295655648b7c7c1074bbb':
Print job files and print job records not always cleaned up.
fb83af78faa94a4dcb0683a420f51245e91da3a5 01-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> am c783f673: Merge "Adding a timeout for waiting to get the selected printer\'s capabilities." into klp-dev

* commit 'c783f6738f0f6d2cb57702cfbc9219c59a3410a3':
Adding a timeout for waiting to get the selected printer's capabilities.
049e69070afe3f7865f45976cdf67e9149a76ee6 01-Oct-2013 Svetoslav <svetoslavganov@google.com> am 25b0151a: Merge "Printers in the list of printers change position." into klp-dev

* commit '25b0151a570ff6fb7a6acd9c788b9c3cc9f76be9':
Printers in the list of printers change position.
b1310d4e2859c7f21e975a4a9fd732223be6f91f 30-Sep-2013 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: Ia050326f182c55e8954f73e33d36d96ed575497b
Auto-generated-cl: translation import
es/values-af/strings.xml
es/values-am/strings.xml
es/values-et-rEE/strings.xml
es/values-fi/strings.xml
es/values-fr-rCA/strings.xml
es/values-in/strings.xml
es/values-ja/strings.xml
es/values-ka-rGE/strings.xml
es/values-ko/strings.xml
es/values-lo-rLA/strings.xml
es/values-lt/strings.xml
es/values-lv/strings.xml
es/values-ms-rMY/strings.xml
es/values-pt/strings.xml
es/values-ru/strings.xml
es/values-sk/strings.xml
es/values-sw/strings.xml
es/values-th/strings.xml
es/values-tl/strings.xml
es/values-tr/strings.xml
es/values-vi/strings.xml
es/values-zh-rCN/strings.xml
es/values-zh-rHK/strings.xml
es/values-zh-rTW/strings.xml
dd4ce7119f3bb9f415836abc18c3036356d6733f 30-Sep-2013 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: Ie40b704529f71e71f5c384450a79923c68354bb9
Auto-generated-cl: translation import
es/values-af/strings.xml
es/values-am/strings.xml
es/values-ar/strings.xml
es/values-bg/strings.xml
es/values-ca/strings.xml
es/values-cs/strings.xml
es/values-da/strings.xml
es/values-de/strings.xml
es/values-el/strings.xml
es/values-en-rGB/strings.xml
es/values-en-rIN/strings.xml
es/values-es-rUS/strings.xml
es/values-es/strings.xml
es/values-et-rEE/strings.xml
es/values-fa/strings.xml
es/values-fi/strings.xml
es/values-fr-rCA/strings.xml
es/values-fr/strings.xml
es/values-hi/strings.xml
es/values-hr/strings.xml
es/values-hu/strings.xml
es/values-hy-rAM/strings.xml
es/values-in/strings.xml
es/values-it/strings.xml
es/values-iw/strings.xml
es/values-ja/strings.xml
es/values-ka-rGE/strings.xml
es/values-km-rKH/strings.xml
es/values-ko/strings.xml
es/values-lo-rLA/strings.xml
es/values-lt/strings.xml
es/values-lv/strings.xml
es/values-mn-rMN/strings.xml
es/values-ms-rMY/strings.xml
es/values-nb/strings.xml
es/values-nl/strings.xml
es/values-pl/strings.xml
es/values-pt-rPT/strings.xml
es/values-pt/strings.xml
es/values-ro/strings.xml
es/values-ru/strings.xml
es/values-sk/strings.xml
es/values-sl/strings.xml
es/values-sr/strings.xml
es/values-sv/strings.xml
es/values-sw/strings.xml
es/values-th/strings.xml
es/values-tl/strings.xml
es/values-tr/strings.xml
es/values-uk/strings.xml
es/values-vi/strings.xml
es/values-zh-rCN/strings.xml
es/values-zh-rHK/strings.xml
es/values-zh-rTW/strings.xml
es/values-zu/strings.xml
d8dbc13b47bec3248a86a505a30af9d0474240dc 28-Sep-2013 Svetoslav <svetoslavganov@google.com> Ignore historical printer records for installed services

When loading historical records for previously used printers we
now ignore the ones whose target print service is not installed.

bug:10955652

Change-Id: Ib295e7d88ed3c308ef6d8a11bdc1792ebbb6d526
rc/com/android/printspooler/FusedPrintersProvider.java
b415525a16074b6dc8e295655648b7c7c1074bbb 28-Sep-2013 Svetoslav Ganov <svetoslavganov@google.com> Merge "Print job files and print job records not always cleaned up." into klp-dev
c783f6738f0f6d2cb57702cfbc9219c59a3410a3 28-Sep-2013 Svetoslav Ganov <svetoslavganov@google.com> Merge "Adding a timeout for waiting to get the selected printer's capabilities." into klp-dev
dd68da2741fa63070d5ad206020dcccb9f429a5a 27-Sep-2013 Svetoslav Ganov <svetoslavganov@google.com> Print job files and print job records not always cleaned up.

1. We want the files for a print job to be removed as early as possible
typically because the print job was cancelled, completed, the app
or the spooler crashed during print job construction. We were keeping
around in the spooler and hence to disc infos for jobs that are in
final state since the app that created them may hold a reference to
a local print job objec whose info it can access to get the latest
print job state potentially after the job reached final state. The
issue was that we were persisting to disc created print jobs which
were during construction which requires careful handling for the
various cases above. This is tricky and error prone.

We used to tell the spooler to forget the print jobs infos when the
app that created them died. The implementation to forget a print
job was not careful and was nuking currently running print jobs in
addition to the ones in a terminal state. Further, if the app dies
before a print job is completed we were left with a stale print
job in the spooler since we missed the signal to forget it (assuming
we forget only inactive jobs). These issues suggest that the approach
is problematic.

Now we have a cache of print job infos for the jobs an app created.
This cache is updated when the state of a print jobs changes using
the new print job state observation code. When the app dies we
remove the cached jobs for that app. Now if the app calls to get
the print jobs it gets the cached ones, i.e. the print jobs it
created during its lifetime, plus the print jobs that are still
active fetched from the spooler. Note that transient state cannot
be kept in the spooler since we unbind from it if there is no
work and it may get killed.

2. Improved the print sub-system logging code to show the cached
print job infos for apps and also dump the print job PDF file
names.

bug:10958357

Change-Id: I6f7c1968b6b7ba5be182a10df044ff7ea1fc3a61
rc/com/android/printspooler/PrintSpoolerService.java
6be4c76441ecdc11ee4db7211edc421d26a78f1f 27-Sep-2013 Svetoslav Ganov <svetoslavganov@google.com> Adding a timeout for waiting to get the selected printer's capabilities.

A print service may choose to provide only the printer info and then when
it is requested to start tracking the state of the printer, the service
should provide the printer capabilities. If the capabilities are not
received within ten seconds we mark the printer as unavailable and stop
tracking it.

bug:10748639

Change-Id: I9171cb5dc116fd321c23a8e4ab55109448e2fc6a
es/values/strings.xml
rc/com/android/printspooler/PrintJobConfigActivity.java
c335eb411503154cf475903eb6c5c67575769112 27-Sep-2013 Svetoslav <svetoslavganov@google.com> Printers in the list of printers change position.

1. The printers in the printers list of settings change position if
they are updated. The settings app is using hidden platform APIs
the this change fixes.

2. Enable ProGuard for the PrintSpooler.

3. Added icons on the list of printers so the user knows which
print service used the printer. Now the user can know when
he is using cloud print and maybe incurring data costs vs
local printer discovered by a vendor plug in.

bug:10955751

Change-Id: I292f48b424cb561218fdb424d0388f4d786d8339
ndroid.mk
es/layout/printer_dropdown_item.xml
rc/com/android/printspooler/PrintJobConfigActivity.java
dd812e0c9782128fbb968fa3bcdb1a7ba95f0f74 26-Sep-2013 Svetoslav Ganov <svetoslavganov@google.com> am 342daca7: am 2c854022: Merge "Choosing default paper size for the "Save to PDF" fake printer" into klp-dev

* commit '342daca7d7407fbe07df571a4c0ba6a51a89e15d':
Choosing default paper size for the "Save to PDF" fake printer
342daca7d7407fbe07df571a4c0ba6a51a89e15d 26-Sep-2013 Svetoslav Ganov <svetoslavganov@google.com> am 2c854022: Merge "Choosing default paper size for the "Save to PDF" fake printer" into klp-dev

* commit '2c854022bf7fb6d626b0e86dc0c16372774f2432':
Choosing default paper size for the "Save to PDF" fake printer
0ce3e8743c9127a688f007eed17a5ed18081d0fc 26-Sep-2013 Svetoslav Ganov <svetoslavganov@google.com> Choosing default paper size for the "Save to PDF" fake printer

Change-Id: I1e2eb73fd1eb3b1e9812155b69b94cba261243c2
rc/com/android/printspooler/PrintJobConfigActivity.java
af1066d917fd47c8108df98f8a534babd48d18cd 26-Sep-2013 Svetoslav Ganov <svetoslavganov@google.com> am 4609d9a9: am 5cab967b: Merge "Adding hidden APIs for observing the print jobs state." into klp-dev

* commit '4609d9a9ebc17d804d31d5241968157439c92a57':
Adding hidden APIs for observing the print jobs state.
aa14d0e7fd36fa29557ef7c3980b86703f767760 26-Sep-2013 Svetoslav Ganov <svetoslavganov@google.com> am 1711895e: am 3adc49c6: Merge "Disallow range selection if the document has unknown page count." into klp-dev

* commit '1711895e7a36956e68dd520109672e34a5baa159':
Disallow range selection if the document has unknown page count.
7d877d9c588705d793136233bae6434d29ddcb3c 26-Sep-2013 Svetoslav Ganov <svetoslavganov@google.com> am d5159505: am c9cfd605: Merge "Missed signal in FusedPrintersLoader." into klp-dev

* commit 'd5159505638b2ff29de755231cc7139a3daeca4a':
Missed signal in FusedPrintersLoader.
f2e730589f32db83844e4ecb7776fe583777c18a 26-Sep-2013 Svetoslav Ganov <svetoslavganov@google.com> am c2999acd: am 027ff385: Merge "Page range validation edge case handling." into klp-dev

* commit 'c2999acd6105e2918285ebf16430e23507a84255':
Page range validation edge case handling.
4609d9a9ebc17d804d31d5241968157439c92a57 26-Sep-2013 Svetoslav Ganov <svetoslavganov@google.com> am 5cab967b: Merge "Adding hidden APIs for observing the print jobs state." into klp-dev

* commit '5cab967bf2bab49777bfa86dff8b0f892192ede6':
Adding hidden APIs for observing the print jobs state.
1711895e7a36956e68dd520109672e34a5baa159 26-Sep-2013 Svetoslav Ganov <svetoslavganov@google.com> am 3adc49c6: Merge "Disallow range selection if the document has unknown page count." into klp-dev

* commit '3adc49c6780633b8bccc3b5b8dca10788c2288bc':
Disallow range selection if the document has unknown page count.
5cab967bf2bab49777bfa86dff8b0f892192ede6 26-Sep-2013 Svetoslav Ganov <svetoslavganov@google.com> Merge "Adding hidden APIs for observing the print jobs state." into klp-dev
d5159505638b2ff29de755231cc7139a3daeca4a 26-Sep-2013 Svetoslav Ganov <svetoslavganov@google.com> am c9cfd605: Merge "Missed signal in FusedPrintersLoader." into klp-dev

* commit 'c9cfd605a24cf20df5248d73804c584168db64c9':
Missed signal in FusedPrintersLoader.
c2999acd6105e2918285ebf16430e23507a84255 26-Sep-2013 Svetoslav Ganov <svetoslavganov@google.com> am 027ff385: Merge "Page range validation edge case handling." into klp-dev

* commit '027ff3855d257e5179d43a1859bf56530d0f975a':
Page range validation edge case handling.
3adc49c6780633b8bccc3b5b8dca10788c2288bc 26-Sep-2013 Svetoslav Ganov <svetoslavganov@google.com> Merge "Disallow range selection if the document has unknown page count." into klp-dev
c9cfd605a24cf20df5248d73804c584168db64c9 26-Sep-2013 Svetoslav Ganov <svetoslavganov@google.com> Merge "Missed signal in FusedPrintersLoader." into klp-dev
027ff3855d257e5179d43a1859bf56530d0f975a 26-Sep-2013 Svetoslav Ganov <svetoslavganov@google.com> Merge "Page range validation edge case handling." into klp-dev
953c4143e846b071da4869cb7cfd8039a086b1da 26-Sep-2013 Svetoslav Ganov <svetoslavganov@google.com> Missed signal in FusedPrintersLoader.

1. In the FusedPrintersLoader we start observing the printers on
the device and if they change we send the result. If however,
the printers are already loaded in our session (because it
joined an ongoing printer discovery) and the pritners do not
change, the loader never sends its result. Now we are registring
the callback only after historical printers are loaded. We
also immediately check after starting discovery whether the
there are printers in the discovery session and if so deliver
them.

2. Improved logging in the FusedPrintersLoader.

bug:10940712

Change-Id: Ieb9b897d64780742125b29309462dea3eda170a6
rc/com/android/printspooler/FusedPrintersProvider.java
ab051baea5560e0c71397771e53bd74d4a36024d 26-Sep-2013 Svetoslav Ganov <svetoslavganov@google.com> Page range validation edge case handling.

The regular expression for validating range input was missing a
coupe of edge cases.

bug:10906805

Change-Id: Ie793588ecb6697aff3d8d85124a8faeda58c69e5
rc/com/android/printspooler/PrintJobConfigActivity.java
b0e68fdc9cb6ba292adc4590f406d921abea08d5 21-Sep-2013 Svetoslav Ganov <svetoslavganov@google.com> Disallow range selection if the document has unknown page count.

bug:10741878

Change-Id: Ibf2272125e81f14ede3fdfec86aee10b908ade01
rc/com/android/printspooler/PrintJobConfigActivity.java
704697b6197262678e930daa831a1916ddee4dcf 22-Sep-2013 Svetoslav Ganov <svetoslavganov@google.com> Adding hidden APIs for observing the print jobs state.

This is needed for implementing the print job settigns UI.

bug:10935736

Change-Id: I63b42cbf4ce6a259fa1af47fa368b148ca5621c1
es/drawable-hdpi/stat_notify_error.png
es/drawable-mdpi/stat_notify_error.png
es/drawable-xhdpi/stat_notify_error.png
es/layout/spinner_dropdown_item.xml
rc/com/android/printspooler/NotificationController.java
rc/com/android/printspooler/PrintSpoolerService.java
bef7ffafb54b034ec8b40c5e4c2bdede93d84211 26-Sep-2013 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: I43ea4f6dcef11d0fa62c8f329b39c0ea49be2439
Auto-generated-cl: translation import
es/values-af/strings.xml
es/values-am/strings.xml
es/values-ar/strings.xml
es/values-bg/strings.xml
es/values-ca/strings.xml
es/values-cs/strings.xml
es/values-da/strings.xml
es/values-de/strings.xml
es/values-el/strings.xml
es/values-en-rGB/strings.xml
es/values-en-rIN/strings.xml
es/values-es-rUS/strings.xml
es/values-es/strings.xml
es/values-et-rEE/strings.xml
es/values-fa/strings.xml
es/values-fi/strings.xml
es/values-fr-rCA/strings.xml
es/values-fr/strings.xml
es/values-hi/strings.xml
es/values-hr/strings.xml
es/values-hu/strings.xml
es/values-hy-rAM/strings.xml
es/values-in/strings.xml
es/values-it/strings.xml
es/values-iw/strings.xml
es/values-ja/strings.xml
es/values-ka-rGE/strings.xml
es/values-km-rKH/strings.xml
es/values-ko/strings.xml
es/values-lo-rLA/strings.xml
es/values-lt/strings.xml
es/values-lv/strings.xml
es/values-mn-rMN/strings.xml
es/values-ms-rMY/strings.xml
es/values-nb/strings.xml
es/values-nl/strings.xml
es/values-pl/strings.xml
es/values-pt-rPT/strings.xml
es/values-pt/strings.xml
es/values-ro/strings.xml
es/values-ru/strings.xml
es/values-sk/strings.xml
es/values-sl/strings.xml
es/values-sr/strings.xml
es/values-sv/strings.xml
es/values-sw/strings.xml
es/values-th/strings.xml
es/values-tl/strings.xml
es/values-tr/strings.xml
es/values-uk/strings.xml
es/values-vi/strings.xml
es/values-zh-rCN/strings.xml
es/values-zh-rHK/strings.xml
es/values-zh-rTW/strings.xml
es/values-zu/strings.xml
df79953527e7b39ef5f022741b624ef28b5c0ff5 26-Sep-2013 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: I4842b7afb76ee393c19a39d0818f3f2066616803
Auto-generated-cl: translation import
es/values-af/strings.xml
es/values-am/strings.xml
es/values-ar/strings.xml
es/values-bg/strings.xml
es/values-ca/strings.xml
es/values-cs/strings.xml
es/values-da/strings.xml
es/values-de/strings.xml
es/values-el/strings.xml
es/values-en-rGB/strings.xml
es/values-en-rIN/strings.xml
es/values-es-rUS/strings.xml
es/values-fa/strings.xml
es/values-fr-rCA/strings.xml
es/values-fr/strings.xml
es/values-hr/strings.xml
es/values-hy-rAM/strings.xml
es/values-it/strings.xml
es/values-mn-rMN/strings.xml
es/values-nb/strings.xml
es/values-nl/strings.xml
es/values-pl/strings.xml
es/values-pt-rPT/strings.xml
es/values-pt/strings.xml
es/values-ro/strings.xml
es/values-sl/strings.xml
es/values-sr/strings.xml
es/values-sv/strings.xml
es/values-sw/strings.xml
es/values-tr/strings.xml
es/values-uk/strings.xml
es/values-zu/strings.xml
46485d6df60e11d04d976bc7ec5c9c8cdec14900 25-Sep-2013 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: Id5391f651538cc46ad7455dedaa3426e29efc9c9
Auto-generated-cl: translation import
es/values-af/strings.xml
es/values-am/strings.xml
es/values-ar/strings.xml
es/values-bg/strings.xml
es/values-ca/strings.xml
es/values-cs/strings.xml
es/values-da/strings.xml
es/values-de/strings.xml
es/values-el/strings.xml
es/values-en-rGB/strings.xml
es/values-en-rIN/strings.xml
es/values-es-rUS/strings.xml
es/values-es/strings.xml
es/values-et-rEE/strings.xml
es/values-fa/strings.xml
es/values-fi/strings.xml
es/values-fr-rCA/strings.xml
es/values-fr/strings.xml
es/values-hi/strings.xml
es/values-hr/strings.xml
es/values-hu/strings.xml
es/values-hy-rAM/strings.xml
es/values-in/strings.xml
es/values-it/strings.xml
es/values-iw/strings.xml
es/values-ja/strings.xml
es/values-ka-rGE/strings.xml
es/values-km-rKH/strings.xml
es/values-ko/strings.xml
es/values-lo-rLA/strings.xml
es/values-lt/strings.xml
es/values-lv/strings.xml
es/values-mn-rMN/strings.xml
es/values-ms-rMY/strings.xml
es/values-nb/strings.xml
es/values-nl/strings.xml
es/values-pl/strings.xml
es/values-pt-rPT/strings.xml
es/values-pt/strings.xml
es/values-ro/strings.xml
es/values-ru/strings.xml
es/values-sk/strings.xml
es/values-sl/strings.xml
es/values-sr/strings.xml
es/values-sv/strings.xml
es/values-sw/strings.xml
es/values-th/strings.xml
es/values-tl/strings.xml
es/values-tr/strings.xml
es/values-uk/strings.xml
es/values-vi/strings.xml
es/values-zh-rCN/strings.xml
es/values-zh-rHK/strings.xml
es/values-zh-rTW/strings.xml
es/values-zu/strings.xml
62034df44dfe3f8a03f083e12fc5512456ab69ba 25-Sep-2013 Svetoslav <svetoslavganov@google.com> am de31fbe0: am b55afe8b: Merge "User should not be able to select unavailable printers." into klp-dev

* commit 'de31fbe04a75d9a8c3c163fbebeacd052ce54e72':
User should not be able to select unavailable printers.
de31fbe04a75d9a8c3c163fbebeacd052ce54e72 25-Sep-2013 Svetoslav <svetoslavganov@google.com> am b55afe8b: Merge "User should not be able to select unavailable printers." into klp-dev

* commit 'b55afe8b835da2d0ebe596877bf93076e4726724':
User should not be able to select unavailable printers.
2a708617dfdc0b6dbf9b39baebbdc55d19aa7728 25-Sep-2013 Svetoslav <svetoslavganov@google.com> User should not be able to select unavailable printers.

1. If the printer is unavailable we should not allow the user
to select it. Rather, show it grayed out.

2. Some string changes requeted by translators.

bug:10917222

Change-Id: I370f05f9c8e70e3f077db7eb02cf48e19a59925d
es/layout/spinner_dropdown_item.xml
es/values/strings.xml
rc/com/android/printspooler/PrintJobConfigActivity.java
8e137b53b9048404fb6e106b33ff5b3ef873e59d 24-Sep-2013 Svetoslav <svetoslavganov@google.com> am d454beb8: am 0d38d0b4: Merge "Multiple printer discovery session instances and other bugs." into klp-dev

* commit 'd454beb8545e9427eaeb5eb757badbe6907cf6a2':
Multiple printer discovery session instances and other bugs.
d454beb8545e9427eaeb5eb757badbe6907cf6a2 24-Sep-2013 Svetoslav <svetoslavganov@google.com> am 0d38d0b4: Merge "Multiple printer discovery session instances and other bugs." into klp-dev

* commit '0d38d0b42fba7dc50454d5c0652cf351c58a9db6':
Multiple printer discovery session instances and other bugs.
0d38d0b42fba7dc50454d5c0652cf351c58a9db6 24-Sep-2013 Svetoslav <svetoslavganov@google.com> Merge "Multiple printer discovery session instances and other bugs." into klp-dev
3e65abdf26a46a2b61f92c877dd9e431871ff0c3 24-Sep-2013 Svetoslav Ganov <svetoslavganov@google.com> am 5bf43d25: am 5dfccc3c: Merge "The current is printer not refreshed when selected." into klp-dev

* commit '5bf43d253c13cb18c9026cde147b10fc5676b1c4':
The current is printer not refreshed when selected.
e0a2e43a1303462677ee8aac7782c8f2ea3041fb 24-Sep-2013 Baligh Uddin <baligh@google.com> Merge "Import translations. DO NOT MERGE"
87ac87a5e504b4e3d2a8fed9a6adb66d2d775b60 24-Sep-2013 Baligh Uddin <baligh@google.com> Merge "Import translations. DO NOT MERGE" into klp-dev
b5f180608db6de123b54ae94de569ff1ebca705c 24-Sep-2013 Svetoslav <svetoslavganov@google.com> Multiple printer discovery session instances and other bugs.

1. The fused printers provider was dropping on the floor received printers
if it was not active. It is in fact a loaded and if not active it should compute
the printers and not deliver them until activated. This fixes an issue where
opening the print dialog, then enabling a print service results in the printers
reported by the service not showing up in the print dialog.

2. Printer discovery session was created twice which leads to incorrect behavior
as the pint system is designed around the contract that there is a single
printer discovery session per service at a time. This was possible due to an
incorrect initialization of a member variable resulting in double session creation
when the print service is connected.

3. When a print service is enabled during discovery we did not use the correct
condition to start printer discovery resulting in starting it all the time even if
not needed. Also if some of the printers that had to be tracked are reported
by the service just enabled (typically historical printers) we did not ask the
service to start tracking them.

4. Removed some logging.

bug:10903343

Change-Id: I46c049471a4b099fc668df3aee2aaedc8d7786ac
rc/com/android/printspooler/FusedPrintersProvider.java
rc/com/android/printspooler/PrintSpoolerService.java
5dfccc3c0d142765b04f9cd8b2513a6b9db22426 24-Sep-2013 Svetoslav Ganov <svetoslavganov@google.com> Merge "The current is printer not refreshed when selected." into klp-dev
307a0d4db23d8d9705fb2d87d304cb7e9a90f476 24-Sep-2013 Svetoslav Ganov <svetoslavganov@google.com> The current is printer not refreshed when selected.

Every time a printer is selected we have to refresh it by telling
the print service to stop tracking the previously selected printer
if such and start tracking the current one. As a result of start
tracking the print service has to give us the capabilities too. A
previous patch caused a regression and we do not refresh printers
when needed.

bug:10898968

Change-Id: I9d5413e324fdb8856ef61849d36a161470eb204d
rc/com/android/printspooler/PrintJobConfigActivity.java
8a724584611aa8d022da23c3e5fd9fd42fc8fa18 23-Sep-2013 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: I26e4d60d81e13181feeb872b09db4c242105e34e
Auto-generated-cl: translation import
es/values-en-rGB/strings.xml
es/values-en-rIN/strings.xml
es/values-iw/strings.xml
es/values-ja/strings.xml
es/values-km-rKH/strings.xml
es/values-mn-rMN/strings.xml
es/values-tl/strings.xml
e209e271123b3ce805a66df9a2c19e43cc044fdd 23-Sep-2013 Baligh Uddin <baligh@google.com> Import translations. DO NOT MERGE

Change-Id: Ia5c6ae14529080f176a14f5b8b2307cc2aa39fed
Auto-generated-cl: translation import
es/values-en-rGB/strings.xml
es/values-en-rIN/strings.xml
es/values-iw/strings.xml
es/values-ja/strings.xml
es/values-km-rKH/strings.xml
es/values-mn-rMN/strings.xml
es/values-tl/strings.xml
a4f6409c974363a6bb1eddd5c88048d88e868640 21-Sep-2013 Svetoslav <svetoslavganov@google.com> Page ranges not correct in come cases.

1. The algorithm that determines whether a page range contains
another one had a bug and in some cases misbehaved.

2. When print is pressed we do a final layout and if nothing
changes and we have the requeted pages we skip the final
write. However, in this case we did not update the print
job with the pages to be printed but we have to since in
the previous write we did not ask for all selected pages,
rather for the first one to be shown as a preview. Now if
we have all pages and nothing changed we update the print
job pages.

bug:10530142

Change-Id: I10fb62ae5ae07b8e54d547fd4dca555a12451bc5
rc/com/android/printspooler/PrintJobConfigActivity.java
b39ce63d2807c9d5c68d3be052dee7e9da7ec3be 21-Sep-2013 Svetoslav <svetoslavganov@google.com> Merge "Offer to enable a print service after it is installed." into klp-dev
d8f391b4e0e8d876ec7216d34f86a9b3e8bab7e5 21-Sep-2013 Svetoslav <svetoslavganov@google.com> Offer to enable a print service after it is installed.

The user has to explicitly enable a print service from the settings UI
before using it. Usually, users very rarely if at all interact with print
services, therefore all print service management task are performed from
the print settings. We also have to get user consent warning that the
user's data is about to be given to a third-party app. We now post a
notification allowing the user to go directly to the settings screen to
turn the service on.

bug:10447510

Change-Id: Iea56c0825f0bf38328ad94912f0ea5576e9339b3
es/drawable-hdpi/stat_notify_print.png
es/drawable-mdpi/stat_notify_print.png
es/drawable-xhdpi/stat_notify_print.png
rc/com/android/printspooler/NotificationController.java
5559c368a96c56d55c581c88d9978c59c5212bf1 20-Sep-2013 Svetoslav <svetoslavganov@google.com> PrintDocumentAdapter contract not followed on print.

1. Layout was not called after pressing the print button if the
print attributes did not change. This is not correct since the
previous layout calls were for preview purposes and the one
after pressing print is not for preview. Hence, we always have
to do this layout.

2. After layout we decide whether to ask the app to write some
pages. We ask for a write if we do not have the pages selected
by the user or the document changed (if the page count changed,
the document type changed, or the app told us that the content
changed). We were not computing correctly whether the document
changed since we compared the size but the document info the
app passes in after a layout does not have the size yet. We set
the size after a write. So for layout purposes we should ignore
the size. We only care if the page count, document type, or
content changed where the latter is reported by the app in
the layout callback.

3. We were not updating the PrintJob after setting the data
size of the printed document.

4. Disabled debugging.

bug:10835370

Change-Id: Ic3b2871b4e954cdf610f8cf806de5fc6588a6bec
rc/com/android/printspooler/PrintJobConfigActivity.java
b206f1271d17164c3f2f65219eee7a0b4b4fa6dc 20-Sep-2013 Svetoslav <svetoslavganov@google.com> Null not handled when parsing media size resource id attribute.

bug:10835715

Change-Id: I0c9c1120c26e68b4c582599bbda3753d0e443d8c
rc/com/android/printspooler/PrintSpoolerService.java
6811f4e92cbb64e72a0d13eb9b99b5894bd59c76 19-Sep-2013 Svetoslav <svetoslavganov@google.com> Move PdfDocument to android.graphics.pdf

1. Move PdfDocument to android.graphics.pdf.

2. Changed the PdfDocument as per API concil request.

3. Updated the documentation.

bug:10461180
bug:10552565
bug:10681585
bug:10552336

Change-Id: I08e15b34cf37bb064248c887e6f59808019cafe8
rc/com/android/printspooler/PrintJobConfigActivity.java
ac7297bdc04e2097e39b791064e5ed6ee92680ea 19-Sep-2013 Svetoslav <svetoslavganov@google.com> Merge "Fixes in the page range selection and verification logic." into klp-dev
f0c48a72fd8476afd063d4ef593b473b8cf9a9d0 18-Sep-2013 Svetoslav <svetoslavganov@google.com> Fixes in the page range selection and verification logic.

1. Typing a range where the start is greater than the end was
leading to a crash.

2. Typing the same single range, e.g. "2,2", was leading to a crash.

3. If two ranges are non-overlapping but consecutive they were
not merged

4. Typing multiple times a digit that is less than the page count,
e.g. page count "2" and typing "11", was not caught by the input
verification.

bug:10812904

Change-Id: I754715b5d792a1a6c3a4f9f644edfa9aea7ac127
rc/com/android/printspooler/PrintJobConfigActivity.java
7b3990ec81fc218f655d44624758e15ce378968e 18-Sep-2013 Svetoslav <svetoslavganov@google.com> Merge "Update the print dialog." into klp-dev
013b816ac7d723a0116c039e6266d93d13851fe1 18-Sep-2013 Svetoslav <svetoslavganov@google.com> Update the print dialog.

1. The print dialog was resizable and as a result when printers
come and go its size changes which looks bad. The dialog is
now trying to be maximally large limited by a max size or the
screen - whichever is smaller. This required moving from
GridLayout to several LinearLayouts since the former does not
support distribution of empty space evently between the items
in a row. Also we want all items in a column of inputs to be
of equal size (the spinners specifically).

2. Added labeledBy attribute to associate a view with another one
that serves as its label for accessibility purposes. We have
lebelFor attribute but it is not useful in most layout files
since it has to refer the auto-generated id of a view which
usually appears later in the layout file, thus generating a
compilation error. This was needed for the accessibility support
of the print dialog.

bug:10631660

2. Disabling the spinners or the print button did not produce
visual feedback leading to user frustration.

bug:10741907

Change-Id: I0c12eddabc4035bc7becd1b86c1f1b8fdcf4289c
es/color/item_text_color.xml
es/layout/print_job_config_activity_container.xml
es/layout/print_job_config_activity_content_editing.xml
es/layout/spinner_dropdown_item.xml
es/values/constants.xml
es/values/styles.xml
rc/com/android/printspooler/PrintDialogFrame.java
10ee84ba18255f259edf6fa2e3aa33c02ac5340d 18-Sep-2013 Svetoslav Ganov <svetoslavganov@google.com> The printers in print dialog should not change position.

The FusedPrintersProvider was not ensuring the existing printers
are at the same position when a new dataset is loaded. As a result
the printers were moving in the UI and sometimes the currently
selected one changed. Now the provider makes sure printers are in
the same position.

bug:10748884

Change-Id: I7c6cd5b1b38fdb615ceaae87806b413272ffba18
rc/com/android/printspooler/FusedPrintersProvider.java
0cfebec522539722f294a99bc32437b5d9e4b27d 17-Sep-2013 Svetoslav <svetoslavganov@google.com> Merge "Print pooler crashes for some page ranges." into klp-dev
c3484024e1117b518f06b39c406ba20f961d592e 17-Sep-2013 Svetoslav <svetoslavganov@google.com> Print pooler crashes for some page ranges.

1. The print spooler fails to parse page ranges that end with
a dash, e,g, "1-", which are however valid inputs since the
user can continue typing to end up with a well-fromed range.

2. After a layout we are asking for the first selected page
to be written emulating print preview, thus increasing the
changes that apps will correctly implement the APIs.

bug:10743632

Change-Id: Ia74172d4fa6bce6ad93a0bc53da1aaa3fe8bef42
rc/com/android/printspooler/PrintJobConfigActivity.java
2fbd2a7f070f246ddafd9de94efa9a98861e9136 17-Sep-2013 Svetoslav <svetoslavganov@google.com> App UI freezes when printing. API clean up.

1. The UI of a printing app was freezing a little when calling the print
method since the print manager service was waiting for it to bind to the
print spooler which generated the print job id (and the initial print
job info really). Now the print manager service is responsible for job
id generation and does not not wait for the print spooler to spin. Hence,
the app UI is not blocked at all. Note that the print manager initiates
the binding to the spooler and as soon as it completes the spooler shows
the print UI which is hosted in its process. It is not possible to show
the print UI before the system is bound to the spooler since during this
binding the system passes a callback to the spooler so the latter can
talk to the system.

2. Changed the print job id to be an opaque class allowing us to vary the
way we generate print job ids in the future.

3. The queued print job state was hidden but the print job returned by the
print method of the print manager is in that state. Now now hidden.

4. We were incorrecly removing print job infos if they are completed or
cancelled. Doing that is problematic since the print job returned by
the print method allows the app to query for the job info after the
job has been say completed. Hence, an app can initiate printing and
get a print job whose state is "created" and hold onto it until after
the job is completed, now if the app asks for the print job info it
will get an info in "created" state even though the job is "completed"
since the spooler was not retaining the completed jobs. Now the spooler
removes the PDF files for the completed and cancelled print jobs but
keeps around the infos (also persisting them to disc) so it can answer
questions about them. On first boot or switch to a user we purge the
persisted print jobs in completed/cancelled state since they
are obsolete - no app can have a handle to them.

5. Removed the print method that takes a file since we have a public
PrintDocumentAdapter implementation for printing files. Once can
instantiate a PrintFileDocumentAdapter and pass it to the print
method. This class also allows overriding of the finish method to
know when the data is spooled and deleted the file if desired, etc.

6. Replaced the wrong code to slice a large list of parcelables to
use ParceledListSlice class.

bug:10748093

Change-Id: I1ebeeb47576e88fce550851cdd3e401fcede6e2b
ndroidManifest.xml
es/values/strings.xml
rc/com/android/printspooler/NotificationController.java
rc/com/android/printspooler/PrintJobConfigActivity.java
rc/com/android/printspooler/PrintSpoolerService.java
860f8a6b663ca96d30d17da09eca8caf065aae62 14-Sep-2013 Svetoslav Ganov <svetoslavganov@google.com> Spooler should not crash if print service config activities are not exported.

1. If a print service does not export its activities for settings and
adding printers the print spooler ignores them instead of crashing.
Also if the service is not enabled its activities are now ignored.

2. Added a dedicated permission for a print service to optionally
protect its settings and add printer activities such that only the
system can bind to them.

3. Fixed a crash in the print dialog if its content is detached
from the window and animators are running.

bug:10680224

Change-Id: I20b57d6622a15f9b2352ba78d04c44e67b316a15
ndroidManifest.xml
es/values/strings.xml
rc/com/android/printspooler/PrintJobConfigActivity.java
rc/com/android/printspooler/SelectPrinterFragment.java
651dd4e6ee6510caf9f15c51094a11121af17ec2 12-Sep-2013 Svetoslav <svetoslavganov@google.com> Remove unneeded print APIs and update the min margins APIs.

1. Removed unneeded code in Resolution that was storing its
label as resource and package name. We do not have predefined
resolutions, therefore we always persist the label.

2. Renamed the print attribute margins to minMargins to reflect
that these are the minimal margins the printer support. Updated
the docs as well.

3. Renamed the create method of all builder to build.

bug:10727487

Change-Id: Ie72ab8aaa5215b8bd2853885011b3b4efa4deb2e
rc/com/android/printspooler/FusedPrintersProvider.java
rc/com/android/printspooler/PrintJobConfigActivity.java
rc/com/android/printspooler/PrintSpoolerService.java
cc65b0c325b88c466763712f76148a6f5b8a5b3f 11-Sep-2013 Svetoslav <svetoslavganov@google.com> Not change the print options on printer change if possible.

If the user selects some print options from the dialog and then
changes the printer to one that has the same capabilities the
selections in the UI should not change.

bug:10631856

Change-Id: Ia76ce58c446815e3498d2f4b4739dee62d11d96a
rc/com/android/printspooler/PrintJobConfigActivity.java
c6066799ad130140159230d14451b429eb828755 11-Sep-2013 Svetoslav <svetoslavganov@google.com> Handle print serivce crashes.

1. Now after a print service crashes we are bringing it to the same
state of its lifecycle. For example, if a service does a discovery
and crashes we recreate the discovery session call the start
discovery method and so on.

2. Turned off debugging logs since we have fully fledged state dump.

bug:10697779

Change-Id: Id790537461428e96b197eef12258996bda2bd1ce
rc/com/android/printspooler/FusedPrintersProvider.java
rc/com/android/printspooler/PrintSpoolerService.java
rc/com/android/printspooler/RemotePrintDocumentAdapter.java
23e2bba4e17662e941c2c6672f66249aff4a0470 06-Sep-2013 Svetoslav <svetoslavganov@google.com> Merge "Spooler broken on upgrade." into klp-dev
1a3ef4fafb3dd774b42e4b9239cbde8ba13bb83a 06-Sep-2013 Svetoslav <svetoslavganov@google.com> Spooler broken on upgrade.

The spooler apk was signed with the platform certificate and used
a redundant shared user id. Now the spooler is signed with a default
certificate and uses the same share user id. Since the shared user
id is associated with the platform certificate the package manager
rejects the spooler apk because it requested the same shared user id
with a different certificate. This change removes the unnecessary
shared user id from the manifest.

Change-Id: I208ef17fc6c25e67338682e56f9ce0e7e9d65642
ndroidManifest.xml
56960fbd39706278dbcb9d6ee95e16fa6eff6c6e 05-Sep-2013 Svetoslav Ganov <svetoslavganov@google.com> Merge "Fixing some minor RTL bugs in print dialog" into klp-dev
a36285f3f2f74b1d2d5d0336ffe519ab9f6e062a 05-Sep-2013 Svetoslav <svetoslavganov@google.com> Bug fixes in the print dialog

1. Read/write async tasks of the persistence manger used by
the FusedPrintersProvider could be run more that once, so
create a new one every time.

2. The fake printer used to save to PDF should not be added
to printer history.

3. Removed print preview leftover code from the print dialog.

4. Save to PDF was not working on the second consecutive attempt.

5. The fisrt time the orientation change was ignored - regression

Change-Id: I8960ef2cf92dfeeec22fa8751ba8475092b5b65c
rc/com/android/printspooler/FusedPrintersProvider.java
rc/com/android/printspooler/PrintJobConfigActivity.java
a76233ae845da4bc9e3bcd89821701a747215e7b 05-Sep-2013 Svetoslav <svetoslavganov@google.com> Hiding some unneeded APIs,

1. Hide the MediaSize and Resolution constructors that take
package and resource Id.

2. Fix a bug and docs in creating portrait and landscape media
size.

Change-Id: If59992e355391de6ad6d14d4f7b3be8c8b6cc0e0
rc/com/android/printspooler/PrintSpoolerService.java
773f54de3de9bce7b6f915aa47ed686b161d77aa 03-Sep-2013 Svetoslav <svetoslavganov@google.com> Print API updated.

1. Removed the updatePrinters API on PrinterDiscoverySession.
Now re-adding a printer updates it.

2. Added getTrackedPrinters() API to allow a print service to
figure out which printers' state should be tracked by the
service.

3. Removed the APIs on PrintDocumentInfo that describe the
layout of the content as they are not needed. For example,
if the print attributes passed in layout require landscape
mode, the the app should just create a PDF page with the
wider side up and draw its content in portrait. The printer
will then rotate the page.

Change-Id: Idd72c6e9c129e8b17eef1236573a99773f8ff0a2
rc/com/android/printspooler/PrintJobConfigActivity.java
rc/com/android/printspooler/PrintSpoolerService.java
4cff92ac5b6d4a42a8b05eaeb7526d1928667132 04-Sep-2013 Svetoslav Ganov <svetoslavganov@google.com> Fixing some minor RTL bugs in print dialog

Change-Id: I164e3d3b643c885e9d6e65c24b1f5e2323e42c97
es/layout/print_job_config_activity_content_editing.xml
es/layout/spinner_dropdown_item.xml
9186d0cb2bd325d9b52da15dbd513937c1e42caa 03-Sep-2013 Svetoslav Ganov <svetoslavganov@google.com> Bug fixes in the printer dialog activity and fused printer loader.

1. Fused printers loader was not using the discovered printers to update the
historical ones. Now if a historical printer is discovered we update its state
with the discovered, i.e. most recent, information.

2. Fixed a bug in the destination adapter of the print job config dialog that
was leading to a crash if all printers item is selected when there are no
discovered printers.

3. Updated the add printers asset in the all printers screen.

4. Historical printers were not persisted by the print dialog activity.

5. Reduced the number of printers we send per transation to avoid the binder
transaction size limit. Added sending of printers in chunks in a place
this was missing.

Change-Id: I88b54888360bc0e53b06bd260c2b832d0d6454b6
es/drawable-hdpi/ic_menu_add.png
es/drawable-mdpi/ic_menu_add.png
es/drawable-xhdpi/ic_menu_add.png
es/menu/select_printer_activity.xml
rc/com/android/printspooler/FusedPrintersProvider.java
rc/com/android/printspooler/PrintJobConfigActivity.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
ndroid.mk
ndroidManifest.xml
es/values/strings.xml
rc/com/android/printspooler/FusedPrintersProvider.java
rc/com/android/printspooler/NotificationController.java
rc/com/android/printspooler/PrintJobConfigActivity.java
rc/com/android/printspooler/PrintSpoolerService.java
aec1417ca9eb63209668ac17da90cf8a07c6076c 27-Aug-2013 Svetoslav Ganov <svetoslavganov@google.com> 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
rc/com/android/printspooler/PrintJobConfigActivity.java
44720af55a8fdf991929983dad5d53c02851dd1e 21-Aug-2013 Svetoslav Ganov <svetoslavganov@google.com> Print UI bug fixing and printer discovery refactoring.

1. Added support for selecting a printer from the all printers activity
that is not in the initial printer selection drop down. The user
initially sees a sub set of the printers in the drop down and the
last option is to see all printers in a separate activity. Some
of the printers in the all printers activity are not shown in the
initial drop down.

2. Refactored printer discovery by adding (private for now) printer
discovery app facing APIs. These APIs are needed to support multiple
printer selection activities (print dialog and all printers activities)
and also the settings for showing all printers for a service.

Now multiple apps can request observing for printers and there is
a centralized mediator that ensures the same printer discovery
session is used. The mediator dispatches printer discovery specific
requests to print services. It also aggregates discovered printers
and delivers them to the interested apps. The mediator minimizes
printer discovery session creation and starting and stopping discovery
by sharing the same discovery session and discovery window with
multiple apps. Lastly, the mediator takes care of print services
enabled during discovery by bringing them up to the current
discovery state (create discovery session and start discovery if
needed). The mediator also reports disappearing of the printers
of a service removed during discovery and notifies a newly
registered observers for the currnet printers if the observers are
added during an active printer discovery session.

3. Fixed bugs in the print UI and implemented some UX tweaks.

Change-Id: I4d0b0c5a6c6f1809b2ba5dbc8e9d63ab3d48f1ef
ndroidManifest.xml
es/layout/print_job_config_activity_content_editing.xml
es/values/strings.xml
es/values/styles.xml
es/values/themes.xml
rc/com/android/printspooler/FusedPrintersProvider.java
rc/com/android/printspooler/PrintJobConfigActivity.java
rc/com/android/printspooler/PrintSpoolerService.java
269403b032f965ff3847eb982c2f697229dc5a92 15-Aug-2013 Svetoslav <svetoslavganov@google.com> Implemented advanced printer selection and API refactoring.

1. Added past printer history tracking and merging favorite printers
with discovered printers.

2. Added save as PDF support.

3. Added all printers activity with search capability and optional
add printers chooser (if any print service provides add printers
activity)

4. Refactored the printer discovery session APIs. Now one session
can have multiple window discovery windows and the session stores
the printers found during past discovery periods.

5. Merged the print spooler and the print spooler service - much
simpler and easier to maintain.

Change-Id: I4830b0eb6367e1c748b768a5ea9ea11baf36cfad
ndroidManifest.xml
es/drawable-hdpi/ic_menu_add.png
es/drawable-mdpi/ic_menu_add.png
es/drawable-xhdpi/ic_menu_add.png
es/layout/choose_printer_activity.xml
es/layout/print_job_config_activity_container.xml
es/layout/select_printer_activity.xml
es/layout/spinner_dropdown_item.xml
es/menu/choose_printer_activity.xml
es/menu/select_printer_activity.xml
es/values/strings.xml
es/values/themes.xml
rc/com/android/printspooler/AvailablePrinterProvider.java
rc/com/android/printspooler/ChoosePrinterActivity.java
rc/com/android/printspooler/DataLoader.java
rc/com/android/printspooler/DataProvider.java
rc/com/android/printspooler/FavoritePrinterProvider.java
rc/com/android/printspooler/FusedPrintersProvider.java
rc/com/android/printspooler/PrintJobConfigActivity.java
rc/com/android/printspooler/PrintSpooler.java
rc/com/android/printspooler/PrintSpoolerService.java
rc/com/android/printspooler/SelectPrinterActivity.java
rc/com/android/printspooler/SelectPrinterFragment.java
66160bb881470a691005c8ad4e9c31c41fd5f810 13-Aug-2013 Svetoslav <svetoslavganov@google.com> Partial implementation for the favorite and available printer tracking.

1. Added a dedicated class that keeps track of the user's favorite printers
based on past usage. We keep the last 50 uses and assign a decreasing weight
to older historical use records. The printer whose records' sum is the
largest is considered the favorite for the user and so on.

2. Factored out the printer discovery logic from the print job config activity
into a separate available printers provider class. It encapsulates all the
logic to communicated with the remote print services to discover printers,
keep track of added, updated, and removed printers.

3. Preliminary scetch of the printer chooser acitivty that will show all the
printers.

Change-Id: I5524665f2a9a565f186db85214d5e41a44f4812e
ndroidManifest.xml
es/layout/choose_printer_activity.xml
es/menu/choose_printer_activity.xml
es/values/strings.xml
rc/com/android/printspooler/AvailablePrinterProvider.java
rc/com/android/printspooler/ChoosePrinterActivity.java
rc/com/android/printspooler/DataLoader.java
rc/com/android/printspooler/DataProvider.java
rc/com/android/printspooler/FavoritePrinterProvider.java
rc/com/android/printspooler/PrintJobConfigActivity.java
rc/com/android/printspooler/PrintSpooler.java
55daead3c53a83ac300d76200dd4144f154e07d3 12-Aug-2013 Svetoslav Ganov <svetoslavganov@google.com> Fix the build

Change-Id: Icf3b339f7b300cc8673443fa8afd38ce78964683
rc/com/android/printspooler/PrintJobConfigActivity.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
rc/com/android/printspooler/NotificationController.java
rc/com/android/printspooler/PrintJobConfigActivity.java
rc/com/android/printspooler/PrintSpooler.java
rc/com/android/printspooler/PrintSpoolerService.java
695c7fa7a320f1e5b4b56aa7ed6a64c6220f6502 08-Aug-2013 Svetoslav Ganov <svetoslavganov@google.com> Print UI polish based on UX feedback.

1. Refreshed the print UI based on UX redlines.

2. Implemented tap outside cancel for the print job config activity
which is full-screen but pretends to be a dialog.

Change-Id: I5afc7cd40c696109d70af31536898cfcad91b2ab
es/layout/print_job_config_activity_container.xml
es/layout/print_job_config_activity_content_editing.xml
es/layout/print_job_config_activity_content_generating.xml
es/layout/spinner_dropdown_item.xml
es/values/colors.xml
es/values/strings.xml
es/values/styles.xml
rc/com/android/printspooler/PrintJobConfigActivity.java
32c5eb3bf89938ba2221e67362571628e1efd520 07-Aug-2013 Svetoslav Ganov <svetoslavganov@google.com> Update the print job dialog and added notification assets.

1. Update the transition between the print job edit dialog and the
generating print job dialog. Now the former shrinks into the
latter.

2. Added most of the notification assets.

Change-Id: I84f35df5cb4f71b86a103c16ab87fd4d108b055b
ndroidManifest.xml
es/drawable-hdpi/stat_notify_cancelling.png
es/drawable-hdpi/stat_notify_error.png
es/drawable-hdpi/stat_notify_print.png
es/drawable-mdpi/stat_notify_cancelling.png
es/drawable-mdpi/stat_notify_error.png
es/drawable-mdpi/stat_notify_print.png
es/drawable-xhdpi/stat_notify_cancelling.png
es/drawable-xhdpi/stat_notify_error.png
es/drawable-xhdpi/stat_notify_print.png
es/layout/generating_print_job_dialog.xml
es/layout/print_job_config_activity.xml
es/layout/print_job_config_activity_container.xml
es/layout/print_job_config_activity_content_editing.xml
es/layout/print_job_config_activity_content_generating.xml
es/values/colors.xml
es/values/strings.xml
es/values/themes.xml
rc/com/android/printspooler/NotificationController.java
rc/com/android/printspooler/PrintJobConfigActivity.java
14db9654f6c31e94fe9272776f1f1b8602a17fdc 06-Aug-2013 Svetoslav Ganov <svetoslavganov@google.com> Print UI polish (a.k.a. just the next iteration))

1. Added a dialog to show a spinner while the app is writing the
printed content.

2. Fixed print job config acitivity leaking.

3. Updated the notifications a bit.

Change-Id: I8314390135a49605ee11ab4ed14b210a29566745
es/layout/generating_print_job_dialog.xml
es/layout/print_job_config_activity.xml
es/values/strings.xml
rc/com/android/printspooler/NotificationController.java
rc/com/android/printspooler/PrintJobConfigActivity.java
rc/com/android/printspooler/PrintSpooler.java
55b5f8028a72d1da58835b6766798d781ad92b97 05-Aug-2013 Svetoslav Ganov <svetoslavganov@google.com> Disable print dialog spinners if there is only one option.

Change-Id: Ic9a46c737b592aeb6f78c962a7f9d53391a2b164
rc/com/android/printspooler/PrintJobConfigActivity.java
835835ee6f913408ac91678d6056896a2c5b25e3 05-Aug-2013 Svetoslav Ganov <svetoslavganov@google.com> Polish the print spooler loading of stored print jobs.

1. The singleton print spooler isntance is created when the print spooler
service gets a connection to the system and is destroyed when this
connection is removed. Note that if the spooler has work, then the
connection to the system will not be removed.

When the spooler is created, it reads the stored state and notifies the
system which in turn dispatches this to the print services.

When the system connects to the spooler and passes it a connection, we
schedule a delayed check whether there is work for the spooler. We do
not handle this immediately to avoid intermitted spinning on and off
of the spooler process if a client makes a sequence of queries while
the spooler has really no work.

2. Fixed a bug in the NotificationManagerService where adding a notification
and removing it immediately after that does not remove the notification.
The code that is adding a notification is run on a handler thread while
the code to remove it on the calling thread. This creates a race and
erroneous results. Now the removal is also scheduled on the handler.

3. Many small fixes here and there.

Change-Id: I6415c253139fa6616393fbe23c659d031a29e1f6
rc/com/android/printspooler/NotificationController.java
rc/com/android/printspooler/PrintJobConfigActivity.java
rc/com/android/printspooler/PrintSpooler.java
rc/com/android/printspooler/PrintSpoolerService.java
8c43376ea83a67414bd6823a472b76d41160239e 02-Aug-2013 Svetoslav Ganov <svetoslavganov@google.com> First cut of the print notifications.

1. Added notifications for a queued print job, for a started print job,
for ongoing canceling a print job, and for a failed print job. The
notifications for queued and started state have a cancel action. The
notification for failed print job has a cancel and a restart action.

2. Propagating failure message from the print service to the notifications.

3. PrintJobConfigActivity was not setting the initial value for the
print job copies and was not updating the UI immediately after creation.

4. Refactored PrintJobConfigActivity to avoid using the hack to avoid
reaction for item selection change in a spinner for an event that
happened before the callback was registered.

5. Removed the label attribute from PrinterInfo and now PrinterId is
composed of the printer name and the service component name. This
is nice since for restarting print jobs we do not need to store
information about the printer except the printer id which is
already part of the PrintJobInfo's data. Also the printer name
is not expected to change anyway.

6. Allowing cancellation of a queued print job. Also no print job is
cancelled without asking the managing print service to do that.
Before we were immediately canceling print jobs in queued state
but it was possible for a buggy print service to not set the
print job state to started before starting to do expensive work
that will not be canceled.

7. PrintServiceInfo was throwing an exception the the meta-data
XML for the print service was not well-formed which would crash
the system process. Now we just ignore not well-formed meta-data.

8. Removed unused permissions from the PrintSpooler's manifest.

Change-Id: Iba2dd14b487f56e137b90d1da17c3033422ab5e6
ndroidManifest.xml
es/values/strings.xml
rc/com/android/printspooler/NotificationController.java
rc/com/android/printspooler/PrintJobConfigActivity.java
rc/com/android/printspooler/PrintSpooler.java
rc/com/android/printspooler/PrintSpoolerService.java
55b409a97cf6376399a0940313ea852368727d6f 01-Aug-2013 Svetoslav Ganov <svetoslavganov@google.com> Iteration of the print sub-system.

1. Added APIs for adding partially initialized PrintInfo objects
enabling light-weight lookps for print serivces that want to
populate the list of available printers without querying each
of them for its capabilities. This includes APIs for the system
to request from a print service to update certain printers.

2. Fixed a bug in PrinterId#equals().

3. Added equals and hasCode implementaion to PrinterInfo. Also
the defaul in PrinterInfo are now an array instead of a
SparseArray - cheaper.

4. Now PrintJobConfigActivity works with partially specified
printers. Specifically, if such a printer is selected the
activity is requesting from the print service to update
the printer. We are currently not handling the timeout case.
It also handles udpated pritners.

Change-Id: I5e83e924ef597c9e22cbd06a971d4f4d3bd3a9c1
rc/com/android/printspooler/PrintJobConfigActivity.java
rc/com/android/printspooler/PrintSpooler.java
85b1f883056a1d74473fd9ce774948878f389ab6 25-Jul-2013 Svetoslav Ganov <svetoslavganov@google.com> Iteration on the print sub-system.

1. API changes: Moved copies API from PrintAttributes to PrintJobInfo;
Changed the PageRange list to an array in PrintDocumentAdapter#onWrite;
Added onCancelled method to the layout and write callbacks.

2. Refactored the serialization of remote layout and write commands. Now
the commands are serialized by the code in the client instead in the spooler.
The benefit is simple code since the client has to do a serialization to delegate
to the main thread anyway. The increased IPC found is fine since these calls
are quite unfrequent.

3. Removed an unused file: IPrintSpoolerObserver.aidl

4. Added equals and hasCode implementation to PageRange, PrintAttributes,
MediaSize, Resolution, Margins, Tray, PrintDocumentInfo.

5. Added shortcut path for query APIs on PrintJob that return cached values
if the print job is in a uncuttable state, i.e. completed or cancelled. Failed
print jobs can be restarted.

6. PrintJobInfo was not properly serialized.

7. Updated the look of the print dialog to be stable if there is and there isn't
currently selected printer.

8. PrintJobCOnfigActivity now calls onLayout on every print attributes change
but requests a write only on print preview or print button press. Also if the
layout did not change the content and it is already written no subsequent
call is made. Also if the selected pages change and we already have them
no subsequent call to write is made. Also the app is called with print preview
attribute set when performing layout and with it cleared after the print button
is pressed. A lot of changes making sure that only valid actions are enabled
in the activity (looks like a dialog) at a given time frame. The print job config
activity is also hidden after we got all the data, i.e. layout and write are done.

9. The callback from the print spooler to the system are scheduled via messages
to avoid lock being held during the call. It was hard to guarantee that since a
method holding a lock may be calling one that would like to release the lock
at some point to make the callbacks.

10. Print spooler state is persisted only if something changes in a completed
print job, i.e. not one that is being constructed due the print job config dialog.

11. Fixed a potential race in the RemotePrintSpooler where it was possible that
a client that got a handle to the remote spooler calls into an unbound spooler.
E.g: the client gets the remote interface with a lock held, now the client releases
the lock to avoid IPC with a lock, during the IPC scheduling the spooler has
notified the system that it is done and the system unbinds from it, now the
client's IPC is made to a spooler that is disconnected.

Change-Id: Ie9c42255940a27ecaed21a4d326a663a4788ac9d
es/layout/print_job_config_activity.xml
es/values/strings.xml
rc/com/android/printspooler/PrintJobConfigActivity.java
rc/com/android/printspooler/PrintSpooler.java
rc/com/android/printspooler/PrintSpoolerService.java
rc/com/android/printspooler/RemotePrintDocumentAdapter.java
0d1daa50f6d180c57f92596501e2e5c0b5ef9997 23-Jul-2013 Svetoslav Ganov <svetoslavganov@google.com> Updating the print dialog and its interactinos with the printing app.

1. Added support for reporting the old print attributes during layout.
Now we keep track of the old print attributes, so the app can
compute the delta and decide whether re-layout work is needed.

2. Fixed PrintDocumentAdapter callback interleavings. Layout callbacks
were intermixing with write ones - a mess. Now we make an attempt
to cancel layout and write if they respond to cancellation, otherwise
we wait but do not interleave them.

3. Refactored the PrintJobConfigActivity for easier maintenance and
to have a single update UI method that does the minimal amount
of work.

Change-Id: I31ada1a0550882e6185018e6f17f923aed165d15
es/layout/print_job_config_activity.xml
es/values/constants.xml
es/values/strings.xml
rc/com/android/printspooler/PrintJobConfigActivity.java
rc/com/android/printspooler/RemotePrintDocumentAdapter.java
88d199130d44c6bacb383a7757e782cf97483c68 22-Jul-2013 Svetoslav Ganov <svetoslavganov@google.com> 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
ndroid.mk
rc/com/android/printspooler/PrintSpooler.java
rc/com/android/printspooler/PrintSpoolerService.java
597945fd3a6b52ac70bb9afc5ec8c59039fffd77 18-Jul-2013 Svetoslav <svetoslavganov@google.com> First pass of the print dialog UX

Change-Id: I315a16d7f68c73ca180c76e722847b4b1bdea55b
ndroidManifest.xml
es/layout/print_job_config_activity.xml
es/layout/spinner_dropdown_item.xml
es/menu/print_job_config_activity.xml
es/values/constants.xml
es/values/strings.xml
rc/com/android/printspooler/PrintJobConfigActivity.java
rc/com/android/printspooler/PrintSpooler.java
rc/com/android/printspooler/PrintSpoolerService.java
rc/com/android/printspooler/RemotePrintDocumentAdapter.java
6283608e0bd40548742839f5a8b02f7e5c9c5c7c 17-Jul-2013 Svetoslav <svetoslavganov@google.com> Tweak the print APIs.

1. Adding bundle with metadata to PrintDocumentAdapter#onLayout
with one key for now to specify whether this is for a preview.

2. Cleaned up docs.

Change-Id: I89380781bf3ae41aa89f8a0347d74516a210394c
rc/com/android/printspooler/PrintJobConfigActivity.java
rc/com/android/printspooler/RemotePrintDocumentAdapter.java
17b7f6e6d4ec9f5e9597bfd283f1c017b6c66275 25-Jun-2013 Svetoslav <svetoslavganov@google.com> Clean up of the print APIs.

1. Fixed a case in which the onPrintCompleted callback may not be invoked.

2. Added string resulrces for the different error messages for failed
printing in OnPrintCompletedCallback

3. Fixed the string comments for the MediaSize constants.

4. Added APIs to create certain print attributes by passing in a
string label instead of resource and package name since in some cases
a print service may be getting already internationalized lables
or it may not know all possible values.

5. Fixed a crash in PrintJobConfigActivity if there is no input or
output tray.

Change-Id: Ie877b7dc669051606394aa290e6d2b979a42db4c
rc/com/android/printspooler/PrintJobConfigActivity.java
a00271533f639c8ed36429c663889ac9f654bc72 25-Jun-2013 Svetoslav Ganov <svetoslavganov@google.com> Refactoring of the print sub-system and API clean up.

1. Now a user state has ins own spooler since the spooler app is
running per user. The user state registers an observer for the state
of the spooler to get information needed to orchestrate unbinding
from print serivces that have no work and eventually unbinding from
the spooler when all no service has any work.

2. Abstracted a remote print service from the perspective of the system
in a class that is transparently managing binding and unbinding to
the remote instance.

3. Abstracted the remote print spooler to transparently manage binding
and unbinding to the remote instance when there is work and when
there is no work, respectively.

4. Cleaned up the print document adapter (ex-PrintAdapter) APIs to
enable implementing the all callbacks on a thread of choice. If
the document is really small, using the main thread makes sense.

Now if an app that does not need the UI state to layout the printed
content, it can schedule all the work for allocating resources, laying
out, writing, and releasing resources on a dedicated thread.

5. Added info class for the printed document that is now propagated
the the print services. A print service gets an instance of a
new document class that encapsulates the document info and a method
to access the document's data.

6. Added APIs for describing the type of a document to the new document
info class. This allows a print service to do smarts based on the
doc type. For now we have only photo and document types.

7. Renamed the systemReady method for system services that implement
it with different semantics to systemRunning. Such methods assume
the the service can run third-party code which is not the same as
systemReady.

8. Cleaned up the print job configuration activity.

9. Sigh... code clean up here and there. Factoring out classes to
improve readability.

Change-Id: I637ba28412793166cbf519273fdf022241159a92
rc/com/android/printspooler/PrintJobConfigActivity.java
rc/com/android/printspooler/PrintSpooler.java
rc/com/android/printspooler/PrintSpoolerService.java
rc/com/android/printspooler/RemotePrintAdapter.java
rc/com/android/printspooler/RemotePrintDocumentAdapter.java
fd90651cfcc7e2b75254666fd6861038b72fb4ac 24-Jun-2013 Svetoslav <svetoslavganov@google.com> Print APIs documentation update

Change-Id: I0df438e45ef540cc42c9ee5baafc816ebafa1c7b
rc/com/android/printspooler/RemotePrintAdapter.java
4b9a4d16872bbb50712e007b419ac0b35ff1582d 12-Jun-2013 Svetoslav Ganov <svetoslavganov@google.com> Print - platform APIs

Related changes:
Skia (inlcude PDF APIs): https://googleplex-android-review.googlesource.com/#/c/305814/
Canvas to PDF: https://googleplex-android-review.googlesource.com/#/c/319367/
Settings (initial version): https://googleplex-android-review.googlesource.com/#/c/306077/
Build: https://googleplex-android-review.googlesource.com/#/c/292437/
Sample print services: https://googleplex-android-review.googlesource.com/#/c/281785/

Change-Id: I104d12efd12577f05c7b9b2a5e5e49125c0f09da
ndroid.mk
ndroidManifest.xml
ODULE_LICENSE_APACHE2
OTICE
es/layout/print_job_config_activity.xml
es/menu/print_job_config_activity.xml
es/values/strings.xml
rc/com/android/printspooler/PrintJobConfigActivity.java
rc/com/android/printspooler/PrintSpooler.java
rc/com/android/printspooler/PrintSpoolerService.java
rc/com/android/printspooler/RemotePrintAdapter.java