1553 Commits

Author SHA1 Message Date
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
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
Jeff Brown
850c5b7ca5 Allow "factory.long_press_power_off" to be toggled at runtime.
Bug: 6847329
Change-Id: I7a303dba4482c1897d38f9064a2c49583218ffd0
2012-10-01 15:17:22 -07:00
Jeff Brown
90fc905919 Enable hardware acceleration for pointer location overlay.
Bug: 7256639
Change-Id: I790820b18365c126afc500a5ea3d222bc1ea2774
2012-10-01 14:44:24 -07:00
Jeff Brown
3dc524bc31 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
2012-10-01 14:27:34 -07:00
John Spurlock
13451a25ff Status bar: Keep disabled state per user.
Bug:7165607
Change-Id: If6f7a41c2516996612aef5e013dd0d2bd23f9084
2012-10-01 11:44:37 -04:00
Adam Cohen
1d1fb6c5e6 Making runway lights appear for correct pages (issue 7232481)
Change-Id: I66a48cc8f14cb9ebfbf032287591565f38cb3606
2012-09-30 14:36:01 -07:00
Adam Cohen
0a5bc22273 Merge "Integrate keyguard paging hint" into jb-mr1-dev 2012-09-30 12:21:55 -07:00
Mike Cleron
a995b6e37f Merge "Getting rid of blue outline in user switcher, instead brighten the user" into jb-mr1-dev 2012-09-28 19:43:16 -07:00
Jim Miller
c1aa6a54a7 Integrate keyguard paging hint
Bug 7232481

Change-Id: I1959ae61b8f5afd055158dad67bdceecc4870d24
2012-09-28 19:37:26 -07:00
Adam Cohen
9654329008 Getting rid of blue outline in user switcher, instead brighten the user
Change-Id: I4817615cc28eb1fea35ecb5c3d69c4298c9cf2cf
2012-09-28 19:28:41 -07:00
Jim Miller
1ed143ea34 Merge "Clean up SIM PIN and PUK screens in keyguard." into jb-mr1-dev 2012-09-28 18:40:43 -07:00
Jim Miller
3efe106264 Clean up SIM PIN and PUK screens in keyguard.
- new flow for PUK screen
- clean up SIM and PUK screen to match UX designs
- simplified logic for showing emergency call button

Change-Id: I66fcd312f3c52dd212d9836dc020735dbc88d5ee
2012-09-28 17:01:16 -07:00
Craig Mautner
106a69271d Merge "Keep callback reference from being null." into jb-mr1-dev 2012-09-28 15:54:44 -07:00
Dianne Hackborn
3ff8e1a800 Merge "Fix issue #7211769 and #7244492, thrash around on #7226656." into jb-mr1-dev 2012-09-28 15:54:44 -07:00
Dianne Hackborn
d4ac8d7b3d Fix issue #7211769 and #7244492, thrash around on #7226656.
Issue #7211769: Crash dialog from background user has non-working "report"

The report button now launches the issue reporter for the correct user.
Also for crashes on background users, either disable the report button,
or simply don't show the dialog depending on the build config.

Issue #7244492: Bugreport button in Quick Settings doesn't actually do anything

Now they do.

Issue #7226656: second user seeing primary user's apps

I haven't had any success at reproducing this.  I have tried to tighten up
the path where we create the user to ensure nothing could cause the
user's applications to be accessed before the user it fully created and thus
make them installed...  but I can't convince myself that is the actual problem.

Also tightened up the user switch code to use forground broadcasts for all
of the updates about the switch (since this is really a foreground operation),
added a facility to have BOOT_COMPELTED broadcasts not get launched for
secondary users and use that on a few key system receivers, fixed some debug
output.

Change-Id: Iadf8f8e4878a86def2e495e9d0dc40c4fb347021
2012-09-28 15:37:22 -07:00
Craig Mautner
00baebe124 Keep callback reference from being null.
The hide call delays removal of mKeyguardView but the inflate call
occurred before the delay expired. The method inflateKeyguardView
would have removed it except hide() also nulled out mKeyguardView.
Consequently there were two KeyguardHostViews in the view hierarchy.
The findViewById returned the first view which got the callback
assigned. Later that view was removed from the hierarchy and when
the new view was called it had no callback assigned => NPE!

This fix removes the KeyguardHostView from the mKeyguardHost by
referncing the id rather than the null mKeyguardView.

Fixes bug 7250008.

Change-Id: Ic9da3415d72187628f06271c12d5184f9d01059b
2012-09-28 15:32:31 -07:00
Adam Powell
6a5b0a3673 Don't try to open action bar overflow menus from bogus events
Some monkey tests could hit a case where a posted overflow button
click event was still lingering after the menu was no longer in a
created state, which could lead apps to crash. Just drop open-overflow
requests on the floor if the menu is in a weird state when we try.

Bug 7242431

Change-Id: Ieebb1fccfeeccbf17fd7c6cff06efbcb19b11ce3
2012-09-28 14:27:36 -07:00
Daniel Sandler
287f8a6e11 Merge "Remove dock home support." into jb-mr1-dev 2012-09-28 12:25:31 -07:00
Daniel Sandler
7c135205f2 Remove dock home support.
We still have dock apps and dock mode, just not home-key
capture.

Bug: 7163049
Change-Id: I8234ebf066798071517b4a586b06708b6ec0bc71
2012-09-28 15:21:45 -04:00
Craig Mautner
cd03a26f4f Missed a spot, needInput was not getting called.
Fixes bug 7250008.

Change-Id: I837af438510275ea69e217289aeb7a08111b91b5
2012-09-28 11:54:09 -07:00
Amith Yamasani
01996793dd Merge "Remove user switcher from long-press power menu" into jb-mr1-dev 2012-09-28 11:09:22 -07:00
Craig Mautner
af08ccb20d Merge "Add null checks before using mViewMediatorCallback." into jb-mr1-dev 2012-09-28 10:33:07 -07:00
Craig Mautner
7def1db039 Add null checks before using mViewMediatorCallback.
Fixes bug 7250008.

Change-Id: I744241c46de5222a3e1767a04464e657ccd9f799
2012-09-28 10:27:56 -07:00
Amith Yamasani
bc4ba82335 Remove user switcher from long-press power menu
Bug: 7252218

Also lock the screen before doing the user switch. This prevents the
janky behavior of showing the target user's homescreen after the switch
and then the lock screen. This is also a privacy issue.

Change-Id: I9f8db047335d06fc93505d7b5cca71e27ca3ac39
2012-09-28 10:21:32 -07:00
Daniel Sandler
0dc2b81ce1 Merge "Cleanup internal status bar APIs." into jb-mr1-dev 2012-09-28 10:07:16 -07:00
Jeff Brown
42af2ac6a3 Merge "Revert "Do not use last app rotation as default."" into jb-mr1-dev 2012-09-27 21:49:58 -07:00
Jeff Brown
0f862b432e Revert "Do not use last app rotation as default."
This reverts commit 4bd149ef83c8e3e2ffb61885e71f44df9a9ccfa7

This change introduced a regression in the device rotation policy.  Suppose you hold the device in landscape orientation then put it flat on a table.  At this time, the accelerometer has no information about which way the device is oriented so the sensor expresses no preference over the orientation.  Now switch to an application that forces portrait.  Then go back to the original app that auto-rotates.  We should remain portrait from this point onwards unless the device is picked up and we have accelerometer information from which to establish a new preferred orientation.

Bug: 7173556
Change-Id: I3684af3369e4ea55042081e19d96773c4d4bbe76
2012-09-27 21:11:01 -07:00