85544 Commits

Author SHA1 Message Date
Jim Miller
c6e570dbad Merge "Fix camera disambiguation in secure keyguard" into jb-mr1-dev 2012-10-02 13:58:01 -07:00
Jeff Sharkey
c12dd97372 Merge "Migrate more System and Secure settings to Global." into jb-mr1-dev 2012-10-02 13:57:30 -07:00
Chris Wren
6ac833c9e3 Merge "re-use status bar DateView in QuickSettings." into jb-mr1-dev 2012-10-02 13:57:30 -07:00
Jeff Sharkey
6e2bee75ce Migrate more System and Secure settings to Global.
Includes telephony, WindowManager, PackageManager, and debugging
settings.  Update API to point towards moved values.

Bug: 7231764, 7231252, 7231156
Change-Id: I5828747205708872f19f83a5bc821ed0a801cb79
2012-10-02 13:55:15 -07:00
Michael Jurka
fb4a113a29 Merge "Fix jump cut when dismissing items in Recents" into jb-mr1-dev 2012-10-02 13:49:57 -07:00
Svetoslav Ganov
0944d62544 Merge "Touch explorer and magnifier do not work well together." into jb-mr1-dev 2012-10-02 13:14:06 -07:00
Raph Levien
217ca3b0d3 Merge "Fix for bug 7234184 F/TextLayoutCache: Failed to put an entry..." into jb-mr1-dev 2012-10-02 13:02:31 -07:00
Raph Levien
832815cb53 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
2012-10-02 12:32:40 -07:00
Michael Jurka
841594b2db Fix jump cut when dismissing items in Recents
(fixing horizontal scroll view in this CL... whoops).

Bug: 7070897
Change-Id: I3a63799ce7f3d9a50869755ee3289e641fa82fa4
2012-10-02 21:30:35 +02:00
Michael Jurka
f175525be4 Merge "Fix bug 7138446: Icon blips in during Recents animation" into jb-mr1-dev 2012-10-02 12:28:38 -07:00
Michael Jurka
141efcb5b6 Merge "Fix jump cut when dismissing items in Recents" into jb-mr1-dev 2012-10-02 12:22:13 -07:00
Michael Jurka
9bdaada95c 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
2012-10-02 21:18:26 +02:00
Svetoslav Ganov
87d7d94673 Merge "Accessibility focus should not scroll automatically." into jb-mr1-dev 2012-10-02 12:05:49 -07:00
Svetoslav Ganov
45af84a483 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
2012-10-02 12:02:05 -07:00
Chris Wren
9c022dff03 re-use status bar DateView in QuickSettings.
Bug: 7221083
Change-Id: Ic1cb7118d8e5f83a8e5e1101a609791a1e0fbab1
2012-10-02 14:48:42 -04:00
Svetoslav Ganov
a85236e510 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
2012-10-02 11:31:18 -07:00
Adam Cohen
bebefaac17 Merge "Fixing up keyguard widget pager layouts" into jb-mr1-dev 2012-10-02 11:29:14 -07:00
Daniel Sandler
b531c81cdb Merge "Introduce ACTION_QUICK_CLOCK for the QS time tile." into jb-mr1-dev 2012-10-02 10:53:12 -07:00
Daniel Sandler
6aa06b969f Merge "Fix notifications dismiss button." into jb-mr1-dev 2012-10-02 10:49:36 -07:00
Eric Laurent
57e6203457 Merge "enable safe media volume according to country" into jb-mr1-dev 2012-10-02 09:58:03 -07:00
Dianne Hackborn
11d8481f10 Merge "Fix framework side of #7132432 com.android.vending:..." into jb-mr1-dev 2012-10-02 09:22:12 -07:00
Eric Laurent
d640bd325c 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
2012-10-02 08:46:26 -07:00
Chris Wren
0f9deb3c1a Merge "renaming Sleep Mode feature." into jb-mr1-dev 2012-10-02 08:40:03 -07:00
John Spurlock
bd27ea2e12 Merge "Update javadocs for DreamService." into jb-mr1-dev 2012-10-02 07:56:06 -07:00
Chris Wren
a64544748d renaming Sleep Mode feature.
Bug: 7267485
Change-Id: If54495436f0df1c0bf90f9bb77b043e40884bbd7
2012-10-02 10:40:57 -04:00
Daniel Sandler
60a835101f 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
2012-10-02 10:39:09 -04:00
Michael Jurka
9a0890c109 Fix jump cut when dismissing items in Recents
Bug: 7070897
2012-10-02 14:42:53 +02:00
Irfan Sheriff
56925d65fd 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
2012-10-01 23:01:57 -07:00
Adam Cohen
7ffa8c08f3 Fixing up keyguard widget pager layouts
-> Related to issue 7232481 and issue 7261844

Change-Id: Ib3c15ed78d3473036820bb3061dcd1cd34a2bfc4
2012-10-01 21:51:18 -07:00
Svetoslav Ganov
30ed33b141 Merge "Owner should not be announces as a user switch." into jb-mr1-dev 2012-10-01 21:19:11 -07:00
Svetoslav Ganov
0a551d6b36 Merge "Upading the strings for the global accessibility enabling gesture." into jb-mr1-dev 2012-10-01 21:19:11 -07:00
Svetoslav Ganov
5b7b999a1c Merge "Hiding appropriate nodes for accessibility in recents. Bug: 6855305 Change-Id: I2c9fac2cfc777f912ff78283bbe6b3a9666f17c6" into jb-mr1-dev 2012-10-01 21:16:49 -07:00
Svetoslav Ganov
59f07690c2 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
2012-10-01 19:22:43 -07:00
Adam Cohen
0207c0992c 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
2012-10-01 19:13:56 -07:00
Svetoslav Ganov
9a455fbe71 Upading the strings for the global accessibility enabling gesture.
bug:7255486

Change-Id: I10b0e5a97518bbb442656c142bf2c822f897331b
2012-10-01 18:45:21 -07:00
Dianne Hackborn
689586d067 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
2012-10-01 18:23:04 -07:00
Jim Miller
b35000f3f4 Merge "Attempt to fix missing lock sounds" into jb-mr1-dev 2012-10-01 18:17:39 -07:00
Jim Miller
b14288d4b1 Attempt to fix missing lock sounds
bug 7254629

Change-Id: I65eee674fe014a0e84d5ec20ead81abdec38f890
2012-10-01 18:14:41 -07:00
Jim Miller
ee82f8fa2d 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
2012-10-01 18:08:23 -07:00
Casey Burkhardt
2868059d93 Hiding appropriate nodes for accessibility in recents.
Bug: 6855305
Change-Id: I2c9fac2cfc777f912ff78283bbe6b3a9666f17c6
2012-10-01 17:57:16 -07:00
Victoria Lease
3750db176a Merge "Route GPS notifications to all users." into jb-mr1-dev 2012-10-01 17:46:27 -07:00
Dianne Hackborn
6f354ed999 Merge "Fix issue #7226101: Secure image capture takes 5 seconds to start" into jb-mr1-dev 2012-10-01 17:46:27 -07:00
Jeff Brown
046cff13fc Merge "Fix CTS test failures." into jb-mr1-dev 2012-10-01 17:41:53 -07:00
Jeff Brown
9ba8d78186 Fix CTS test failures.
Bug: 7001730
Change-Id: I5649b601c310458de5d64b549a407e251d745b7c
2012-10-01 17:34:07 -07:00
Baligh Uddin
9f5ed35d8a Merge "Import translations. DO NOT MERGE" into jb-mr1-dev 2012-10-01 17:30:34 -07:00
Ian Rogers
bfa10630c8 Merge "Fix target utilization property_get." into jb-mr1-dev 2012-10-01 17:25:55 -07:00
Fabrice Di Meglio
2b77c102d2 Merge "Fix bug #7132595 Settings - UI mirroring for RTL locales (Arabic, Hebrew, farsi)" into jb-mr1-dev 2012-10-01 16:52:37 -07:00
Jeff Brown
f16b6256eb Merge "Allow "factory.long_press_power_off" to be toggled at runtime." into jb-mr1-dev 2012-10-01 16:52:37 -07:00
Svetoslav Ganov
d8357ceec0 Merge "Sets accessibility importance for the home/up button. Bug: 7196985 Change-Id: I4d27470eccb8933f751db892218a8032a80df3da" into jb-mr1-dev 2012-10-01 16:40:18 -07:00
Craig Mautner
b97d8764a0 Merge "Switch from uevent model to /dev/input/event." into jb-mr1-dev 2012-10-01 16:38:46 -07:00