982 Commits

Author SHA1 Message Date
Hiroaki Kuriyama
36bebe8420 PrintSpooler: Remove recommendation if Play Store is not installed
Sympton:
If Play Store (com.android.vending) is not installed, printer
recommendation function which guides a user to Play Store is useless.

Root-cause:
Even if Play Store is not installed,
PrintSpooler tries to start an activity for market:// with package
names in Play Store.

Solution:
Hide printer recommendation UI and show "No print services enabled"
if there is no printer service.

Change-Id: I0b2eabbd57bc47c6382f53e610e33252ea359390
2017-02-14 21:21:16 +09:00
Bill Yi
44fc3e0900 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 32177112
Change-Id: Ia301c54a58d496c9608939c12e18491d3c4df1f6
2016-11-20 14:15:31 -08:00
Philip P. Moltmann
daf21fa96e Size print destination to support font sizing am: cb1926afba
am: c0bbf28dca

Change-Id: If2498722901cd25033a520914b54ef55c2709ebb
2016-08-30 02:16:06 +00:00
Philip P. Moltmann
c0bbf28dca Size print destination to support font sizing
am: cb1926afba

Change-Id: I2c49f14994f07c719457c2bdf88ddec874ff0014
2016-08-29 22:02:36 +00:00
Philip P. Moltmann
cb1926afba Size print destination to support font sizing
Fixes: 31152374
Change-Id: I1560d6d300174ec0665157fa4f2c485d64f871ad
2016-08-29 18:03:19 +00:00
Bill Yi
225d865289 Import translations. DO NOT MERGE
Change-Id: I6533c97bd143d63e3ddaa5ef7d86edcbe1dbb611
Auto-generated-cl: translation import
2016-08-19 18:06:27 -07:00
Philip P. Moltmann
36d68891a5 Handle reset of recommended services am: fe789f3189
am: bc11f26a09

Change-Id: Id23a5eac08cfa6ce88205cb826c6d2fc6eb4b3fe
2016-07-29 19:55:18 +00:00
Philip P. Moltmann
fe789f3189 Handle reset of recommended services
Change-Id: I778f8b7a081d433ca0f21361c2ca8dcd48303935
Fixes: 30389837
2016-07-26 09:45:53 -07:00
Philip P. Moltmann
28c09c612f Set title in onCreate.
am: fef31ad5ae

Change-Id: Ide036a4f9bed9953040be7aa0f0fee26f9c84c82
2016-07-25 23:05:10 +00:00
Philip P. Moltmann
fef31ad5ae Set title in onCreate.
This makes sure the accessibility service recognizes the correcy title.

Fixes: 30220082
Change-Id: Ieaa37818a55c7b2e543bbe8bd8836996ef0529d2
2016-07-25 13:08:19 -07:00
Bill Yi
43c1a5dc97 Import translations. DO NOT MERGE
Change-Id: I5818fd932d01bc4ccfcd7204f013151604693bd3
Auto-generated-cl: translation import
2016-07-20 14:53:17 -07:00
Philip P. Moltmann
42ec9b86b1 Merge \"Always trigger a write if no pages are written\" into nyc-mr1-dev
am: 965a706282

Change-Id: Id046f9aef66e0217644116fe8221d05fe5e960a3
2016-07-14 17:28:56 +00:00
Philip P. Moltmann
fde8ecc2ea Always trigger a write if no pages are written
If a previous write was canceled we can end up in the situation where
the layout reports "not changes since layout" but no pages have been
written.

In this case we have to trigger a write even if the layout reports that
nothing changed.

Fixes: 24110832
Change-Id: I4b3f69581e63f4084cd3712861288ded7d9c9249
2016-07-14 05:14:51 +00:00
Andrew Sapperstein
69bee9bbcc Merge \"Use colorControlHighlight for print button ripple.\" into nyc-mr1-dev
am: 4e5008c4c5

Change-Id: Ide94360486909773a55734140efd3d29adfdd239
2016-07-14 00:08:21 +00:00
Andrew Sapperstein
4e5008c4c5 Merge "Use colorControlHighlight for print button ripple." into nyc-mr1-dev 2016-07-14 00:00:26 +00:00
Andrew Sapperstein
418e09fc43 Use colorControlHighlight for print button ripple.
Instead of using #eeff41 (a random shade of yellow), use
the default color for ripples.

Change-Id: I32fc7e9a10a994deb2066941c96457ad8549dd11
Fixes: 30115080
2016-07-13 13:04:13 -07:00
Philip P. Moltmann
5a4d4c4091 Merge \"Set PrintDocumentInfo#mDataSize\" into nyc-mr1-dev
am: ba229ce88a

Change-Id: If8a117c396ef206afaa86e9d4fad7c0dcc182a17
2016-07-11 23:30:51 +00:00
Philip P. Moltmann
76801da1f6 Set PrintDocumentInfo#mDataSize
... while configuring and when the final PrintDocumentInfo is set.

Fixes: 30001353
Change-Id: I744929422525508185f5748aca1b018e46d7666f
2016-07-07 18:42:07 +00:00
Philip P. Moltmann
4c1327dfaf Merge \"Prevent PrintRegistry callbacks when finishing\" into nyc-mr1-dev
am: 4b24c48e23

Change-Id: I937876d007e0102e5dcd1f451638543d23941ce6
2016-07-01 15:49:23 +00:00
Philip P. Moltmann
2eae8eb7e2 Prevent PrintRegistry callbacks when finishing
Previously these callbacks could happen while we clean up the print
preview controller. Then these callbacks called in destroyed and cleaned
up modules.

Fixes: 29874802
Change-Id: I5d8497e3364b97a33a837f8e3e825e5d254592f9
2016-06-30 17:38:06 +00:00
Philip P. Moltmann
c76f44fab4 Merge \"Syncronize renderPage vs. onServiceDisconnected\" into nyc-mr1-dev
am: c7c647bbf0

Change-Id: Ibd18df2822dbb0993eb4fc22392c3c523197c540
2016-06-28 16:18:09 +00:00
Philip P. Moltmann
3cf17ad26d Syncronize renderPage vs. onServiceDisconnected
An async renderPage request might be in progress while the service is
getting disconnected.

Fixes: 29639740
Change-Id: I8a33e5fba96dd76ecb1e14d0e3a26334eb8965a5
2016-06-27 21:06:42 +00:00
Philip P. Moltmann
ce7fc6c0a1 Merge \"Do not launch non exposed add printer activity\" into nyc-dev
am: 737be111cc

Change-Id: Ief45b4a87071215700eaba8c21d0aff8ab0c8911
2016-06-23 01:55:52 +00:00
Philip P. Moltmann
89fe3e0169 Merge \"Do not launch non exposed add printer activity\" into nyc-dev
am: 737be111cc

Change-Id: Ib4ebd8ed3605de40b974a8a1417f0a8bac31d1e6
2016-06-23 01:55:13 +00:00
Philip P. Moltmann
61209bc924 Do not launch non exposed add printer activity
Change-Id: I0b9b11ea0ce0140c77dff2539b1a0a9dcf1558b0
Fixes: 29580579
2016-06-22 16:41:22 -07:00
Philip P. Moltmann
5fe5dcdfd6 Merge \"Cache resources needed to sort media sizes.\" into nyc-dev
am: 142fc425c4

Change-Id: I5142e0a5c495933b87399cc0b62f1b881b04330e
2016-06-09 20:43:28 +00:00
Philip P. Moltmann
c6bddb8261 Merge \"Cache resources needed to sort media sizes.\" into nyc-dev
am: 142fc425c4

Change-Id: I368ffa5269029801ed191351fb1fff9bde72778a
2016-06-09 20:43:18 +00:00
Philip P. Moltmann
142fc425c4 Merge "Cache resources needed to sort media sizes." into nyc-dev 2016-06-09 20:35:59 +00:00
Philip P. Moltmann
0c470821d3 Cache resources needed to sort media sizes.
- Cache media_standard_iso
- Cache labels between configuration changes (localization might
  change labels)
- Use ints instead of String's for standards
- Use HashMap instead of Array map as the lookup is faster for
  larger arrays

Fixes: 29068056
Change-Id: I027c80fac4d7e8ea6c2cac0f1a2d52b54807f5be
2016-06-03 09:00:10 -07:00
Bill Yi
4ae6354467 Import translations. DO NOT MERGE
Change-Id: I53789d03049f5647fff50cf5521b461bf5481afd
Auto-generated-cl: translation import
2016-06-03 04:57:35 -07:00
Bill Yi
2641c648f7 Import translations. DO NOT MERGE
Change-Id: Ic52f441a17948a9d117126b1e808d05535cc558d
Auto-generated-cl: translation import
2016-06-03 04:52:48 -07:00
Philip P. Moltmann
1eabaff2cb Merge "Do not rotate PDFPrinter pages." into nyc-dev
am: 5d6a4f582e

* commit '5d6a4f582e0e1d6e8aee88fc16b3a7f4850dbd56':
  Do not rotate PDFPrinter pages.

Change-Id: Ib428e9af14a8271545862189649780975053de86
2016-06-02 22:41:15 +00:00
Philip P. Moltmann
bf0f82bd69 Merge "Do not rotate PDFPrinter pages." into nyc-dev
am: 5d6a4f582e

* commit '5d6a4f582e0e1d6e8aee88fc16b3a7f4850dbd56':
  Do not rotate PDFPrinter pages.

Change-Id: I1f24415c1f7245f5bee5fb24f7d642c0e22a3bdd
2016-06-02 22:37:22 +00:00
Philip P. Moltmann
cd7b1b7cdf Do not rotate PDFPrinter pages.
- applyPrintAttributes is only used by PDFPrinter

Fixes: 29057330
Change-Id: I883cc64039f4ca2c93810e99d758f2dceec67a8b
2016-06-02 20:53:53 +00:00
Philip P. Moltmann
76fb4412b7 Merge "Use text input to deal with fullscreen IME" into nyc-dev
am: ddf5c44567

* commit 'ddf5c445673bab848b3d9c8af4de8978daf9b56b':
  Use text input to deal with fullscreen IME

Change-Id: I0aadae2eac2b0bbf81658525aeda70ca2512337c
2016-06-02 00:10:26 +00:00
Philip P. Moltmann
75300f64e7 Merge "Use text input to deal with fullscreen IME" into nyc-dev
am: ddf5c44567

* commit 'ddf5c445673bab848b3d9c8af4de8978daf9b56b':
  Use text input to deal with fullscreen IME

Change-Id: I5fc7ddf35ce6696824558029f09f8e7cd9ac6fbd
2016-06-02 00:05:44 +00:00
Philip P. Moltmann
9f87935b2e Use text input to deal with fullscreen IME
The full screen "number" keyboard strips all non-numeric letters
out of the text field.

Bug: 29004437
Change-Id: Ic7e79106a7fcf0716a28061592221557b9d62f52
2016-06-01 22:08:13 +00:00
Bill Yi
5248b0cb75 Import translations. DO NOT MERGE
Change-Id: I2bc1e221db4776d03f49e80844a482628e632262
Auto-generated-cl: translation import
2016-05-30 18:16:13 -07:00
Bill Yi
f03166100c Import translations. DO NOT MERGE
Change-Id: I55d645f1ec4661ef1db9a650aa555178fc6ed6a5
Auto-generated-cl: translation import
2016-05-30 18:11:25 -07:00
Philip P. Moltmann
3f0c4ca281 Merge "Move add-printer list headers to the right positions." into nyc-dev
am: 00e3c23265

* commit '00e3c232656e648376c94a78b568c3ca1fe8c123':
  Move add-printer list headers to the right positions.

Change-Id: I43e2a7a548bbb21223f1007c03c57a00aa966402
2016-05-25 23:22:24 +00:00
Philip P. Moltmann
5338bead7f Merge "Move add-printer list headers to the right positions." into nyc-dev
am: 00e3c23265

* commit '00e3c232656e648376c94a78b568c3ca1fe8c123':
  Move add-printer list headers to the right positions.

Change-Id: I439ab5769e597994912d8bf5dcb6edcfa2a9b496
2016-05-25 23:21:05 +00:00
Philip P. Moltmann
00e3c23265 Merge "Move add-printer list headers to the right positions." into nyc-dev 2016-05-25 23:10:26 +00:00
Philip P. Moltmann
7ca655ea0a Merge "Correct height of add printer list separator" into nyc-dev
am: 80c18bcc3a

* commit '80c18bcc3a52dee62eec4b95de1ebfbf3c7d397f':
  Correct height of add printer list separator

Change-Id: I3cfdf14bc4e72b727f6469f99f950794e667ce33
2016-05-23 18:38:36 +00:00
Philip P. Moltmann
4a3b323d3c Merge "Correct height of add printer list separator" into nyc-dev
am: 80c18bcc3a

* commit '80c18bcc3a52dee62eec4b95de1ebfbf3c7d397f':
  Correct height of add printer list separator

Change-Id: Ib3b93ec7f2bd12b077353b3ac3f671a68bf97d34
2016-05-23 18:37:47 +00:00
Philip P. Moltmann
80c18bcc3a Merge "Correct height of add printer list separator" into nyc-dev 2016-05-23 18:27:14 +00:00
Philip P. Moltmann
8aa4856f22 Correct height of add printer list separator
Do not use listPreferredItemHeightSmall a height for list separator.

Fixes: 28907033
Change-Id: Ibe9744f28e7bd17fb5a298fa3cff0e3d403de10f
2016-05-23 09:54:39 -07:00
Bill Yi
95750c3ac9 Import translations. DO NOT MERGE
Change-Id: I4bf63c7c9d2e24184607f05914e8e063e8792d45
Auto-generated-cl: translation import
2016-05-23 01:47:37 -07:00
Bill Yi
a5c77a4738 Import translations. DO NOT MERGE
Change-Id: I7c447305120cc398cbd0e7a98b8226ee7c632059
Auto-generated-cl: translation import
2016-05-23 01:42:41 -07:00
Baligh Uddin
0230026110 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 28857042
Change-Id: Ia00d58694c7f42c901f10a3bd93bb6b3b2725400
2016-05-21 18:43:19 -07:00
Philip P. Moltmann
d8e82000d6 Merge "Declare no print services if 0 print services are enabled." into nyc-dev
am: b852d0138a

* commit 'b852d0138ab84817b042791e0e204459d87038ce':
  Declare no print services if 0 print services are enabled.

Change-Id: Id6a97654dcc889d0fe73e10210e649cb62c0861b
2016-05-18 19:50:30 +00:00