687 Commits

Author SHA1 Message Date
Svet Ganov
d1cd77254b 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.
2014-10-24 21:27:22 +00:00
Svet Ganov
7cf7c36438 Merge "Crash in print spooler if printing app killed from recents." into lmp-mr1-dev 2014-10-24 20:32:19 +00:00
Svet Ganov
4237c92d85 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
2014-10-24 13:01:54 -07:00
Svet Ganov
15254095f8 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.
2014-10-24 16:58:04 +00:00
Svet Ganov
026e959d11 am 0abcda59: am fdef09ec: Merge "Sometimes historical printers not properly ordered." into lmp-mr1-dev
* commit '0abcda5929aac1746219c87dbdd26c33d990f3c6':
  Sometimes historical printers not properly ordered.
2014-10-24 16:52:44 +00:00
Svet Ganov
2916f658c9 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
2014-10-23 20:10:10 -07:00
Svet Ganov
a4b101abc1 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.
2014-10-24 02:14:02 +00:00
Svet Ganov
532f0a2954 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.
2014-10-24 02:03:10 +00:00
Svet Ganov
9920a0dcf1 Merge "Set copies to one when saving to PDF." into lmp-mr1-dev 2014-10-23 23:17:04 +00:00
Svet Ganov
45e50e99cd 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
2014-10-23 19:43:54 +00:00
Geoff Mendal
2107d3c103 Import translations. DO NOT MERGE
Change-Id: Ie1293460014a50bb5a6e35258ccbba37fa005e3d
Auto-generated-cl: translation import
2014-10-20 06:16:17 -07:00
Svetoslav
d0502d37fc 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.
2014-10-15 02:22:15 +00:00
Svetoslav
4e3b2426ac 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.
2014-10-15 02:07:02 +00:00
Svetoslav
0c8e15c016 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.
2014-10-14 22:21:45 +00:00
Svetoslav
60cdb90930 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.
2014-10-14 22:15:26 +00:00
Svetoslav
9784d4b8f3 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.
2014-10-14 22:15:09 +00:00
Svetoslav
05e041b013 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
2014-10-14 14:16:12 -07:00
Geoff Mendal
7ae1953d24 Import translations. DO NOT MERGE
Change-Id: I600e821cd0067e2d5178dd08aef5890bc8abeb4b
Auto-generated-cl: translation import
2014-10-13 06:36:34 -07:00
Svet Ganov
d9bc67bfcc 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.
2014-10-07 22:53:46 +00:00
Svet Ganov
0d70c69f25 am e0818520: am 40014e1d: Merge "Custom print settings cannot change resolution." into lmp-mr1-dev
* commit 'e081852014538b01f06c61ea8c2f1499606a1d8a':
  Custom print settings cannot change resolution.
2014-10-07 22:49:09 +00:00
Svet Ganov
2eb7fadcd6 Custom print settings cannot change resolution.
bug:17677133

Change-Id: Ib8a24101f12d431fe221c1e91711d93a6a517273
2014-10-07 15:32:31 -07:00
Geoff Mendal
7fad343e29 Import translations. DO NOT MERGE
Change-Id: I3638ac261b138409a73c927c8c3d2f6e4040e52b
Auto-generated-cl: translation import
2014-10-06 10:59:40 -07:00
Geoff Mendal
c1a064dd94 Import translations. DO NOT MERGE
Change-Id: I391b269b0d535fa7d8a4082cb0271b0aeb16a497
Auto-generated-cl: translation import
2014-10-06 10:56:58 -07:00
Geoff Mendal
f65288da06 Import translations. DO NOT MERGE
Change-Id: Ieb7aeaea1204f4ba7daf3abd7a30f647564807dd
Auto-generated-cl: translation import
2014-10-06 10:55:10 -07:00
Geoff Mendal
86dec04749 Import translations. DO NOT MERGE
Change-Id: I2100b649d1f2866cdc5ffd13f264afba347b6685
Auto-generated-cl: translation import
2014-10-06 10:54:01 -07:00
Svetoslav
4113147a51 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.
2014-09-30 16:18:13 +00:00
Svetoslav
6545f1ec7e 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.
2014-09-30 16:18:09 +00:00
Svetoslav
ab1e1bdbdc 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.
2014-09-30 14:57:19 +00:00
Svetoslav
7e7e23f50c 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.
2014-09-30 14:57:14 +00:00
Svetoslav
ce8d47600b 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.
2014-09-30 14:55:04 +00:00
Svetoslav
ed62f5d8c8 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.
2014-09-30 14:55:03 +00:00
Svetoslav
59bb49fbf7 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.
2014-09-29 02:55:26 +00:00
Svetoslav
1fd7359038 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.
2014-09-29 02:55:18 +00:00
Svetoslav
922fcc2f9e Merge "Crash in print spooler if save to PDF selected early." into lmp-dev 2014-09-28 21:00:23 +00:00
Svetoslav
e1dcb397d5 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
2014-09-28 20:05:57 +00:00
Svetoslav
528424c26c 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
2014-09-28 20:05:45 +00:00
Svetoslav
ca33504512 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.
2014-09-24 23:03:03 +00:00
Svetoslav
067f3fbfdf 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.
2014-09-24 22:54:15 +00:00
Svetoslav
9ad7872095 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.
2014-09-24 20:34:05 +00:00
Svetoslav
9aacf5d3f2 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.
2014-09-24 20:33:54 +00:00
Svetoslav
d23bfa9d42 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
2014-09-24 13:22:35 -07:00
Svetoslav
418cf8fbb2 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.
2014-09-24 17:19:00 +00:00
Svetoslav
0c62b9f217 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.
2014-09-24 17:17:29 +00:00
Svetoslav
f64d6f8baf 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.
2014-09-24 17:17:24 +00:00
Svetoslav
eaf576b0b0 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.
2014-09-24 16:20:50 +00:00
Svetoslav
f61ed942cd am 15c86a84: Merge "Missing pages in print preview when scorolling." into lmp-dev
* commit '15c86a84a5b595b43eecec611de22e6bd0c0eea4':
  Missing pages in print preview when scorolling.
2014-09-24 15:33:58 +00:00
Svetoslav
721e549ca6 am 15c86a84: Merge "Missing pages in print preview when scorolling." into lmp-dev
* commit '15c86a84a5b595b43eecec611de22e6bd0c0eea4':
  Missing pages in print preview when scorolling.
2014-09-24 15:33:56 +00:00
Svetoslav
2bac6129a4 Merge "Missing pages in print preview when scorolling." into lmp-dev 2014-09-24 15:24:25 +00:00
Svetoslav
237806bbc5 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
2014-09-23 21:29:48 -07:00
Svetoslav
b977307573 am 35e8b096: am 205840f0: am 097cf25e: am 857f8013: Merge "Fix ANR in print spooler." into lmp-dev
* commit '35e8b096238da4f461f973f479c154b2dd23b307':
  Fix ANR in print spooler.
2014-09-24 04:13:28 +00:00