58597 Commits

Author SHA1 Message Date
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
Dianne Hackborn
04ef5b8dd7 Merge "Fix issue #5253941: ICS ignoring provider's android:process flag" 2011-09-21 16:19:45 -07:00
Dianne Hackborn
6bba4afaa4 Merge "Improvements to power manager turning on screen." 2011-09-21 16:18:38 -07:00
Mangesh Ghiware
f2bf48b7c6 Merge "Use overview scale when restored scale is 0." 2011-09-21 15:20:03 -07:00
Dianne Hackborn
dda868cd33 Merge "Keyguard sound needs to hold wake lock." 2011-09-21 15:15:18 -07:00
Dianne Hackborn
2a6bcda03b Fix issue #5253941: ICS ignoring provider's android:process flag
Provider was not being removed from the class map because it was using
the wrong key.  D'oh.

Also a little cleanup.

Change-Id: I318e8b1a265318ac1474e0a7f14f27f89f357505
2011-09-21 15:07:05 -07:00
Mangesh Ghiware
faab93d1ac Use overview scale when restored scale is 0.
If restored scale and text wrap scale are set to 0 (meaning the previous
scale wasn't saved), set them to overview and reading level scale
respectively.

Bug: 5230909
Change-Id: If7724e9a0cd948c88d0a001728266a3282083bdc
2011-09-21 14:57:11 -07:00
Wink Saville
d30f73725b am 4aa8d943: Merge "Reduce connectivity logging" into ics-factoryrom
* commit '4aa8d943a970008915b703758743b107927d96fa':
  Reduce connectivity logging
2011-09-21 14:14:28 -07:00
Wink Saville
4aa8d943a9 Merge "Reduce connectivity logging" into ics-factoryrom 2011-09-21 14:12:42 -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
Andreas Huber
bfd1c9d93f Merge "Support some .avi files containing H.264 video, log warnings if audio/video unsupported" 2011-09-21 13:56:09 -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
Andreas Huber
3001e47212 Support some .avi files containing H.264 video, log warnings if audio/video unsupported
Change-Id: Ie7280f25f2bd19f32234c08673e64ceb65833677
related-to-bug: 5349382
2011-09-21 13:19:54 -07:00
Dianne Hackborn
beae3bd6d3 Improvements to power manager turning on screen.
The keyguard/window manager recently got a facility to report when it is
okay to turn the screen on, when it knows the lock screen is displayed.

The power manager was using this wrong, just using it to drive the
flags given to the input system.  Duh.

This change now uses the information to determine when to turn the screen
brightness up from 0.  For an OLED screen, this is the time when the
user can actually see anything on the screen.

For LCD screens this may not be optimal, because the LCD may start running
before its backlight is turned on, so if you look carefully you may see
stuff before it is lit up.  On the other hand, it is good to turn on the
display as early as possible (before waiting for the keyguard) because it
can take a little bit of time to get that and the touch screen going.  By
only waiting on the display brightness, we allow turning on the screen
in the kernel to proceed in parallel with ensuring the keyguard is displayed.

Change-Id: I7ee4ce19fd4efd5b51872b855af6263f53cd6c30
2011-09-21 13:15:02 -07:00
Jack Palevich
fbc8b8861c Merge "Avoid allocating temporary memory for Matrix operations." 2011-09-21 12:40:41 -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
Adam Cohen
41298971c7 Merge "Fixing disappearing lock screen, issue 5319246" into ics-factoryrom 2011-09-21 11:17:19 -07:00
Wink Saville
c9acde9aa6 Reduce connectivity logging
Change-Id: I5d45b8fbcd01e42df7f2b1cf02fb5b226128abb8
2011-09-21 11:05:43 -07:00
Gilles Debunne
a80599f5be Revert "Bug 5248215: Even though I turned off the Spelling correction, it still shows up"
This reverts commit 6e405f84b8d0c7c0f939bc8e9bec17e65e704a2d.

Change-Id: I9593273d414aee1f9817f84b462cf45360ff19e3
2011-09-21 10:58:03 -07:00
Glenn Kasten
faa75f6146 Merge "Bug 5234242 audio continues after discontinuity" 2011-09-21 10:51:43 -07:00
Glenn Kasten
cd5c896381 Bug 5234242 audio continues after discontinuity
Reduce to 8 buffers of 10 packets from 16 buffers of 20 packets.

Change-Id: Ifdb5e15535989fbb6e5e1b70d5f9f71dc66a5c83
2011-09-21 10:40:01 -07:00
Jean-Michel Trivi
eb060254a0 am 9c43016b: Merge "Bug 5045498 Keep track of RemoteControlClient play state change time" into ics-factoryrom
* commit '9c43016b52afa855156aac2dc81a2bbe1e4ab436':
  Bug 5045498 Keep track of RemoteControlClient play state change time
2011-09-21 09:36:56 -07:00
Jean-Michel Trivi
9c43016b52 Merge "Bug 5045498 Keep track of RemoteControlClient play state change time" into ics-factoryrom 2011-09-21 09:34:59 -07:00
Justin Ho
13dfa095c2 am 7a2063b1: Merge "New sync icon for Phone stat_sys area Bug: 5076774" into ics-factoryrom
* commit '7a2063b1d59dd6d7575dc91b6dd93b4a8d462b16':
  New sync icon for Phone stat_sys area Bug: 5076774
2011-09-21 09:17:41 -07:00
Justin Ho
7a2063b1d5 Merge "New sync icon for Phone stat_sys area Bug: 5076774" into ics-factoryrom 2011-09-21 09:15:53 -07:00
Jason Sams
dd0ffde6f5 Merge "Cleanup RS logs Reduce the startup/shutdown info and format the logs in a consistent manner." 2011-09-21 08:53:10 -07:00
Marco Nelissen
28b9a063ad Merge "MediaScanner: To query row ids of music files when handling playlists." 2011-09-21 08:48:46 -07:00
Justin Ho
f888f3ffa0 am 9d48b578: Merge "Fixing low battery dialog" into ics-factoryrom
* commit '9d48b578096a14441e2063c0e54dbba4340fa178':
  Fixing low battery dialog
2011-09-21 08:01:18 -07:00
Justin Ho
9d48b57809 Merge "Fixing low battery dialog" into ics-factoryrom 2011-09-21 07:59:32 -07:00
The Android Open Source Project
b26348ed8f Reconcile with ics-factoryrom-release
Change-Id: I401a78a2216c8c4042f6f48b4e882035cbccfc82
2011-09-21 06:19:16 -07:00
Chih-Chung Chang
73d84df819 Merge "Fix 5229466: don't consume pointer events outside the window" 2011-09-21 02:26:08 -07:00
Wu-cheng Li
a08ff8f3a7 am 5f0ef5fb: Fix jpeg callback is lost if setPreviewCallbackWithBuffer has been called.
* commit '5f0ef5fb0c2e65ca3d0aa4fcd2b300d4cd0a2b4b':
  Fix jpeg callback is lost if setPreviewCallbackWithBuffer has been called.
2011-09-21 02:21:26 -07:00
Wu-cheng Li
5f0ef5fb0c Fix jpeg callback is lost if setPreviewCallbackWithBuffer has been called.
mManualBufferMode is only for CAMERA_MSG_PREVIEW_FRAME. If it is
CAMERA_MSG_COMPRESSED_IMAGE, a new byte array should be allocated.

bug:5340480

Change-Id: I4f33bd6297bfd30505e0e15ae46012ea44e85962
2011-09-21 16:58:54 +08:00
Chih-Chung Chang
d1396fbc64 Fix 5229466: don't consume pointer events outside the window
Change-Id: Ifa3d1d5edd81346e6ca80e113f80914ee2c47055
2011-09-21 15:56:26 +08:00
Adam Cohen
51e9d5c635 Fixing disappearing lock screen, issue 5319246
Change-Id: Ia59ba6388775efc83aadf1e489b767be5624d385
2011-09-20 20:55:33 -07:00
The Android Automerger
31bfacd1c2 merge in ics-factoryrom-release history after reset to ics-factoryrom 2011-09-20 20:43:04 -07:00
Jack Palevich
cc5471c353 Avoid allocating temporary memory for Matrix operations.
Also fix a bug where Matrix.invertM was not returning false when the
matrix could not be inverted.

Change-Id: I68b172032093d9f257e88c802de936633bb4912c
2011-09-20 19:59:26 -07:00
Justin Ho
eb15bb31c7 am a2520fc1: Merge "Ensure all clock fonts match Bug: 5340112" into ics-factoryrom
* commit 'a2520fc13652126227e8b602af4566849c216f28':
  Ensure all clock fonts match Bug: 5340112
2011-09-20 18:54:05 -07:00
Justin Ho
a2520fc136 Merge "Ensure all clock fonts match Bug: 5340112" into ics-factoryrom 2011-09-20 18:52:38 -07:00
Justin Ho
61f69cec3c Ensure all clock fonts match
Bug: 5340112

Change-Id: I5cac2b57d80a59c2e137d1df228f88ee4f11840e
2011-09-20 18:51:03 -07:00
Justin Ho
e03c4ec98f am 3c3fa0b9: Merge "Updated stat_ icons" into ics-factoryrom
* commit '3c3fa0b9aaeed8d707df2221822a8d324e95037b':
  Updated stat_ icons
2011-09-20 18:40:58 -07:00
Justin Ho
3c3fa0b9aa Merge "Updated stat_ icons" into ics-factoryrom 2011-09-20 18:38:54 -07:00
Peter Ng
a2fae17ff4 Updated stat_ icons
-tethering icons updated, no longer blue
-available wifi updated with new wifi icon
-other stat_sys and stat_notify are simple metadata cleanups

Bug: 5076774
Change-Id: Icdcf0033e47aed8a359176c5cb6a36d5dbda2cef
2011-09-20 18:37:46 -07:00
Mathias Agopian
0c2cd5384e am 6db5b55f: Merge changes I3f0e01b0,I946cbc78,I9d3ad801 into ics-factoryrom
* commit '6db5b55f7c9242ff0d780351192c317d4c1d4768':
  fix transition from full overlays to fb
  rename mInvalidRegion to mSwapRegion
  improve hwc dumpsys
2011-09-20 18:28:12 -07:00
Mathias Agopian
6db5b55f7c Merge changes I3f0e01b0,I946cbc78,I9d3ad801 into ics-factoryrom
* changes:
  fix transition from full overlays to fb
  rename mInvalidRegion to mSwapRegion
  improve hwc dumpsys
2011-09-20 18:26:05 -07:00
Justin Ho
9f176580c2 New sync icon for Phone stat_sys area
Bug: 5076774

Change-Id: I06a3d6be5818279b751b411485e8161493eac43c
2011-09-20 18:16:48 -07:00
Amith Yamasani
fb528820c7 am 9fdba999: Merge "If "Pulse notification light" is off, don\'t flash the LED even once." into ics-factoryrom
* commit '9fdba9997df17d2ae6d7ddc44513f67f12f81c88':
  If "Pulse notification light" is off, don't flash the LED even once.
2011-09-20 18:07:50 -07:00
Amith Yamasani
9fdba9997d Merge "If "Pulse notification light" is off, don't flash the LED even once." into ics-factoryrom 2011-09-20 18:06:15 -07:00