OSDN Git Service

android-x86/frameworks-base.git
10 years agomerge in klp-mr1-release history after reset to klp-dev
The Android Automerger [Sun, 10 Nov 2013 14:00:52 +0000 (06:00 -0800)]
merge in klp-mr1-release history after reset to klp-dev

10 years agoMerge "Restore permission check in keyguard." into klp-dev
Jim Miller [Sat, 9 Nov 2013 00:22:07 +0000 (00:22 +0000)]
Merge "Restore permission check in keyguard." into klp-dev

10 years agoMerge "Avoid unnecessary ticker animation if already visible." into klp-dev
John Spurlock [Fri, 8 Nov 2013 23:00:30 +0000 (23:00 +0000)]
Merge "Avoid unnecessary ticker animation if already visible." into klp-dev

10 years agoRestore permission check in keyguard.
Jim Miller [Fri, 8 Nov 2013 21:25:36 +0000 (13:25 -0800)]
Restore permission check in keyguard.

Fixes bug 11584685

Change-Id: I80621f5608505bdc365930e0276c297c0d5bff67

10 years agoAvoid unnecessary ticker animation if already visible.
John Spurlock [Fri, 8 Nov 2013 21:56:54 +0000 (16:56 -0500)]
Avoid unnecessary ticker animation if already visible.

When ticker disabled (e.g. on lockscreen) we should avoid
animating on halt if already halted.

Bug:11033324
Change-Id: Id2927d66492a128928b80ff98dc9182209be0652

10 years agocamera2: Remove prior repeating request when setting.
Ruben Brunk [Fri, 8 Nov 2013 03:30:43 +0000 (19:30 -0800)]
camera2: Remove prior repeating request when setting.

Bug: 11579778
Change-Id: Idb10662413ff5ee939adbdeab68a97cb34750fac

10 years agomerge in release branch changes (no-op).
Ed Heyl [Fri, 8 Nov 2013 21:23:49 +0000 (13:23 -0800)]
merge in release branch changes (no-op).

10 years agoam 5d515f26: am fd706246: am 562fddce: am 05e3f55f: am 1d8f592a: am ef12b1d4: am...
Christopher Tate [Fri, 8 Nov 2013 20:57:49 +0000 (12:57 -0800)]
am 5d515f26: am fd706246: am 562fddce: am 05e3f55f: am 1d8f592a: am ef12b1d4: am ea198841: am ef4694cb: am ae229d99: am 43253333: am 50cbfd55: System package permission decls take precedence over 3rd party apps\'

* commit '5d515f269b155c8e98ef5c0f8057feb41310f80f':
  System package permission decls take precedence over 3rd party apps'

10 years agoam fd706246: am 562fddce: am 05e3f55f: am 1d8f592a: am ef12b1d4: am ea198841: am...
Christopher Tate [Fri, 8 Nov 2013 20:56:07 +0000 (12:56 -0800)]
am fd706246: am 562fddce: am 05e3f55f: am 1d8f592a: am ef12b1d4: am ea198841: am ef4694cb: am ae229d99: am 43253333: am 50cbfd55: System package permission decls take precedence over 3rd party apps\'

* commit 'fd70624629c42b0e0444a4d99ba64d58551fa6b0':
  System package permission decls take precedence over 3rd party apps'

10 years agoam 562fddce: am 05e3f55f: am 1d8f592a: am ef12b1d4: am ea198841: am ef4694cb: am...
Christopher Tate [Fri, 8 Nov 2013 20:51:56 +0000 (12:51 -0800)]
am 562fddce: am 05e3f55f: am 1d8f592a: am ef12b1d4: am ea198841: am ef4694cb: am ae229d99: am 43253333: am 50cbfd55: System package permission decls take precedence over 3rd party apps\'

* commit '562fddce2f154f8adec91cc8a4c4ef1fb4eabcfe':
  System package permission decls take precedence over 3rd party apps'

10 years agoam 05e3f55f: am 1d8f592a: am ef12b1d4: am ea198841: am ef4694cb: am ae229d99: am...
Christopher Tate [Fri, 8 Nov 2013 20:47:43 +0000 (12:47 -0800)]
am 05e3f55f: am 1d8f592a: am ef12b1d4: am ea198841: am ef4694cb: am ae229d99: am 43253333: am 50cbfd55: System package permission decls take precedence over 3rd party apps\'

* commit '05e3f55f17e36b415a23095dbeaa1d04716aed5a':
  System package permission decls take precedence over 3rd party apps'

10 years agoam 1d8f592a: am ef12b1d4: am ea198841: am ef4694cb: am ae229d99: am 43253333: am...
Christopher Tate [Fri, 8 Nov 2013 20:45:38 +0000 (12:45 -0800)]
am 1d8f592a: am ef12b1d4: am ea198841: am ef4694cb: am ae229d99: am 43253333: am 50cbfd55: System package permission decls take precedence over 3rd party apps\'

* commit '1d8f592a752c30534a6e03889f1ba42b232770ef':
  System package permission decls take precedence over 3rd party apps'

10 years agoam ef12b1d4: am ea198841: am ef4694cb: am ae229d99: am 43253333: am 50cbfd55: System...
Christopher Tate [Fri, 8 Nov 2013 20:41:57 +0000 (12:41 -0800)]
am ef12b1d4: am ea198841: am ef4694cb: am ae229d99: am 43253333: am 50cbfd55: System package permission decls take precedence over 3rd party apps\'

* commit 'ef12b1d4a9ba6a91b61647feadaf2c4cdf34c356':
  System package permission decls take precedence over 3rd party apps'

10 years agoam ea198841: am ef4694cb: am ae229d99: am 43253333: am 50cbfd55: System package permi...
Christopher Tate [Fri, 8 Nov 2013 20:37:43 +0000 (12:37 -0800)]
am ea198841: am ef4694cb: am ae229d99: am 43253333: am 50cbfd55: System package permission decls take precedence over 3rd party apps\'

* commit 'ea198841a9e64d72de49811e0e2c555eb2c40b9b':
  System package permission decls take precedence over 3rd party apps'

10 years agoam ef4694cb: am ae229d99: am 43253333: am 50cbfd55: System package permission decls...
Christopher Tate [Fri, 8 Nov 2013 20:36:05 +0000 (12:36 -0800)]
am ef4694cb: am ae229d99: am 43253333: am 50cbfd55: System package permission decls take precedence over 3rd party apps\'

* commit 'ef4694cbdd2e374e063d5d89bcb7c4b041c20a30':
  System package permission decls take precedence over 3rd party apps'

10 years agoam ae229d99: am 43253333: am 50cbfd55: System package permission decls take precedenc...
Christopher Tate [Fri, 8 Nov 2013 20:34:13 +0000 (12:34 -0800)]
am ae229d99: am 43253333: am 50cbfd55: System package permission decls take precedence over 3rd party apps\'

* commit 'ae229d991711745bdf8da2e716c31efde534e6da':
  System package permission decls take precedence over 3rd party apps'

10 years agoam 43253333: am 50cbfd55: System package permission decls take precedence over 3rd...
Christopher Tate [Fri, 8 Nov 2013 20:31:09 +0000 (12:31 -0800)]
am 43253333: am 50cbfd55: System package permission decls take precedence over 3rd party apps\'

* commit '43253333d24e856a7ffef818fdfaedf3fd60d3b6':
  System package permission decls take precedence over 3rd party apps'

10 years agoam 50cbfd55: System package permission decls take precedence over 3rd party apps\'
Christopher Tate [Fri, 8 Nov 2013 20:27:10 +0000 (12:27 -0800)]
am 50cbfd55: System package permission decls take precedence over 3rd party apps\'

* commit '50cbfd554f0bdf05c701d8baf15c862fbb8a6dc0':
  System package permission decls take precedence over 3rd party apps'

10 years agoMerge "Make AudioPackage10 (N4) more like AudioPackage12_48 (N5)" into klp-dev
Glenn Kasten [Fri, 8 Nov 2013 19:18:32 +0000 (19:18 +0000)]
Merge "Make AudioPackage10 (N4) more like AudioPackage12_48 (N5)" into klp-dev

10 years agoMerge changes I74bfc0d5,I577f9d36 into klp-dev
Jim Miller [Fri, 8 Nov 2013 18:58:04 +0000 (18:58 +0000)]
Merge changes I74bfc0d5,I577f9d36 into klp-dev

* changes:
  Delay tearing down external displays until keyguard finishes
  Show keyguard scrim on external displays while keyguard showing

10 years agoMerge "Allow keyguard dialogs to show on secondary displays." into klp-dev
Jeff Brown [Fri, 8 Nov 2013 18:53:41 +0000 (18:53 +0000)]
Merge "Allow keyguard dialogs to show on secondary displays." into klp-dev

10 years agoAllow keyguard dialogs to show on secondary displays.
Jeff Brown [Fri, 8 Nov 2013 01:58:15 +0000 (17:58 -0800)]
Allow keyguard dialogs to show on secondary displays.

When the keyguard or a dream is visible, we usually block content
from showing on secondary displays by mirroring the primary display
contents to them.  However, the keyguard may wish to show a
presentation on a secondary display in which case we should not
mirror.

This change adds an exemption for keyguard dialogs when the full
screen is obscured.  The keyguard can then create presentations with
the TYPE_KEYGUARD_DIALOG window type in order to show special
content on other displays selectively.

The old code used to cause all secondary displays to mirror, which
isn't quite what we want.

Bug: 11257292
Change-Id: I55429002b2233ae25fe80db149636d6f41f2a112

10 years agocamera2: Remove prior repeating request when setting.
Ruben Brunk [Fri, 8 Nov 2013 03:30:43 +0000 (19:30 -0800)]
camera2: Remove prior repeating request when setting.

Bug: 11579778
Change-Id: Idb10662413ff5ee939adbdeab68a97cb34750fac

10 years agoDelay tearing down external displays until keyguard finishes
Jim Miller [Fri, 8 Nov 2013 03:15:49 +0000 (19:15 -0800)]
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

10 years agoSystem package permission decls take precedence over 3rd party apps'
Christopher Tate [Tue, 5 Nov 2013 20:28:10 +0000 (12:28 -0800)]
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

10 years agoShow keyguard scrim on external displays while keyguard showing
Jim Miller [Thu, 7 Nov 2013 04:43:55 +0000 (20:43 -0800)]
Show keyguard scrim on external displays while keyguard showing

Fixes bug 11562369

Change-Id: I577f9d3683e62689954b4640601b3f360b78cb31

10 years agoMerge "Fix BandwidthTest to report correct stats." into klp-dev
Maxim Siniavine [Fri, 8 Nov 2013 01:56:16 +0000 (01:56 +0000)]
Merge "Fix BandwidthTest to report correct stats." into klp-dev

10 years agoMerge "Integrate remote display providers into Quick Settings." into klp-dev
Jeff Brown [Fri, 8 Nov 2013 01:37:03 +0000 (01:37 +0000)]
Merge "Integrate remote display providers into Quick Settings." into klp-dev

10 years agoMerge "Add media router service and integrate with remote displays." into klp-dev
Jeff Brown [Fri, 8 Nov 2013 01:36:55 +0000 (01:36 +0000)]
Merge "Add media router service and integrate with remote displays." into klp-dev

10 years agoMerge "Add a platform library for remote display providers." into klp-dev
Jeff Brown [Fri, 8 Nov 2013 01:36:41 +0000 (01:36 +0000)]
Merge "Add a platform library for remote display providers." into klp-dev

10 years agoMerge "Fix improperly hidden status bar." into klp-dev
John Spurlock [Fri, 8 Nov 2013 00:47:13 +0000 (00:47 +0000)]
Merge "Fix improperly hidden status bar." into klp-dev

10 years agoMake AudioPackage10 (N4) more like AudioPackage12_48 (N5)
Glenn Kasten [Thu, 7 Nov 2013 18:05:41 +0000 (10:05 -0800)]
Make AudioPackage10 (N4) more like AudioPackage12_48 (N5)

Replace keyboard and lock sounds with latest (softer) design.

Bug: 11158758
Change-Id: Ic40d53207be8b23fdafb3ac0c0852744950c79ec

10 years agoMerge "Switch to the new Skia PDF generation APIs." into klp-dev
Svetoslav [Fri, 8 Nov 2013 00:20:10 +0000 (00:20 +0000)]
Merge "Switch to the new Skia PDF generation APIs." into klp-dev

10 years agoIntegrate remote display providers into Quick Settings.
Jeff Brown [Thu, 7 Nov 2013 08:38:14 +0000 (00:38 -0800)]
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

10 years agoam 9dcac6f1: (-s ours) am 0fed1239: am de38b23d: DO NOT MERGE Add a delimiter between...
Selim Gurun [Thu, 7 Nov 2013 23:17:26 +0000 (15:17 -0800)]
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

10 years agoam 0fed1239: am de38b23d: DO NOT MERGE Add a delimiter between scheme and host
Selim Gurun [Thu, 7 Nov 2013 23:14:33 +0000 (15:14 -0800)]
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

10 years agoam de38b23d: DO NOT MERGE Add a delimiter between scheme and host
Selim Gurun [Thu, 7 Nov 2013 23:10:58 +0000 (15:10 -0800)]
am de38b23d: DO NOT MERGE Add a delimiter between scheme and host

* commit 'de38b23d0f811bed29f462e580430fc3aa781049':
  DO NOT MERGE Add a delimiter between scheme and host

10 years agoFix improperly hidden status bar.
John Spurlock [Thu, 7 Nov 2013 23:02:43 +0000 (18:02 -0500)]
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

10 years agoMerge "Fix scrubbing behavior on keyguard music transport" into klp-dev
Jim Miller [Thu, 7 Nov 2013 22:52:56 +0000 (22:52 +0000)]
Merge "Fix scrubbing behavior on keyguard music transport" into klp-dev

10 years agoFix issue #11223338: Not retaining service started state while restarting
Dianne Hackborn [Thu, 7 Nov 2013 00:30:29 +0000 (16:30 -0800)]
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

10 years agoImprove RTL support for Immersive mode
Fabrice Di Meglio [Wed, 6 Nov 2013 23:44:52 +0000 (15:44 -0800)]
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

10 years agoFix bug #11537133 Hideycling looks broken (KOT36), missing left padding
Fabrice Di Meglio [Wed, 6 Nov 2013 23:32:01 +0000 (15:32 -0800)]
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

10 years agoSwitch to the new Skia PDF generation APIs.
Svetoslav [Thu, 7 Nov 2013 02:22:13 +0000 (18:22 -0800)]
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

10 years agoMerge "Don't call setTask twice." into klp-dev
Craig Mautner [Thu, 7 Nov 2013 20:51:29 +0000 (20:51 +0000)]
Merge "Don't call setTask twice." into klp-dev

10 years agoMerge "If home activity is not fullscreen keep drilling." into klp-dev
Craig Mautner [Thu, 7 Nov 2013 20:49:01 +0000 (20:49 +0000)]
Merge "If home activity is not fullscreen keep drilling." into klp-dev

10 years agoIf home activity is not fullscreen keep drilling.
Craig Mautner [Thu, 7 Nov 2013 19:51:29 +0000 (11:51 -0800)]
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

10 years agoDO NOT MERGE Add a delimiter between scheme and host
Selim Gurun [Thu, 7 Nov 2013 19:40:02 +0000 (11:40 -0800)]
DO NOT MERGE Add a delimiter between scheme and host

Bug: 6923539

Change-Id: Ia78e185f00184c53babe00df3c852114ffd721f0

10 years agoMerge "Improve RTL support for Immersive mode" into klp-dev
Fabrice Di Meglio [Thu, 7 Nov 2013 19:18:14 +0000 (19:18 +0000)]
Merge "Improve RTL support for Immersive mode" into klp-dev

10 years agoMerge "Fix bug #11537133 Hideycling looks broken (KOT36), missing left padding" into...
Fabrice Di Meglio [Thu, 7 Nov 2013 19:17:59 +0000 (19:17 +0000)]
Merge "Fix bug #11537133 Hideycling looks broken (KOT36), missing left padding" into klp-dev

10 years agoMerge "Add BatteryStats for Wifi Batched Scanning." into klp-dev
Robert Greenwalt [Thu, 7 Nov 2013 18:30:49 +0000 (18:30 +0000)]
Merge "Add BatteryStats for Wifi Batched Scanning." into klp-dev

10 years agoMerge "Fix issue #11223338: Not retaining service started state while restarting...
Dianne Hackborn [Thu, 7 Nov 2013 18:16:10 +0000 (18:16 +0000)]
Merge "Fix issue #11223338: Not retaining service started state while restarting" into klp-dev

10 years agoDon't call setTask twice.
Craig Mautner [Thu, 7 Nov 2013 17:10:42 +0000 (09:10 -0800)]
Don't call setTask twice.

The method ActivityRecord.setTask() removes the ActivityRecord from
its old task's mActivities ArrayList. In jb-mr2 it did not have this
side effect (there was no mActivities) so calling it twice was not a
problem. This fix causes setTask to only be called once for the target
activity.

Fixes bug 11557835.

Change-Id: If2b6d4b297e86130009713efe6891a24fad3dd15

10 years agoAdd media router service and integrate with remote displays.
Jeff Brown [Thu, 7 Nov 2013 08:30:16 +0000 (00:30 -0800)]
Add media router service and integrate with remote displays.

This change adds a new media router service whose purpose is to track
global state information associated with media routes.  This service
publishes routes to the media router instance in application processes
and handles requested state changes such as selecting or unselecting
global routes.  The service also binds to remote display provider
services which can offer new remote display routes to the system.

Includes a test application for manually verifying certain aspects
of the operation of the media router service.

The remote display provider interface is essentially a stripped down
media route provider interface as defined in the support library
media router implementation.  For now, it is designed to be used only
by first parties to publish remote display routes to the system so
it is not exposed as public API in the SDK.  In the future, the remote
display provider interface will most likely be deprecated and replaced
with a more featureful media route provider interface for third
party integration, similar to what is in the support library today.

Further patch sets integrate these new capabilities into the System UI
and Settings for connecting remote displays.

Bug: 11257292
Change-Id: I31109f23f17b474d17534d0f5f4503e388b081c2

10 years agoAdd a platform library for remote display providers.
Jeff Brown [Wed, 6 Nov 2013 00:29:21 +0000 (16:29 -0800)]
Add a platform library for remote display providers.

This interface allows applications to register services that offer
remote displays to the system.  The system will then provide UI
to allow user to connect to these displays and enable mirroring.

Bug: 11257292
Change-Id: I34da5b9dfdaf71267bd3450c505bc1b7368d1b40

10 years agoMerge "Import translations. DO NOT MERGE" into klp-dev
Baligh Uddin [Thu, 7 Nov 2013 03:55:33 +0000 (03:55 +0000)]
Merge "Import translations. DO NOT MERGE" into klp-dev

10 years agoMerge "Import translations. DO NOT MERGE" into klp-dev
Baligh Uddin [Thu, 7 Nov 2013 03:55:19 +0000 (03:55 +0000)]
Merge "Import translations. DO NOT MERGE" into klp-dev

10 years agoMerge "Fix glitch with switching users from QuickSettings" into klp-dev
Jim Miller [Thu, 7 Nov 2013 03:14:37 +0000 (03:14 +0000)]
Merge "Fix glitch with switching users from QuickSettings" into klp-dev

10 years agoFix scrubbing behavior on keyguard music transport
Jim Miller [Fri, 25 Oct 2013 02:53:09 +0000 (19:53 -0700)]
Fix scrubbing behavior on keyguard music transport

This fixes a bug where the music scrub position would snap
back to a previous position. The problem was caused by latency
in the music application responding to scrub position changes.
The latency would mean that we'd get a response periodically
to some historical scrub position change.

Since we can't know when the state will become stable, we
just wait a little bit since the last update change before
continuing to update the scroll position.

In order to keep the music client from falling behind, we
throttle scrub updates.

Fixes bug 11351267

Change-Id: I6204833328751d1da781b4e078a2d557c1f93ff3

10 years agoAdd BatteryStats for Wifi Batched Scanning.
Robert Greenwalt [Wed, 25 Sep 2013 23:38:12 +0000 (16:38 -0700)]
Add BatteryStats for Wifi Batched Scanning.

bug:10690989
Change-Id: Ia39b715ee6d5733970095bc76de0ed40ff8208c0

10 years agoMerge "System package permission decls take precedence over 3rd party apps'" into...
Christopher Tate [Thu, 7 Nov 2013 00:54:54 +0000 (00:54 +0000)]
Merge "System package permission decls take precedence over 3rd party apps'" into klp-dev

10 years agoFix issue #11223338: Not retaining service started state while restarting
Dianne Hackborn [Thu, 7 Nov 2013 00:30:29 +0000 (16:30 -0800)]
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

10 years agoMerge "Merge toast frame assets, update themes, etc. accordingly" into klp-dev
Adam Powell [Thu, 7 Nov 2013 00:01:09 +0000 (00:01 +0000)]
Merge "Merge toast frame assets, update themes, etc. accordingly" into klp-dev

10 years agoImprove RTL support for Immersive mode
Fabrice Di Meglio [Wed, 6 Nov 2013 23:44:52 +0000 (15:44 -0800)]
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

10 years agoFix bug #11537133 Hideycling looks broken (KOT36), missing left padding
Fabrice Di Meglio [Wed, 6 Nov 2013 23:32:01 +0000 (15:32 -0800)]
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

10 years agoMerge "Fix NPE with inPurgeable Bitmaps in getAllocationByteCount" into klp-dev
Chris Craik [Wed, 6 Nov 2013 23:23:56 +0000 (23:23 +0000)]
Merge "Fix NPE with inPurgeable Bitmaps in getAllocationByteCount" into klp-dev

10 years agoMerge "Disable face unlock when returning from camera." into klp-dev
Ruben Brunk [Wed, 6 Nov 2013 23:22:54 +0000 (23:22 +0000)]
Merge "Disable face unlock when returning from camera." into klp-dev

10 years agoMerge "Tweak test for layout." into klp-dev
Craig Mautner [Wed, 6 Nov 2013 23:22:12 +0000 (23:22 +0000)]
Merge "Tweak test for layout." into klp-dev

10 years agoMerge "Ensure bar window state is SHOWING after rotate if visible." into klp-dev
Craig Mautner [Wed, 6 Nov 2013 23:19:58 +0000 (23:19 +0000)]
Merge "Ensure bar window state is SHOWING after rotate if visible." into klp-dev

10 years agoTweak test for layout.
Craig Mautner [Wed, 6 Nov 2013 22:52:36 +0000 (14:52 -0800)]
Tweak test for layout.

Return to old way of only laying out Keyguard on configuration change
and add a new qualifier that does a layout if a window is part of an
opening app. This qualifier allows apps that handle their own
configuration changes to be notified of screen changes after the
configuration has changed. Apps that do not handle their own
configuration changes find their way into this code because their
surfaces are recreated by default and mHaveFrame is false.

This fixes bug 11544694 and passes the test of all bugs listed in CL
ag/383579.

Change-Id: I3a679b27eb4a2c5210957bcd4ae2f10b46f6e076

10 years agoMerge toast frame assets, update themes, etc. accordingly
Adam Powell [Wed, 6 Nov 2013 22:28:17 +0000 (14:28 -0800)]
Merge toast frame assets, update themes, etc. accordingly

Bug 11355837

Change-Id: Ie221b7a8490a65c744e06474fb68f2f123762d5d

10 years agoMerge "Fix incorrect looping limits." into klp-dev
Craig Mautner [Wed, 6 Nov 2013 22:20:24 +0000 (22:20 +0000)]
Merge "Fix incorrect looping limits." into klp-dev

10 years agoEnsure bar window state is SHOWING after rotate if visible.
John Spurlock [Wed, 6 Nov 2013 17:20:38 +0000 (12:20 -0500)]
Ensure bar window state is SHOWING after rotate if visible.

Bug:11544694
Change-Id: Ied56f01a931f33437bdc05d026006cabcdef0149

10 years agoFix NPE with inPurgeable Bitmaps in getAllocationByteCount
Chris Craik [Wed, 6 Nov 2013 22:01:28 +0000 (14:01 -0800)]
Fix NPE with inPurgeable Bitmaps in getAllocationByteCount

bug:11556330
Change-Id: I430136ea15baeb60adfb9bb2acdde9505ce707fe

10 years agoFix incorrect looping limits.
Craig Mautner [Wed, 6 Nov 2013 21:55:08 +0000 (13:55 -0800)]
Fix incorrect looping limits.

One cannot iterate across an entire list if one both removes an entry
and increments the index into the list. Do one or the other or you
will end up with bugs like 11556768 which is now fixed.

Change-Id: I57f1ad13075a005cae3c1cbfae10e230d9af143a

10 years agoMerge "Fix lockscreen camera preview position in RTL." into klp-dev
John Spurlock [Wed, 6 Nov 2013 21:48:41 +0000 (21:48 +0000)]
Merge "Fix lockscreen camera preview position in RTL." into klp-dev

10 years agoMerge "Fix issue where transport control shows up off-screen on tablets" into klp-dev
Jim Miller [Wed, 6 Nov 2013 21:15:16 +0000 (21:15 +0000)]
Merge "Fix issue where transport control shows up off-screen on tablets" into klp-dev

10 years agoMerge "Continue synthesizing data even after brightness adjustment" into klp-dev
Michael Wright [Wed, 6 Nov 2013 20:33:08 +0000 (20:33 +0000)]
Merge "Continue synthesizing data even after brightness adjustment" into klp-dev

10 years agoFix BandwidthTest to report correct stats.
Maxim Siniavine [Tue, 5 Nov 2013 00:12:01 +0000 (16:12 -0800)]
Fix BandwidthTest to report correct stats.

The test used to report report stats for a random uid. Fixed it to report
stats for the Instrumentation uid or download manager uid, depending on the test.

Change-Id: I089162c19e25cbf0dfb05645a9a1018dd7567423

10 years agoImport translations. DO NOT MERGE
Baligh Uddin [Wed, 6 Nov 2013 20:05:23 +0000 (12:05 -0800)]
Import translations. DO NOT MERGE

Change-Id: I74c56a144553ebe2d3d8587537f0d160fe3c6840
Auto-generated-cl: translation import

10 years agoImport translations. DO NOT MERGE
Baligh Uddin [Wed, 6 Nov 2013 19:53:23 +0000 (11:53 -0800)]
Import translations. DO NOT MERGE

Change-Id: I13dd4dfd6492c31975cd61e28caeea940a5f66cb
Auto-generated-cl: translation import

10 years agoFix lockscreen camera preview position in RTL.
John Spurlock [Wed, 6 Nov 2013 14:35:07 +0000 (09:35 -0500)]
Fix lockscreen camera preview position in RTL.

Bug:11263914
Change-Id: Ic3e5157ceb82495d10afd74b3af2655434a9467c

10 years agoMerge "Fix for Typeface.create(Typeface, style) semantics changed in KK" into klp-dev
Victoria Lease [Wed, 6 Nov 2013 19:30:22 +0000 (19:30 +0000)]
Merge "Fix for Typeface.create(Typeface, style) semantics changed in KK" into klp-dev

10 years agoFix for Typeface.create(Typeface, style) semantics changed in KK
Raph Levien [Wed, 6 Nov 2013 19:12:11 +0000 (11:12 -0800)]
Fix for Typeface.create(Typeface, style) semantics changed in KK

This is a fix for bug 11553661. The "closest match" heuristic for
resolving a typeface when an exact match was not found changed between
JB MR2 and KK, resulting in loss of custom typeface when StyleSpan was
applied. This patch reinstates the logic that had been present. Also
reported externally as:
https://code.google.com/p/android/issues/detail?id=61771

Change-Id: Ia432fca07c4bf3b830ee2487cd8f5267a9cfb7ff

10 years agoMerge "Fix calculation of default wallpaper size" into klp-dev
Michael Jurka [Wed, 6 Nov 2013 19:06:49 +0000 (19:06 +0000)]
Merge "Fix calculation of default wallpaper size" into klp-dev

10 years agoDisable face unlock when returning from camera.
Ruben Brunk [Wed, 6 Nov 2013 02:29:06 +0000 (18:29 -0800)]
Disable face unlock when returning from camera.

Bug: 11063890

- Workaround for bug 11063890.  Avoids the acquire/release
  race when resuming face unlock while pausing the camera
  widget.
Change-Id: I0a58f3a07f346da72ea55772242b4f9c54537235

10 years agoMerge "Add HSPA+ to BatteryStats" into klp-dev
Patrick Tjin [Wed, 6 Nov 2013 18:12:47 +0000 (18:12 +0000)]
Merge "Add HSPA+ to BatteryStats" into klp-dev

10 years agoMerge "gcam: Avoid leaking repeating CaptureRequests." into klp-dev
Ruben Brunk [Wed, 6 Nov 2013 18:07:27 +0000 (18:07 +0000)]
Merge "gcam: Avoid leaking repeating CaptureRequests." into klp-dev

10 years agoMerge "Fix off-by-one issue when removing from Iterator" into klp-dev
Adam Lesinski [Wed, 6 Nov 2013 17:49:20 +0000 (17:49 +0000)]
Merge "Fix off-by-one issue when removing from Iterator" into klp-dev

10 years agoAdd HSPA+ to BatteryStats
Patrick Tjin [Wed, 6 Nov 2013 17:27:03 +0000 (09:27 -0800)]
Add HSPA+ to BatteryStats

HSPA+ was being shown as connection type other in battery
statistics because it was not updated when TelephonyManager
was changed.

Bug: 11552902
Change-Id: I85ce7c393bf93010a4ac8437f14684015ad0391a

10 years agoMerge "AudioService: fix notifications with A2DP abs volume" into klp-dev
Eric Laurent [Wed, 6 Nov 2013 16:39:11 +0000 (16:39 +0000)]
Merge "AudioService: fix notifications with A2DP abs volume" into klp-dev

10 years agoMerge "More background protection in Recents for status bar" into klp-dev
Michael Jurka [Wed, 6 Nov 2013 12:38:22 +0000 (12:38 +0000)]
Merge "More background protection in Recents for status bar" into klp-dev

10 years agoFix calculation of default wallpaper size
Michael Jurka [Wed, 6 Nov 2013 12:22:51 +0000 (13:22 +0100)]
Fix calculation of default wallpaper size

Bug: 11324470

10 years agoFix issue where transport control shows up off-screen on tablets
Jim Miller [Wed, 6 Nov 2013 02:17:59 +0000 (18:17 -0800)]
Fix issue where transport control shows up off-screen on tablets

This fix selects the current page ealier in the reconstruction
of Keyguard to ensure the layout bounds of KeyguardWidgetPager are
correct by the time it does the initial layout.

In addition this change postpones selecting the transport page if
the transport was just added.

Fixes bug 11287144

Change-Id: I92ba8bb5e13c166d13fbaa26881f5034d5ab2104

10 years agoMerge "Update remaining settings icon with old style." into klp-dev
John Spurlock [Wed, 6 Nov 2013 02:48:06 +0000 (02:48 +0000)]
Merge "Update remaining settings icon with old style." into klp-dev

10 years agoUpdate remaining settings icon with old style.
John Spurlock [Wed, 6 Nov 2013 02:39:40 +0000 (21:39 -0500)]
Update remaining settings icon with old style.

Bug:11412369
Change-Id: I7827e3060d9dbf320c23ac7c43e4ef4a5fae3773

10 years agoMerge "Fix recent regression in DrawableContainer." into klp-dev
John Spurlock [Wed, 6 Nov 2013 02:29:19 +0000 (02:29 +0000)]
Merge "Fix recent regression in DrawableContainer." into klp-dev

10 years agoMerge "Work around nested SaveLayerAlpha bug" into klp-dev
Chris Craik [Wed, 6 Nov 2013 02:20:20 +0000 (02:20 +0000)]
Merge "Work around nested SaveLayerAlpha bug" into klp-dev

10 years agoWork around nested SaveLayerAlpha bug
Chris Craik [Wed, 6 Nov 2013 01:41:21 +0000 (17:41 -0800)]
Work around nested SaveLayerAlpha bug

bug:11481077

Because TextView marquee and KeyguardSecurityViewFlipper use SaveLayer
(for the marquee fading effect and view alpha, respectively), both can
be nested, which hits a bug in the renderer resulting in artifacts.

Workaround this by setting a hardware layer on the marquee, so that
those marquee effects are drawn outside of the ViewFlipper.

Change-Id: If8b7ebb20d3959cb930a8bea2146ba3f8e659612

10 years agoMerge "Doc fix: add more detail to BitmapFactory.Options.inPurgeable flag. Bug: 60647...
Adam Koch [Wed, 6 Nov 2013 01:13:44 +0000 (01:13 +0000)]
Merge "Doc fix: add more detail to BitmapFactory.Options.inPurgeable flag. Bug: 6064760" into klp-dev

10 years agoSystem package permission decls take precedence over 3rd party apps'
Christopher Tate [Tue, 5 Nov 2013 20:28:10 +0000 (12:28 -0800)]
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

Change-Id: Id3a2b53d52750c629414cd8226e33e5e03dd0c54