7125 Commits

Author SHA1 Message Date
Jeff Brown
ab52cfe9e0 am 3cdfc4d9: Merge "Support composite touch / joystick devices better."
* commit '3cdfc4d94f6af82953f0e722ade882197c72da58':
  Support composite touch / joystick devices better.
2011-08-31 15:21:09 -07:00
Jeff Brown
3cdfc4d94f Merge "Support composite touch / joystick devices better." 2011-08-31 15:18:59 -07: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
Romain Guy
e5fd23f885 am dcc882ed: Merge "Make ViewServer more quiet Bug #5231539"
* commit 'dcc882edfe530e1bbd61e776a7d2c8b874768e1d':
  Make ViewServer more quiet Bug #5231539
2011-08-31 14:14:34 -07:00
Romain Guy
dcc882edfe Merge "Make ViewServer more quiet Bug #5231539" 2011-08-31 14:12:18 -07:00
Romain Guy
cbe67d5b33 Make ViewServer more quiet
Bug #5231539

Change-Id: Ib1f3e0d7592b4af802efe4e9630a220c23450521
2011-08-31 14:11:07 -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 Brown
9ee285afe7 Support composite touch / joystick devices better.
This change enables the joystick input mapper to handle any axes
that are not claimed by the touch input mapper, which makes
auxiliary controls such as wheels / knobs accessible.

Change-Id: I01ee7f342ac91acfcb4ccb6676fd52b3d5bf31a0
2011-08-31 12:56:34 -07:00
Mike Lockwood
056d76183e ActivityManager: Make sure BOOT_COMPLETED Intent is sent when running headless
Change-Id: I7419d14e1f2ac1e045bb95d16f5658a0217a9d81
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-08-31 14:48:35 -04:00
satok
04a68e59df am c593380d: Fix crash in setAdditionalInputMethodSubtypes
* commit 'c593380d1bccbfbd45c404954b2670b65acc287f':
  Fix crash in setAdditionalInputMethodSubtypes
2011-08-31 05:59:41 -07:00
satok
c593380d1b Fix crash in setAdditionalInputMethodSubtypes
Bug: 5142455
Change-Id: I5eca4c1a3d9a964db04c819fc671670ef1b81817
2011-08-31 21:26:04 +09:00
satok
a0315b91b6 am ed2b24ec: Fix set additional subtypes.
* commit 'ed2b24ecc7842b27178fc584a9e5bd5b1ab07635':
  Fix set additional subtypes.
2011-08-31 02:52:11 -07:00
satok
ed2b24ecc7 Fix set additional subtypes.
Bug: 5102787
Change-Id: Ic38db8c33b6496a083e8158cd79fb54c21187b04
2011-08-31 18:03:21 +09:00
satok
77eb4f3ec5 am 8da2a004: Merge "Fix DeadObjectException of the spell checker"
* commit '8da2a004b883dc4526bddb3198476414b2f3819c':
  Fix DeadObjectException of the spell checker
2011-08-31 00:52:22 -07:00
satok
c7b60f72dd Fix DeadObjectException of the spell checker
Bug: 5119646
Change-Id: I2938a2206b79645c13a54cc7200f64c2c0aa3836
2011-08-31 16:30:27 +09: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
Mathias Agopian
4ca738b6f6 am c21843a8: Merge "fix Surface positions are not floats"
* commit 'c21843a8b5c395cbaae6db0f786bdee556075f5d':
  fix Surface positions are not floats
2011-08-30 19:25:50 -07:00
Mathias Agopian
c21843a8b5 Merge "fix Surface positions are not floats" 2011-08-30 19:24:04 -07:00
Mathias Agopian
2bfa4959dd am 66b665ab: Merge "fix display artifacts in preview screen in timelapse video mode"
* commit '66b665ab8b8b52450310b1a551bfa8f52dbb2c10':
  fix display artifacts in preview screen in timelapse video mode
2011-08-30 19:01:57 -07:00
Mathias Agopian
66b665ab8b Merge "fix display artifacts in preview screen in timelapse video mode" 2011-08-30 19:00:15 -07:00
Mathias Agopian
34cb9f2a96 fix Surface positions are not floats
Added Surface.setPosition(float, float) which allows to set a surface's
position in float.

Bug: 5239859
Change-Id: I903aef4ad5b5999142202fb8ea30fe216d805711
2011-08-30 18:51:54 -07:00
Christopher Tate
d5415c3cac am 8ec83219: Merge "Properly handle PACKAGE_REPLACED in addition to _ADDED and _REMOVED"
* commit '8ec83219e8cbac105054fb60101e6d98a972bcc2':
  Properly handle PACKAGE_REPLACED in addition to _ADDED and _REMOVED
2011-08-30 18:36:50 -07:00
Christopher Tate
8ec83219e8 Merge "Properly handle PACKAGE_REPLACED in addition to _ADDED and _REMOVED" 2011-08-30 18:34:30 -07:00
Christopher Tate
cc55f8136e Properly handle PACKAGE_REPLACED in addition to _ADDED and _REMOVED
Certain kinds of application update generate this broadcast regime rather
than the REMOVE / ADD sequence that results from e.g. using the -r option
when invoking 'adb install'.

We also push the agent classname lookup to the last moment before
actually running the backup, rather than caching it as part of the
record of what apps need a backup pass in the future.  This was causing
a bug in which a package reinstall that renamed the app's agent class
would wind up with a crash at backup time, trying to load the wrong
class.

Fixes bug 5156094 / bug 4308977

Change-Id: I4e3e12d86e6ee40809f14fd12ab762116dbee0b5
2011-08-30 18:23:13 -07:00
Jeff Brown
99ab081212 am 25614758: Merge "Pick up device configuration "device.internal = 0". Before, only "device.internal = 1" had an effect."
* commit '256147581959868044bd92bad281c5c75a1068d7':
  Pick up device configuration "device.internal = 0". Before, only "device.internal = 1" had an effect.
2011-08-30 17:04:59 -07:00
Jeff Brown
2561475819 Merge "Pick up device configuration "device.internal = 0". Before, only "device.internal = 1" had an effect." 2011-08-30 17:03:37 -07:00
Dianne Hackborn
9a3fe4744e am 9c93db60: Merge "Fix issues #5233826 and #5209847 -- live wallpapers."
* commit '9c93db60e6d9172e1957e5e31a6c5b82e2494420':
  Fix issues #5233826 and #5209847 -- live wallpapers.
2011-08-30 15:50:35 -07:00
Mathias Agopian
ce8e0baeff fix display artifacts in preview screen in timelapse video mode
We were not updating the h/w composer state when the buffer size
changed.

We also didn't update the h/w composer state when the transformation
matrix changed (which is related to the above issue, since it would
probably change when the buffer size changes).

Also moved updating the crop to setGeometry(), since we decided
that the "crop" change requires the GEOMETRY_CHANGED flag (ie:
not need to do this every frame)

Bug: 5238473

Change-Id: Ia7b47e145b48581b568d89d9aa2c14ff778be862
2011-08-30 15:31:51 -07:00
Dianne Hackborn
9e4e727b4a Fix issues #5233826 and #5209847 -- live wallpapers.
5233826	when a live wallpaper starts, it does so regardless of its visibility

The WallpaperService is now very forceful about telling a wallpaper it is
not visible when it first starts.

5209847	Make launcher turn off the wallpaper in all apps.

Fix a bug in the window manager that would not correctly handle the wallpaper
flag changing.

Change-Id: Ie3314043a84664be72a1304a1705408efd789a15
2011-08-30 14:56:31 -07:00
Max Braun
e81056f350 Pick up device configuration "device.internal = 0". Before, only "device.internal = 1" had an effect.
Change-Id: Ie88ed66e0841418c147bed2e23806405bdd17ad6
2011-08-30 14:40:43 -07:00
Eric Laurent
2e0ae89d18 am 0e35c78d: Merge "226483: A2DP connected, but music out to speaker"
* commit '0e35c78d25a8df8b3bde566ad6c474f9df242ea4':
  226483: A2DP connected, but music out to speaker
2011-08-30 10:53:47 -07:00
Eric Laurent
0e35c78d25 Merge "226483: A2DP connected, but music out to speaker" 2011-08-30 10:51:54 -07:00
Eric Laurent
05ce094164 226483: A2DP connected, but music out to speaker
When the A2DP headset is connected, there is a possible
race condition when the audio tracks are moved from
the mixer thread attached to the speaker output to the thread
attached to A2DP output.
As the request to clear the stream type to output mapping cache in
the client process is asynchronous, it is possible that the flag
indicating to the client audio track to re-create the IAudioTrack
on the new thread is processed before the cache is invalidated.
In this case, the track will be attached to the old thread and
music will continue playing over the device speaker instead of being
redirected to A2DP headset.

Change-Id: Ib2ce1eb5320eaff83287b93779061bf4e7a330df
2011-08-30 10:19:38 -07:00
Mike Lockwood
a72177a4e8 Merge "New Serial Manager API:" into ics-aah 2011-08-30 09:59:19 -07:00
Mike Lockwood
8b3b98d622 New Serial Manager API:
SerialManager: provides access to serial ports
SerialPort: for reading and writing data to and from serial ports

IO with both array based and direct ByteBuffers is supported.

Accessing serial ports requires android.permission.SERIAL_PORT permission

Each platform must configure list of supported serial ports in the
config_serialPorts resource overlay
(this is needed to prevent apps from accidentally accessing the bluetooth
or other system UARTs).

In addition, the platform uevent.rc file must set the owner to the
/dev/tty* files to "system" so the framework can access the port.

Change-Id: I6afa78ceacf08486aaebced4156ecd2e33051879
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-08-30 12:56:26 -04:00
Mike Lockwood
b9797b08f4 am 7c267b24: Merge "Extinguish notification LED when user passes through lock screen"
* commit '7c267b24c69685ee623efb61bd98707869e92f5d':
  Extinguish notification LED when user passes through lock screen
2011-08-30 08:47:21 -07:00
Mike Lockwood
63b5ad9e17 Extinguish notification LED when user passes through lock screen
Also do not blink for notifications received when the screen is on.

Bug: 5233071

Change-Id: I15675ca317007d4b900ef74e60d11a5bca3d7333
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-08-30 09:55:30 -04:00
Jeff Sharkey
d712530185 am 4107beec: Merge "Introduce immediate CONNECTIVITY_ACTION variant."
* commit '4107beecaab18b393e56a0c34b333f0a6e15be2f':
  Introduce immediate CONNECTIVITY_ACTION variant.
2011-08-29 20:01:46 -07:00
Jeff Sharkey
4107beecaa Merge "Introduce immediate CONNECTIVITY_ACTION variant." 2011-08-29 20:00:12 -07:00
Jason Simmons
1b6bb1ed86 resolved conflicts for merge of 35c0bf31 to ics-aah
Change-Id: If736c93821359a2f97a0670ad3be8ada5f398bd7
2011-08-29 16:16:49 -07:00
Jeff Sharkey
961e304583 Introduce immediate CONNECTIVITY_ACTION variant.
New broadcast that is dispatched immediately after connectivity
changes have been handled by ConnectivityService, bypassing any
applicable CONNECTIVITY_CHANGE_DELAY.

Also protect CONNECTIVITY_CHANGE broadcasts, since they should only
be sent by system.

Bug: 5198167
Change-Id: I75f1fb44b21da1879f0ab960bcaa481126d70fde
2011-08-29 16:10:43 -07:00
Jeff Brown
49a47f5446 am 8d3feb62: Merge "Add a "show touches" option for demos and presentations. Bug: 4569045"
* commit '8d3feb6292ba7e87adeb4982e8cf27114a8ee2e4':
  Add a "show touches" option for demos and presentations. Bug: 4569045
2011-08-29 15:18:46 -07:00
Jeff Brown
1802d12d9e am df7e2644: Merge "Prioritize INPUT_PROP_DIRECT first."
* commit 'df7e2644992c5828be94980b4243ac9f1f48b177':
  Prioritize INPUT_PROP_DIRECT first.
2011-08-29 15:18:42 -07:00
Svetoslav Ganov
f301e4d205 am 6537b003: Merge "Clean up and bug fixes in the TouchExplorer."
* commit '6537b003b7b616d4babde4b69a3d5e68459c555a':
  Clean up and bug fixes in the TouchExplorer.
2011-08-29 15:15:29 -07:00
Eric Laurent
35c0bf31eb Merge "Audioflinger: reverse logic of BT NREC indication" 2011-08-29 15:12:41 -07:00
Eric Laurent
2d95dfbf4d Audioflinger: reverse logic of BT NREC indication
The interpretation of BT NREC by AudioFlinger to enable
or disable AEC and NS was wrong: NREC to ON (default) means
the phone (Audio Gateway) must enable local AEC and NS.

Change-Id: I88a264e7fc9831c43bbace4f6b585baec73f2006
2011-08-29 14:50:38 -07:00
Jeff Brown
8d3feb6292 Merge "Add a "show touches" option for demos and presentations. Bug: 4569045" 2011-08-29 14:04:31 -07:00
Jeff Brown
df7e264499 Merge "Prioritize INPUT_PROP_DIRECT first." 2011-08-29 14:04:21 -07:00