309 Commits

Author SHA1 Message Date
Baligh Uddin
cff08b4cab Import translations. DO NOT MERGE
Change-Id: I73cde7061a849fa76822f468ec79c7eb9021c9be
Auto-generated-cl: translation import
2013-11-17 16:32:31 -08:00
Baligh Uddin
5b3574a9aa Merge "Import translations. DO NOT MERGE" 2013-11-15 06:36:35 +00:00
Svetoslav
573f0db661 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.
2013-11-14 22:34:12 -08:00
Baligh Uddin
18658d1863 Import translations. DO NOT MERGE
Change-Id: Ie93ca6d1a6baab26ef47fca55e5d3f27efb5997b
Auto-generated-cl: translation import
2013-11-14 22:33:34 -08:00
Svetoslav
172c5a2473 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.
2013-11-14 22:30:52 -08:00
Svetoslav
d2b27cbde9 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.
2013-11-14 22:27:35 -08:00
Svetoslav
885810de69 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
2013-11-14 18:02:31 -08:00
Svetoslav
1b967a1b23 resolved conflicts for merge of 9358d98d to master
Change-Id: I1facdcec6eeaa10805300c9d634957fbb86815d3
2013-11-13 18:43:32 -08:00
Svetoslav Ganov
9358d98d83 am 852a8895: am d697ba73: Merge "Fix NPE at PrintSpooler in Japanese environment." into klp-dev
* commit '852a8895e18ad578a4c299d13615a4cbb3ee1211':
  Fix NPE at PrintSpooler in Japanese environment.
2013-11-13 14:27:54 -08:00
Svetoslav Ganov
852a8895e1 am d697ba73: Merge "Fix NPE at PrintSpooler in Japanese environment." into klp-dev
* commit 'd697ba73b5a5fc5dc502a117a8f06e8f1a5359b9':
  Fix NPE at PrintSpooler in Japanese environment.
2013-11-13 14:24:23 -08:00
Keiji Ariyama
1a8c7135f0 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
2013-11-13 11:43:26 -08:00
Baligh Uddin
de0bb5a097 Import translations. DO NOT MERGE
Change-Id: I44ee60eb6a5bf5ec7099461ecf11930436a1fc05
Auto-generated-cl: translation import
2013-11-11 08:12:59 -08:00
Baligh Uddin
9c530e1855 Import translations. DO NOT MERGE
Change-Id: I75eb5e47f9851174f7bd7e8301537bf7c94a8b5a
Auto-generated-cl: translation import
2013-11-11 08:11:33 -08:00
Baligh Uddin
6ccf625559 Import translations. DO NOT MERGE
Change-Id: I659e58b641a7a154bca5ea33413aff6cde07635a
Auto-generated-cl: translation import
2013-11-06 11:54:16 -08:00
Baligh Uddin
3b79bf493c Import translations. DO NOT MERGE
Change-Id: I13dd4dfd6492c31975cd61e28caeea940a5f66cb
Auto-generated-cl: translation import
2013-11-06 11:53:23 -08:00
Svetoslav
8045a50ed1 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.
2013-11-05 14:22:45 -08:00
Svetoslav
b066a136d7 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.
2013-11-05 14:22:41 -08:00
Svetoslav
05d15b36bf am 3976afb5: am c445b3f2: Merge "Add missing null pointer check in PrintSpoolerService." into klp-dev
* commit '3976afb5ac2036864f8d75c26e144c5761c6b20c':
  Add missing null pointer check in PrintSpoolerService.
2013-11-05 13:26:44 -08:00
Svetoslav
d4879eec5f 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.
2013-11-05 13:26:40 -08:00
Svetoslav
3976afb5ac am c445b3f2: Merge "Add missing null pointer check in PrintSpoolerService." into klp-dev
* commit 'c445b3f2cba67b7dbb8f926ef5e80ec14fb2f8d4':
  Add missing null pointer check in PrintSpoolerService.
2013-11-04 19:35:38 -08:00
Svetoslav
628264c4f3 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.
2013-11-04 19:35:35 -08:00
Svetoslav
c445b3f2cb Merge "Add missing null pointer check in PrintSpoolerService." into klp-dev 2013-11-05 03:33:37 +00:00
Svetoslav
75d28505c8 Add missing null pointer check in PrintSpoolerService.
bug:11474389

Change-Id: I80ea01ba04ab71a212c1f78af62b377110ed072a
2013-11-04 18:26:54 -08:00
Svetoslav
1c664b6def 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
2013-11-04 14:25:11 -08:00
Baligh Uddin
e63f9ded6b Merge "Import translations. DO NOT MERGE" 2013-11-01 14:34:45 +00:00
Baligh Uddin
2bc2574e60 Merge "Import translations. DO NOT MERGE" into klp-dev 2013-11-01 14:34:40 +00:00
Svetoslav
7b4bb2f75e 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.
2013-10-31 14:51:45 -07:00
Svetoslav
4379bd7518 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.
2013-10-31 14:48:22 -07:00
Svetoslav
eccfe65f9d 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.
2013-10-31 14:44:50 -07:00
Svetoslav
d270cb9264 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
2013-10-31 14:30:58 -07:00
Baligh Uddin
407fd711d3 Import translations. DO NOT MERGE
Change-Id: I1a818740cb5af5e65e17c7d3716b59b261e560b1
Auto-generated-cl: translation import
2013-10-30 08:53:50 -07:00
Baligh Uddin
f1228e3550 Import translations. DO NOT MERGE
Change-Id: I6275ae5da91b961e11974efd80e6b4947bd44972
Auto-generated-cl: translation import
2013-10-30 08:53:01 -07:00
Svetoslav
cdc2280a6e 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.
2013-10-28 15:15:45 -07:00
Svetoslav
0298ebb2db am 60fb1e28: am 714ba345: Merge "Complete implementation of the advanced print options." into klp-dev
* commit '60fb1e28375b9c0dc7505214f3ab33bdd38f7aa8':
  Complete implementation of the advanced print options.
2013-10-28 15:12:26 -07:00
Svetoslav
60fb1e2837 am 714ba345: Merge "Complete implementation of the advanced print options." into klp-dev
* commit '714ba34556572d36b1f9f8d9b860c4da24da6361':
  Complete implementation of the advanced print options.
2013-10-28 15:09:12 -07:00
Svetoslav
b4fda13476 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
2013-10-28 11:44:07 -07:00
Svetoslav Ganov
9f598351ca 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.
2013-10-25 14:04:56 -07:00
Svetoslav Ganov
01b1e66135 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.
2013-10-25 13:54:07 -07:00
Svetoslav Ganov
1aae2c4777 am 2a40da55: Merge "Update the documentaton of the android.print package." into klp-dev
* commit '2a40da558b267b91ed0b0c9090656bdc02db2833':
  Update the documentaton of the android.print package.
2013-10-25 13:51:45 -07:00
Svetoslav Ganov
2a40da558b Merge "Update the documentaton of the android.print package." into klp-dev 2013-10-25 20:48:45 +00:00
Svetoslav Ganov
4d4c66dd38 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
2013-10-25 11:33:34 -07:00
Baligh Uddin
383813e33f Import translations. DO NOT MERGE
Change-Id: I5fb89f28b23b715dc5de02a0c507cb5eba9ff7f5
Auto-generated-cl: translation import
2013-10-21 08:30:11 -07:00
Baligh Uddin
d33e5f4d99 Import translations. DO NOT MERGE
Change-Id: I1609ae278c6e7fe7af1d440df91940e0a0b07e45
Auto-generated-cl: translation import
2013-10-21 08:29:27 -07:00
Svetoslav Ganov
e9ffeac138 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.
2013-10-18 17:35:31 -07:00
Svetoslav Ganov
8a51e2f48c 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.
2013-10-18 17:32:57 -07:00
Svetoslav Ganov
a53e1f8138 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.
2013-10-18 17:29:05 -07:00
Svetoslav Ganov
237575278d Merge "Hide the print dialog if the printing activity is destroyed." into klp-dev 2013-10-19 00:26:44 +00:00
Svetoslav
d431ffbe30 am 1fb5ea38: am 0acad1de: am 30d9161b: Merge "Printer list items have wrong width." into klp-dev
* commit '1fb5ea38533b0a163194441f4f28cd64a5835446':
  Printer list items have wrong width.
2013-10-18 13:34:07 -07:00
Svetoslav
1fb5ea3853 am 0acad1de: am 30d9161b: Merge "Printer list items have wrong width." into klp-dev
* commit '0acad1de81799f765863118092caef0b6d306df5':
  Printer list items have wrong width.
2013-10-18 13:30:28 -07:00
Svetoslav
0acad1de81 am 30d9161b: Merge "Printer list items have wrong width." into klp-dev
* commit '30d9161b8e84652d9ac504b70adacaf729fdb58b':
  Printer list items have wrong width.
2013-10-18 13:28:32 -07:00