117124 Commits

Author SHA1 Message Date
Jean-Michel Trivi
fca1e60323 Remote volume changes
When the user plays media remotely, and presses on the volume
 keys with the screen off, verify whether not only local playback
 is active, but also if remote playback is active to see if
 the volume should be adjusted.
When adjusting the volume with screen off, adjust the remote
 volume if applicable.

When controlling volume, give priority to local media playback.

Bug 11169862

Change-Id: I88a8c003969177d50d4c1569ec6cd2a7c153a341
2013-10-11 11:36:18 -07:00
Craig Mautner
3474040486 Make an exception for screenshot optimization.
Screenshots were not being made for tasks with the flag
FLAG_EXCLUDE_FROM_RECENTS set. But if the task is in the foreground
the shot should be taken even with the flag set. This fix adds a test
for tasks being in the foreground.

Fixes bug 11170567.

Change-Id: If42db7f43ed1dd8d2b16b68824adc813b31c94f0
2013-10-11 11:05:35 -07:00
Alan Viverette
40c610f672 am 32f3e15c: am 625f3978: am 8da6bc53: Merge "Resize lock screen widgets when IME is open." into klp-dev
* commit '32f3e15c77bd294b43c02229708d4047faaa8830':
  Resize lock screen widgets when IME is open.
2013-10-11 10:40:20 -07:00
Alan Viverette
32f3e15c77 am 625f3978: am 8da6bc53: Merge "Resize lock screen widgets when IME is open." into klp-dev
* commit '625f397843f2799756577791478e132ce9f55063':
  Resize lock screen widgets when IME is open.
2013-10-11 10:37:01 -07:00
John Spurlock
9012ed4645 am b0c900be: am b8818120: am e2bd7be2: Merge "Ensure fitSystemWindows is called on the IME at least once." into klp-dev
* commit 'b0c900becfec85919a10d5761da235b2153889c2':
  Ensure fitSystemWindows is called on the IME at least once.
2013-10-11 10:35:35 -07:00
Alan Viverette
625f397843 am 8da6bc53: Merge "Resize lock screen widgets when IME is open." into klp-dev
* commit '8da6bc53c89020de7e6c252bcb1e658f4fb0c32f':
  Resize lock screen widgets when IME is open.
2013-10-11 10:34:08 -07:00
John Spurlock
b0c900becf am b8818120: am e2bd7be2: Merge "Ensure fitSystemWindows is called on the IME at least once." into klp-dev
* commit 'b8818120ce58b54c7f4f4a1b42f1513bfda34129':
  Ensure fitSystemWindows is called on the IME at least once.
2013-10-11 10:32:16 -07:00
Alan Viverette
8da6bc53c8 Merge "Resize lock screen widgets when IME is open." into klp-dev 2013-10-11 17:30:59 +00:00
John Spurlock
b8818120ce am e2bd7be2: Merge "Ensure fitSystemWindows is called on the IME at least once." into klp-dev
* commit 'e2bd7be298448602568e56a8cb6c3d7de3c08955':
  Ensure fitSystemWindows is called on the IME at least once.
2013-10-11 10:29:33 -07:00
John Spurlock
e2bd7be298 Merge "Ensure fitSystemWindows is called on the IME at least once." into klp-dev 2013-10-11 17:27:26 +00:00
John Spurlock
3bf26b6f2f Ensure fitSystemWindows is called on the IME at least once.
InputMethodService will recreate the entire layout on config changes.
Until the system insets change again, the new instance will not
hear about the insets.

This change ensures fitSystemWindows is called at least once for all
input method root views that are added to a window.

Bug:11174545
Change-Id: Id0f02f32c0d6e9c2d6b6aeef74a12a13acfbb9e6
2013-10-11 13:16:23 -04:00
Svetoslav Ganov
ad9f1cce8c am 0d24a810: am 9ce7ae3e: am f22a767e: Merge "Added UI for errors during layout and write." into klp-dev
* commit '0d24a810d2ab6b5f7092aff3d11442debd78396a':
  Added UI for errors during layout and write.
2013-10-11 10:14:39 -07:00
Svetoslav
a1f9936c6b am 5c880d0d: am 6f688e87: am 8f34715b: Merge "Refactor how the print dialog activity is started." into klp-dev
* commit '5c880d0d1551603dcc4366406ec9ee3b812a8fc4':
  Refactor how the print dialog activity is started.
2013-10-11 10:11:05 -07:00
Svetoslav Ganov
0d24a810d2 am 9ce7ae3e: am f22a767e: Merge "Added UI for errors during layout and write." into klp-dev
* commit '9ce7ae3e2001f378199845d4c14b4304a60b3daf':
  Added UI for errors during layout and write.
2013-10-11 10:09:39 -07:00
Svetoslav Ganov
9ce7ae3e20 am f22a767e: Merge "Added UI for errors during layout and write." into klp-dev
* commit 'f22a767e872ec8f5c2531a88819e0f4574c78fe3':
  Added UI for errors during layout and write.
2013-10-11 10:08:00 -07:00
Svetoslav Ganov
f22a767e87 Merge "Added UI for errors during layout and write." into klp-dev 2013-10-11 17:06:12 +00:00
Svetoslav
5c880d0d15 am 6f688e87: am 8f34715b: Merge "Refactor how the print dialog activity is started." into klp-dev
* commit '6f688e879a2523393e8e0da072e1f62cb456276f':
  Refactor how the print dialog activity is started.
2013-10-11 10:06:03 -07:00
Svetoslav
6f688e879a am 8f34715b: Merge "Refactor how the print dialog activity is started." into klp-dev
* commit '8f34715b94a1733f4cc5f31426d5dafcd57052c7':
  Refactor how the print dialog activity is started.
2013-10-11 10:04:27 -07:00
Svetoslav Ganov
caff38821a Added UI for errors during layout and write.
1. If an error happens during layout or write we show an error
   message with the string provided by the application which
   has an OK button to retry or tap outside to cancel.

2. Updated the targed and min SDK version for the PrintSpooler.

bug:11127269

Change-Id: I4301cf3716119b1e33b95347a8451fc1c128343b
2013-10-11 10:04:02 -07:00
Svetoslav
8f34715b94 Merge "Refactor how the print dialog activity is started." into klp-dev 2013-10-11 17:01:15 +00:00
Craig Mautner
6c9138f485 am 4279a61b: am 9ccc082c: am d69417d2: Merge "Reduce jank on incoming phone call during dream." into klp-dev
* commit '4279a61b04bcd0a07bb94bdfccb6e0b282ddb396':
  Reduce jank on incoming phone call during dream.
2013-10-11 09:57:10 -07:00
Craig Mautner
4279a61b04 am 9ccc082c: am d69417d2: Merge "Reduce jank on incoming phone call during dream." into klp-dev
* commit '9ccc082c9a6c41833206d54c85e115d6d1659a12':
  Reduce jank on incoming phone call during dream.
2013-10-11 09:54:30 -07:00
Dianne Hackborn
57de7efbf0 am 61ef6e0f: am 41920afa: am 0b713a09: Merge "Small IntentFilter docs improvement." into klp-dev
* commit '61ef6e0f202032843e4158f047d126c275f3bd01':
  Small IntentFilter docs improvement.
2013-10-11 09:53:34 -07:00
Craig Mautner
9ccc082c9a am d69417d2: Merge "Reduce jank on incoming phone call during dream." into klp-dev
* commit 'd69417d2f62606af76ec4cea72bff089ff27b2f2':
  Reduce jank on incoming phone call during dream.
2013-10-11 09:52:54 -07:00
Craig Mautner
d69417d2f6 Merge "Reduce jank on incoming phone call during dream." into klp-dev 2013-10-11 16:49:55 +00:00
Dianne Hackborn
61ef6e0f20 am 41920afa: am 0b713a09: Merge "Small IntentFilter docs improvement." into klp-dev
* commit '41920afa54e67010eec146341bce113f05c9d7c3':
  Small IntentFilter docs improvement.
2013-10-11 09:49:51 -07:00
Jeff Sharkey
d5a4658cea Treat dates near epoch as unknown.
Also document that rootIds need to be stable, so removable media
roots should use the media serial number.

Bug: 11151557
Change-Id: I1f3dcabcd0474f1bf92d2cafb0f37e82abe34e05
2013-10-11 09:49:05 -07:00
Dianne Hackborn
41920afa54 am 0b713a09: Merge "Small IntentFilter docs improvement." into klp-dev
* commit '0b713a096171d27ed832175b31abff2b870de44e':
  Small IntentFilter docs improvement.
2013-10-11 09:47:16 -07:00
Dianne Hackborn
0b713a0961 Merge "Small IntentFilter docs improvement." into klp-dev 2013-10-11 16:42:39 +00:00
Dianne Hackborn
0ea920d839 Small IntentFilter docs improvement.
Change-Id: I52522e1c007c02d2c4fae8665369d92971689fd2
2013-10-11 09:40:18 -07:00
Torne (Richard Coles)
b0a12f946f am 6b9c8991: am bb592343: am 8483e4f0: Merge "Add internal resource symbol used by WebViewChromium." into klp-dev
* commit '6b9c8991a8ed5e5b250eda037f31302ff329784a':
  Add internal resource symbol used by WebViewChromium.
2013-10-11 09:25:37 -07:00
Torne (Richard Coles)
6b9c8991a8 am bb592343: am 8483e4f0: Merge "Add internal resource symbol used by WebViewChromium." into klp-dev
* commit 'bb5923433cdba892e714aa33cbf6525cbd53a17c':
  Add internal resource symbol used by WebViewChromium.
2013-10-11 09:23:14 -07:00
Torne (Richard Coles)
bb5923433c am 8483e4f0: Merge "Add internal resource symbol used by WebViewChromium." into klp-dev
* commit '8483e4f007499d01901f73510b6b096f4e8b31bf':
  Add internal resource symbol used by WebViewChromium.
2013-10-11 09:20:39 -07:00
Torne (Richard Coles)
8483e4f007 Merge "Add internal resource symbol used by WebViewChromium." into klp-dev 2013-10-11 16:17:42 +00:00
Svetoslav
7bfbbcb04b Refactor how the print dialog activity is started.
1. Before the print job activity was started asyncronously with
   respect to the print call on to the print manager. This was
   creating a situation where the starting activity may finish
   before the print dialog appears which may lead to an orphaned
   print document adapter with no data to print (as the UI is
   is gone), or strange behaviors where the print dialog starts
   on as a separate task.

   To address this the pending intent for starting the print
   dialog is not started by the print spooler since we cannot
   call into it synchronously as we have to start its process
   and bind to the spooler service which leads to jankyness in
   the client app. Now the pending intent is created by the
   print manager service in the synchronous print call so
   from an app's perspective calling print starts the activity.

   The side effect of this design is that the print dialog
   activity may start before the system is bound to the spooler
   service. In such a case the print activity cannot start
   poking the print spooler state as the system registers
   callback to observe the spooler state. To address this
   the print spooler activity disables the UI and also binds
   to the spooler service which happenes immediately after it
   is started. As soon as the print dialog binds to the
   service it starts the UI.

2. Fixed an bug in the printer adapter of the print dialog that
   was leading to a crash if the only item in the adater is the
   all pritners option and it is selected.

3. Piping the package name that started the printing so we can
   pass it to the storage UI as a hint to open the last location
   the app used.

bug:11127269

Change-Id: Ia93820bdae0b0e7600a0930b1f10d9708bd86b68
2013-10-11 09:11:24 -07:00
John Spurlock
aaa9ffebc0 am 89d1ac63: am cf80c6c7: am 8ca2d052: Merge "Fix dock rect calculation when nav is translucent." into klp-dev
* commit '89d1ac638d6f69a3d974487135407cd001366ea2':
  Fix dock rect calculation when nav is translucent.
2013-10-11 08:57:15 -07:00
John Spurlock
89d1ac638d am cf80c6c7: am 8ca2d052: Merge "Fix dock rect calculation when nav is translucent." into klp-dev
* commit 'cf80c6c73541bcfbc7f787834f9b9e7807f52ef8':
  Fix dock rect calculation when nav is translucent.
2013-10-11 08:55:36 -07:00
John Spurlock
cf80c6c735 am 8ca2d052: Merge "Fix dock rect calculation when nav is translucent." into klp-dev
* commit '8ca2d05293759dbcebcf99a6b787bfc09345f109':
  Fix dock rect calculation when nav is translucent.
2013-10-11 08:52:57 -07:00
John Spurlock
8ca2d05293 Merge "Fix dock rect calculation when nav is translucent." into klp-dev 2013-10-11 15:49:54 +00:00
Baligh Uddin
a9f56df155 am d2f0d91b: (-s ours) am 2806e4be: (-s ours) am 38de7ab4: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-dev
* commit 'd2f0d91b96b3bc7d5c067065dbf9c727df93b1e2':
  Import translations. DO NOT MERGE
2013-10-11 08:30:06 -07:00
Baligh Uddin
2c63cd0a12 am 16212a97: (-s ours) am 0066a866: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-ub-dev
* commit '16212a971c170acd38f1b750dc7058a782d31cc9':
  Import translations. DO NOT MERGE
2013-10-11 08:26:23 -07:00
Baligh Uddin
d2f0d91b96 am 2806e4be: (-s ours) am 38de7ab4: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-dev
* commit '2806e4be99bb6264092bb8cd8a3ce39250f51d51':
  Import translations. DO NOT MERGE
2013-10-11 08:23:31 -07:00
Baligh Uddin
fd050e32c5 am ce76c434: (-s ours) am 9aa75f29: (-s ours) am ccfd6f44: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-dev
* commit 'ce76c4341b34e4122c72435aa1e3123b94e83045':
  Import translations. DO NOT MERGE
2013-10-11 08:22:43 -07:00
Baligh Uddin
a6aa9bda76 am 01c34ac6: (-s ours) am c0cad456: (-s ours) am 6db72277: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-dev
* commit '01c34ac6f5b1b91bd2b7a8ad61660d4e9002251b':
  Import translations. DO NOT MERGE
2013-10-11 08:22:39 -07:00
Baligh Uddin
309a5a5c57 am d7b78c38: (-s ours) am 25130be0: (-s ours) am 491ad45f: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-dev
* commit 'd7b78c38738a2ad9bad06f8588fd8c7eab77425a':
  Import translations. DO NOT MERGE
2013-10-11 08:22:36 -07:00
Baligh Uddin
9424a7ac52 am 907c6497: (-s ours) am bcb05cd0: (-s ours) am d32e9b7f: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-dev
* commit '907c6497844cfd3d553ebfa02e673cbd805da704':
  Import translations. DO NOT MERGE
2013-10-11 08:22:34 -07:00
Baligh Uddin
5c7a6c8429 am 293c23a8: (-s ours) am b7c280af: (-s ours) am 29cff852: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-dev
* commit '293c23a860cae2a2f9bcb49425c50b10db67cf7d':
  Import translations. DO NOT MERGE
2013-10-11 08:22:30 -07:00
Baligh Uddin
b23d4088cb am 7054f6e3: (-s ours) am a60212ab: (-s ours) am d010f7a3: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-dev
* commit '7054f6e3c0f89dbd0b158b8fe0bd6b2b5c008f41':
  Import translations. DO NOT MERGE
2013-10-11 08:22:25 -07:00
Baligh Uddin
2806e4be99 am 38de7ab4: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-dev
* commit '38de7ab47a75f5139b7593e7231d194cc00be31c':
  Import translations. DO NOT MERGE
2013-10-11 08:20:23 -07:00
Baligh Uddin
16212a971c am 0066a866: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-ub-dev
* commit '0066a866b6945f5f3bba24974d30880752c38349':
  Import translations. DO NOT MERGE
2013-10-11 08:19:49 -07:00