117159 Commits

Author SHA1 Message Date
Elliott Hughes
5c1aa4efa9 am ede7f9d3: am 9e71310d: Merge "Remove incorrect (and unused) capget code."
* commit 'ede7f9d3a39d87f12d58df495f28108784e9b588':
  Remove incorrect (and unused) capget code.
2013-11-07 23:05:33 -08:00
Elliott Hughes
ede7f9d3a3 am 9e71310d: Merge "Remove incorrect (and unused) capget code."
* commit '9e71310d15d9dfcbf5e1c94948e0260f3dc3e678':
  Remove incorrect (and unused) capget code.
2013-11-07 23:03:43 -08:00
Elliott Hughes
9e71310d15 Merge "Remove incorrect (and unused) capget code." 2013-11-08 07:01:43 +00:00
Elliott Hughes
42a4bb5730 Remove incorrect (and unused) capget code.
Note that if you revert this change, the code it removes is incorrect,
and doesn't handle the top 32 bits of capabilities, one of which we're
already using: CAP_BLOCK_SUSPEND.

Bug: 11508244
Change-Id: Ice1f51334bce4941c6d24d6016450a2ebcf92886
2013-11-07 22:35:23 -08:00
Ruben Brunk
e73b41b27f camera2: Remove prior repeating request when setting.
Bug: 11579778
Change-Id: Idb10662413ff5ee939adbdeab68a97cb34750fac
2013-11-07 19:30:43 -08:00
Jim Miller
0b9d8accc5 Delay tearing down external displays until keyguard finishes
This waits until the keyguard window is actually removed before turning
off external presentations to avoid flashing the user's password.

Fixes bug 11562369

Change-Id: I74bfc0d5e23dccc5a8628abfe02868c71c371f6e
2013-11-07 19:15:49 -08:00
Christopher Tate
50cbfd554f System package permission decls take precedence over 3rd party apps'
In particular, if a 3rd party app tries to define a permission that
turns out to be defined by system packages following an upgrade,
the system package gets ownership and grants are re-evaluated
on that basis.

Bug 11242510

(Cherry-pick backport to JB)

Change-Id: Iabf7b6280e6c6674a51af5624142bd19ea0750ed
2013-11-07 19:04:22 -08:00
Jim Miller
3192148fb4 Show keyguard scrim on external displays while keyguard showing
Fixes bug 11562369

Change-Id: I577f9d3683e62689954b4640601b3f360b78cb31
2013-11-07 18:44:56 -08:00
Maxim Siniavine
134b91469c am d66cbc0b: am 598a7aed: Merge "Fix BandwidthTest to report correct stats." into klp-dev
* commit 'd66cbc0bb28b016359f696da45939cab30c71906':
  Fix BandwidthTest to report correct stats.
2013-11-07 18:03:22 -08:00
Maxim Siniavine
d66cbc0bb2 am 598a7aed: Merge "Fix BandwidthTest to report correct stats." into klp-dev
* commit '598a7aedfb6b77fc98bace9f420968a6f3ed637e':
  Fix BandwidthTest to report correct stats.
2013-11-07 18:01:04 -08:00
Maxim Siniavine
598a7aedfb Merge "Fix BandwidthTest to report correct stats." into klp-dev 2013-11-08 01:56:16 +00:00
Jeff Brown
6a1a2f9b88 am 7938feef: am 52277428: Merge "Integrate remote display providers into Quick Settings." into klp-dev
* commit '7938feef5abd003bf54efa4f862f995856305e44':
  Integrate remote display providers into Quick Settings.
2013-11-07 17:44:17 -08:00
Jeff Brown
c2b652fd4d am 5182ea4b: am d40a4d74: Merge "Add media router service and integrate with remote displays." into klp-dev
* commit '5182ea4bb20ec8fbe9562d0eaae8135d433ea0b6':
  Add media router service and integrate with remote displays.
2013-11-07 17:44:14 -08:00
Jeff Brown
84d760257f am eb223425: am 1f7a8a06: Merge "Add a platform library for remote display providers." into klp-dev
* commit 'eb223425e38cd9a3da12cd38c8c41e696c6b7e96':
  Add a platform library for remote display providers.
2013-11-07 17:44:10 -08:00
Jeff Brown
7938feef5a am 52277428: Merge "Integrate remote display providers into Quick Settings." into klp-dev
* commit '52277428d54cc71f0cde3f1efa035f1e6742b900':
  Integrate remote display providers into Quick Settings.
2013-11-07 17:41:48 -08:00
Jeff Brown
5182ea4bb2 am d40a4d74: Merge "Add media router service and integrate with remote displays." into klp-dev
* commit 'd40a4d74c623175c96a2e9d865a99826e56d1132':
  Add media router service and integrate with remote displays.
2013-11-07 17:41:44 -08:00
Jeff Brown
eb223425e3 am 1f7a8a06: Merge "Add a platform library for remote display providers." into klp-dev
* commit '1f7a8a06256907e03405f89108f081289c23e97a':
  Add a platform library for remote display providers.
2013-11-07 17:41:41 -08:00
Jeff Brown
52277428d5 Merge "Integrate remote display providers into Quick Settings." into klp-dev 2013-11-08 01:37:03 +00:00
Jeff Brown
d40a4d74c6 Merge "Add media router service and integrate with remote displays." into klp-dev 2013-11-08 01:36:55 +00:00
Jeff Brown
1f7a8a0625 Merge "Add a platform library for remote display providers." into klp-dev 2013-11-08 01:36:41 +00:00
John Spurlock
9f6e8e0361 am 94cab389: am 1e45fd78: Merge "Fix improperly hidden status bar." into klp-dev
* commit '94cab389e4f81d454316789fb0a6fbe954080a08':
  Fix improperly hidden status bar.
2013-11-07 16:51:19 -08:00
John Spurlock
94cab389e4 am 1e45fd78: Merge "Fix improperly hidden status bar." into klp-dev
* commit '1e45fd78090693c5eff346feb32bab90f31a5e30':
  Fix improperly hidden status bar.
2013-11-07 16:49:35 -08:00
John Spurlock
1e45fd7809 Merge "Fix improperly hidden status bar." into klp-dev 2013-11-08 00:47:14 +00:00
Glenn Kasten
14aa1ed0f4 Make AudioPackage10 (N4) more like AudioPackage12_48 (N5)
Replace keyboard and lock sounds with latest (softer) design.

Bug: 11158758
Change-Id: Ic40d53207be8b23fdafb3ac0c0852744950c79ec
2013-11-08 00:36:20 +00:00
Svetoslav
ebd616e88d am 134631b9: am 90242fe5: Merge "Switch to the new Skia PDF generation APIs." into klp-dev
* commit '134631b9078df0b9277fb3b8319bf3b85f690727':
  Switch to the new Skia PDF generation APIs.
2013-11-07 16:25:32 -08:00
Svetoslav
134631b907 am 90242fe5: Merge "Switch to the new Skia PDF generation APIs." into klp-dev
* commit '90242fe5581c8f665c09337a0971a7c3fc908f7c':
  Switch to the new Skia PDF generation APIs.
2013-11-07 16:22:22 -08:00
Svetoslav
90242fe558 Merge "Switch to the new Skia PDF generation APIs." into klp-dev 2013-11-08 00:20:10 +00:00
Jeff Brown
635e915296 Integrate remote display providers into Quick Settings.
This is a first pass at integrating new remote display functionality
into Quick Settings.  The Wireless Display card which previously
only supported Wifi Display is reimplemented to use the media router
to enumerate available remote display routes.  This ensures that the
user is presented with a consistent state regarding the currently
selected display route.

In this patch, the Wireless Display card still launches the old
Settings preference page for Wifi Display when clicked.  This will be
addressed in future patches.

As part of this change, it was necessary to derive some new lifecycle
information regarding the visibility of the Quick Settings model.
When Quick Settings is shown, an onPrepare event is delivered to
give the model a chance to update its state.  Likewise when Quick
Settings is hidden, an onUnprepare event is delivered.

These events allow the system to determine precisely when remote
display discovery is required to update the UI so as not to waste
power performing discovery in the background all of the time.

Bug: 11257292
Change-Id: Id802aa0983b625aeb972b5d123e4cc080dd6705f
2013-11-07 16:07:18 -08:00
Selim Gurun
1bd7918fc2 am 6bb9588d: am e81f9755: am 9dcac6f1: (-s ours) am 0fed1239: am de38b23d: DO NOT MERGE Add a delimiter between scheme and host
* commit '6bb9588d767822a70823319170160ceb28c583f2':
  DO NOT MERGE Add a delimiter between scheme and host
2013-11-07 15:22:23 -08:00
Selim Gurun
6bb9588d76 am e81f9755: am 9dcac6f1: (-s ours) am 0fed1239: am de38b23d: DO NOT MERGE Add a delimiter between scheme and host
* commit 'e81f9755d914b5b87f18e5ed201a4903dc09baa6':
  DO NOT MERGE Add a delimiter between scheme and host
2013-11-07 15:20:12 -08:00
Selim Gurun
e81f9755d9 am 9dcac6f1: (-s ours) am 0fed1239: am de38b23d: DO NOT MERGE Add a delimiter between scheme and host
* commit '9dcac6f1a74b5d6a99b832818efb0a202a88dfe7':
  DO NOT MERGE Add a delimiter between scheme and host
2013-11-07 15:17:26 -08:00
Selim Gurun
9dcac6f1a7 am 0fed1239: am de38b23d: DO NOT MERGE Add a delimiter between scheme and host
* commit '0fed12396a12fd69b22c1b4ee4e27a93517eb6e2':
  DO NOT MERGE Add a delimiter between scheme and host
2013-11-07 15:14:33 -08:00
Selim Gurun
0fed12396a am de38b23d: DO NOT MERGE Add a delimiter between scheme and host
* commit 'de38b23d0f811bed29f462e580430fc3aa781049':
  DO NOT MERGE Add a delimiter between scheme and host
2013-11-07 15:10:58 -08:00
John Spurlock
f25706fc3e Fix improperly hidden status bar.
An app lib exposed a possible timing problem, causing the bars
to remain hidden after screen rotation during immersive mode.

Bug:11440463
Change-Id: I5166bdce78a876bc08b18f8b9a340366fbbbb70a
2013-11-07 18:02:43 -05:00
Jim Miller
eaacc7c1ba am bb78ae9e: am 8cba0d0b: Merge "Fix scrubbing behavior on keyguard music transport" into klp-dev
* commit 'bb78ae9eedce1136410be326274b5304e8e046dc':
  Fix scrubbing behavior on keyguard music transport
2013-11-07 14:57:16 -08:00
Jim Miller
bb78ae9eed am 8cba0d0b: Merge "Fix scrubbing behavior on keyguard music transport" into klp-dev
* commit '8cba0d0b21db0fc4f9006403d6706e5893582dc8':
  Fix scrubbing behavior on keyguard music transport
2013-11-07 14:54:37 -08:00
Jim Miller
8cba0d0b21 Merge "Fix scrubbing behavior on keyguard music transport" into klp-dev 2013-11-07 22:52:57 +00:00
Dianne Hackborn
0e40d1d3e1 Fix issue #11223338: Not retaining service started state while restarting
When I cleaned up how we maintained the lifecycle of the tracker with a
service, I broke most tracking of the service restart state.  (Since at
that point the service is no longer associated with a process, so I
must clean up the tracker state).  This change introduces a new special
case for interacting with a service tracker to explicitly tell it when
a service is being restarted.  It also fixes how we update the process
state when services are attached to it, so it goes in and out of the
restarting state correctly.

In addition:

- Maybe fix issue #11224000 (APR: Dependent processes not getting added
  to LRU list).  We were not clearing ServiceRecord.app when bringing
  down a service, so if for some reason there were still connections to
  it at that point (which could happen for example for non-create bindings),
  then we would so it when updating the LRU state of that client process.
- dumpsys procstats's package argument can now be a package or process
  name, and we will dump all relevent information we can find about that
  name.
- Generally improved the quality of the dumpsys procstats output with its
  various options.
- Fixed a bug in ActivityManager.dumpPackageState() where it would hang if
  the service was dumping too much, added meminfo to the set of things
  dumped, and tweaked command line options to include more data.
- Added some more cleaning code to ActiveServices.killServices() to make
  sure we clean out any restarting ServiceRecord entries when a process is
  being force stopped.
- Re-arranged ActiveServices.killServices() to do the main killing of the
  service first, to avoid some wtf() calls that could happen when removing
  connections.

Bug: 11223338
Bug: 11224000

Change-Id: I5db28561c2c78aa43561e52256ff92c02311c56f
2013-11-07 14:40:10 -08:00
Fabrice Di Meglio
275232a73b Improve RTL support for Immersive mode
- use start/end instead of left/ritgh padding
- related to bug #11537133 Hideycling looks broken (KOT36), missing left padding

Change-Id: I0d8e1de560dbf142a3c016ab6d6784361d88d32a
2013-11-07 14:40:10 -08:00
Fabrice Di Meglio
0e1f230112 Fix bug #11537133 Hideycling looks broken (KOT36), missing left padding
- enforce the Drawable boolean getPadding(Rect) contract for NinePatchDrawable
and DrawableContainer.

- as NinePatchDrawable was not enforcing it, the consequence was that the
mUserPaddingLeftInitial / mUserPaddingRitghInitial were reset to "0" (even
if they got the correct value before the reset).

Change-Id: I1efe7fad5f89c0ca47f90189f6d89940e0e9c6ae
2013-11-07 14:40:09 -08:00
Svetoslav
35aacf2eb3 Switch to the new Skia PDF generation APIs.
The new Skia PDF generation APIs are a small extension to
the code that converts drawing commands to PDF (SkPDFDevice)
and this new functionality is exposed via new APIs. This
change switches to using these new APIs allowing us to
capitalize on the new perspective support for PDF
generation.

bug:11561776

Change-Id: Ief61f7ff6a5a22c27d3acbe99a48910cb679f594
2013-11-07 14:15:19 -08:00
Craig Mautner
25f6d3e6e0 am f7dea15b: am c9ffd746: Merge "Don\'t call setTask twice." into klp-dev
* commit 'f7dea15b8275dd012b1b00b9d781711eff82105a':
  Don't call setTask twice.
2013-11-07 12:58:20 -08:00
Craig Mautner
f7dea15b82 am c9ffd746: Merge "Don\'t call setTask twice." into klp-dev
* commit 'c9ffd74659fac6f30f3f4653586af2069b903899':
  Don't call setTask twice.
2013-11-07 12:54:50 -08:00
Craig Mautner
bf98c0ccd9 am c0eb7e7b: am 20409674: Merge "If home activity is not fullscreen keep drilling." into klp-dev
* commit 'c0eb7e7b545822dfb3cd43175886f2c97069e122':
  If home activity is not fullscreen keep drilling.
2013-11-07 12:53:37 -08:00
Craig Mautner
c9ffd74659 Merge "Don't call setTask twice." into klp-dev 2013-11-07 20:51:30 +00:00
Craig Mautner
c0eb7e7b54 am 20409674: Merge "If home activity is not fullscreen keep drilling." into klp-dev
* commit '2040967478790f67e286b203d5397159ac34006e':
  If home activity is not fullscreen keep drilling.
2013-11-07 12:51:21 -08:00
Craig Mautner
2040967478 Merge "If home activity is not fullscreen keep drilling." into klp-dev 2013-11-07 20:49:02 +00:00
Craig Mautner
f41bcd47ea If home activity is not fullscreen keep drilling.
When the home activity launches a non-fullscreen activity as part of
its own task then ensureActivitiesVisibleLocked() must continue past
the launched activity when determining activities to show and hide.
Stopping at the non-fullscreen activity leaves the fullscreen home
activity hidden.

Fixes bug 11555762.

Change-Id: I9058d8cde3a41cb7f9b1f97e5c0cb32e9b0f5af7
2013-11-07 11:51:29 -08:00
Selim Gurun
de38b23d0f DO NOT MERGE Add a delimiter between scheme and host
Bug: 6923539

Change-Id: Ia78e185f00184c53babe00df3c852114ffd721f0
2013-11-07 11:41:32 -08:00
Fabrice Di Meglio
0be8fa713f am e43780c6: am ff49e2d9: Merge "Improve RTL support for Immersive mode" into klp-dev
* commit 'e43780c6b768ee5eb2469f8eefc86a4f2ecc9906':
  Improve RTL support for Immersive mode
2013-11-07 11:23:32 -08:00