946 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
5365e7a194 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: I2b995a757a5f745c442cc813873edf3726cb0abb
2016-05-18 19:50:29 +00:00
Philip P. Moltmann
b852d0138a Merge "Declare no print services if 0 print services are enabled." into nyc-dev 2016-05-18 19:45:05 +00:00
Baligh Uddin
576a32da20 Merge "Import translations. DO NOT MERGE" into nyc-dev 2016-05-18 17:57:26 +00:00
Philip P. Moltmann
0ba575e431 Merge "Handle printers selected by SelectPrinter activity" into nyc-dev
am: 746de4e9c8

* commit '746de4e9c87d3068643a97a3b0b5709ffdbb4ad6':
  Handle printers selected by SelectPrinter activity

Change-Id: I5060133e2dd3a87f99af3ecc3e1b378291befcc4
2016-05-18 15:32:48 +00:00
Philip P. Moltmann
e951a13916 Declare no print services if 0 print services are enabled.
Fixes: 28833953
Change-Id: I94e77dc23107fab10d45f51169d71e4da574ee66
2016-05-18 08:27:02 -07:00
Philip P. Moltmann
3704b11ff9 Move add-printer list headers to the right positions.
Fixes: 28833479
Change-Id: I0ab955e1a1625e9638da5a76584af988a9f6c342
2016-05-18 08:26:21 -07:00
Philip P. Moltmann
f1413249db Handle printers selected by SelectPrinter activity
- Declare a printers availability when changing the removed state.
- Set printJob.printerId to current printer when returning from
  SelectPrinter

Change-Id: Ie4680be04fa614a4088f2f32a527e80928c957cc
Fixes: 27643305
2016-05-17 14:26:13 -07:00
Baligh Uddin
a3b6b364c6 Import translations. DO NOT MERGE
Change-Id: Ic96958132725f1af9e842dbab5158628e51dea73
Auto-generated-cl: translation import
2016-05-16 15:22:14 -07:00
Philip P. Moltmann
74aac8d9da Merge "Clear state when ProgressMessageCtrl. is canceled" into nyc-dev
am: 11e215bc45

* commit '11e215bc45de37102977462c9ced878c130ff74a':
  Clear state when ProgressMessageCtrl. is canceled

Change-Id: If2f257fbc8aac0c04c4e71e5215870ef613a730b
2016-05-16 21:51:48 +00:00
Philip P. Moltmann
9a40a32ae9 Clear state when ProgressMessageCtrl. is canceled
Otherwise the following can happen:
- The progressController is _not_ running and we are running through
  an update.
- Then onUpdateCompleted is called which cancels the not running
  progressController. This then reset whatever state was previously
  stored as mPreviousState leaving the PrintActivity in a weird state.

Fixes: 27945565
Change-Id: Id46b8853ba634634198a74921c8a1790c435678c
2016-05-12 10:35:39 -07:00
Philip P. Moltmann
227b8aa6f2 Merge "Handle failure to create file." into nyc-dev
am: 808f2c361a

* commit '808f2c361af328aad8d69a02779c37f08f1fa32d':
  Handle failure to create file.

Change-Id: I12b7b03e36c4160c5a93e5a72a3395616a44809e
2016-05-12 16:23:39 +00:00
Philip P. Moltmann
e05a7b71c6 Handle failure to create file.
This should never happen unless you disable the DocumentsUI app. Hence
handle it by a simple toast.

Bug: 28709934
Change-Id: Iac4aff32617120c442e0f994a2a8c0ce3cca380d
2016-05-11 15:04:17 -07:00
Philip P. Moltmann
537f92dd5b Merge "Handle more config changes and handle onDestroy" into nyc-dev
am: 383189f494

* commit '383189f494aba302555113ba6873a151bcb4a414':
  Handle more config changes and handle onDestroy

Change-Id: I05285e96b8511dc8a6a21778a58dbb8d6cb97722
2016-05-02 16:54:50 +00:00
Philip P. Moltmann
383189f494 Merge "Handle more config changes and handle onDestroy" into nyc-dev 2016-05-02 16:43:52 +00:00
Philip P. Moltmann
dee53b2457 Merge "Visibility of pageRangeTitle =!= pageRangeText" into nyc-dev
am: 8582909cae

* commit '8582909caefe952d02889e239642af945f64c03d':
  Visibility of pageRangeTitle =!= pageRangeText

Change-Id: Ia480ef83e9e01a7d4487a621e35c65e601591605
2016-05-02 15:59:06 +00:00
Philip P. Moltmann
f1b849536b Merge "Delay callback from printerRegistry after Constr." into nyc-dev
am: 1f113db350

* commit '1f113db35095c8f43b702991dd68edc1ce398c82':
  Delay callback from printerRegistry after Constr.

Change-Id: Id53fa594f297be742995ddfe309c89b3a67f6ac6
2016-05-02 15:59:02 +00:00
Philip P. Moltmann
8582909cae Merge "Visibility of pageRangeTitle =!= pageRangeText" into nyc-dev 2016-05-02 15:50:01 +00:00
Philip P. Moltmann
f24285d7b3 Visibility of pageRangeTitle =!= pageRangeText
Before if we had only a single page we showed the title, but not the
text

Change-Id: Ie2c178eaf19885e0b1dcc803b9da23ed687764a7
2016-04-29 16:16:08 -07:00
Philip P. Moltmann
172d840cd1 Handle more config changes and handle onDestroy
- The PrintActivity has to handle all config changes to not loose track
  close the connection to the printing app
- In the case where onDestroy is called we need to make sure to
  - not do any more UI operation
  - on async calls after destroy is already called, handle failure to
    unbind services.

Change-Id: If21335543fbfa16ecfe77d1965b2e8a13dfa14b8
2016-04-29 15:40:23 -07:00
Philip P. Moltmann
3c757036a3 Delay callback from printerRegistry after Constr.
If the leader inside of the printer registry can immediately initalize
the callback is called in the same thread as the contructor is
executing. Hence in this case the mPrinterRegistry field is used before
written.

Change-Id: I45239d2792f6c31ec215ddb01131038882ff0136
2016-04-28 15:11:26 -07:00
Philip P. Moltmann
9cb79d193b Merge "Send update notifications when the status of a print job updates and make sure to only access mPrintServicesChangeListenerRecords when locked." into nyc-dev
am: bfce110c63

* commit 'bfce110c63541f514c865fc221047b8101932d58':
  Send update notifications when the status of a print job updates and make sure to only access mPrintServicesChangeListenerRecords when locked.

Change-Id: I6d87b7de3325d330b7b03f838ea8ec9475ff85be
2016-04-22 17:48:37 +00:00
Philip P. Moltmann
4bd8fac48e Send update notifications when the status of a print job updates and
make sure to only access mPrintServicesChangeListenerRecords when
locked.

Bug: 28315242
Change-Id: Ie41ee695e6b1b0394e55538b9d9edaee0610f1e0
2016-04-21 15:33:42 -07:00
Tobias Thierer
7ea07312f5 Merge "Integer.valueOf() -> Integer.parseInt() to avoid allocation." am: c027ae49f0
am: a2ad95a1e3

* commit 'a2ad95a1e3933190004d9fb414ea2d54540bf4f2':
  Integer.valueOf() -> Integer.parseInt() to avoid allocation.

Change-Id: I72b7a6d5a36eb10ccf321e8ecb0f24ab6834324a
2016-04-21 13:41:12 +00:00
Tobias Thierer
9bbbf2b15f Integer.valueOf() -> Integer.parseInt() to avoid allocation.
Bug: 28289401
Change-Id: If767f891644a06ba587f9bb55dccea4089a8c66d
2016-04-21 12:09:29 +01:00
Baligh Uddin
6c9b9a0040 Import translations. DO NOT MERGE
Change-Id: I937913df9ba9c5bcb8ca110826e8bb61730eab93
Auto-generated-cl: translation import
2016-04-14 19:11:22 -07:00
Philip P. Moltmann
a0653208ca Merge "Add a log if the printing activity died unexpectly." into nyc-dev
am: e74b657

* commit 'e74b657e5ef58880b7436c1e409726a29459b822':
  Add a log if the printing activity died unexpectly.

Change-Id: Ief7a90977234fe13de39d7c3a14d56504dd9f1e2
2016-04-13 16:29:22 +00:00
Philip P. Moltmann
d0e1239e81 Add a log if the printing activity died unexpectly.
Bug: 27861927
Change-Id: I431ba996e113043c224039a62a76ae23e9c7494a
2016-04-13 08:57:49 -07:00
Bill Yi
4a1171ea92 Import translations. DO NOT MERGE
Change-Id: If767f0a767da0172ba79fb9d8feaff6c1a8c9157
Auto-generated-cl: translation import
2016-04-09 04:14:00 -07:00
Philip P. Moltmann
dfa9a55ad3 Merge "Prefix printer description with service-label instead of package-label." into nyc-dev
am: 1a1f249

* commit '1a1f24980cb440752910fd4caddcd0bdc27f2c35':
  Prefix printer description with service-label instead of package-label.

Change-Id: I6cf8aedae541351661ecf56fe8e89b7f1f748e37
2016-04-06 16:11:59 +00:00
Philip P. Moltmann
3b19fc83b1 Merge "Print Activity: Use a single (re-implemented) parsing logig for page ranges." into nyc-dev
am: 6c2bed2

* commit '6c2bed24ec24c3f16971808cb3aacbd5daa9189a':
  Print Activity: Use a single (re-implemented) parsing logig for page ranges.

Change-Id: Id51c42985506cc02006b1eafd2dd77237e8f2f57
2016-04-06 16:11:58 +00:00
Philip P. Moltmann
1a1f24980c Merge "Prefix printer description with service-label instead of package-label." into nyc-dev 2016-04-06 16:09:02 +00:00
Philip P. Moltmann
6c2bed24ec Merge "Print Activity: Use a single (re-implemented) parsing logig for page ranges." into nyc-dev 2016-04-06 16:08:49 +00:00
Bill Yi
f65a843661 Import translations. DO NOT MERGE
Change-Id: Ib8200b22451664277e49d59489e1727b281fa960
Auto-generated-cl: translation import
2016-04-05 00:18:26 -07:00
Philip P. Moltmann
3df18a9465 Prefix printer description with service-label instead of package-label.
Change-Id: Ibe98e0037ad8d62b27b10b72d75fb2e548d0ee90
2016-04-01 17:16:01 -07:00