915 Commits

Author SHA1 Message Date
Jeff Brown
c976aec618 am 4c253119: Merge "Prevent unintended rotations. Bug: 4981385"
* commit '4c253119db0ce753e46ec3809b54b9e357d363db':
  Prevent unintended rotations. Bug: 4981385
2011-09-23 18:29:49 -07:00
Jeff Brown
4c253119db Merge "Prevent unintended rotations. Bug: 4981385" 2011-09-23 18:28:01 -07:00
Jeff Brown
c0347aa19f Prevent unintended rotations.
Bug: 4981385

Changed the orientation listener to notify the policy whenever
its proposed orientation changes, and changes the window manager
to notify the orientation listener when the actual orientation
changes.  This allows us to better handle the case where the
policy has rejected a given proposal at one time (because the
current application forced orientation) but might choose
to accept the same proposal at another time.

It's important that the proposal always be up to date.  A proposal
becomes irrelevant as soon as the phone posture changes such
that we can no longer determine the orientation with confidence
(such as when a device is placed flat on a table).

Simplified the orientation filtering.  Now we just wait 200ms
for the device to be still before issuing a proposal.  The idea
is that if the device is moving around a lot, we assume that
the device is being picked up or put down or otherwise in
the process of being moved.  We don't want to change the rotation
until that's all settled down.  However, we do want to tolerate
a certain amount of environmental noise.

(The previous confidence algorithm was also designed along
these lines but it was less direct about waiting for things
to settle.  Instead it simply made orientation changes take
longer than usual while unsettled, but the extra delay was often
too much or too little.  This one should be easier to tune.)

Change-Id: I09e6befea1f0994b6b15d424f3182859c0d9a530
2011-09-23 17:26:09 -07:00
Brian Colonna
ae1c653770 am 93b19cbe: Merge "Changed result of entering credentials after forgot pattern"
* commit '93b19cbe4bb48ab2c67180c2b6cd93e1e26edf31':
  Changed result of entering credentials after forgot pattern
2011-09-23 15:11:33 -07:00
Brian Colonna
93b19cbe4b Merge "Changed result of entering credentials after forgot pattern" 2011-09-23 15:09:15 -07:00
Adam Powell
e245c11dfb am 6ed1bfb1: Merge "Fix bug 5341139 - bottom bar stays if app wants to handle orientation change"
* commit '6ed1bfb1b68071d64a8ab145cc249d37377f9758':
  Fix bug 5341139 - bottom bar stays if app wants to handle orientation change
2011-09-23 15:07:53 -07:00
Adam Powell
6ed1bfb1b6 Merge "Fix bug 5341139 - bottom bar stays if app wants to handle orientation change" 2011-09-23 15:06:30 -07:00
Dianne Hackborn
0ba3f30655 am a982ad19: Merge "Fix issue #5173952: Opening a Notification From Lock Screen..."
* commit 'a982ad19d2aee54f714fa3ad9ee4ddbac08dc0fe':
  Fix issue #5173952: Opening a Notification From Lock Screen...
2011-09-23 14:56:48 -07:00
Adam Powell
a05aba9c50 Fix bug 5341139 - bottom bar stays if app wants to handle orientation
change

Let action bars move between split/unsplit mode on configuration
changes if set to split when narrow.

Change-Id: I13f5115a65247cb1878ee823493ca8e2b6ba4cf6
2011-09-23 14:23:30 -07:00
Dianne Hackborn
90c52de286 Fix issue #5173952: Opening a Notification From Lock Screen...
...Should Skip Unsecure Lockscreen (ICS)

Also while I am in there, clean up logging of intent objects to include
even less sensitive information, while showing the true Intent in dump
output (since apps can't get to that).

Change-Id: I35fed714645b21e4304ba38a11ebb9c4c963538e
2011-09-23 13:39:33 -07:00
Brian Colonna
aae641bc64 Changed result of entering credentials after forgot pattern
After pressing forgot pattern and entering credentials, it used to
bring you to the screen to choose a new pattern.  Now you are brought
to the screen to choose any unlock method.  The reason for this change
is that both Pattern and FaceLock are valid possibilities when a
pattern is forgotten since FaceLock can use a pattern as a backup
method.

Change-Id: Ide28a780771a50952e72c3c06e1f71cbcb48f834
2011-09-23 14:37:11 -04:00
John Wang
85248df45e am 5298a8c7: am dd6d1bbd: Merge "Update PUK unlock screen." into ics-factoryrom
* commit '5298a8c71ae0125b32cc9e00062b9be370d9a043':
  Update PUK unlock screen.
2011-09-22 23:44:43 -07:00
Adam Cohen
e8feb4a59c am a0c7a576: am 08ee7fa4: Merge "Fixing emergency dialer flicker on lock screen (issue 5314293)" into ics-factoryrom
* commit 'a0c7a5765dbbd255f9a122ba8829ca44032acde0':
  Fixing emergency dialer flicker on lock screen (issue 5314293)
2011-09-22 23:44:41 -07:00
John Wang
5298a8c71a am dd6d1bbd: Merge "Update PUK unlock screen." into ics-factoryrom
* commit 'dd6d1bbd15c4e5cf1b3e0ac34c96f29fb04863c6':
  Update PUK unlock screen.
2011-09-22 23:39:37 -07:00
Adam Cohen
a0c7a5765d am 08ee7fa4: Merge "Fixing emergency dialer flicker on lock screen (issue 5314293)" into ics-factoryrom
* commit '08ee7fa463aee5e83f77789e9a99f17a34ab68b4':
  Fixing emergency dialer flicker on lock screen (issue 5314293)
2011-09-22 23:39:33 -07:00
Adam Powell
2fb627239a am 9b01e30c: Merge "Fix bug 5355912 - SearchView in ActionBar with Theme.Holo.Light.DarkActionBar gets black text"
* commit '9b01e30ceaf76a0c2a20fe9398c0b1d295136e3a':
  Fix bug 5355912 - SearchView in ActionBar with Theme.Holo.Light.DarkActionBar gets black text
2011-09-22 19:33:45 -07:00
Adam Powell
d65b3b99f0 Fix bug 5355912 - SearchView in ActionBar with
Theme.Holo.Light.DarkActionBar gets black text

Make sure that menus generated for use in action bars get themed correctly.

Change-Id: I14ba676d296c785514425d40d89e62dc4ff1da1a
2011-09-22 18:53:15 -07:00
Jason Simmons
8e64fca6f1 resolved conflicts for merge of fb49cd95 to ics-aah
Change-Id: I55cfbddf87914bbdb74998b1676b245182f3a6fd
2011-09-22 16:36:14 -07:00
John Wang
dd6d1bbd15 Merge "Update PUK unlock screen." into ics-factoryrom 2011-09-22 15:44:40 -07:00
Dianne Hackborn
400110902e Fix issue #5355844: PowerManager does not call screenTurningOn after boot.
Be more explicit about initialization -- power manager never sends
screen update when first initializing, phone window manager retreives
current screen state and applies that itself when initializing.

Change-Id: I8294ed36d700e186c1637754df8c8183721c15dd
2011-09-22 13:37:48 -07:00
John Wang
7f3eb49ad5 Update PUK unlock screen.
1. Make Pin and Puk focusable EditText.
2. Add hint text for pin and puk.
3. Update focusEntry logic.

bug:5243771
Change-Id: I65bd52510bbbf0ebd7830ecac7e31159ae750c6c
2011-09-22 11:59:46 -07:00
Jeff Brown
b59b66266c am b35914bb: Merge "Disallow 180 rotation for phones. Bug: 4981385"
* commit 'b35914bb90c0650f65bdc7bdca1de24c2fd0179f':
  Disallow 180 rotation for phones. Bug: 4981385
2011-09-21 21:11:40 -07:00
Jeff Brown
088663e846 am a829e166: Merge "Handle orientation changes more systematically. Bug: 4981385"
* commit 'a829e16681903e6a41901145195f88bf9d952f88':
  Handle orientation changes more systematically. Bug: 4981385
2011-09-21 21:11:37 -07:00
Jeff Brown
b35914bb90 Merge "Disallow 180 rotation for phones. Bug: 4981385" 2011-09-21 21:09:15 -07:00
Jeff Brown
a829e16681 Merge "Handle orientation changes more systematically. Bug: 4981385" 2011-09-21 21:09:10 -07:00
Jeff Brown
d3187e39b0 Disallow 180 rotation for phones.
Bug: 4981385

Change-Id: Icaed9cfe4ee9771ca5951abcd1173024d87a024b
2011-09-21 19:26:44 -07:00
Jeff Brown
01a98ddbdf Handle orientation changes more systematically.
Bug: 4981385

Simplify the orientation changing code path in the
WindowManager.  Instead of the policy calling setRotation()
when the sensor determined orientation changes, it calls
updateRotation(), which figures everything out.  For the most
part, the rotation actually passed to setRotation() was
more or less ignored and just added confusion, particularly
when handling deferred orientation changes.

Ensure that 180 degree rotations are disallowed even when
the application specifies SCREEN_ORIENTATION_SENSOR_*.
These rotations are only enabled when docked upside-down for
some reason or when the application specifies
SCREEN_ORIENTATION_FULL_SENSOR.

Ensure that special modes like HDMI connected, lid switch,
dock and rotation lock all cause the sensor to be ignored
even when the application asks for sensor-based orientation
changes.  The sensor is not relevant in these modes because
some external factor (or the user) is determining the
preferred rotation.

Currently, applications can still override the preferred
rotation even when there are special modes in play that
might say otherwise.  We could tweak this so that some
special modes trump application choices completely
(resulting in a letter-boxed application, perhaps).
I tested this sort of tweak (not included in the patch)
and it seems to work fine, including transitions between
applications with varying orientation.

Delete dead code related to animFlags.

Handle pausing/resuming orientation changes more precisely.
Ensure that a deferred orientation change is performed when
a drag completes, even if endDragLw() is not called because the
drag was aborted before the drop happened.  We pause
the orientation change in register() and resume in unregister()
because those methods appear to always be called as needed.

Change-Id: If0a31de3d057251e581fdee64819f2b19e676e9a
2011-09-21 19:26:15 -07:00
John Wang
bf9217cebb am 5dbe9228: am 6588bba3: Merge "Notify the sim state after callback registration." into ics-factoryrom
* commit '5dbe9228a95c4ee5bfcdf2791634f59ce119c0e6':
  Notify the sim state after callback registration.
2011-09-21 19:10:54 -07:00
John Wang
5dbe9228a9 am 6588bba3: Merge "Notify the sim state after callback registration." into ics-factoryrom
* commit '6588bba33fbf2756253d19764022a743e13573e9':
  Notify the sim state after callback registration.
2011-09-21 18:56:49 -07:00
Adam Powell
1ad36c30d4 am c3e4454f: Merge "Fix bug 5300621 - Share menu disappears in gallery"
* commit 'c3e4454fdb57391c8d7c77a9d61381d0f4d857e8':
  Fix bug 5300621 - Share menu disappears in gallery
2011-09-21 18:27:20 -07:00
Adam Powell
c3e4454fdb Merge "Fix bug 5300621 - Share menu disappears in gallery" 2011-09-21 18:26:13 -07:00
Adam Cohen
ebcd6bb1b9 Fixing emergency dialer flicker on lock screen (issue 5314293)
Change-Id: Ia9bf4acb84923e200b89ee55fc53bc92877001cf
2011-09-21 17:39:23 -07:00
Adam Powell
823f074a73 Fix bug 5300621 - Share menu disappears in gallery
ActionProviders (or action views) unfortunately had no way to report
that they had opened a sub-UI that would affect menu visibility
listeners used to hide action bars when not in use. This caused the
Gallery UI to hide its action bar when the share popup was open.

Add hidden API (to be made public later) to ActionProvider that can be
used to inform the menu system that a sub UI has opened or
closed. Account for this in menu visibility callbacks. Fix
ShareActionProvider to use this when its popup windows open and close.

Fix a regression where submenus were not properly reporting visibility
changes.

Change-Id: Ia6f45fb463ad106105c40d01f141c2e5c8b96f78
2011-09-21 17:21:47 -07:00
John Wang
6588bba33f Merge "Notify the sim state after callback registration." into ics-factoryrom 2011-09-21 15:34:28 -07:00
Dianne Hackborn
fb35db7cce am dda868cd: Merge "Keyguard sound needs to hold wake lock."
* commit 'dda868cd3383aecb45b42e39abfa2670101dde00':
  Keyguard sound needs to hold wake lock.
2011-09-21 15:17:09 -07:00
Dianne Hackborn
dda868cd33 Merge "Keyguard sound needs to hold wake lock." 2011-09-21 15:15:18 -07:00
John Wang
61e159504a Notify the sim state after callback registration.
Notify the register the current sim state right away in
registerSimStateCallback.Otherwise the register won't
receive any state until sim state gets changed again.
That will introduce a racing condition. If the sim state
changes to PUK_LOCKED after registering the callback, the
PUK unlock screen shows up. If the sim state changes to
PUK_LOCKED before registering, the PUK unlock screen won't
show.

bug:5243771
Change-Id: I27de1329a30adba68952cf086d2130c4cef54270
2011-09-21 14:35:34 -07:00
Adam Powell
55ee8ba3c7 am 39129cc8: Merge "Fix bug 5341804 - Unable to type into the find on page CAB"
* commit '39129cc88496e8fae68974ac52547cdebce030ad':
  Fix bug 5341804 - Unable to type into the find on page CAB
2011-09-21 14:08:38 -07:00
Adam Powell
39129cc884 Merge "Fix bug 5341804 - Unable to type into the find on page CAB" 2011-09-21 14:06:41 -07:00
Adam Powell
2301658222 Fix bug 5341804 - Unable to type into the find on page CAB
Standalone action mode windows should be focusable.

Change-Id: I7ce23f1028eb0d0d36bdb287589a6018dc178580
2011-09-21 13:39:53 -07:00
Dianne Hackborn
e47e8520fa Keyguard sound needs to hold wake lock.
We need to hold a wakelock while playing the keyguard lock sound,
so that it actually completes before the CPU goes to sleep.

Change-Id: I144c345383afeb911ea461b2eb17b31183b6d092
2011-09-21 13:34:33 -07:00
Adam Cohen
d9136b33f7 am cec857d8: am 41298971: Merge "Fixing disappearing lock screen, issue 5319246" into ics-factoryrom
* commit 'cec857d85c838ed7253c64b84d5b1354be7595b1':
  Fixing disappearing lock screen, issue 5319246
2011-09-21 11:22:02 -07:00
Adam Cohen
cec857d85c am 41298971: Merge "Fixing disappearing lock screen, issue 5319246" into ics-factoryrom
* commit '41298971c774a336257fff4a97ed5d5505bbfb60':
  Fixing disappearing lock screen, issue 5319246
2011-09-21 11:19:36 -07:00
Mike Lockwood
d7296a1bf2 PhoneWindowManager: Disable boot progress dialog on headless builds
Change-Id: I25958bd426eb314b6e1386243cc285bd12f8e712
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-09-21 13:03:40 -04:00
Adam Cohen
51e9d5c635 Fixing disappearing lock screen, issue 5319246
Change-Id: Ia59ba6388775efc83aadf1e489b767be5624d385
2011-09-20 20:55:33 -07:00
Adam Powell
b9a9fdd9e3 am 6bb68deb: am 6724872b: Merge "Fix bug 5336495 - Silent mode icon on power dialog is wrong" into ics-factoryrom
* commit '6bb68deb7d8b6784699b1653ceb0b5a71b5925f0':
  Fix bug 5336495 - Silent mode icon on power dialog is wrong
2011-09-20 16:25:33 -07:00
Jason Simmons
8d3538d016 resolved conflicts for merge of 0799e951 to ics-aah
Change-Id: I4f968fa84aa395c63c28053ef0f489161530bf86
2011-09-20 14:36:22 -07:00
Adam Powell
6bb68deb7d am 6724872b: Merge "Fix bug 5336495 - Silent mode icon on power dialog is wrong" into ics-factoryrom
* commit '6724872b166d84f640dfa3213e917ecd37333484':
  Fix bug 5336495 - Silent mode icon on power dialog is wrong
2011-09-20 14:36:09 -07:00
Adam Powell
093dee952f Fix bug 5336495 - Silent mode icon on power dialog is wrong
Change-Id: I384882434827a3ab57d65bb0a79e9da10315326f
TODO: Add appropriate vibrate-in-silent-mode icon when available.
2011-09-20 13:49:36 -07:00
Dianne Hackborn
bc1aa7bbc7 Fix issue #5312624: Lock screen very flickery
The key thing was to fix isVisibleOrBehindKeyguardLw() so that it
wouldn't count a window as not visible if it was just currently
in the process of drawing due to an orientation change.

Also improve logic in deciding when to turn screen on to better ensure
the screen is in a stable state, in particular treating screen off
as a frozen screen and not allowing it to turn on until the
update of the screen due to any config change is done.

Change-Id: If82199f3773270b2d07f9c7de9da2dad8c7b28d7
2011-09-20 11:20:31 -07:00