706 Commits

Author SHA1 Message Date
Geoff Mendal
e5445d7bb7 Import translations. DO NOT MERGE
Change-Id: Ic3da6671bd7a81f8a9c07a0a922d07b773377f96
Auto-generated-cl: translation import
2015-05-30 19:58:03 -07:00
Alan Viverette
7e59bb70a6 Use DeviceDefault (dark) theme for PrintActivity
Bug: 21433656
Change-Id: If90ba72fb5862f0eb583c8e64642920c49c5fea6
2015-05-27 12:17:26 -07:00
Wojciech Staszkiewicz
be752b1f28 Merge "Pass charset to XmlPullParser.setInput instead of null" into mnc-dev 2015-05-14 10:27:24 +00:00
Wojciech Staszkiewicz
9e9e2e73c6 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
2015-05-14 10:24:34 +01:00
Geoff Mendal
251348d3fc Import translations. DO NOT MERGE
Change-Id: I0096104dd65eeb3b4e7bf836c09a58f8aa34965e
Auto-generated-cl: translation import
2015-05-14 01:56:14 -07:00
Alan Viverette
b9da280ac2 DayNight theme for framework packages
Change-Id: I745f90561c957c83540e75a2886e294633c83be1
2015-05-05 14:09:21 -07:00
Geoff Mendal
7c1fa24c2c Import translations. DO NOT MERGE
Change-Id: I66a29628216bcfbb56a5820ba0598bd95af27a81
Auto-generated-cl: translation import
2015-04-27 05:55:04 -07:00
Geoff Mendal
9e672e0d18 Import translations. DO NOT MERGE
Change-Id: I67f51468d775874da33c28786b86c69e7f1459b1
Auto-generated-cl: translation import
2015-04-22 05:42:32 -07:00
Deepanshu Gupta
6c04e5e916 Add resources to recyclerview dependency.
Change-Id: I03c1dbacf8c83149de3ee01fe6d7dbb288d1948a
(cherry picked from commit 202cbbe45383b871129743d55179cf1c6429fffc)
2015-04-21 11:21:38 -07:00
Geoff Mendal
216bef6c35 Import translations. DO NOT MERGE
Change-Id: I9d36d679d32ee84e90eec1d51515894c36390bc1
Auto-generated-cl: translation import
2015-03-25 05:41:29 -07:00
Geoff Mendal
d397039876 Import translations. DO NOT MERGE
Change-Id: I43f19279f08e1c5b204836ee69e715c1f889acc7
Auto-generated-cl: translation import
2015-03-20 23:39:30 -07:00
Alan Viverette
4a357cd2e5 Replace usages of deprecated Resources.getColor() and getColorStateList()
Change-Id: I8f64fe6c4c44a92ff6d07250223ba590a1d691b0
2015-03-18 18:37:18 -07:00
John Spurlock
08c7116ab9 Remove unused imports in frameworks/base.
Change-Id: I031443de83f93eb57a98863001826671b18f3b17
2015-02-28 14:47:49 -05:00
Geoff Mendal
a58ef5e511 Import translations. DO NOT MERGE
Change-Id: I923776f2ceb27b39485ffc29fb8422bf85e48261
Auto-generated-cl: translation import
2015-02-16 06:43:49 -08:00
Geoff Mendal
23032b3f21 Import translations. DO NOT MERGE
Change-Id: I6498f5f266d79b90c3b41956290838e199e50999
Auto-generated-cl: translation import
2015-02-11 06:46:44 -08:00
Geoff Mendal
ca6964d2c2 Import translations. DO NOT MERGE
Change-Id: I0636cbe07799e0bd53c2157bf4074d9e7a5f5b1c
Auto-generated-cl: translation import
2015-02-09 08:44:13 -06:00
Dianne Hackborn
a7bb6fbeab 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
2015-02-06 10:42:44 -08:00
Geoff Mendal
bf40f24bc2 Import translations. DO NOT MERGE
Change-Id: I1045d9d3bcb2ddce2eb2c57fff87827c5ee23f04
Auto-generated-cl: translation import
2015-02-04 06:51:45 -08:00
Svetoslav
948c9a6393 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
2015-02-04 05:48:48 +00:00
Svetoslav
85d6a63d41 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
2015-01-27 23:26:24 +00:00
Svetoslav
3fd1ebff6c 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
2015-01-27 04:36:37 +00:00
Svetoslav
fcecdccc0f 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
2015-01-27 04:26:55 +00:00
Svetoslav
c0198ce12e Add a missing file to print spooler resources
bug:19120603

Change-Id: Id33c77696a47ef48b0095fd8289f92d7bba71f19
2015-01-23 17:50:31 -08:00
Geoff Mendal
596bf7a3e1 Import translations. DO NOT MERGE
Change-Id: I3ed20770355daeb44c7ec26a0cd70d224dde7e9b
Auto-generated-cl: translation import
2015-01-21 06:34:11 -08:00
Geoff Mendal
4a682c1b44 Import translations. DO NOT MERGE
Change-Id: I9c93551bd46a5ef15b327a8f7ae332e69578ad90
Auto-generated-cl: translation import
2015-01-05 06:11:03 -08:00
Baligh Uddin
2d9543abca Import translations. DO NOT MERGE
Change-Id: I502afa35fad7c98a1a6728b88706245891296c18
Auto-generated-cl: translation import
2014-12-22 20:19:30 -08:00
Svetoslav
b9f2345350 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.
2014-12-03 21:50:01 +00:00
Svetoslav
dc026bafa9 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.
2014-12-03 20:41:39 +00:00
Svetoslav
5303451efc am 4667d247: Merge "Inconsistent media sizes for es-US locale." into lmp-mr1-dev
* commit '4667d247bbff30d7fe47a4022b91eb03da17be4d':
  Inconsistent media sizes for es-US locale.
2014-12-03 17:19:29 +00:00
Svetoslav
4667d247bb Merge "Inconsistent media sizes for es-US locale." into lmp-mr1-dev 2014-12-03 16:34:00 +00:00
Svetoslav
67880ce3ff 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.
2014-12-03 00:31:23 +00:00
Svetoslav
935702b6d5 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.
2014-12-02 23:30:21 +00:00
Svetoslav
95482c28f5 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.
2014-12-02 23:23:40 +00:00
Svetoslav
cdd3356da9 Merge "Allow more space for the printer spinner to avoid truncation." into lmp-mr1-dev 2014-12-02 23:16:38 +00:00
Svetoslav
a1ec54b454 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
2014-12-02 15:09:59 -08:00
Baligh Uddin
864eedc401 Import translations. DO NOT MERGE
Change-Id: I1fa46bb80033e1eee5de30cbf0d0d5d07ae4147c
Auto-generated-cl: translation import
2014-12-02 14:07:25 -08:00
Svetoslav
94ef9e6bc8 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
2014-12-02 13:46:36 -08:00
Svet Ganov
fc00c9e6c9 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.
2014-12-02 19:10:15 +00:00
Svet Ganov
66a1200156 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.
2014-12-02 19:03:54 +00:00
Svet Ganov
eaaf0512fc 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
2014-12-02 18:43:05 +00:00
Svet Ganov
657fcb172e am 846aac1a: am 48956f26: am f51d7015: Merge "Lockup in the print spooler." into lmp-mr1-dev
* commit '846aac1a22a23df440e39c642cb9213a025f21b7':
  Lockup in the print spooler.
2014-11-25 18:51:20 +00:00
Svet Ganov
846aac1a22 am 48956f26: am f51d7015: Merge "Lockup in the print spooler." into lmp-mr1-dev
* commit '48956f266df46bc852c8c2886f16dbb7ac61b3fe':
  Lockup in the print spooler.
2014-11-25 18:45:32 +00:00
Svet Ganov
6f206983b9 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.
2014-11-25 17:48:47 +00:00
Svet Ganov
f0de3a5ca3 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.
2014-11-25 17:37:42 +00:00
Svet Ganov
c80814e70a 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
2014-11-24 22:12:34 +00:00
Svet Ganov
f6cd14dbc9 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
2014-11-22 09:28:38 -08:00
Geoff Mendal
e9e6399245 Import translations. DO NOT MERGE
Change-Id: Icb02f0081bd43d87299e3275d1a25b2560dcf5d3
Auto-generated-cl: translation import
2014-11-17 10:23:09 -08:00
Andreas Gampe
2e4ad0a641 am d99c25ef: am 37079e29: Merge "Frameworks/base: Wall Werror in packages"
* commit 'd99c25eff3ad421b900caf7af82f970b23a81733':
  Frameworks/base: Wall Werror in packages
2014-11-14 19:15:52 +00:00
Andreas Gampe
d99c25eff3 am 37079e29: Merge "Frameworks/base: Wall Werror in packages"
* commit '37079e29171df20b6355244882dce9d745da55db':
  Frameworks/base: Wall Werror in packages
2014-11-13 23:39:49 +00:00
Andreas Gampe
423ba098bd Frameworks/base: Wall Werror in packages
Turn on -Wall -Werror in packages/. Fix warnings.

Change-Id: I4ec7256a7df46017e1895575719f2b5aca978bd0
2014-11-13 15:25:34 -08:00