871 Commits

Author SHA1 Message Date
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 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
Adam Powell
e891e7ab87 am d413eb38: Merge "Fix bug 5333962 - Problems with no action bar/overlay action mode"
* commit 'd413eb3861aae87386d418e9af4875f6f330cd05':
  Fix bug 5333962 - Problems with no action bar/overlay action mode
2011-09-18 15:40:41 -07:00
Adam Powell
d413eb3861 Merge "Fix bug 5333962 - Problems with no action bar/overlay action mode" 2011-09-18 15:39:05 -07:00
Adam Powell
8ee6d7c20e Fix bug 5333962 - Problems with no action bar/overlay action mode
Change the standalone action mode window for overlay mode to be of
TYPE_APPLICATION. (This also fixes a bug where overflow menus would
not work properly on these types of action mode bars.)

Set exitFadeDuration on btn_cab_done_holo_* drawables.

Remove no-window-focus override selector states for selectable item
backgrounds to allow proper touch feedback on windows that do not have
focus but that the user can interact with.

Change-Id: Ib504866238708150d21e6183ff7b695869c05d3e
2011-09-18 15:34:00 -07:00
Mike Lockwood
1e0207674d resolved conflicts for merge of 2f7d7c9b to ics-aah
Conflicts:
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java

Change-Id: I851866d74ff9674bfb7ff652d8be65da342273c0
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-09-18 18:25:44 -04:00
Dianne Hackborn
38e29a61d0 Fix issue #5242779: Device not responding to touch on unlock screen
Rework how we decide when it is okay to turn on the screen by having
the policy call back to the power manager when it knows the lock screen
has been drawn.

Change-Id: Ie8f3f72111dcf7f168723e6dce24e0343b4afe5d
2011-09-18 14:52:52 -07:00
Brian Colonna
1d6ccd7f19 am 68a8cf4a: Merge "Properly laying out FaceLock on lockscreen"
* commit '68a8cf4a8e2829bc61c5f77cbb062a5ed143cd0a':
  Properly laying out FaceLock on lockscreen
2011-09-16 06:10:25 -07:00
Brian Colonna
68a8cf4a8e Merge "Properly laying out FaceLock on lockscreen" 2011-09-16 06:08:22 -07:00
Brian Colonna
4d7cee1e4b Properly laying out FaceLock on lockscreen
- FaceLock area now specified in layout files instead of trying to
  grab an existing view, which was only practical if pattern was
  backup method

- Now fills area it is supposed to and works with pin as well as
  pattern backup

- Backup method is no longer exposed behind FaceLock just before it
  starts or just after it tells the lockscreen to unlock

- Added synchronized blocks so FaceLock cannot be told to stopUI by
  two different threads at the same time

Change-Id: I3bfad6b44dbe0e3c2ea3c87d2978451c22a7484c
2011-09-15 17:18:56 -04:00
Danielle Millett
86c32c0247 am 247d8b08: Merge "isPasswordEnabled and isPatternEnabled return true if used as backup method"
* commit '247d8b08b2618c33a4ec1be974829c033c9b909f':
  isPasswordEnabled and isPatternEnabled return true if used as backup method
2011-09-15 12:16:45 -07:00
Danielle Millett
247d8b08b2 Merge "isPasswordEnabled and isPatternEnabled return true if used as backup method" 2011-09-15 12:14:25 -07:00
Dianne Hackborn
cb8eeca141 am d32b472e: Merge "Fix issue #5155678: Portrait > Landscape full-screen transition..."
* commit 'd32b472edfda62c8c2713c4c72da4cdba32dd5ff':
  Fix issue #5155678: Portrait > Landscape full-screen transition...
2011-09-14 19:28:59 -07:00
Dianne Hackborn
d32b472edf Merge "Fix issue #5155678: Portrait > Landscape full-screen transition..." 2011-09-14 19:26:23 -07:00
Dianne Hackborn
ec537457cd Fix issue #5155678: Portrait > Landscape full-screen transition...
...mode cuts off screen rendering

The code for limiting application window sizes to not include the
navigation bar was dead.  Now it is back.

Change-Id: Ic0bde56e3300fd0d9d225e19d8de2766d07e8780
2011-09-14 19:19:55 -07:00
Dianne Hackborn
7b50e27ad2 am ca7b6568: Merge "Fix issue #5283365: Rotating the device to portrait mode, hides the keyboard partly"
* commit 'ca7b6568333e1446b8357a89f6bdf757fee29768':
  Fix issue #5283365: Rotating the device to portrait mode, hides the keyboard partly
2011-09-14 17:59:44 -07:00
Dianne Hackborn
ca7b656833 Merge "Fix issue #5283365: Rotating the device to portrait mode, hides the keyboard partly" 2011-09-14 17:58:18 -07:00
Dianne Hackborn
1f903c3b57 Fix issue #5283365: Rotating the device to portrait mode, hides the keyboard partly
PhoneWindowManager now takes full responsibility for deciding where the
navigation bar goes.  This gets rid of a bunch of race conditions with
determining layout while the nav bar is moving itself at the same time
the window manager is computing a new configuration.

Note that this breaks the "nav bar on left" option.  The current nav
bar code could also be cleaned up some more to completely drive its
behavior based on onSizeChanged() happening during relayout.

Change-Id: I1651d74c3464ba0d588aab3049e099c78420146a
2011-09-14 17:56:40 -07:00
Adam Powell
c4dd8fe1e8 am e71ffeb7: Merge "Fix bug 5237737 - ActionBar should fire an accessibility event when action mode is turned on/off"
* commit 'e71ffeb7e0eaa181130aaaad18a94ef3ab73ecb1':
  Fix bug 5237737 - ActionBar should fire an accessibility event when action mode is turned on/off
2011-09-14 17:33:50 -07:00
Adam Powell
86ed436b83 Fix bug 5237737 - ActionBar should fire an accessibility event when
action mode is turned on/off

Fire AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED when action modes
come and go to give an indication of UI change on the level of a menu
or dialog opening/closing.

Change-Id: Id36c6153b0722b4b6927c8d36503e8ac57c2d2b2
2011-09-14 16:19:44 -07:00
Daniel Sandler
714898ac42 am 28739171: Merge "When the status bar hides, close the notification panel."
* commit '28739171f2135c1083dc5f87a3827f9212a55580':
  When the status bar hides, close the notification panel.
2011-09-14 10:25:17 -07:00
Daniel Sandler
28739171f2 Merge "When the status bar hides, close the notification panel." 2011-09-14 10:23:21 -07:00
Jeff Brown
831be72ae1 am aab55bf3: Merge "Fix bug in KeyButtonView key injection logic. Bug: 5299191 Bug: 5300282"
* commit 'aab55bf3e323b73062bd932682886b19c062a8a0':
  Fix bug in KeyButtonView key injection logic. Bug: 5299191 Bug: 5300282
2011-09-13 19:24:50 -07:00
Jeff Brown
98392efb24 Fix bug in KeyButtonView key injection logic.
Bug: 5299191
Bug: 5300282

Only send keys when mCode != 0.

Simplified the logic for repeating / non-repeating keys.
Key down / up are always correlated with touch down / up, the
only thing that's special is that we detect long press for
repeating keys and not for others.

Ensure that up or cancel is always sent for every key
that is generated.  Previously it was possible for keys to get
stuck down if touch moved out of the button's active area.

Removed the funky HOME long press timer.  We don't need it
since we can rely on the long-press flag instead.  Since the
system UI is in direct control of key repeating and long-press
behavior for the keys it inject, this eliminates the need for
special hacks to circumvent the timer.

Ensure that the same haptic feedback is provided for all keys,
including the recent apps key.  Previously this only worked
because the code was injecting a bogus key with code 0.

Don't generate repeated haptic feedback for virtual keys
even when those keys are injected.  This doesn't happen
for virtual keys synthesized by the InputReader because it
never injects repeats itself (the InputDispatcher synthesizes
them), but it is an issue for the KeyButtonView.

Change-Id: I8b3615dde738af28e76898d161d6ce9a883b59ec
2011-09-13 16:52:12 -07:00
Danielle Millett
73da5fe0fe isPasswordEnabled and isPatternEnabled return true if used as backup method
When facelock is enabled, isPasswordEnabled or isPatternEnabled will return true depending
on which one is set as the backup method. This is a cleaner way to handle things, rather than
specific cases for facelock in all the methods that call these functions.

Change-Id: Iacb802b89626dfc13f2306de1a2e622ca9b69427
2011-09-13 17:38:27 -04:00
Mike Lockwood
1d29e2129f Fix problems dispatching media button events on headless devices
Change-Id: Ib0f8ca008c7e1325d5dc6f6534f08960c527eeac
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-09-13 16:29:38 -04:00
Daniel Sandler
9c00d5b8e7 When the status bar hides, close the notification panel.
Bug: 5087130
Change-Id: I8a63f424158faa3266f6904c0a57ac352a0555e4
2011-09-13 14:49:03 -04:00
Jim Miller
62744692ab am 1fe61d73: Merge "Allow lockscreen orientation to be overridden with a system property."
* commit '1fe61d73862926c4ec8d5acbfc3e1082e2e47f59':
  Allow lockscreen orientation to be overridden with a system property.
2011-09-09 15:04:27 -07:00
Jim Miller
56bacd76b2 Allow lockscreen orientation to be overridden with a system property.
There are cases where lockscreen changes orientation (when docked, etc.),
but it's not easy to test. This allows lockscreen's behavior to be
overridden by command-line.

Change-Id: I7ce1e2ca0ea03a9034a6f537e33650e99e3594d8
2011-09-09 14:54:13 -07:00
Jeff Brown
deb5882b2e am 1d50a2c0: Merge "Adjust layers for system overlays."
* commit '1d50a2c0682926f783f9acab5c4bdeca1d3cb9cd':
  Adjust layers for system overlays.
2011-09-09 11:08:21 -07:00
Jeff Brown
1d50a2c068 Merge "Adjust layers for system overlays." 2011-09-09 11:06:25 -07:00
Brian Colonna
e9ee5fef97 am f7317477: Merge "Moved FaceLock bind/unbind calls inside of null check"
* commit 'f7317477457365656193fdf7f1cd9b81fef1fe4b':
  Moved FaceLock bind/unbind calls inside of null check
2011-09-09 10:53:57 -07:00
Jim Miller
06cd5ec976 am 4f4ed38a: Merge "Fix 5185505: Add support for weak biometric sensors to lockscreen."
* commit '4f4ed38a8852bcf45fbec460ab61256fe98b2b40':
  Fix 5185505: Add support for weak biometric sensors to lockscreen.
2011-09-09 09:06:58 -07:00
Michael Jurka
0eec069544 am 3705b22c: Merge "Adding null check to prevent monkey crash. (5263199)"
* commit '3705b22c9704050dfb46d784ae84e9d7f9357ad4':
  Adding null check to prevent monkey crash. (5263199)
2011-09-09 09:05:53 -07:00
Jeff Sharkey
332ea4db33 am b0d89922: Merge "Always disable() through SBMS; watch date."
* commit 'b0d89922b186b62701aa7ee1ed8f808fac2c1d9b':
  Always disable() through SBMS; watch date.
2011-09-09 09:01:46 -07:00
Brian Colonna
15ea55a6f1 Moved FaceLock bind/unbind calls inside of null check
- I am not sure under what circumstances mKeyguardView can be null in
  onScreenTurnedOn() and I never saw this behavior before the commit,
  but it can happen and prevent the device from booting

- Patched to fix line length

Change-Id: I39efa5c1d68158af5c108430036fe7c715ef855b
2011-09-09 11:53:36 -04:00
Jim Miller
4f4ed38a88 Merge "Fix 5185505: Add support for weak biometric sensors to lockscreen." 2011-09-09 00:58:01 -07:00
Jim Miller
6edf2637e9 Fix 5185505: Add support for weak biometric sensors to lockscreen.
Added binder interfaces to the framework.

Change-Id: I7d55b45baa4d1600ebd2a3828e85c3357cfcfb58
2011-09-09 00:53:02 -07:00
Michael Jurka
3705b22c97 Merge "Adding null check to prevent monkey crash. (5263199)" 2011-09-08 19:07:02 -07:00
Winson Chung
45d378b705 Adding null check to prevent monkey crash. (5263199)
Change-Id: I26372c8aa8022659582b31ca5a4279b9590f02f8
2011-09-08 19:03:05 -07:00
Jeff Brown
bfcb60ab0f Adjust layers for system overlays.
Prevent system overlays from showing above the notification bar.

Allow secure system overlays to be fullscreen, for the pointer
location view.

Show the drag layer above the notification bar.

Change-Id: Ic8d663792a243cca2cd9952d241d001e0357d551
2011-09-08 18:53:42 -07:00
Jeff Sharkey
b0d89922b1 Merge "Always disable() through SBMS; watch date." 2011-09-08 15:22:51 -07:00
Jeff Sharkey
4519a02608 Always disable() through SBMS; watch date.
Touching StatusBar.disable() directly can make the cached value over
in StatusBarManagerService stale.  Instead, dispatch DISABLE_BACK
through setSystemUiVisibility() on tablets; it's unused on phones.

Also DISABLE_NOTIFICATION_TICKER when showing secure lockscreen, and
watch for TIME_CHANGED in DateView.

Bug: 5255469
Bug: 5242677
Change-Id: I4efaf9799b2f229f49d7024da5dafceacd5e08bb
2011-09-08 12:34:44 -07:00
Adam Powell
334bf70172 am 156900c4: Merge "Fix bug 5174277 - Trouble with Menus"
* commit '156900c48b7758e57c995eaaea1479c10756ce38':
  Fix bug 5174277 - Trouble with Menus
2011-09-08 11:03:26 -07:00
Adam Powell
1d07e16c9d Fix bug 5174277 - Trouble with Menus
Make sure that options menu panel presenters associated with a PhoneWindow
get re-wired properly when a new menu is generated.

Change-Id: Ic06130019aec8b8edc372054c348f147d164fc5f
2011-09-07 20:47:13 -07:00
Jim Miller
59079e9078 am b4a431fa: Merge "Fix 2679658: Be more aggressive about recreating lock screen."
* commit 'b4a431fa16bce32ee3c3e324dddbe1d0dbc303fc':
  Fix 2679658: Be more aggressive about recreating lock screen.
2011-09-06 23:17:42 -07:00