1047 Commits

Author SHA1 Message Date
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
Jim Miller
62c3efd204 Fix 2679658: Be more aggressive about recreating lock screen.
In the past we were overly cautious about not recreating the lockscreen
under steady state conditions.  However, that allowed lockscreen
to get into weird states where the screen orientation and the
loaded layout disagree. Once in this state, the user could not
recover because we would never reload the layout due to the fixed
orientation of lock screen.

This avoids the problem by being more aggressive about reloading
the layout.  It now recreates the lockscreen (for reals) whenever
a view requests it via recreateMe().

In addition it serializes recreateMe() requests to ensure a pending
configuration change event has a chance to propagate and be handled
by the lockscreen looper.

Change-Id: I86a54abba899eb314f7cc8dbf6cbb98266bc548a
2011-09-06 19:23:52 -07:00
Dianne Hackborn
59a12eb2cc am 6b0c11da: Merge "Fix issue #5150899: Call activity takes 15MB we never get back."
* commit '6b0c11da5a7a7ea236fd9dc409d1ce7a33bff9c2':
  Fix issue #5150899: Call activity takes 15MB we never get back.
2011-09-02 17:20:44 -07:00
Dianne Hackborn
6b0c11da5a Merge "Fix issue #5150899: Call activity takes 15MB we never get back." 2011-09-02 17:18:32 -07:00
Jeff Sharkey
b7cc55d188 am 890aaea2: Merge "Show statusbar clock based on lockscreen status."
* commit '890aaea2fb456e5bdc0b24253d6fee2aa0ad22ec':
  Show statusbar clock based on lockscreen status.
2011-09-02 15:09:29 -07:00
Dianne Hackborn
5d927c2d8e Fix issue #5150899: Call activity takes 15MB we never get back.
Persistent process can no longer use hardware acclerated drawing
when running on a low-memory device.

Change-Id: I3110335617af1c98fcede9bf41f4a1d0c20d0e87
2011-09-02 12:22:18 -07:00
Jeff Sharkey
054340d0a3 Show statusbar clock based on lockscreen status.
Keep track of lockscreen clock visibility, and only hide statusbar
clock when one is provided by lockscreen.  This fixes bug where widget
would hide all clocks.

Bug: 5242065
Change-Id: I48de98ecb956c7f22bd40b54d771c78c1a80c14c
2011-09-02 10:31:15 -07:00
Dianne Hackborn
7cbbb8b1a3 am 69666e07: Merge "Fix issue #5229575: Youtube link shared through messaging is not..."
* commit '69666e078152362b19d02d9ee79bbd5fc69e09c3':
  Fix issue #5229575: Youtube link shared through messaging is not...
2011-09-01 16:54:23 -07:00
Dianne Hackborn
69666e0781 Merge "Fix issue #5229575: Youtube link shared through messaging is not..." 2011-09-01 15:54:43 -07:00
Mike Lockwood
2cdc92b78d am 6c79bcf3: Merge "Show back button in status bar when in an activity in front of the lockscreen."
* commit '6c79bcf351aa1dc2929f9e876ee794b98f165b80':
  Show back button in status bar when in an activity in front of the lockscreen.
2011-09-01 13:28:10 -07:00
Dianne Hackborn
ba24e4d8bb Fix issue #5229575: Youtube link shared through messaging is not...
...opening after selecting option "Youtube" as a luncher.

Also:

* Tweak window animations so that the wallpaper exist animations do not
stop too early (causing the wallpaper to suddenly disappear).
* Make sure no input is being processed while booting, to avoid
accidentally doing things especially in the upgrade dialog.
* Some other small cleanup.

Change-Id: I40a6b53731991d4e31ac4502e3d85f0e47507481
2011-09-01 12:39:17 -07:00
Mike Lockwood
e3646dd8d9 Show back button in status bar when in an activity in front of the lockscreen.
When the lockscreen is up we still enable the home and recent app buttons,
but the back button is only enabled if the lockscreen is not obscured by other activities

Fixes problem escaping from the DeskClock app when the screen is locked.

Bug: 5206013

Change-Id: I68c9e4513018f51e2ee4fc11254e42ecbef834e4
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-09-01 13:56:25 -04:00
Dianne Hackborn
8aab8b5759 am 1434ab98: Merge "Use floating point window positions."
* commit '1434ab98e690cbcfcdcd2296b491a44bff14cc55':
  Use floating point window positions.
2011-08-31 14:22:37 -07:00
Dianne Hackborn
d040edbae9 Use floating point window positions.
Gets rid of gapps between windows during animations.

Change-Id: I17d2ef0af214008f0eabd7eb19268f145fe83b39
2011-08-31 14:18:32 -07:00
Jeff Brown
79753f387a am 9d4bc852: Merge "Fix input channel leak. Bug: 5156144"
* commit '9d4bc852ea459c2a4347a87ce0357b3328a25db8':
  Fix input channel leak. Bug: 5156144
2011-08-31 13:03:26 -07:00
Jeff Brown
9d4bc852ea Merge "Fix input channel leak. Bug: 5156144" 2011-08-31 13:01:16 -07:00
Jeff Sharkey
92fbf93767 am 27c6837d: Merge "Disable clock in lockscreen; better flag logic."
* commit '27c6837d57be4e3a8de9b5d31ee5ee6da8675d1a':
  Disable clock in lockscreen; better flag logic.
2011-08-30 22:53:55 -07:00
Jeff Sharkey
f52c70b2cc Disable clock in lockscreen; better flag logic.
When showing lockscreen, hide clock and navigation.  Clean up logic
to be easier to understand.

Bug: 5112812
Change-Id: I20e3563aa36644db678c7839d47f01f223fe8d37
2011-08-30 22:30:07 -07:00
Jeff Brown
cc4f7db698 Fix input channel leak.
Bug: 5156144

Input channels could leak or simply live longer than they should
in some cases.

1. Monitor channels (used by the pointer location overlay) are never
   unregistered, so they would leak.

   Added code to handle failures in the receive callback by closing
   the input channel.

2. The DragState held onto its input window and application handles
   even after the input channel was disposed.

   Added code to null these handles out when they are no longer needed.

3. Input channels previously used as input event targets would stick
   around until the targets were cleared (usually on the next
   event).

   Added code to detect when the input dispatcher is in
   an idle state and to proactively clear the targets then
   to ensure that resources are released promptly.

4. Native input window handles held onto the input channel even
   after the input window was removed from the input dispatcher.
   Consequently, the input channel would not be disposed until
   the input window handle itself was freed.  Since the input
   window handle is held from managed code, this meant that the
   window's input channel could stick around until the next GC.

   Refactored the input window handle to separate the properties
   (info) and identify (handle) state into different objects.
   Then modified the dispatcher to release the properties (info)
   when no longer needed, including the input channel.

7. The pointer location overlay does not actually use its
   standard input channel, only the monitor input channel.

   Added INPUT_FEATURE_NO_INPUT_CHANNEL to allow windows to
   request that they not be provided with an input channel
   at all.

Improved some of the error handling logic to emit the status
code as part of the exception message.

Change-Id: I01988d4391a70c6678c8b0e936ca051af680b1a5
2011-08-30 21:40:28 -07:00
Jim Miller
3a34149c13 am 476769b4: Merge "Fix 5044158: Integrate music transport control into LockScreen"
* commit '476769b42f38ebf943ea859d98faa94fdc38eec1':
  Fix 5044158: Integrate music transport control into LockScreen
2011-08-29 18:32:42 -07:00
Jim Miller
1c18828d20 Fix 5044158: Integrate music transport control into LockScreen
This integrates a new version of TransportControlView into LockScreen
and adds plumbing to handle new AudioService events to show/hide the view
and updates the required assets for all devices.

Updated to use new AudioManager API. Since the current API only supports
one RCD, the handler now lives in TransportControlView.

Change-Id: I220d4dd760bef35bd84209adc3c5829bf5bc9a2c
2011-08-29 18:29:21 -07:00
Jim Miller
c1a9ce0b70 am f0eb7655: Merge "Fix 5044158: Reduce overall memory footprint of lockscreen"
* commit 'f0eb7655ac897ca06034296f7674b73a65f0e8a9':
  Fix 5044158: Reduce overall memory footprint of lockscreen
2011-08-29 16:33:51 -07:00
Jim Miller
4ae8cb9e73 Fix 5044158: Reduce overall memory footprint of lockscreen
On devices that do not require showing lock before unlock, we now only create
just the unlock screen.  In addition to simplifying the code, this also
prevents keeping around a potentially unusued lock screen and saves ~1MB
in the system process on devices with only a secure lockscreen.

Change-Id: I533f2692b44a7991d4850cecc874c76166e7ce71
2011-08-29 16:02:24 -07:00
Adam Powell
c020c3f899 am 890be6b9: Merge "Fix bug 5217267 - Action bars and menu shortcuts"
* commit '890be6b919ce0c65d018a2dc40a6a1d59bc2b14d':
  Fix bug 5217267 - Action bars and menu shortcuts
2011-08-29 15:17:14 -07:00
Adam Powell
6055f3e0d6 Fix bug 5217267 - Action bars and menu shortcuts
Don't try to "close" the menu after completing a shortcut action if an
action bar is present.

Change-Id: I54a75543cf9a52e3186ff464924a0b37d0b20b9d
2011-08-29 11:41:13 -07:00