602 Commits

Author SHA1 Message Date
Joe Onorato
b648c60854 am a4a5ec5e: am 1aadb210: Merge changes I48392c75,Id09437a4,I4a0aa878 into honeycomb
* commit 'a4a5ec5e748f99c40301c9c422b3d36cb44c6081':
  Expose the window flags for lights out mode.
  Make TabletStatusBar call into StatusBarManagerService when it goes out of lights out mode on its own.
  Make FLAG_FULLSCREEN not go into lights out mode anymore.
2011-01-26 11:50:38 -08:00
Joe Onorato
a4a5ec5e74 am 1aadb210: Merge changes I48392c75,Id09437a4,I4a0aa878 into honeycomb
* commit '1aadb2108d7614d9d1ff61b41c6c31cb8d211ab9':
  Expose the window flags for lights out mode.
  Make TabletStatusBar call into StatusBarManagerService when it goes out of lights out mode on its own.
  Make FLAG_FULLSCREEN not go into lights out mode anymore.
2011-01-26 11:48:48 -08:00
Joe Onorato
14782f705e Expose the window flags for lights out mode.
I hadn't wanted to do this, but it makes porting the FLAG_FULLSCREEN
stuff over to this simpler because you don't have to go find a view
to proxy through.

This change also clears the flag everywhere when the window manager
notifies the views that the change has come back.

Change-Id: I48392c7550925bcca50c5bb9e1f263e99de6c7bc
2011-01-26 10:47:39 -08:00
Joe Onorato
644f9c3ad9 Make FLAG_FULLSCREEN not go into lights out mode anymore.
Change-Id: I4a0aa8789f537717f82df4efb6a35108e1ab1784
2011-01-26 10:32:18 -08:00
Jeff Brown
fbe446d7f2 am 391ef42c: am 3168a137: Merge "Fix surface frame size reporting." into honeycomb
* commit '391ef42c92ab97e5c22a720973790696d30576ca':
  Fix surface frame size reporting.
2011-01-25 16:18:59 -08:00
Jeff Brown
391ef42c92 am 3168a137: Merge "Fix surface frame size reporting." into honeycomb
* commit '3168a13723ff0f3f87937457fe33c3518caa4bb9':
  Fix surface frame size reporting.
2011-01-25 14:48:14 -08:00
Jeff Brown
30bc34f191 Fix surface frame size reporting.
The SurfaceHolder provided by the wallpaper service was not reporting
the correct size in getSurfaceFrame().  This broke an optimization in
the ImageWallpaper.  The old code happened to work because calling
lockCanvas on the SurfaceHolder with a null dirty rectangle happened
to have the side-effect of updating the SurfaceHolder's surface frame
size field because it passed mSurfaceFrame as the dirty rect, causing
mSurfaceFrame to be set to the size of the region to be drawn.

However, relying on this side-effect is wrong.  Among other things,
the dirty region could actually be smaller than the surface frame.

This patch fixes WallpaperService, SurfaceView and ViewRoot to ensure
that the surface frame size is always set explicitly and is not modified
by calls to lockCanvas.

Change-Id: I10948f5ec269409ceaf0f7d32b3f6731e9499ebc
2011-01-25 13:10:30 -08:00
Jeff Brown
d8bdc06f81 Fix SENSOR_LANDSCAPE and SENSOR_PORTRAIT (DO NOT MERGE)
Fixed a bug in the handling of SENSOR_LANDSCAPE and SENSOR_PORTAIT
on devices that have a natural landscape orientation.  The old code
was disabling 180 degree orientation detection when it shouldn't have.

Bug: 3381359
Change-Id: I19bd2519e7f69a24835840fbf542aa7349981029
2011-01-24 17:07:36 -08:00
Jeff Brown
76a23f8b2e resolved conflicts for merge of eebc944f to master
Change-Id: I969cf69d2bd6901742d2cdf1bd44344ee7ba9fc7
2011-01-24 16:43:28 -08:00
Jeff Brown
eebc944fd1 am aaa55d3f: Merge "New orientation listener." into honeycomb
* commit 'aaa55d3f45744814907d0809befb49281ced462e':
  New orientation listener.
2011-01-24 15:33:46 -08:00
Jeff Brown
4519f07e9c New orientation listener.
The objective in this listener is to be more careful about the
signal processing to prevent spurious orientation changes
and to make all of the tweakable factors physically meaningful.

The calibration is defined in terms of time constants and
does not assume a particular discrete sampling rate.  This is
useful because it allows us to change the accelerometer sampling
interval if desired without having to change the calibration.
Moreover, the accelerometer sampling interval can vary +/- 20ms
from one sample to the next even in normal circumstances.

Proposed orientation changes are weighted by confidence factors
that vary exponentially in relation to how close the device
is to the ideal orientation change posture (screen is vertical,
angle is exactly at the midpoint of the orientation quadrant,
and no external acceleration beside gravity).  When not in an ideal
posture, the device takes proportionally longer to settle into a
new orientation state.

Added a little tool to plot the log output of the
WindowOrientationListener.  Check the README for more information
about how to use it.

Change-Id: I787f02d03582ff26367df65eda8d9ce85c5cb343
2011-01-24 13:46:57 -08:00
Joe Onorato
10f4126a36 resolved conflicts for merge of faf083ef to master
Change-Id: I316a1b4356f6dba6c3880ccb02dbb2fa00d21a85
2011-01-24 13:16:08 -08:00
Joe Onorato
faf083ef0b am 4c541b13: Merge "visibility ("lights out") API." into honeycomb
* commit '4c541b1303b0ee2b9b0d19bee85d3780c5c4c110':
  visibility ("lights out") API.
2011-01-23 23:36:57 -08:00
Joe Onorato
4c541b1303 Merge "visibility ("lights out") API." into honeycomb 2011-01-23 19:26:13 -08:00
Joe Onorato
664644d9e0 visibility ("lights out") API.
1. Views may setSystemUiVisibility() to recommend that
the system chrome (status bar or other UI) show or hide
itself.  (This functionality was previously available only
via the FLAG_FULLSCREEN window flag for some SystemUI
implementations.)

2. Views may register a OnSystemUiVisibilityChangedListener
on a view, and find out when the system UI actually
appears or disappears, allowing apps to coordinate the
appearance of their own UI if desired.

Bug: 3241144
Change-Id: Ia1758d94099182d49a1e3688ea2738ae4995b829
2011-01-23 19:22:52 -08:00
Adam Powell
02b74a07de am b2d7b02c: am 8ccea78c: Merge "Fix bug 3299208 - Some apps\' dialogs aren\'t show()ing successfully" into honeycomb
* commit 'b2d7b02c4f3e2a43e65985edc70db52e257dd673':
  Fix bug 3299208 - Some apps' dialogs aren't show()ing successfully
2011-01-23 17:00:52 -08:00
Adam Powell
b2d7b02c4f am 8ccea78c: Merge "Fix bug 3299208 - Some apps\' dialogs aren\'t show()ing successfully" into honeycomb
* commit '8ccea78c01a6098e96189799b46b72cbfeba7bae':
  Fix bug 3299208 - Some apps' dialogs aren't show()ing successfully
2011-01-23 16:12:45 -08:00
Adam Powell
8ccea78c01 Merge "Fix bug 3299208 - Some apps' dialogs aren't show()ing successfully" into honeycomb 2011-01-23 16:09:54 -08:00
Adam Powell
e571e60a3d Fix bug 3299208 - Some apps' dialogs aren't show()ing successfully
Fix legacy submenus in options menus.

Change-Id: I3d115c72d99dadd5b23f9459fd27277a39de332b
2011-01-23 15:18:46 -08:00
Jeff Brown
3f3e383975 am 5f1e37a7: am f4180679: Merge "Fix SENSOR_LANDSCAPE and SENSOR_PORTRAIT" into honeycomb
* commit '5f1e37a736928bbb38f665d12812a1bed3394fa3':
  Fix SENSOR_LANDSCAPE and SENSOR_PORTRAIT
2011-01-23 13:42:50 -08:00
Jeff Brown
5f1e37a736 am f4180679: Merge "Fix SENSOR_LANDSCAPE and SENSOR_PORTRAIT" into honeycomb
* commit 'f41806799ad70085722dd7d11e3f8043109290bf':
  Fix SENSOR_LANDSCAPE and SENSOR_PORTRAIT
2011-01-23 13:40:21 -08:00
Jeff Brown
892bd76881 Fix SENSOR_LANDSCAPE and SENSOR_PORTRAIT
Fixed a bug in the handling of SENSOR_LANDSCAPE and SENSOR_PORTAIT
on devices that have a natural landscape orientation.  The old code
was disabling 180 degree orientation detection when it shouldn't have.

Change-Id: I484a0aa44b3b8267a7d3b74bdf39c296faa7c6e3
2011-01-23 13:05:44 -08:00
Jim Miller
4b290bb60e am e744a6b7: am e25c4d10: Merge "Fix 3339257: Update lockscreen keyboard to fit Holo theme" into honeycomb
* commit 'e744a6b7016595ebb1de3a6bd24045731d60da30':
  Fix 3339257: Update lockscreen keyboard to fit Holo theme
2011-01-19 20:21:12 -08:00
Jim Miller
e744a6b701 am e25c4d10: Merge "Fix 3339257: Update lockscreen keyboard to fit Holo theme" into honeycomb
* commit 'e25c4d1077071e33795ec0316b504f6cd2a0ba08':
  Fix 3339257: Update lockscreen keyboard to fit Holo theme
2011-01-19 20:18:40 -08:00
Jim Miller
e25c4d1077 Merge "Fix 3339257: Update lockscreen keyboard to fit Holo theme" into honeycomb 2011-01-19 20:15:49 -08:00
Jim Miller
688435833f Fix 3339257: Update lockscreen keyboard to fit Holo theme
This updates the lockscreen keyboard to be like the
latin-1 IME keyboard and updates it to fit the holo theme.

Fixed some minor issues addressed in review.

Change-Id: I3c6dd8f91be753510e6eadfa9ad913f77038947b
2011-01-19 20:12:34 -08:00
Dianne Hackborn
310ae9b39c am fe86e979: am 661b6cfb: Merge "Okay, new plan for dialogs." into honeycomb
* commit 'fe86e9793ce62c6a1aa34e5712f16b45800efdd0':
  Okay, new plan for dialogs.
2011-01-18 22:00:21 -08:00
Adam Powell
1539a2967b am eb7a7a04: am 6cfc7a0a: Merge "Fix bug 3365208 - Contextual Action Bar is not displayed when the context item is changing" into honeycomb
* commit 'eb7a7a044adba95216152e848fa692ec2869e06b':
  Fix bug 3365208 - Contextual Action Bar is not displayed when the context item is changing
2011-01-18 22:00:06 -08:00
Dianne Hackborn
7fc5d4b8e7 am 2ec5a716: am 36c84403: Merge "Fix issue #3362484: Can\'t dismiss activity picker by tapping outside dialog" into honeycomb
* commit '2ec5a7160b3d32887b2428edef7a751ee3700809':
  Fix issue #3362484: Can't dismiss activity picker by tapping outside dialog
2011-01-18 21:56:45 -08:00
Dianne Hackborn
fe86e9793c am 661b6cfb: Merge "Okay, new plan for dialogs." into honeycomb
* commit '661b6cfb2bcecdd335540db7059e5d8e22c2e79a':
  Okay, new plan for dialogs.
2011-01-18 18:40:22 -08:00
Adam Powell
eb7a7a044a am 6cfc7a0a: Merge "Fix bug 3365208 - Contextual Action Bar is not displayed when the context item is changing" into honeycomb
* commit '6cfc7a0acb0d3b202ae1dbee88e7e8bdfaee5590':
  Fix bug 3365208 - Contextual Action Bar is not displayed when the context item is changing
2011-01-18 18:39:10 -08:00
Dianne Hackborn
661b6cfb2b Merge "Okay, new plan for dialogs." into honeycomb 2011-01-18 17:48:22 -08:00
Dianne Hackborn
ef57575887 Okay, new plan for dialogs.
Don't dismiss by default when tapping outside, even for AlertDialog.

If AlertDialog doesn't have any buttons, tapping outside will dismiss it.

Applications can make their own dialogs (or activities looking like
dialogs) can use the existing and new APIs to control this behavior
themselves so that it does the right thing.

Change-Id: I02bfb9161e169de0033200211b3a7ec80080bd83
2011-01-18 17:35:17 -08:00
Adam Powell
6cfc7a0acb Merge "Fix bug 3365208 - Contextual Action Bar is not displayed when the context item is changing" into honeycomb 2011-01-18 16:57:59 -08:00
Adam Powell
a1e6358a4c Fix bug 3365208 - Contextual Action Bar is not displayed when the context item is changing
Change-Id: I9e7ec4ab14c6008397d26c499ccf478f8875f918
2011-01-18 16:51:22 -08:00
Dianne Hackborn
2ec5a7160b am 36c84403: Merge "Fix issue #3362484: Can\'t dismiss activity picker by tapping outside dialog" into honeycomb
* commit '36c84403ec07439d11ed284ac5f9a9db807fbf92':
  Fix issue #3362484: Can't dismiss activity picker by tapping outside dialog
2011-01-18 15:32:44 -08:00
Dianne Hackborn
36c84403ec Merge "Fix issue #3362484: Can't dismiss activity picker by tapping outside dialog" into honeycomb 2011-01-18 15:31:21 -08:00
Dianne Hackborn
cfaf8878de Fix issue #3362484: Can't dismiss activity picker by tapping outside dialog
Change-Id: Idc2fe5a86c61e8f94fe9d902a0087a05f6f7918e
2011-01-18 15:28:41 -08:00
Dianne Hackborn
2e1469a13d am f6759102: am 3aa959b9: Merge "Fix issue #3362666 Activities launched from ongoing notifications don\'t animate" into honeycomb
* commit 'f67591025debf040695e9ed0d0edeff5ef0c5db2':
  Fix issue #3362666 Activities launched from ongoing notifications don't animate
2011-01-18 12:10:36 -08:00
Dianne Hackborn
f67591025d am 3aa959b9: Merge "Fix issue #3362666 Activities launched from ongoing notifications don\'t animate" into honeycomb
* commit '3aa959b9ce7ac4ac241033b3eea9f2c0ce34d554':
  Fix issue #3362666 Activities launched from ongoing notifications don't animate
2011-01-18 11:20:29 -08:00
Dianne Hackborn
08121bca5b Fix issue #3362666 Activities launched from ongoing notifications don't animate
The phone-oriented code for turning off animations when the screen is entirely
covered by the status bar was not appropriate for the tablet.

Change-Id: Ica3e0db989f16b9187eacd6ecf4ac3d17661dd6d
2011-01-18 11:08:40 -08:00
Jim Miller
8fac287664 am b70d39fd: am 6e3212a3: Merge "Fix 3329600: Always enable screen rotation in lockscreen." into honeycomb
* commit 'b70d39fda198a2f6d37fec9bbdb67462df9de40c':
  Fix 3329600: Always enable screen rotation in lockscreen.
2011-01-17 23:31:59 -08:00
Jim Miller
0d1aa05fa6 am d0861c89: am 3d7a9707: Merge "Fix 3210299: Extend lock screen wake timeout to 10s" into honeycomb
* commit 'd0861c8992356296115dc203feb50ce8a8794bd9':
  Fix 3210299: Extend lock screen wake timeout to 10s
2011-01-17 23:31:21 -08:00
Jim Miller
b70d39fda1 am 6e3212a3: Merge "Fix 3329600: Always enable screen rotation in lockscreen." into honeycomb
* commit '6e3212a38b503e35563ec93c35a6851c99d95c77':
  Fix 3329600: Always enable screen rotation in lockscreen.
2011-01-17 20:00:14 -08:00
Jim Miller
d0861c8992 am 3d7a9707: Merge "Fix 3210299: Extend lock screen wake timeout to 10s" into honeycomb
* commit '3d7a9707a58bb043147f30dc81c61deeeffeeef7':
  Fix 3210299: Extend lock screen wake timeout to 10s
2011-01-17 17:03:51 -08:00
Jim Miller
6e3212a38b Merge "Fix 3329600: Always enable screen rotation in lockscreen." into honeycomb 2011-01-17 16:23:16 -08:00
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