5724 Commits

Author SHA1 Message Date
John Spurlock
d19877f8a3 BatteryMeterView: Charging trumps empty.
Match the style implicit in the battery assets: if charging,
show the bolt, not the exclamation point.

Bug:10651062
Change-Id: I3edd822326ad611972e791cf4acc8c395e51a74d
2013-09-17 11:03:03 -04:00
Baligh Uddin
b1c85e4a8e Merge "Import translations. DO NOT MERGE" 2013-09-17 04:05:28 +00:00
Baligh Uddin
fd111c8f61 Merge "Import translations. DO NOT MERGE" into klp-dev 2013-09-17 04:05:19 +00:00
Baligh Uddin
e7e3394d4a Merge "Import translations. DO NOT MERGE" 2013-09-17 04:05:10 +00:00
Baligh Uddin
5dd80754a3 Merge "Import translations. DO NOT MERGE" into klp-dev 2013-09-17 04:05:05 +00:00
Baligh Uddin
67d24eb342 Merge "Import translations. DO NOT MERGE" 2013-09-17 04:04:55 +00:00
Baligh Uddin
eedb4f8f85 Merge "Import translations. DO NOT MERGE" into klp-dev 2013-09-17 04:04:51 +00:00
Svetoslav
06c7f39f6f am e7d34086: am be0d9317: Merge "App UI freezes when printing. API clean up." into klp-dev
* commit 'e7d3408652dd6e997a3c5abfd5abc6855aa170c0':
  App UI freezes when printing. API clean up.
2013-09-16 19:32:41 -07:00
Svetoslav
e7d3408652 am be0d9317: Merge "App UI freezes when printing. API clean up." into klp-dev
* commit 'be0d9317e27b600eee7deb8f328358cdb38115c6':
  App UI freezes when printing. API clean up.
2013-09-16 19:30:50 -07:00
Svetoslav
c3484024e1 Print pooler crashes for some page ranges.
1. The print spooler fails to parse page ranges that end with
   a dash, e,g, "1-", which are however valid inputs since the
   user can continue typing to end up with a well-fromed range.

2. After a layout we are asking for the first selected page
   to be written emulating print preview, thus increasing the
   changes that apps will correctly implement the APIs.

bug:10743632

Change-Id: Ia74172d4fa6bce6ad93a0bc53da1aaa3fe8bef42
2013-09-16 19:13:25 -07:00
Svetoslav
2fbd2a7f07 App UI freezes when printing. API clean up.
1. The UI of a printing app was freezing a little when calling the print
   method since the print manager service was waiting for it to bind to the
   print spooler which generated the print job id (and the initial print
   job info really). Now the print manager service is responsible for job
   id generation and does not not wait for the print spooler to spin. Hence,
   the app UI is not blocked at all. Note that the print manager initiates
   the binding to the spooler and as soon as it completes the spooler shows
   the print UI which is hosted in its process. It is not possible to show
   the print UI before the system is bound to the spooler since during this
   binding the system passes a callback to the spooler so the latter can
   talk to the system.

2. Changed the print job id to be an opaque class allowing us to vary the
   way we generate print job ids in the future.

3. The queued print job state was hidden but the print job returned by the
   print method of the print manager is in that state. Now now hidden.

4. We were incorrecly removing print job infos if they are completed or
   cancelled. Doing that is problematic since the print job returned by
   the print method allows the app to query for the job info after the
   job has been say completed. Hence, an app can initiate printing and
   get a print job whose state is "created" and hold onto it until after
   the job is completed, now if the app asks for the print job info it
   will get an info in "created" state even though the job is "completed"
   since the spooler was not retaining the completed jobs. Now the spooler
   removes the PDF files for the completed and cancelled print jobs but
   keeps around the infos (also persisting them to disc) so it can answer
   questions about them. On first boot or switch to a user we purge the
   persisted print jobs in completed/cancelled state since they
   are obsolete - no app can have a handle to them.

5. Removed the print method that takes a file since we have a public
   PrintDocumentAdapter implementation for printing files. Once can
   instantiate a PrintFileDocumentAdapter and pass it to the print
   method. This class also allows overriding of the finish method to
   know when the data is spooled and deleted the file if desired, etc.

6. Replaced the wrong code to slice a large list of parcelables to
   use ParceledListSlice class.

bug:10748093

Change-Id: I1ebeeb47576e88fce550851cdd3e401fcede6e2b
2013-09-16 17:55:14 -07:00
Daniel Sandler
c0a9709ad2 am 8c9905eb: am 1656a346: Merge "Point the QS alarm tile at AlarmClock.ACTION_SHOW_ALARMS." into klp-dev
* commit '8c9905ebfac3a3a7ca97faa447d5f118072adb59':
  Point the QS alarm tile at AlarmClock.ACTION_SHOW_ALARMS.
2013-09-16 11:46:17 -07:00
Daniel Sandler
1fe69fac4b am 32327048: am 9cb5445d: Merge "Fix recent SystemUI dump crash." into klp-dev
* commit '32327048d4d628e985e2581a98078768bd267b92':
  Fix recent SystemUI dump crash.
2013-09-16 11:46:14 -07:00
Daniel Sandler
8c9905ebfa am 1656a346: Merge "Point the QS alarm tile at AlarmClock.ACTION_SHOW_ALARMS." into klp-dev
* commit '1656a346d9b69470cf8336a3059e9624797c7b7d':
  Point the QS alarm tile at AlarmClock.ACTION_SHOW_ALARMS.
2013-09-16 11:44:19 -07:00
Daniel Sandler
32327048d4 am 9cb5445d: Merge "Fix recent SystemUI dump crash." into klp-dev
* commit '9cb5445d26a7973b0212d3bb9b807877cce1f5c6':
  Fix recent SystemUI dump crash.
2013-09-16 11:44:16 -07:00
Daniel Sandler
1656a346d9 Merge "Point the QS alarm tile at AlarmClock.ACTION_SHOW_ALARMS." into klp-dev 2013-09-16 18:40:14 +00:00
Daniel Sandler
9cb5445d26 Merge "Fix recent SystemUI dump crash." into klp-dev 2013-09-16 18:36:04 +00:00
Michael Jurka
8da63ce295 am 303392de: am 1199a37a: Merge "Catch ActivityNotFoundException in Recents" into klp-dev
* commit '303392de0ed32e6387c9796c04a4c6bb77f00935':
  Catch ActivityNotFoundException in Recents
2013-09-16 11:00:51 -07:00
Michael Jurka
303392de0e am 1199a37a: Merge "Catch ActivityNotFoundException in Recents" into klp-dev
* commit '1199a37a038d28753396a08ff60de2491bb6a20d':
  Catch ActivityNotFoundException in Recents
2013-09-16 10:58:35 -07:00
John Spurlock
41c1e359c6 Fix recent SystemUI dump crash.
If only string format specification errors were compilation errors...

Bug:10781286
Change-Id: I2843a805f6bba35f9cddcbfe7e551d3f0248e789
2013-09-16 13:57:13 -04:00
Michael Jurka
1199a37a03 Merge "Catch ActivityNotFoundException in Recents" into klp-dev 2013-09-16 17:56:28 +00:00
Michael Jurka
4e85f46c1c Catch ActivityNotFoundException in Recents
Bug: 8633151
2013-09-16 19:52:21 +02:00
Baligh Uddin
7015117cfa Import translations. DO NOT MERGE
Change-Id: I378d9e9e35a63fd333f92b02ee383e40c0f1b9b3
Auto-generated-cl: translation import
2013-09-16 09:54:20 -07:00
Baligh Uddin
c59286ab7b Import translations. DO NOT MERGE
Change-Id: I7f6eb24f5bb7c1ae9e8734eb957a966e49848a3b
Auto-generated-cl: translation import
2013-09-16 09:52:22 -07:00
Baligh Uddin
fd14da3535 Import translations. DO NOT MERGE
Change-Id: I6c1b05ea202375f8bbc242721fa064ab65453693
Auto-generated-cl: translation import
2013-09-16 09:47:50 -07:00
Baligh Uddin
72e8643fdd Import translations. DO NOT MERGE
Change-Id: Icd16c449ff68a89ecd4a36856764d24f5894c9e5
Auto-generated-cl: translation import
2013-09-16 09:47:04 -07:00
Baligh Uddin
4089fb5985 Import translations. DO NOT MERGE
Change-Id: I2238c7d86ef482e0c2cac7d1ff927c7cd5656546
Auto-generated-cl: translation import
2013-09-16 09:45:22 -07:00
Baligh Uddin
ad178f5509 Import translations. DO NOT MERGE
Change-Id: I6066e1589c84a842887ac37b737d6852a2ff99a7
Auto-generated-cl: translation import
2013-09-16 09:44:32 -07:00
Daniel Sandler
fe904ecc97 am 48591ef6: am 28ed00d3: Merge "Fix RenderScript crash." into klp-dev
* commit '48591ef67e92bbb80a2a263b6813a8afcd9c2788':
  Fix RenderScript crash.
2013-09-16 08:29:46 -07:00
Daniel Sandler
48591ef67e am 28ed00d3: Merge "Fix RenderScript crash." into klp-dev
* commit '28ed00d3b7931c75ac97d1aced01b1dda465f07f':
  Fix RenderScript crash.
2013-09-16 08:28:16 -07:00
Daniel Sandler
28ed00d3b7 Merge "Fix RenderScript crash." into klp-dev 2013-09-16 15:26:50 +00:00
Daniel Sandler
a30b7035ce Fix RenderScript crash.
Also lay the groundwork for a future checkin.

Bug: 10240151
Bug: 10505742
Change-Id: I62d61c9048188c93863c8c43839e713b75a65102
2013-09-16 11:19:15 -04:00
John Spurlock
abf0f51196 am 19bea5ef: am a751d97e: Merge "Fix layout glitch specific to quick-settings -> settings." into klp-dev
* commit '19bea5efdfa80e97f718d5a6043c69bb4a9a10c7':
  Fix layout glitch specific to quick-settings -> settings.
2013-09-16 06:26:04 -07:00
John Spurlock
19bea5efdf am a751d97e: Merge "Fix layout glitch specific to quick-settings -> settings." into klp-dev
* commit 'a751d97e8611d16a2929c538f634a4b4c7b2938a':
  Fix layout glitch specific to quick-settings -> settings.
2013-09-16 06:23:37 -07:00
John Spurlock
a751d97e86 Merge "Fix layout glitch specific to quick-settings -> settings." into klp-dev 2013-09-16 13:20:49 +00:00
John Spurlock
37d608d7c8 Fix layout glitch specific to quick-settings -> settings.
When collapsing panels in code, relinquish focus immediately,
  triggering an immediate reeval of current focus in WM,
    triggering an immediate reeval of sysui flags,
      triggering an immediate system bar transition
      with the correct destination content frame.

Otherwise we eventually get around to it, after several layers
of sysui animation delays, but delaying the sysui visibility
re-eval until this point is far too late.

Bug:10696375
Change-Id: I947289667225b6a12bb8c81950df0e2e2d9f1f99
2013-09-15 15:46:28 -04:00
Svetoslav Ganov
a6df7120f4 am b30e185b: am 4244d66a: Merge changes Id0a67846,I20b57d66 into klp-dev
* commit 'b30e185b440e04eac5119653a2868395554febfe':
  Print system may get stuck bound to a print service
  Spooler should not crash if print service config activities are not exported.
2013-09-15 11:50:44 -07:00
Svetoslav Ganov
b30e185b44 am 4244d66a: Merge changes Id0a67846,I20b57d66 into klp-dev
* commit '4244d66a122258adc86a8d757d3fe5f9588a59f8':
  Print system may get stuck bound to a print service
  Spooler should not crash if print service config activities are not exported.
2013-09-15 11:48:10 -07:00
Svetoslav Ganov
4244d66a12 Merge changes Id0a67846,I20b57d66 into klp-dev
* changes:
  Print system may get stuck bound to a print service
  Spooler should not crash if print service config activities are not exported.
2013-09-15 18:46:02 +00:00
Baligh Uddin
3386b07ef1 Merge "Import translations. DO NOT MERGE" into klp-dev 2013-09-15 04:36:52 +00:00
Baligh Uddin
215da064f7 Merge "Import translations. DO NOT MERGE" into klp-dev 2013-09-15 04:31:30 +00:00
Baligh Uddin
694980e075 Merge "Import translations. DO NOT MERGE" into klp-dev 2013-09-15 04:31:25 +00:00
Baligh Uddin
def10485e3 Merge "Import translations. DO NOT MERGE" into klp-dev 2013-09-15 04:31:09 +00:00
Baligh Uddin
169a37ce8f Merge "Import translations. DO NOT MERGE" into klp-dev 2013-09-15 04:31:02 +00:00
Baligh Uddin
1c8b3fa018 Import translations. DO NOT MERGE
Change-Id: I12383ccb553cbace814156dafc8aad62a007f2c0
Auto-generated-cl: translation import
2013-09-14 21:08:26 -07:00
Baligh Uddin
763a9f96e8 Import translations. DO NOT MERGE
Change-Id: Iedddc6498eb09ce99ae5ffbc60c2069d4373b3e5
Auto-generated-cl: translation import
2013-09-14 20:33:13 -07:00
Baligh Uddin
428580bb78 Import translations. DO NOT MERGE
Change-Id: Iab13f37067f3888f58ada1c4764674194eb24c25
Auto-generated-cl: translation import
2013-09-14 20:32:29 -07:00
Baligh Uddin
da9120b062 Import translations. DO NOT MERGE
Change-Id: Ie76c722a4e7525264922041684f25b5b35286973
Auto-generated-cl: translation import
2013-09-14 20:30:38 -07:00
Baligh Uddin
610ecfe8e8 Import translations. DO NOT MERGE
Change-Id: I45ac6ed92f61d59d2e2fdf87a1ac02db3510720c
Auto-generated-cl: translation import
2013-09-14 20:29:57 -07:00
Baligh Uddin
75d888b188 Merge "Import translations. DO NOT MERGE" into klp-dev 2013-09-15 03:27:49 +00:00