706 Commits

Author SHA1 Message Date
Jim Miller
e28016c286 Fix 3329600: Always enable screen rotation in lockscreen.
Sometimes we get the wrong value for the sensor resource we
use to configure lockscreen orientation.  However, the current
UI design has LockScreen always respond to orientation (when
enabled in settings) so we don't need to rely on this for the time-being.

Change-Id: If37314befd25a7b3306500643155523ad4fe6657
2011-01-17 16:12:39 -08:00
Jeff Brown
0f6226b9f4 Merge "Add joystick support to framework." 2011-01-17 15:57:44 -08:00
Jim Miller
3d7a9707a5 Merge "Fix 3210299: Extend lock screen wake timeout to 10s" into honeycomb 2011-01-17 15:53:42 -08:00
Jim Miller
77274695a7 Fix 3210299: Extend lock screen wake timeout to 10s
Change-Id: I9e4f8761a80271b97ff6411a41664642273baaef
2011-01-17 15:28:21 -08:00
Jeff Brown
cb1404e456 Add joystick support to framework.
Change-Id: I95374436708752e1a9cff3f85c5b9bc3e0987961
2011-01-17 13:51:00 -08:00
Adam Powell
98893db9dc am 4ba7f35e: am 92cd4d02: Merge "Fix bug 3360882 - Allow FEATURE_CUSTOM_TITLE and FEATURE_ACTION_MODE_OVERLAY to coexist." into honeycomb
* commit '4ba7f35e0f9cfdf59ed6e8f9092992893da46d4a':
  Fix bug 3360882 - Allow FEATURE_CUSTOM_TITLE and FEATURE_ACTION_MODE_OVERLAY to coexist.
2011-01-16 23:08:54 -08:00
Jim Miller
5fbda0427a am f0c53e66: am bdac9e0f: Merge "Fix 3005526: Properly update StatusView from Password/PIN unlock" into honeycomb
* commit 'f0c53e66997bf781fb52f76e58aa0928fd8b64eb':
  Fix 3005526: Properly update StatusView from Password/PIN unlock
2011-01-16 23:08:30 -08:00
Jim Miller
9e8d9b6cd9 am a55c1280: am 057d9f16: Merge "Fix 3342063: Correctly update StatusView when battery changes." into honeycomb
* commit 'a55c1280f9b674619368ee61e4fe6b8db64eb2ce':
  Fix 3342063: Correctly update StatusView when battery changes.
2011-01-16 23:06:59 -08:00
Jim Miller
a3006a46d0 am 3530ebe4: resolved conflicts for merge of 578e73da to honeycomb-plus-aosp
* commit '3530ebe451fea39b159baa9b8c9f9cd851de42a3':
  Fix 3106227: use WeakReferences for receivers in DigitalClock class
2011-01-16 23:04:55 -08:00
Jim Miller
4169700edd am 76e75335: am 1f6e37ef: Merge "Fix 3355957: Don\'t hide the keyboard for PIN/Password" into honeycomb
* commit '76e75335648f1c0c695701a94499bfd4625eba5d':
  Fix 3355957: Don't hide the keyboard for PIN/Password
2011-01-16 23:04:09 -08:00
Jeff Brown
21e4fa5539 am 7d5f9095: am 85562dde: Merge "Fix keyboard hidden states." into honeycomb
* commit '7d5f9095a6feb40aa0c87d5671050df7c24609ef':
  Fix keyboard hidden states.
2011-01-16 23:02:00 -08:00
Adam Powell
4ba7f35e0f am 92cd4d02: Merge "Fix bug 3360882 - Allow FEATURE_CUSTOM_TITLE and FEATURE_ACTION_MODE_OVERLAY to coexist." into honeycomb
* commit '92cd4d0296cc8936fcccd97cdbc7a13b724efab4':
  Fix bug 3360882 - Allow FEATURE_CUSTOM_TITLE and FEATURE_ACTION_MODE_OVERLAY to coexist.
2011-01-16 20:00:17 -08:00
Adam Powell
92cd4d0296 Merge "Fix bug 3360882 - Allow FEATURE_CUSTOM_TITLE and FEATURE_ACTION_MODE_OVERLAY to coexist." into honeycomb 2011-01-16 19:58:51 -08:00
Adam Powell
8f68f4fe79 Fix bug 3360882 - Allow FEATURE_CUSTOM_TITLE and
FEATURE_ACTION_MODE_OVERLAY to coexist.

Fix "custom title" dialog window decor for holo.

Change-Id: Ia732caeb89e12d8d754be31c3bd2faf13a8c95d6
2011-01-16 19:55:21 -08:00
Jim Miller
f0c53e6699 am bdac9e0f: Merge "Fix 3005526: Properly update StatusView from Password/PIN unlock" into honeycomb
* commit 'bdac9e0fbe874cf7414228624bd0d3af4f715ccc':
  Fix 3005526: Properly update StatusView from Password/PIN unlock
2011-01-16 19:28:25 -08:00
Jim Miller
305093f911 Fix 3005526: Properly update StatusView from Password/PIN unlock
This uses the newly added setHelpMessage() to properly show PIN and
password help in StatusView.

Change-Id: I8662e179e989c6e72f657c81f23b1b2fa7982727
2011-01-16 19:09:15 -08:00
Jim Miller
a55c1280f9 am 057d9f16: Merge "Fix 3342063: Correctly update StatusView when battery changes." into honeycomb
* commit '057d9f16f793c3796751913ad2eeb12582a7626b':
  Fix 3342063: Correctly update StatusView when battery changes.
2011-01-16 17:52:39 -08:00
Jim Miller
057d9f16f7 Merge "Fix 3342063: Correctly update StatusView when battery changes." into honeycomb 2011-01-16 17:51:04 -08:00
Jim Miller
fc5001a592 Fix 3342063: Correctly update StatusView when battery changes.
LockScreen wasn't correctly updating StatusView when the battery
status changed.  In addition, the messages aren't supposed to
"pop" when changed, so changed visibility state from GONE to INVISIBLE
when not in use.

Change-Id: Icacbf7e2275c77a28e7e0a9d1247abdbebadcd4f
2011-01-16 17:45:46 -08:00
Jim Miller
3530ebe451 resolved conflicts for merge of 578e73da to honeycomb-plus-aosp
Change-Id: I334ae5382220a84881521885b6e3c3991fd8bbb0
2011-01-16 16:55:28 -08:00
Jim Miller
6687ecb447 Merge "Fix 3106227: use WeakReferences for receivers in DigitalClock class" into gingerbread 2011-01-16 16:14:52 -08:00
Jim Miller
b47bed9c48 Fix 3355957: Don't hide the keyboard for PIN/Password
BT or USB keyboards currently cause the on-screen keyboard to
be hidden.  This will probably need to be refactored in the
future but the change is too complicated for the current
release.

Change-Id: Ieb655b85622f7c174ed4a5d1c3766d130a9d32f1
2011-01-16 15:48:54 -08:00
Jeff Brown
d04a88cb8e Fix keyboard hidden states.
Bug: 3355957
Change-Id: I7ff8f83421ebd89bacd3ba472e23eeba99732cb1
2011-01-16 14:05:47 -08:00
Jeff Brown
ddb16aa8a6 am 9f1ae205: am 06bc9721: Merge "Disable soft keyboard when keyboard attached." into honeycomb
* commit '9f1ae205b40a2cc730b3e07b1a408ad2803c40fd':
  Disable soft keyboard when keyboard attached.
2011-01-16 10:41:22 -08:00
Jeff Brown
db10a638fd am 12116af5: am c8276990: Merge "Add volume down as a safe mode key for Stingray." into honeycomb
* commit '12116af5c422608d609ec884939ee8ceba3279b9':
  Add volume down as a safe mode key for Stingray.
2011-01-16 10:40:20 -08:00
Jim Miller
8b886fab54 Fix 3106227: use WeakReferences for receivers in DigitalClock class
This works around a bug in the framework where LockScreen wouldn't
get GC'd under certain circumstances which would lead to an OOM
crash.  It now uses WeakReferences for observers inside the
DigitalClock container class and unregisters them if the containing
DigitalClock goes away.

Also removed mLive variable which was unused and could potentially
leak the receivers.

Left mAttached for debugging so we can use it to determine if the
calls to onAttachToWindow() and onDetachFromWindow() are grossly
unbalanced which may be the root cause of the original problem.

Have cleanUp() explicitly clear unused references to make
tracing through hprof references easier.

Change-Id: I99a7e0c356001b05eab5aa729564553666febfea
2011-01-14 18:01:12 -08:00
Jeff Brown
06bc9721d8 Merge "Disable soft keyboard when keyboard attached." into honeycomb 2011-01-14 17:48:09 -08:00
Jeff Brown
4aed78b505 Disable soft keyboard when keyboard attached.
Also hide menu shortcuts everywhere until we can get around to
redesigning the menu UI to be more consistent.

Bug: 3306545
Bug: 3330748
Change-Id: I4d4e19525cdfc93d9aae0dcaa1e6266fb552c5bc
2011-01-14 17:36:55 -08:00
Jeff Brown
c8276990df Merge "Add volume down as a safe mode key for Stingray." into honeycomb 2011-01-14 17:22:53 -08:00
Anders Hammar1
0ce53b47d6 DO NOT MERGE Make the Phone options dialog use current language
The title of the Phone options dialog is displayed using wrong
translation if the user changes the current language setting. Moving
the setTitle call to prepareDialog to ensure that the title gets
updated before the dialog is shown.

Change-Id: I6f8f460789effd22de5be8339cc46667269e78c0
2011-01-14 16:00:47 -08:00
Anders Hammar1
e79223ed41 Make the Phone options dialog use current language
The title of the Phone options dialog is displayed using wrong
translation if the user changes the current language setting. Moving
the setTitle call to prepareDialog to ensure that the title gets
updated before the dialog is shown.

Change-Id: I03ff59c7f4ff711a06b05de7cca94fa928cf67ef
2011-01-14 12:32:16 -08:00
Anders Hammar1
b6e34769ae Make the Phone options dialog use current language
The title of the Phone options dialog is displayed using wrong
translation if the user changes the current language setting. Moving
the setTitle call to prepareDialog to ensure that the title gets
updated before the dialog is shown.

Change-Id: I03ff59c7f4ff711a06b05de7cca94fa928cf67ef
2011-01-14 10:00:39 +01:00
Jeff Brown
b09abc1dd2 Add volume down as a safe mode key for Stingray.
Fixed a race condition during startup.  We need to wait for the input
devices to actually be ready before trying to detect safe mode.

Fixed a problem during safe mode activation where we would try to add
the overlay window but the display was not initialized.  Now we do it
after the system is ready.

Bug: 3134825
Change-Id: I4c043c142ae6bf0d865c79d266d36154eaf00709
2011-01-13 21:18:16 -08:00
Dianne Hackborn
f99f9c5f92 Fix issue #3153930: orphan window left on screen
The problem is that if a window containing children is removed
before the children are, the children may be lost.  This change
(amongst the huge amount of new debugging code) now ensures at
this point that all children windows are removed when the parent
is.

Note that this results in a bunch of error messages now as the
client app tries to continue to do things with that child window.
This is correct, it shouldn't be doing that, and needs to be
fixed to stop it.  But at least it now can't cause the window
manager to leak surfaces.

Change-Id: I7b80dd89ff9de7cb5af1dc759cfa4b31ac29cddc
2011-01-13 14:24:16 -08:00
Jim Miller
a3a078e343 Merge "Fix 3201849: Use custom Drawable for bg in lockscreen" into honeycomb 2011-01-12 13:14:33 -08:00
Dianne Hackborn
6014527c35 Add "min size" facility to the Window class.
This allows us to have a new dialog theme that behaves like an alert dialog
for both Dialog and Activity versions.  Very useful with so many more things
being displayed as dialogs on our nice large screen.

Note I didn't change the existing dialog themes to have this behavior, since
it will probably break things.  Instead there is a new variation.  And the
DialogWhenLarge variations now use this for their dialog form, to fix many
of the real new dialogs we have that need this behavior.

Removed the public definition of the one alert dialog theme.  None of the
others have ever been public, this one shouldn't be.

Added new .Panel versions of the Holo themes, like we already had for the
original themes.

Changed the alert dialog layout to no longer use WeightedLinearLayout,
since the window now takes care of that.  This allowed for the removal
of the xlarge version of those layouts.

Change-Id: I0c8372bde25eb9af47404a719b3f07230baf73bf
2011-01-12 10:33:13 -08:00
Jim Miller
39d4b067a7 Fix 3201849: Use custom Drawable for bg in lockscreen
This uses a custom drawable to improve the performance of
rendering a transparent background in LockScreen on devices
without hardware acceleration.

Change-Id: I7aae13070d475c3ac19d91ba5c6cb7d2a83a18ce
2011-01-11 20:30:20 -08:00
Joe Onorato
14770e049e Merge "The status bar half of making the status bar resize when hdmi is plugged in." into honeycomb 2011-01-11 17:09:16 -08:00
Joe Onorato
dc10030581 The status bar half of making the status bar resize when hdmi is plugged in.
Change-Id: Ia349413774ba709fb3242780671c7b459850f4a4
2011-01-11 17:07:41 -08:00
Adam Powell
32aa2c90ee Fix bug 3338079 - Dialog styled activity decor
Fixed a bug in FastScroller that could cause a crash on an empty list
in always-show mode.

Fix holo light button text color

Change-Id: I7b50043d715b9b870eb34808017d743ba64d2e08
2011-01-11 15:57:07 -08:00
Adam Powell
f0ad6e6eaf Fix bug 3333015 - Overflow menu item submenus do not open
Submenus of action bar menus will open as new menus.

Change-Id: I924b87bbea91b0df5e3608ec894530302c0e1d8d
2011-01-10 17:14:51 -08:00
Brett Chabot
3b4fcbc9f1 Add ActivityManager#isRunningInTestHarness() public API.
Replaces use of ro.monkey system property. This new API is controlled by
ro.test_harness.

Bug 3329873

Change-Id: Idb5bbbd9ca691976ef842eec681be34c29915976
2011-01-09 16:31:11 -08:00
Jim Miller
b450a65c1c Fix 3330653: Update lockscreen layouts to match latest mocks [DO NOT MERGE]
This change list:

- simplifies the UI design to reduce the number of
on-screen items by combining Alarm status with the date line.

- updates many of the layout files to match closer to the
final design.

- Simplifies the logic for showing Status1 info. It's now
more predictable and robust.

- updates the layout for tablets

- contains a modified alpha to work well with different backgrounds
(Tested: white, gray, and dark backgrounds)

- updates the tablet icons to something closer to the final size.

Manual merge from Change-Id: Ifb349dfa778e9c91b0649c8d95229607be5af8e5

Change-Id: Ia2a9a2d285102d0208b3a7fcead58d6454d116ae
2011-01-09 13:24:00 -08:00
Dianne Hackborn
247fe74c93 Implement issue # 3255887 could CursorLoader offer...
...to throttle contentobserver-based requeries

Why yes, I guess it could.

This also reworks AsyncTaskLoader to not generate multiple
concurrent tasks if it is getting change notifications before
the last background task is complete.

And removes some of the old APIs that had been deprecated but
need to be gone for final release.

And fixes a few little problems with applying the wrong theme
in system code.

Change-Id: Ic7a665b666d0fb9d348e5f23595532191065884f
2011-01-08 18:25:30 -08:00
Adam Powell
0d69fae5e6 Fix bug 3330683 - Do not show the legacy menu panel for HC apps on
xlarge devices.

Change-Id: Ic268684570a429d8da499c142b23bb20b3fe2b82
2011-01-08 15:08:27 -08:00
Adam Powell
5e3f284baa Fix bug 3200615 - "MenuPopupHelper cannot be used without an anchor"
Add protection against views disappearing before previously posted
Runnables attempt to show a menu anchored to them.

Change-Id: Ia2a322e76665e61feb5bdb92377d5066cb6d5b04
2011-01-07 17:22:25 -08:00
Dianne Hackborn
ad7fa7fa77 WM part of #3293405: Screen needs to be redrawn when HDMI is plugged in
Change-Id: If5ceb28073c6abf14165871bd99cb481b31a863b
2011-01-07 14:07:20 -08:00
Jeff Brown
64da12ab1f Add dispatch key shortcut window callback.
Enables Activities and Dialogs to implement key shortcut behavior.
Useful for global key shortcuts that are not bound to the focused
view or to a menu.

Change-Id: If377d20b227ee1c5cac84c47c9630b2d77f67e2c
2011-01-05 14:51:24 -08:00
Jeff Brown
83c09685f2 Add initial support for cursor-based pointing devices.
Some parts stubbed out but you can plug in a mouse and move
a green cursor around to interact with the UI.

Change-Id: I80d597a7f11d3bd92041890f74b3c77326975e6e
2010-12-29 13:19:53 -08:00
Jeff Brown
eb9f7a01b0 Fix policy issues when screen is off. (DO NOT MERGE)
Rewrote interceptKeyBeforeQueueing to make the handling more systematic.
Behavior should be identical except:
- We never pass keys to applications when the screen is off and the keyguard
  is not showing (the proximity sensor turned off the screen).
  Previously we passed all non-wake keys through in this case which
  caused a bug on Crespo where the screen would come back on if a soft key
  was held at the time of power off because the resulting key up event
  would sneak in just before the keyguard was shown.  It would then be
  passed through to the dispatcher which would poke user activity and
  wake up the screen.
- We propagate the key flags when broadcasting media keys which
  ensures that recipients can tell when the key is canceled.
- We ignore endcall or power if canceled (shouldn't happen anyways).

Changed the input dispatcher to not poke user activity for canceled
events since they are synthetic and should not wake the device.

Changed the lock screen so that it does not poke the wake lock when the
grab handle is released.  This fixes a bug where the screen would come
back on immediately if the power went off while the user was holding
one of the grab handles because the sliding tab would receive an up
event after screen turned off and release the grab handles.

Bug: 3144874
Change-Id: Iebb91e10592b4ef2de4b1dd3a2e1e4254aacb697
2010-12-22 16:00:21 -08:00