86285 Commits

Author SHA1 Message Date
Chris Wren
a934fd142e default the screen on during the dream.
Bug: 7295909
Change-Id: Ic629bd08bdade8dba2b92124c56cab1bb438bec2
2012-10-08 17:23:36 -07:00
Victoria Lease
b711d57ca4 Multiuser love for LocationManager
LocationManagerService now keeps track of the current user ID and
denies location requests made by all but the foreground user.

Additionally, location settings are now user-specific, rather than
global to the device. Location provider services now run as specific
users, and when the device's foreground user changes, we rebind to
appropriately-owned providers.

Bug: 6926385
Bug: 7247203
Change-Id: I346074959e96e52bcc77eeb188dffe322b690879
2012-10-08 17:19:43 -07:00
Amith Yamasani
531c237b82 Add an upgrade step for settings moved to global.
For some reason, the original step didn't work for some testers. This re-applies the move, which
should be no-ops if the entries are already in the right table.

Bug: 7254629

Also moved a few more entries to the global initialization section. Otherwise they would write
into the wrong table.

Change-Id: Ic0f5c4e09680f5687d08dccf78063508b9c0584c
2012-10-08 17:04:17 -07:00
Jeff Brown
2aac1a0fe8 Merge "Improve the power off fade animation." into jb-mr1-dev 2012-10-08 17:00:18 -07:00
Eric Laurent
dd45d01128 enforce camera sound according to country code
Use mcc config overlay mechanism to enforce camera shutter sounds
in countries where it is mandatory.
Property ro.camera.sound.forced is not needed anymore.
When camera sound is forced, STREAM_SYSTEM_ENFORCED is removed from
streams affected by ringer mode and its volume is
maxed out. AudioSystem.FORCE_SYSTEM_ENFORCED is sent to audio
policy manager to alter the routing policy for STREAM_SYSTEM_ENFORCED.

Also fix streams being unmuted when settings are reloaded
upon user switch while in silent mode.

Add ringer mode to audio service dump.

Bug 7032634.

Change-Id: Iceea5bba3b8d3aabf8e42b222deb33a893dc8f38
2012-10-08 17:00:02 -07:00
Robert Ly
1f415fa2ea docs: nfc ndef helper methods bug 5957772
Change-Id: I9c8356f44c1f9cc4a5187d40816cbfdd6212ab6e
2012-10-08 16:59:39 -07:00
Jim Miller
6c5bd361fe Fix "checking account" string
Fixes bug 7309934

Change-Id: Ia665142b8dcd8de424312bd7bf0800d7b871b03b
2012-10-08 16:38:50 -07:00
Jeff Brown
252c206984 Improve the power off fade animation.
Fixes an issue where the dim surface alpha was not actually being
animated like it was supposed to.

Bug: 7224614
Change-Id: Iffd54367ca97ae7fd4b9603807f4e036750442b2
2012-10-08 16:21:01 -07:00
Baligh Uddin
e70bf65423 Merge "Import translations. DO NOT MERGE" into jb-mr1-dev 2012-10-08 15:53:43 -07:00
Svetoslav Ganov
62f1722d7c Merge "Accessibility enhancements within quick settings and notification shade." into jb-mr1-dev 2012-10-08 15:51:15 -07:00
Baligh Uddin
3c576d9b65 Import translations. DO NOT MERGE
Change-Id: Idd93f9399dcd2466e3d6d84bee4b536a8a41b476
Auto-generated-cl: translation import
2012-10-08 15:23:58 -07:00
Victoria Lease
0fb7e32a01 Merge "Last position improvements for GeofenceManager" into jb-mr1-dev 2012-10-08 15:14:49 -07:00
Svetoslav Ganov
55c7029312 Merge "Show the touch explore enable dialog for the current user." into jb-mr1-dev 2012-10-08 15:02:56 -07:00
Dianne Hackborn
4efbab480d Merge "Framework side of issue #7302511: GCM client needs to use new framework API..." into jb-mr1-dev 2012-10-08 15:02:56 -07:00
Baligh Uddin
bd03f5abb7 Merge "Import translations. DO NOT MERGE" into jb-mr1-dev 2012-10-08 14:59:37 -07:00
Baligh Uddin
46c2699824 Import translations. DO NOT MERGE
Change-Id: I8dd8dacad06a9f7be27ac666f7fc4a51308347aa
Auto-generated-cl: translation import
2012-10-08 14:47:48 -07:00
Selim Gurun
8d197601e7 DO NOT MERGE remove defunct javascript interface
Bug: 7073422

The feature that is using search box implementation was removed from
browser after Honeycomb. This is to remove the js interface that
is added for this feature.

Clean cherry pick of d773ca8ff2a7a5be94d7f2aaa8ff5ef5dac501a8

Change-Id: I033d29718d08803f375759faf83e2058df6d4906
2012-10-08 14:35:19 -07:00
Dianne Hackborn
36d337adff Framework side of issue #7302511: GCM client needs to use new framework API...
...to fix background->shutdown delivery race

Add ACTION_STOPPING and ACTION_STARTING to allow such apps to keep track of
which users are started/stopped, and be involved in the process of stopping
a user.

Also get rid of the scale part of the wallpaper transitions, since it seems
like I have still failed at getting the user switch to wait until the new
wallpaper is displayed.

Change-Id: If7e8fdae3544a9d7987a1b9274dc8b49022f6f62
2012-10-08 14:33:47 -07:00
Jim Miller
8215ddb4f5 Merge "Properly handle cancel event in GlowPadView" into jb-mr1-dev 2012-10-08 13:40:15 -07:00
Svetoslav Ganov
318b00bfee Show the touch explore enable dialog for the current user.
1. We are showing a warning dialog if the user enables an accessibility
   service that requests explore by touch. This dialog was shown only
   for the owner but should be shown for the current user.

bug:7304437

Change-Id: I692b5112df16405e6d2e4890aafbfde79981f973
2012-10-08 13:18:12 -07:00
Casey Burkhardt
bac221ff0b Accessibility enhancements within quick settings and notification shade.
Change-Id: I377c389abe3ce2285a620e60f4c8de4727f4f5c9
Bug: 7229886
2012-10-08 12:41:32 -07:00
Raph Levien
9704b563d6 Merge "Fix for 7301594 Html.toHtml creating potentially invalid html" into jb-mr1-dev 2012-10-08 12:40:17 -07:00
Craig Mautner
847b12295e Merge "Fix problems with IME layers." into jb-mr1-dev 2012-10-08 12:28:23 -07:00
Dirk Dougherty
08fdd5b639 Doc change: edits to TV tablet story.
Change-Id: Idbada9a3b83f7e80cd7cf7b79da5c2f9ab4398d6
2012-10-08 11:41:44 -07:00
Craig Mautner
e6f7d5054a Fix problems with IME layers.
The query WindowState.isDisplayed did not take into account being
displayed due to app animations.

When an existing input method target was animating away the logic
for detecting if it was still on screen was faulty. This led to
assigning the input method to a layer below its target and obscuring
the input method until the animation was complete.

Bug: 7296703 fixed.
Change-Id: Ib00db4f21b726ed57d25d6a1e796b65a7d45ee97
2012-10-08 10:34:17 -07:00
Brian Colonna
9ded0e1d48 FUL fallback is no longer account login - fix b/7280196
When Face Unlock failed the maximum number of times (3), it was asking
for account login when it should have been asking for the backup lock
that the user chose when setting up Face Unlock.

This change splits the isBiometricUnlockEnabled() function into two.
One of them strictly checks whether it exists and is selected.  The
other one checks whether too many attempts have occurred.  When
deciding which backup to choose, the decision is now based only on
whether Face Unlock is enabled.  Checking whether too many attempts
had occurred caused the bug because the check indicated it had already
'fallen back' to pattern, and the backup for pattern was being
selected instead of the backup for biometric unlock.

Change-Id: I6b9cf2c5155e8c14933cbfc8f5d58ebc007e53cb
2012-10-08 13:02:41 -04:00
Chris Craik
bb5f014ae8 Merge "Use offset in line drawing" into jb-mr1-dev 2012-10-08 09:46:05 -07:00
Marco Nelissen
55adc145d4 Adjust buffer position after copying
Make Bitmap.copyPixelsFromBuffer() adjust the buffer's position,
making it consistent with Bitmap.copyPixelsToBuffer().
b/6948775

Change-Id: Ie26f8050b1fb4d19cd39ee1a08b6f652a732fec3
2012-10-08 09:15:46 -07:00
Baligh Uddin
0e2aade9f1 Merge "Import translations. DO NOT MERGE" into jb-mr1-dev 2012-10-08 08:29:02 -07:00
Baligh Uddin
f895f3cbfc Merge "Import translations. DO NOT MERGE" into jb-mr1-dev 2012-10-08 08:17:02 -07:00
Amith Yamasani
9c2a38ed10 Merge "Fix resource reading for secondary users" into jb-mr1-dev 2012-10-07 22:53:18 -07:00
Daniel Sandler
de8e3b122b Merge "Fix NPE if pulling down QS quickly on very first boot." into jb-mr1-dev 2012-10-07 21:12:04 -07:00
Daniel Sandler
9d09824a66 Fix NPE if pulling down QS quickly on very first boot.
The cling interception code can interfere with the touch
stream to the point that PanelView might get an ACTION_UP or
_CANCEL without a corresponding ACTION_DOWN, causing
problems.

Bug: 7301742
Change-Id: Idd5074c2544b3238517655ab3c068966bae9f912
2012-10-07 23:27:30 -04:00
Jim Miller
245b453733 Properly handle cancel event in GlowPadView
There was a workaround used in a previous release where we effectively
ignored cancel events to work around another bug.  This change removes
the workaround and GlowPadView correctly handles the event.

Bug 6903638

Change-Id: I9b510985c6da346a4e10cf2535267c8d5efa5871
2012-10-07 20:16:54 -07:00
Daniel Sandler
33a8bd8c40 Merge "New icon for "Sleep now."" into jb-mr1-dev 2012-10-07 18:37:09 -07:00
Eric Laurent
843c539514 Merge "AudioService: fix settings for fixed volume device" into jb-mr1-dev 2012-10-07 18:23:02 -07:00
Romain Guy
133fcdf44b Merge "Clear draw flags when updating TextureView's layer Bug #7171323" into jb-mr1-dev 2012-10-07 18:00:41 -07:00
Romain Guy
52b307ebc8 Clear draw flags when updating TextureView's layer
Bug #7171323

Finally!

Change-Id: Iefef8fb9a8ef1fe4b374005067145319312c57cf
2012-10-07 17:57:30 -07:00
Daniel Sandler
118f484424 Fix NPE on devices without notification panel help clings.
Bug: 7302657
Change-Id: Ia161ea2ef74ef1dfbab55dacaa7274ebc2d66439
2012-10-07 20:48:28 -04:00
Raph Levien
286da7b6f5 Fix for 7301594 Html.toHtml creating potentially invalid html
Generate <p dir="rtl"> instead of <p dir=rtl>. The form with the quotes
is cleaner and will reduce warnings in apps that consume the output.

Change-Id: Ic9879c8c882c42079598b741e897a24415d96374
2012-10-07 16:57:27 -07:00
Eric Laurent
33902db750 AudioService: fix settings for fixed volume device
Force max volume for devices with fixed volume policy (HDMI, dock...)
when reading the settings from DB. Otherwise, these devices would
get the default volume which is not what we want.

Also fix a problem related to ringer mode management when reloading the
volume settings upon user switch that would cause a muted stream to be
unmuted.

Bug 7301563;

Change-Id: I81cdb97125b845da584ed680181b93c7c1e5903f
2012-10-07 16:54:47 -07:00
Adam Powell
b3419595c7 Merge "QuickSettings - fail gracefully if we can't query the profile data" into jb-mr1-dev 2012-10-07 16:05:35 -07:00
Adam Powell
db43f4722d QuickSettings - fail gracefully if we can't query the profile data
Fix a bug where QuickSettings couldn't get the user info tile data
when starting up encrypted. Since the system will be restarted once
the password is entered, it will be loaded properly once unlocked.

Bug 7301192

Change-Id: I6455df1d2bc33d375a1af8f2efb42dbdeb38f056
2012-10-07 16:04:37 -07:00
Romain Guy
d6344d7659 Merge "Work around a possible driver bug Bug #7296475" into jb-mr1-dev 2012-10-07 15:56:55 -07:00
Amith Yamasani
64442c1155 Fix resource reading for secondary users
Bug: 7086881

Load resources for the correct user.

Also clean up package monitoring and locking.
Added dump method to SearchManagerService.

Sneaking in a change to make crash dialogs visible to current user.

Change-Id: Id56dd15428d66084de995e28be242db27c15fda3
2012-10-07 15:56:34 -07:00
Dianne Hackborn
b52b6bf138 Merge "Fix issue #7295951: Mako asks which Launcher to use at every re-boot" into jb-mr1-dev 2012-10-07 15:48:39 -07:00
Jeff Brown
9302251e3a Merge "Reduce screen on latency, eliminate flashes." into jb-mr1-dev 2012-10-07 15:41:20 -07:00
Dianne Hackborn
ec799e883c Merge "More on #7296510 Transition from lock screen to dreaming is really bad" into jb-mr1-dev 2012-10-07 15:30:30 -07:00
Romain Guy
50ae66a554 Work around a possible driver bug
Bug #7296475

When re-enabling the scissor the driver seems to ignore the already
existing scissor box. This change resets the scissor box when the
test state changes.

Change-Id: I3a68433164f99d21fbab769a26c56fe416c1539a
2012-10-07 15:23:55 -07:00
Dianne Hackborn
297d789d44 More on #7296510 Transition from lock screen to dreaming is really bad
The final iteration of that change was a little too aggresive in
deciding when it turns off the dream's enter animation, so it was
doing this always instead of just when it needed to (when it is
being displayed to hide the lock screen).

This change fixes a dumb typo that was causing the dream to always
turn off its own animation (duh!) and tweaks the logic for deciding
when the dream should be able to cause the lock screen to hide to
better ensure that it is shown before the lock screen gets hidden.

Change-Id: Ie73a5be9ee597713644fb2a0202f36c32b4f1fca
2012-10-07 15:14:45 -07:00