OSDN Git Service

android-x86/frameworks-base.git
11 years agoMerge "Add operator name to network notification" into jb-mr1-dev
Irfan Sheriff [Tue, 2 Oct 2012 22:31:20 +0000 (15:31 -0700)]
Merge "Add operator name to network notification" into jb-mr1-dev

11 years agoam e81e42d7: (-s ours) Reconcile with jb-release - do not merge
The Android Open Source Project [Tue, 2 Oct 2012 21:49:12 +0000 (14:49 -0700)]
am e81e42d7: (-s ours) Reconcile with jb-release - do not merge

* commit 'e81e42d7a6bb1bc7b29d0a7d475f750b524e3fec':
  Show plmn in emergency call allowed mode.

11 years agoReconcile with jb-release - do not merge
The Android Open Source Project [Tue, 2 Oct 2012 21:47:40 +0000 (14:47 -0700)]
Reconcile with jb-release - do not merge

Change-Id: Ie81134aa556b0deb90dcba3d914d58558f3600a9

11 years agoMerge "Draw stroked rectangle as meshes instead of textures Bug #7233734" into jb...
Romain Guy [Tue, 2 Oct 2012 21:29:47 +0000 (14:29 -0700)]
Merge "Draw stroked rectangle as meshes instead of textures Bug #7233734" into jb-mr1-dev

11 years agoMerge "Disable quick settings for users until USER_SETUP_COMPLETE." into jb-mr1-dev
John Spurlock [Tue, 2 Oct 2012 21:15:22 +0000 (14:15 -0700)]
Merge "Disable quick settings for users until USER_SETUP_COMPLETE." into jb-mr1-dev

11 years agoAdd operator name to network notification
Irfan Sheriff [Tue, 2 Oct 2012 21:01:28 +0000 (14:01 -0700)]
Add operator name to network notification

Bug: 7087564
Change-Id: Ibe7a09fc6858dfea5f65092777bbd6ca82177043

11 years agoMerge "Fix camera disambiguation in secure keyguard" into jb-mr1-dev
Jim Miller [Tue, 2 Oct 2012 20:58:00 +0000 (13:58 -0700)]
Merge "Fix camera disambiguation in secure keyguard" into jb-mr1-dev

11 years agoMerge "Migrate more System and Secure settings to Global." into jb-mr1-dev
Jeff Sharkey [Tue, 2 Oct 2012 20:57:29 +0000 (13:57 -0700)]
Merge "Migrate more System and Secure settings to Global." into jb-mr1-dev

11 years agoMerge "re-use status bar DateView in QuickSettings." into jb-mr1-dev
Chris Wren [Tue, 2 Oct 2012 20:55:59 +0000 (13:55 -0700)]
Merge "re-use status bar DateView in QuickSettings." into jb-mr1-dev

11 years agoMigrate more System and Secure settings to Global.
Jeff Sharkey [Mon, 1 Oct 2012 20:39:08 +0000 (13:39 -0700)]
Migrate more System and Secure settings to Global.

Includes telephony, WindowManager, PackageManager, and debugging
settings.  Update API to point towards moved values.

Bug: 723176472312527231156
Change-Id: I5828747205708872f19f83a5bc821ed0a801cb79

11 years agoMerge "Fix jump cut when dismissing items in Recents" into jb-mr1-dev
Michael Jurka [Tue, 2 Oct 2012 20:49:56 +0000 (13:49 -0700)]
Merge "Fix jump cut when dismissing items in Recents" into jb-mr1-dev

11 years agoDisable quick settings for users until USER_SETUP_COMPLETE.
John Spurlock [Tue, 2 Oct 2012 20:41:12 +0000 (16:41 -0400)]
Disable quick settings for users until USER_SETUP_COMPLETE.

If the current user has not yet made it through the setup wizard,
disable the quick settings panel entirely.

Use Settings.Secure.USER_SETUP_COMPLETE as the signal.  This is a
per-user setting, so be careful to observe only on the current user's
behalf.

Bug:6712493
Change-Id: I3076a8a550165a9eeccf7fb129d470ef4ddeaed4

11 years agoDraw stroked rectangle as meshes instead of textures
Romain Guy [Tue, 2 Oct 2012 19:32:25 +0000 (12:32 -0700)]
Draw stroked rectangle as meshes instead of textures
Bug #7233734

Stroked rectangles were rendered using software generated textures
which would lead to slightly misaligned results. Instead, let's use
the new convex path rendering code that will do the right thing
(and save a lot of bandwidth.)

Change-Id: Ib95ff581e56c1ecead97e4919298e6fd146ca167

11 years agoMerge "Touch explorer and magnifier do not work well together." into jb-mr1-dev
Svetoslav Ganov [Tue, 2 Oct 2012 20:14:06 +0000 (13:14 -0700)]
Merge "Touch explorer and magnifier do not work well together." into jb-mr1-dev

11 years agoMerge "Fix for bug 7234184 F/TextLayoutCache: Failed to put an entry..." into jb...
Raph Levien [Tue, 2 Oct 2012 20:02:30 +0000 (13:02 -0700)]
Merge "Fix for bug 7234184 F/TextLayoutCache: Failed to put an entry..." into jb-mr1-dev

11 years agoFix for bug 7234184 F/TextLayoutCache: Failed to put an entry...
Raph Levien [Tue, 2 Oct 2012 17:30:41 +0000 (10:30 -0700)]
Fix for bug 7234184 F/TextLayoutCache: Failed to put an entry...

This bug was triggered by user code concurrently mutating the character
array while calling into a drawText method in another thread. When the
value of the array changed, it caused inconsistent state, leading to
assert failures.

This is arguably bad behavior by the user code, but it shouldn't cause a
native crash. The fix is to do a defensive copy of the text into the
key, so the value is guaranteed to remain constant throughout the text
layout process. The change is mostly deletion of code, because there was
an optimization to try to avoid such a copy. That optimization was not
actually effective, however, because the indexOfKey() operation in the
KeyedVector underlying the TextLayoutCache did the copy anyway. Thus,
even though this change looks like it's introducing a copy where there
wasn't one before, the actual performance impact should be nil.

Note that the ability to handle a mutating argument is now part of the
contract for TextLayoutEngine::getValue(), and is now documented. That
contract may change, as the result of future optimization. Also, care
was taken to only use the value after the copy.

Other performance issues with TextLayoutCache are tracked in bug
7271109.

Change-Id: I9c90e8e4d501f3f37e2f22a7851f032808d46fbe

11 years agoFix jump cut when dismissing items in Recents
Michael Jurka [Tue, 2 Oct 2012 12:42:53 +0000 (14:42 +0200)]
Fix jump cut when dismissing items in Recents

(fixing horizontal scroll view in this CL... whoops).

Bug: 7070897
Change-Id: I3a63799ce7f3d9a50869755ee3289e641fa82fa4

11 years agoMerge "Fix bug 7138446: Icon blips in during Recents animation" into jb-mr1-dev
Michael Jurka [Tue, 2 Oct 2012 19:28:37 +0000 (12:28 -0700)]
Merge "Fix bug 7138446: Icon blips in during Recents animation" into jb-mr1-dev

11 years agoMerge "Fix jump cut when dismissing items in Recents" into jb-mr1-dev
Michael Jurka [Tue, 2 Oct 2012 19:22:12 +0000 (12:22 -0700)]
Merge "Fix jump cut when dismissing items in Recents" into jb-mr1-dev

11 years agoFix bug 7138446: Icon blips in during Recents animation
Michael Jurka [Mon, 1 Oct 2012 11:58:29 +0000 (13:58 +0200)]
Fix bug 7138446: Icon blips in during Recents animation

Add animation where icon and description of the
primary activity fades and translates in

Change-Id: Ie21b5302ac9e58ee6af219b7cde98d12a8e82697

11 years agoMerge "Accessibility focus should not scroll automatically." into jb-mr1-dev
Svetoslav Ganov [Tue, 2 Oct 2012 19:05:48 +0000 (12:05 -0700)]
Merge "Accessibility focus should not scroll automatically." into jb-mr1-dev

11 years agoTouch explorer and magnifier do not work well together.
Svetoslav Ganov [Mon, 1 Oct 2012 23:25:08 +0000 (16:25 -0700)]
Touch explorer and magnifier do not work well together.

1. If tocuh exploration and screen magnification are enabled and the screen
   is currently magnified, gesture detection does not work well. The reason
   is because we are transforming the events if the screen is magnified before
   passing them to the touch explorer to compensate for the magnification so
   the user can poke what he thinks he pokes. However, when doing gesture
   detection/velocity computing this compensating shrinks the gestured shape/
   decreases velocity leading to poor gesture reco/incorrect velocity.

   This change adds a onRawMotionEvent method in the event transformation chain
   which will process the raw touch events. In this method of the touch explorer
   we are passing events to the gesture recognized and the velocity tracker.

2. Velocity tracker was not cleared on transitions out of touch exploring state
   which is the only one that uses velocity.

bug:7266617

Change-Id: I7887fe5f3c3bb6cfa203b7866a145c7341098a02

11 years agore-use status bar DateView in QuickSettings.
Chris Wren [Tue, 2 Oct 2012 18:47:16 +0000 (14:47 -0400)]
re-use status bar DateView in QuickSettings.

Bug: 7221083
Change-Id: Ic1cb7118d8e5f83a8e5e1101a609791a1e0fbab1

11 years agoAccessibility focus should not scroll automatically.
Svetoslav Ganov [Tue, 2 Oct 2012 18:31:14 +0000 (11:31 -0700)]
Accessibility focus should not scroll automatically.

1. We use auto scroll when a view gets accessibility focus.
   Pros: Having magnification and TalkBack enabled together (not a common use case)
         will have the accessibility focused view on the screen (it is auto panned).
   Cons: A blind user can get stuck in a very lock scroll view - not good.

2. We do not auto scroll when a view gets accessibility focus.
   Pros: A blind user cannot get stuck in a long scroll view as he has to explicitly
         scroll.
   Cons: The magnified area will not pan to ensure the accessibility focused view
         is visible.

Option one is the better trade off and this change removes the auto scrolling.

bug:7265773

Change-Id: I209b54ed18acad36c1f35b4c09b980e45ec9bbff

11 years agoMerge "Fixing up keyguard widget pager layouts" into jb-mr1-dev
Adam Cohen [Tue, 2 Oct 2012 18:29:13 +0000 (11:29 -0700)]
Merge "Fixing up keyguard widget pager layouts" into jb-mr1-dev

11 years agoMerge "Introduce ACTION_QUICK_CLOCK for the QS time tile." into jb-mr1-dev
Daniel Sandler [Tue, 2 Oct 2012 17:52:31 +0000 (10:52 -0700)]
Merge "Introduce ACTION_QUICK_CLOCK for the QS time tile." into jb-mr1-dev

11 years agoMerge "Fix notifications dismiss button." into jb-mr1-dev
Daniel Sandler [Tue, 2 Oct 2012 17:49:36 +0000 (10:49 -0700)]
Merge "Fix notifications dismiss button." into jb-mr1-dev

11 years agoMerge "enable safe media volume according to country" into jb-mr1-dev
Eric Laurent [Tue, 2 Oct 2012 16:58:02 +0000 (09:58 -0700)]
Merge "enable safe media volume according to country" into jb-mr1-dev

11 years agoMerge "Fix framework side of #7132432 com.android.vending:..." into jb-mr1-dev
Dianne Hackborn [Tue, 2 Oct 2012 16:22:11 +0000 (09:22 -0700)]
Merge "Fix framework side of #7132432 com.android.vending:..." into jb-mr1-dev

11 years agoenable safe media volume according to country
Eric Laurent [Sat, 29 Sep 2012 01:01:48 +0000 (18:01 -0700)]
enable safe media volume according to country

Enable safe headphone volume feature for all countries that
do not opt otherwise in their mmc configuration.
Opt out for US.

Bug 7231029.

Change-Id: I2619d627508eb2cd1f73db9242e0cb5efa839a2a

11 years agoMerge "renaming Sleep Mode feature." into jb-mr1-dev
Chris Wren [Tue, 2 Oct 2012 15:40:02 +0000 (08:40 -0700)]
Merge "renaming Sleep Mode feature." into jb-mr1-dev

11 years agoMerge "Update javadocs for DreamService." into jb-mr1-dev
John Spurlock [Tue, 2 Oct 2012 14:56:05 +0000 (07:56 -0700)]
Merge "Update javadocs for DreamService." into jb-mr1-dev

11 years agorenaming Sleep Mode feature.
Chris Wren [Tue, 2 Oct 2012 13:43:53 +0000 (09:43 -0400)]
renaming Sleep Mode feature.

Bug: 7267485
Change-Id: If54495436f0df1c0bf90f9bb77b043e40884bbd7

11 years agoFix notifications dismiss button.
Daniel Sandler [Tue, 2 Oct 2012 05:01:12 +0000 (01:01 -0400)]
Fix notifications dismiss button.

The handle (which is now being drawn by the window and not by itself)
was floating over it.

Bug: 7267529
Change-Id: Ia8902f64ac81616c640bc42400272933063852f4

11 years agoFix jump cut when dismissing items in Recents
Michael Jurka [Tue, 2 Oct 2012 12:42:53 +0000 (14:42 +0200)]
Fix jump cut when dismissing items in Recents

Bug: 7070897

11 years agoAlways update peer list in display controller
Irfan Sheriff [Tue, 2 Oct 2012 06:01:57 +0000 (23:01 -0700)]
Always update peer list in display controller

Display controller should always stay in sync with peer list to avoid
showing incorrect available status on peers which would
cause connectivity issues.

Bug: 7268307
Change-Id: If04644339c1ee3f567939e4441dd6f6a45e4179a

11 years agoFixing up keyguard widget pager layouts
Adam Cohen [Tue, 2 Oct 2012 02:03:46 +0000 (19:03 -0700)]
Fixing up keyguard widget pager layouts

-> Related to issue 7232481 and issue 7261844

Change-Id: Ib3c15ed78d3473036820bb3061dcd1cd34a2bfc4

11 years agoMerge "Owner should not be announces as a user switch." into jb-mr1-dev
Svetoslav Ganov [Tue, 2 Oct 2012 04:18:13 +0000 (21:18 -0700)]
Merge "Owner should not be announces as a user switch." into jb-mr1-dev

11 years agoMerge "Upading the strings for the global accessibility enabling gesture." into jb...
Svetoslav Ganov [Tue, 2 Oct 2012 04:17:36 +0000 (21:17 -0700)]
Merge "Upading the strings for the global accessibility enabling gesture." into jb-mr1-dev

11 years agoMerge "Hiding appropriate nodes for accessibility in recents. Bug: 6855305 Change...
Svetoslav Ganov [Tue, 2 Oct 2012 04:16:48 +0000 (21:16 -0700)]
Merge "Hiding appropriate nodes for accessibility in recents. Bug: 6855305 Change-Id: I2c9fac2cfc777f912ff78283bbe6b3a9666f17c6" into jb-mr1-dev

11 years agoOwner should not be announces as a user switch.
Svetoslav Ganov [Tue, 2 Oct 2012 02:01:32 +0000 (19:01 -0700)]
Owner should not be announces as a user switch.

1. The accessibility layer announces user switches. Even though
   the initial switch to the owner on a singe user device is a
   valid use switch we should not announce it for accessibility.

bug:7264693

Change-Id: Idf022fab6b74c84b7a96bc4ed7c7fee2b83029a6

11 years agoFixing a coupld lockscreen bugs
Adam Cohen [Sun, 30 Sep 2012 23:11:00 +0000 (16:11 -0700)]
Fixing a coupld lockscreen bugs

-> Showing correct page, as per discussions (issue 7205431)
-> Hide the time when the system status widget is showsing (issue 7216577)

Change-Id: I5b79d72e8fd8226952f6a8ea99b776feb4ddde1f

11 years agoUpading the strings for the global accessibility enabling gesture.
Svetoslav Ganov [Tue, 2 Oct 2012 01:45:18 +0000 (18:45 -0700)]
Upading the strings for the global accessibility enabling gesture.

bug:7255486

Change-Id: I10b0e5a97518bbb442656c142bf2c822f897331b

11 years agoFix framework side of #7132432 com.android.vending:...
Dianne Hackborn [Tue, 2 Oct 2012 01:23:04 +0000 (18:23 -0700)]
Fix framework side of #7132432 com.android.vending:...

...java.lang.IllegalStateException: Can not perform this action
after onSaveInstanceStateat android.support.v4.app.FragmentManagerImpl
.checkStateLoss(FragmentManager.java:1300)

Framework fragment manager also needs to be told its state is not
saved earlier.

Change-Id: Ie5bb327fca6208f7eea6146a1b3223c61c9ecef6

11 years agoMerge "Attempt to fix missing lock sounds" into jb-mr1-dev
Jim Miller [Tue, 2 Oct 2012 01:17:39 +0000 (18:17 -0700)]
Merge "Attempt to fix missing lock sounds" into jb-mr1-dev

11 years agoAttempt to fix missing lock sounds
Jim Miller [Mon, 1 Oct 2012 01:25:05 +0000 (18:25 -0700)]
Attempt to fix missing lock sounds

bug 7254629

Change-Id: I65eee674fe014a0e84d5ec20ead81abdec38f890

11 years agoFix camera disambiguation in secure keyguard
Jim Miller [Mon, 1 Oct 2012 23:26:18 +0000 (16:26 -0700)]
Fix camera disambiguation in secure keyguard

When there are multiple activities that respond to MediaStore.INTENT_ACTION_STILL_IMAGE_CAMERA_SECURE
we need to show the disambiguation dialog to the user.  However the disambiguation "dialog"
is actully an activity themed as a dialog.  Hence, we can't show it in the secure keyguard.

This works around the issue by prompting the user for their credentials directly when the
intent needs disambiguation.  This will take them out of keyguard and prompt them for
which activity they want to use.

We'll provide a more robust solution in a future release.

Fixes bug 7109816

Change-Id: I94e643d3cb503e1ce6de24c82400b4d5fcbb9d95

11 years agoHiding appropriate nodes for accessibility in recents.
Casey Burkhardt [Mon, 1 Oct 2012 23:52:11 +0000 (16:52 -0700)]
Hiding appropriate nodes for accessibility in recents.
Bug: 6855305
Change-Id: I2c9fac2cfc777f912ff78283bbe6b3a9666f17c6

11 years agoMerge "Route GPS notifications to all users." into jb-mr1-dev
Victoria Lease [Tue, 2 Oct 2012 00:46:26 +0000 (17:46 -0700)]
Merge "Route GPS notifications to all users." into jb-mr1-dev

11 years agoMerge "Fix issue #7226101: Secure image capture takes 5 seconds to start" into jb...
Dianne Hackborn [Tue, 2 Oct 2012 00:42:02 +0000 (17:42 -0700)]
Merge "Fix issue #7226101: Secure image capture takes 5 seconds to start" into jb-mr1-dev

11 years agoMerge "Fix CTS test failures." into jb-mr1-dev
Jeff Brown [Tue, 2 Oct 2012 00:41:52 +0000 (17:41 -0700)]
Merge "Fix CTS test failures." into jb-mr1-dev

11 years agoFix CTS test failures.
Jeff Brown [Mon, 1 Oct 2012 23:38:23 +0000 (16:38 -0700)]
Fix CTS test failures.

Bug: 7001730
Change-Id: I5649b601c310458de5d64b549a407e251d745b7c

11 years agoMerge "Import translations. DO NOT MERGE" into jb-mr1-dev
Baligh Uddin [Tue, 2 Oct 2012 00:30:33 +0000 (17:30 -0700)]
Merge "Import translations. DO NOT MERGE" into jb-mr1-dev

11 years agoMerge "Fix target utilization property_get." into jb-mr1-dev
Ian Rogers [Tue, 2 Oct 2012 00:25:54 +0000 (17:25 -0700)]
Merge "Fix target utilization property_get." into jb-mr1-dev

11 years agoMerge "Fix bug #7132595 Settings - UI mirroring for RTL locales (Arabic, Hebrew,...
Fabrice Di Meglio [Mon, 1 Oct 2012 23:43:05 +0000 (16:43 -0700)]
Merge "Fix bug #7132595 Settings - UI mirroring for RTL locales (Arabic, Hebrew, farsi)" into jb-mr1-dev

11 years agoMerge "Allow "factory.long_press_power_off" to be toggled at runtime." into jb-mr1-dev
Jeff Brown [Mon, 1 Oct 2012 23:40:47 +0000 (16:40 -0700)]
Merge "Allow "factory.long_press_power_off" to be toggled at runtime." into jb-mr1-dev

11 years agoMerge "Sets accessibility importance for the home/up button. Bug: 7196985 Change...
Svetoslav Ganov [Mon, 1 Oct 2012 23:40:17 +0000 (16:40 -0700)]
Merge "Sets accessibility importance for the home/up button. Bug: 7196985 Change-Id: I4d27470eccb8933f751db892218a8032a80df3da" into jb-mr1-dev

11 years agoMerge "Switch from uevent model to /dev/input/event." into jb-mr1-dev
Craig Mautner [Mon, 1 Oct 2012 23:38:45 +0000 (16:38 -0700)]
Merge "Switch from uevent model to /dev/input/event." into jb-mr1-dev

11 years agoFix issue #7226101: Secure image capture takes 5 seconds to start
Dianne Hackborn [Mon, 1 Oct 2012 23:32:39 +0000 (16:32 -0700)]
Fix issue #7226101: Secure image capture takes 5 seconds to start

Mostly (turned off) debug output.  Main fix is to resume the next
activity if we are pausing while sleeping and the top activity is
not the now pausing activity.  Also helped things by fixing a problem
where removing a task would leave around dead destroy timeout
messages.

Change-Id: I9d550c216b4d7e2afe3d93553bb680cec41e2ed1

11 years agoMerge "Fix bug #7259242 text is left justified with no padding" into jb-mr1-dev
Fabrice Di Meglio [Mon, 1 Oct 2012 23:04:39 +0000 (16:04 -0700)]
Merge "Fix bug #7259242 text is left justified with no padding" into jb-mr1-dev

11 years agoSets accessibility importance for the home/up button.
Casey Burkhardt [Mon, 1 Oct 2012 21:13:41 +0000 (14:13 -0700)]
Sets accessibility importance for the home/up button.
Bug: 7196985
Change-Id: I4d27470eccb8933f751db892218a8032a80df3da

11 years agoMerge "DO NOT MERGE - Revert fixes for ImageView/MeasureSpec/RelativeLayout" into...
Adam Powell [Mon, 1 Oct 2012 22:53:48 +0000 (15:53 -0700)]
Merge "DO NOT MERGE - Revert fixes for ImageView/MeasureSpec/RelativeLayout" into jb-mr1-dev

11 years agoFix bug #7259242 text is left justified with no padding
Fabrice Di Meglio [Mon, 1 Oct 2012 22:32:01 +0000 (15:32 -0700)]
Fix bug #7259242 text is left justified with no padding

(padding is still hard)

- fix Toasts: basically the background drawable padding was not
taken into account

Change-Id: Iefd29782f50b6f6a56578cfeb2af119d381207f0

11 years agoam e9d5d627: am 94b94fc5: am 32a1d2db: dashboard update for 10/1
Scott Main [Mon, 1 Oct 2012 22:52:09 +0000 (15:52 -0700)]
am e9d5d627: am 94b94fc5: am 32a1d2db: dashboard update for 10/1

* commit 'e9d5d6271eeaef696891740ab830fbf7e7df6681':
  dashboard update for 10/1

11 years agoam 94b94fc5: am 32a1d2db: dashboard update for 10/1
Scott Main [Mon, 1 Oct 2012 22:49:15 +0000 (15:49 -0700)]
am 94b94fc5: am 32a1d2db: dashboard update for 10/1

* commit '94b94fc5b35f3e55574ce8b12b65e46f0144d743':
  dashboard update for 10/1

11 years agoam 32a1d2db: dashboard update for 10/1
Scott Main [Mon, 1 Oct 2012 22:46:20 +0000 (15:46 -0700)]
am 32a1d2db: dashboard update for 10/1

* commit '32a1d2dbf9e396ae77bc621ec583c92b6774ed32':
  dashboard update for 10/1

11 years agoMerge changes I790820b1,I3fcf3619,Ia0d5a156 into jb-mr1-dev
Jeff Brown [Mon, 1 Oct 2012 22:20:47 +0000 (15:20 -0700)]
Merge changes I790820b1,I3fcf3619,Ia0d5a156 into jb-mr1-dev

* changes:
  Enable hardware acceleration for pointer location overlay.
  Disable use of twilight mode for auto-brightness.
  Use new API to override user activity timeout from keyguard.

11 years agoMerge "New internal API to eliminate poke locks." into jb-mr1-dev
Jeff Brown [Mon, 1 Oct 2012 22:20:22 +0000 (15:20 -0700)]
Merge "New internal API to eliminate poke locks." into jb-mr1-dev

11 years agoAllow "factory.long_press_power_off" to be toggled at runtime.
Jeff Brown [Mon, 1 Oct 2012 22:17:22 +0000 (15:17 -0700)]
Allow "factory.long_press_power_off" to be toggled at runtime.

Bug: 6847329
Change-Id: I7a303dba4482c1897d38f9064a2c49583218ffd0

11 years agoMerge "Quick reject empty paths" into jb-mr1-dev
Chris Craik [Mon, 1 Oct 2012 22:16:22 +0000 (15:16 -0700)]
Merge "Quick reject empty paths" into jb-mr1-dev

11 years agoDO NOT MERGE - Revert fixes for ImageView/MeasureSpec/RelativeLayout
Adam Powell [Mon, 1 Oct 2012 22:06:20 +0000 (15:06 -0700)]
DO NOT MERGE - Revert fixes for ImageView/MeasureSpec/RelativeLayout

MeasureSpec.makeMeasureSpec has a bug where a negative or very large
size parameter will cause the resulting MeasureSpec value to
overflow. RelativeLayout partially relies on this when measuring
children with mode UNSPECIFIED; a default value of -1 in a local
variable ends up being passed to makeMeasureSpec, overflowing a mode
value to create a measurespec that is very large in size, with AT_MOST
as the mode. The correct behavior is for RelativeLayout to propagate
the UNSPECIFIED mode.

Unfortunately a number of custom view implementations in apps rely on
the buggy behavior as they do not implement their own onMeasure
method. This makes them fall back to View's default onMeasure
implementation, which accepts the spec's size unconditionally for
AT_MOST or EXACTLY modes, but falls back on
getSuggestedMinimum[Width|Height] for UNSPECIFIED. If the view had no
background drawable with dimensions and no minWidth field set, this
fix for RelativeLayout causes some views to measure with a size of 0
rather than a size of the 30-bit version of 0xFF...

Revert these fixes in the interests of compatibility. The next version
will conditionally use the new behavior if targetSdk > JB-MR1.

This also required reverting a fix for ImageView's adjustViewBounds
functionality, as it cannot be implemented reliably if this
RelativeLayout fix is not also in place.

Revert "Fix UNSPECIFIED measurement in RelativeLayout"

This reverts commit 132a742b94b9716451ddef30cec20548b346f1b9.

Revert "Fix adjustViewBounds handling for ImageView"

This reverts commit d5edc7721791ad807b9a8fbd923b8d6e73c399cc.

11 years agoMerge "Fix bug #7259242 text is left justified with no padding" into jb-mr1-dev
Fabrice Di Meglio [Mon, 1 Oct 2012 22:02:59 +0000 (15:02 -0700)]
Merge "Fix bug #7259242 text is left justified with no padding" into jb-mr1-dev

11 years agoMerge "MediaRouter/Wifi Display improvements" into jb-mr1-dev
Adam Powell [Mon, 1 Oct 2012 22:01:25 +0000 (15:01 -0700)]
Merge "MediaRouter/Wifi Display improvements" into jb-mr1-dev

11 years agoMerge "Avoid NPE in GpsLocationProvider" into jb-mr1-dev
Victoria Lease [Mon, 1 Oct 2012 21:59:56 +0000 (14:59 -0700)]
Merge "Avoid NPE in GpsLocationProvider" into jb-mr1-dev

11 years agoFix target utilization property_get.
Ian Rogers [Mon, 1 Oct 2012 21:54:24 +0000 (14:54 -0700)]
Fix target utilization property_get.

Copy and paste error where wrong compare meant the code thought a target
utilization option was specified even if there wasn't one.

b/7062303

Change-Id: Ibf1c6cf72743c5fbec7618a719d12d0373184754

11 years agoEnable hardware acceleration for pointer location overlay.
Jeff Brown [Mon, 1 Oct 2012 21:44:24 +0000 (14:44 -0700)]
Enable hardware acceleration for pointer location overlay.

Bug: 7256639
Change-Id: I790820b18365c126afc500a5ea3d222bc1ea2774

11 years agoDisable use of twilight mode for auto-brightness.
Jeff Brown [Mon, 1 Oct 2012 21:33:09 +0000 (14:33 -0700)]
Disable use of twilight mode for auto-brightness.

This adjustment is still experimental.

Bug: 7165399
Change-Id: I3fcf361933995d02a5329eeaec80155b39371ba3

11 years agoNew internal API to eliminate poke locks.
Jeff Brown [Mon, 1 Oct 2012 01:58:59 +0000 (18:58 -0700)]
New internal API to eliminate poke locks.

Added a new WindowManager.LayoutParams inputFeatures flag
to disable automatic user activity behavior when an input
event is sent to a window.

Added a new WindowManager.LayoutParams field userActivityTimeout.

Bug: 7165399
Change-Id: I204eafa37ef26aacc2c52a1ba1ecce1eebb0e0d9

11 years agoUse new API to override user activity timeout from keyguard.
Jeff Brown [Mon, 1 Oct 2012 02:49:11 +0000 (19:49 -0700)]
Use new API to override user activity timeout from keyguard.

This now replaces the internal user activity timer that
keyguard maintained.  We can probably simplify things a great
deal further now.

Bug: 7165399
Change-Id: Ia0d5a156a4ff0c339bbd094380b9f7ab3cec5d9b

11 years agoMerge "Only inform DisplayManager of visible content." into jb-mr1-dev
Craig Mautner [Mon, 1 Oct 2012 21:21:06 +0000 (14:21 -0700)]
Merge "Only inform DisplayManager of visible content." into jb-mr1-dev

11 years agoMerge "Redraw static wallpapers when a redraw is needed." into jb-mr1-dev
Craig Mautner [Mon, 1 Oct 2012 21:20:09 +0000 (14:20 -0700)]
Merge "Redraw static wallpapers when a redraw is needed." into jb-mr1-dev

11 years agoMediaRouter/Wifi Display improvements
Adam Powell [Mon, 1 Oct 2012 21:02:13 +0000 (14:02 -0700)]
MediaRouter/Wifi Display improvements

* Don't select the default route on initialization in a process

* Add "connecting" state to MediaRouteButton

Bug 7258981
Bug 7262522

Change-Id: I5cd39b09843783b7e1e17620ca33193f0f3b8fca

11 years agoOnly inform DisplayManager of visible content.
Craig Mautner [Mon, 1 Oct 2012 20:59:52 +0000 (13:59 -0700)]
Only inform DisplayManager of visible content.

WindowManager was notifying DisplayManager of content if any window
existed on a display. Now the window must be visible and we must not
be showing a Dream or the Keyguard.

Bug: 7214060.
Change-Id: I9ce4a49aabfbac22ff1e39a837199ce35b9f7503

11 years agoUpdate javadocs for DreamService.
John Spurlock [Mon, 1 Oct 2012 13:30:49 +0000 (09:30 -0400)]
Update javadocs for DreamService.

Reflect the new intent-filter protocol, and add a bit about <dream>.
Also escape xml so it's visible in generated html.

Bug:7256474
Change-Id: Id270eeb70601b492458834f19216801b428af4cb

11 years agoMerge "Fix light default theme" into jb-mr1-dev
Fabrice Di Meglio [Mon, 1 Oct 2012 20:55:15 +0000 (13:55 -0700)]
Merge "Fix light default theme" into jb-mr1-dev

11 years agoQuick reject empty paths
Chris Craik [Mon, 1 Oct 2012 20:50:37 +0000 (13:50 -0700)]
Quick reject empty paths

bug:7260035

Adding a circle of radius 0 to a path is a no-op in skia, so detect
this case both in the PathRenderer, and in quickReject().

Change-Id: I7a172db49a5d5351b4734b39d4e4ca6379658096

11 years agoImport translations. DO NOT MERGE
Baligh Uddin [Mon, 1 Oct 2012 20:49:49 +0000 (13:49 -0700)]
Import translations. DO NOT MERGE

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

11 years agoIntroduce ACTION_QUICK_CLOCK for the QS time tile.
Daniel Sandler [Mon, 1 Oct 2012 20:43:26 +0000 (16:43 -0400)]
Introduce ACTION_QUICK_CLOCK for the QS time tile.

By default it will still go to Date/Time Settings (see
change Ib430f0c5) but 3Ps can hook it for other useful
things.

Bug: 7264806
Change-Id: Ic561dbeb5cc0738372c079b3eb52749c44b3cf0d

11 years agoMerge "Fix bug #7199562 UI mirroring for RTL locales (Arabic, Hebrew, Farsi): Play...
Fabrice Di Meglio [Mon, 1 Oct 2012 20:39:09 +0000 (13:39 -0700)]
Merge "Fix bug #7199562 UI mirroring for RTL locales (Arabic, Hebrew, Farsi): Play settings" into jb-mr1-dev

11 years agoMerge "Lighten grain and make live preview gpu friendly." into jb-mr1-dev
Jason Sams [Mon, 1 Oct 2012 20:18:04 +0000 (13:18 -0700)]
Merge "Lighten grain and make live preview gpu friendly." into jb-mr1-dev

11 years agoMerge "Fix layout margins for Preferences in dialogs" into jb-mr1-dev
Amith Yamasani [Mon, 1 Oct 2012 20:15:31 +0000 (13:15 -0700)]
Merge "Fix layout margins for Preferences in dialogs" into jb-mr1-dev

11 years agoFix bug #7259242 text is left justified with no padding
Fabrice Di Meglio [Mon, 1 Oct 2012 20:13:12 +0000 (13:13 -0700)]
Fix bug #7259242 text is left justified with no padding

(padding is hard)

- set correct values to mUserPaddingLeftInitial / mUserPaddingRightInitial
- reset padding to initial values depending on layout direction

Change-Id: I5cfb941b4874eafbfcfb5e2926f5a3c80b4931d3

11 years agoMerge "Move bluetooth priorities from Secure to Global." into jb-mr1-dev
Jeff Sharkey [Mon, 1 Oct 2012 20:08:20 +0000 (13:08 -0700)]
Merge "Move bluetooth priorities from Secure to Global." into jb-mr1-dev

11 years agoMerge "Fix broadcast to a specific user" into jb-mr1-dev
Amith Yamasani [Mon, 1 Oct 2012 20:05:28 +0000 (13:05 -0700)]
Merge "Fix broadcast to a specific user" into jb-mr1-dev

11 years agoMerge "Fix cache deletion for secondary users" into jb-mr1-dev
Amith Yamasani [Mon, 1 Oct 2012 19:42:58 +0000 (12:42 -0700)]
Merge "Fix cache deletion for secondary users" into jb-mr1-dev

11 years agoMove bluetooth priorities from Secure to Global.
Jeff Sharkey [Mon, 1 Oct 2012 19:50:22 +0000 (12:50 -0700)]
Move bluetooth priorities from Secure to Global.

Bug: 7231171
Change-Id: I836fdc2cfb8d67f984b4715559b9e92d0dc41c95

11 years agoMerge "Repair lights out mode." into jb-mr1-dev
Daniel Sandler [Mon, 1 Oct 2012 19:41:31 +0000 (12:41 -0700)]
Merge "Repair lights out mode." into jb-mr1-dev

11 years agoMerge "Remove extra padding from alert dialog layouts in -xlarge" into jb-mr1-dev
Adam Powell [Mon, 1 Oct 2012 19:40:31 +0000 (12:40 -0700)]
Merge "Remove extra padding from alert dialog layouts in -xlarge" into jb-mr1-dev

11 years agoRepair lights out mode.
Daniel Sandler [Mon, 1 Oct 2012 19:22:36 +0000 (15:22 -0400)]
Repair lights out mode.

Broken by change I5662269b.

Bug: 7263523
Change-Id: Iae77d12c91443aecfed3e6461b5206208de4ddf7

11 years agoam 30bbfeaf: am a180cc3c: am cd579c57: wording tweak to brand guidelines
Scott Main [Mon, 1 Oct 2012 19:05:31 +0000 (12:05 -0700)]
am 30bbfeaf: am a180cc3c: am cd579c57: wording tweak to brand guidelines

* commit '30bbfeafa1645c39790ef7e40c63b427af11b927':
  wording tweak to brand guidelines