1579 Commits

Author SHA1 Message Date
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
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
Jeff Brown
c7505bc9dd Increase lock screen timeout when on custom widget page.
Bug: 7290676
Change-Id: I93c48fb24adb24d16ec278a4fdd51a13a85a96c3
2012-10-06 14:25:09 -07:00
Dianne Hackborn
4c1e3183ba Fix issue #7296314, issue #7296314.
7296314 Crashing dreams are stuck
7296510 Transition from lock screen to dreaming is really bad

The window layer for dreams is now moved down below the keyguard,
so that some of the expected stuff like crash and ANR dialogs can
be seen on top of them.  While doing this, I reorganized how we
define the layers so the constants are just in the switch statement,
so it is much less crazy-making trying to read how things go
together.

We now have some special cases for when a dream is being shown
to turn off its animation if the keyguard is currently shown.
Since we know it will be hiding the keyguard we need it to be
shown immediately so that you don't see whatever is behind it.

Cleaned up some handling of when the lock screen is displayed
while a FLAG_SHOW_WHEN_LOCKED window is displayed, so that the
lockscreen doesn't transiently get shown and mess up the fullscreen
or system UI state.  This also fixes problems with any normal
activity that is doing this.

Hid the methods on DreamService for setting lights out mode.  It
doesn't make sense to have such methods on DreamService, because
you can just as well do that on your own View that is showing the
dream content, and when you can do that you can fully participate
in the (required) interactions about it such as being told when
the mode goes away.

The DreamService method for going fullscreen now uses the window
flag for doing this, which is what you want, because you want this
state to persistent on that window and not get knocked out if
something above the window tickles the system UI state.

Also fixed the problem where dreams that hid the status bar would
have a jerky animation when going away, since they were causing the
activity behind them to be layed out without the lock screen.  This
is a kind-of ugly special case in the window manager right now to
just not layout windows that are behind a dream.  Good enough for MR1.

Change-Id: Ied2ab86ae068b1db0ff5973882f6d17b515edbcd
2012-10-05 20:38:31 -07:00
Jim Miller
5a3322fec3 Merge "Fix unresponsive back button in keyguard." into jb-mr1-dev 2012-10-05 17:29:36 -07:00
Jim Miller
0a34d9edf0 Fix unresponsive back button in keyguard.
When keyguard doesn't have focus, events weren't being propagated to
keyguard properly.  The fix is to grab the back-button event from the
top-level view and handle it there.

Change-Id: Ied9761919cff30173f43f03e4c2a1732387e618e
2012-10-05 17:15:41 -07:00
Adam Cohen
12ac6077ff Merge "Don't disable multi-user widget when Device Policy is enabled." into jb-mr1-dev 2012-10-05 16:55:28 -07:00
Jeff Brown
ec7131ffe3 Merge "Lock the screen while dreaming after the appropriate timeout." into jb-mr1-dev 2012-10-05 16:35:08 -07:00
Jeff Brown
6aaf29589b Lock the screen while dreaming after the appropriate timeout.
Bug: 7267187
Change-Id: I26ce3970a2d7cf446efe3e8c810fbbf3ddfcc47b
2012-10-05 16:21:05 -07:00
Craig Mautner
2874a54068 Merge "Add flag for displaying non-user's Windows to user." into jb-mr1-dev 2012-10-05 16:14:12 -07:00
Craig Mautner
88400d3a31 Add flag for displaying non-user's Windows to user.
Created a new flag that indicates that a window should be shown
to all users. For the flag to be valid the owner of the window
must have system permissions.

Also separated system window types into those that show to all
users (e.g. StatusBar, Keyguard, ....) and those that appear only
to the owning users (e.g. Drag, ANR, TOAST, ...). Those that appear
only to their owner can override their default behavior using
the new flag (e.g. LowBattery).

Fixes bug 7211965.

Change-Id: I1fdca25d57b7b523f0c7f8bceb819af656c388d4
2012-10-05 15:29:25 -07:00
Jim Miller
7221d3ae08 Don't disable multi-user widget when Device Policy is enabled.
While fixing this bug, I fixed a few other issues:
- Always call showAppropriateWidgetPage(), even when DPM enabled
- Always disable status view interaction, even when DPM enabled

Fixes bug 7294880

Change-Id: Ia8495555c1940f2b38f42389558f46fde6aab775
2012-10-05 15:29:20 -07:00
Jeff Brown
3f1246a29b Merge "Coordinate screen on with the window manager." into jb-mr1-dev 2012-10-05 14:55:26 -07:00
Jeff Brown
c38c9be031 Coordinate screen on with the window manager.
Bug: 7267457
Change-Id: Ic2c322253639e1f0b2e4e72a7b145025d0240f93
2012-10-05 14:39:23 -07:00
Jim Miller
9cf2c523d8 More userActivity() calls in keyguard
Some security screens aren't currently calling userActivity().  As such,
they allow keyguard to timeout before the user has a chance to enter
the required information.

The fix uses a TextWatcher to look for changes in the input text
and call userActivity() appropriately.

bug 7291431

Change-Id: I6d7889cc01a4d6bdbefefc5af478e812c35b1a49
2012-10-04 22:02:29 -07:00
Jim Miller
f052093044 Merge "Allow lower case for owner info in keyguard" into jb-mr1-dev 2012-10-04 19:40:35 -07:00
Jim Miller
9fdabab7e9 Allow lower case for owner info in keyguard
bug 7094419

Change-Id: Ic89d51f1d490b99a9cdd897b71057be37004301a
2012-10-04 18:47:18 -07:00
Adam Cohen
f752202bee Plumbing to allow keyguard to be shown with user switcher (issue 7175023)
-> Also reduced calls to lockNow, and moved this call in ActivityManagerService

Change-Id: I9ba34ca902f7c0f71fa4ec302104688ca8d11f55
2012-10-04 17:53:01 -07:00
Dianne Hackborn
8a22919525 Merge "Fix issue #6968859: home not exiting an ANR'd dream" into jb-mr1-dev 2012-10-04 12:41:41 -07:00
John Spurlock
6ebbe1b970 Merge "Invoking the global action dialog stops dreaming." into jb-mr1-dev 2012-10-04 12:29:46 -07:00
John Spurlock
27b3819df0 Merge "Reset status bar in keyguard, fix MU status bar bug." into jb-mr1-dev 2012-10-04 12:26:18 -07:00
Philip Milne
e4ed092076 Merge "Fix for bug: 7274232. Bold date on lock screen." into jb-mr1-dev 2012-10-04 12:14:45 -07:00
Dianne Hackborn
5fe7e2a304 Fix issue #6968859: home not exiting an ANR'd dream
Add a new call to the activity manager for the input dispatcher
to report about any pid having an ANR.  This has a new feature
where it can also tell the activity manager that it is above the
system alert layer, so the activity manager can pop its ANR dialog
on top of everything if it needs to.  (Normally we don't want
these dialogs appearing on top of the lock screen.)

Also fixed some debugging stuff here and there that was useful
as I was working on this -- windows now very clearly include
their uid, various system dialogs now have titles so you know
what they are in the window manager, etc.

Change-Id: Ib8f5d29a5572542cc506e6d338599ab64088ce4e
2012-10-04 12:04:58 -07:00
Philip Milne
2d1cf35fc9 Fix for bug: 7274232. Bold date on lock screen.
Change-Id: Ic3fc3e7c0770b2431139c3faf10296d307f1175e
2012-10-04 12:01:41 -07:00
John Spurlock
4e6922d89e Reset status bar in keyguard, fix MU status bar bug.
Two things going on here, status bar disabled flags need to be reset
on user switch.  Also make status bar's internal disable-record lookup
multi-user aware.

Bug:7278793
Change-Id: I1d7088d956a065330736da4c09cc1874c528c133
2012-10-04 14:51:51 -04:00
alanv
1a1918a5a6 Announce changes in keyguard message, e.g. bad unlock pattern.
Bug: 7280849
Change-Id: Ie28f7fa2f249c11d6523955de526d5f72da8d6f3
2012-10-03 17:40:40 -07:00
Svetoslav Ganov
04fe8eba97 Merge "Exception when performing the global gestrue to enable accessibility." into jb-mr1-dev 2012-10-03 16:55:20 -07:00
Svetoslav Ganov
d288337cd4 Exception when performing the global gestrue to enable accessibility.
1. If there is a non-speaking accessibility service installed and the
   global gesture is performed an exception is thrown since an attempt
   is made to modify the list with services returned by the accessibility
   manager (to remove the non-speaking ones) but this list is immutable.
   Now the returned services are put into a mutable list before removing
   the non-speaking ones.

bug:7280996

Change-Id: I2852a3e169c1d34d942b50fb439e0961394c92bc
2012-10-03 16:37:54 -07:00
Adam Cohen
6823de7142 Merge "Modifying user switcher per design (issue 7047393)" into jb-mr1-dev 2012-10-03 16:26:18 -07:00
John Spurlock
542a51cc79 Invoking the global action dialog stops dreaming.
Otherwise global actions appear underneath interactive dreams,
like all system dialogs.

Bug:7257688
Change-Id: Idb7ae8079fa0fc335c598c72f36bdad69248b1b1
2012-10-03 16:54:23 -04:00
Adam Cohen
0a8d32673b Modifying user switcher per design (issue 7047393)
-> When user is switched, we immediately show their security, if present
-> If a user taps on the active user, it shows the glow pad unlock hint

Change-Id: I074ed63123a6bc6a38051cb77b5d86bd3f0e93ea
2012-10-03 13:50:55 -07:00
Jim Miller
4fc3fb4f50 Merge "Always enable hardware layers in widgets in keyguard while dragging." into jb-mr1-dev 2012-10-03 12:16:46 -07:00
Craig Mautner
8bd206b548 Don't set keyboard insets if keyboard is hidden.
Makes sense.

Bug: 7256294 fixed.
Change-Id: I435fc2e6e5acdf5c4d70b9dad1a30d7fe7c11b31
2012-10-03 10:32:02 -07:00
Jim Miller
eeadda5968 Always enable hardware layers in widgets in keyguard while dragging.
This fixes a performance issue on the 7" tablet where disabling hardware
layers in landscape mode resulted in extremely bad drawing performance.

The code now enables hardware layers for all the widgets while the user
is dragging.

Fixes bug 7274971

Change-Id: Iafd18fb317fcd3caad45791fe5a0f111d40a1ed4
2012-10-03 02:35:04 -07:00
Jim Miller
5d2da713ed Update keyguard to send userActivity events
Since the new PowerManager changes are in, keyguard needs to handle
keeping the screen awake.  This change does this in a few places in
addition to the existing security screens:

- when the widget page changes
- when the user interacts with any widget other than the status widget
- when the user taps on the target in the selector screen

Fixes bug 7273646

Change-Id: If4c76a38e9b886dd359ba96cd2aae03652007b66
2012-10-03 00:41:54 -07:00
Jim Miller
6bcd73203a Switch back to user switcher in keyguard
Change-Id: I9acfb61fd34ad24a299e1f11f792e9e240f2b065
2012-10-02 22:53:26 -07:00
Adam Cohen
61cd69c378 Keyguard polish
-> Updated user switcher to be closer to spec (issue 7047393)
-> Drawing keyguard overscroll gradient manually in KeyguardWidgetFrame
   (eliminates need for assets, eliminates banding)
-> Fixed clipping of overscroll on sw600dp using negative margin

Change-Id: I90ec7f820ca7dccebf7e05628a3185e95d41af08
2012-10-02 21:55:08 -07:00
Svetoslav Ganov
5cf72e11b6 Merge "Accessibility support for the widgets switcher of the lock screen." into jb-mr1-dev 2012-10-02 17:00:21 -07:00
Svetoslav Ganov
6526fdd749 Accessibility support for the widgets switcher of the lock screen.
bug:7232727
bug:7229598

Change-Id: Ib76b81b170bed0c4ef10f5141bf70f779ffa1ac4
2012-10-02 16:58:04 -07:00
Craig Mautner
9c614bfe17 Merge "Send masked soft input mode into method." into jb-mr1-dev 2012-10-02 16:36:29 -07:00
Jim Miller
970a494ce1 Merge "Attempt to fix missing transport control in keyguard" into jb-mr1-dev 2012-10-02 16:25:15 -07:00
Jim Miller
4e81bd4bcf Attempt to fix missing transport control in keyguard
This attempts to fix a bug where the transport control would sometimes be
inoperative.  The problem is that we had two transport control layouts
on some devices because they were being declared in the layout file.

The fix is to only inflate the layout once when KeyguardHostView
is created.

Also removes redundant KeyguardStatusView.

Fixes bug 7254833

Change-Id: Iab84e8326ff745ee57be5177ab2561114c8dc6f0
2012-10-02 14:41:34 -07:00
Jim Miller
c6e570dbad Merge "Fix camera disambiguation in secure keyguard" into jb-mr1-dev 2012-10-02 13:58:01 -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
Craig Mautner
f683b56bd3 Send masked soft input mode into method.
Sending the unmasked soft input mode int setAttachedWindowFrames
included the SOFT_INPUT_STATE bits and guaranteed that the adjust
test would always pass.

Bug 7256294

Change-Id: Iaf5368432c7b350fe70687d08c0a08e814b35e94
2012-10-02 11:10: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
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
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