7093 Commits

Author SHA1 Message Date
Jeff Brown
b9a2801287 am 30867d8b: Merge "Input system bug fixes, particularly for stylus. Bug: 5049148"
* commit '30867d8bdf9c6a719f3ae129d7e271b55592e163':
  Input system bug fixes, particularly for stylus. Bug: 5049148
2011-08-19 15:28:05 -07:00
Jeff Brown
30867d8bdf Merge "Input system bug fixes, particularly for stylus. Bug: 5049148" 2011-08-19 15:26:13 -07:00
Christopher Tate
1c536f13cc am d6a2be3e: Merge "Allow Instrumentation to kill even persistent processes"
* commit 'd6a2be3ef75892d223bddc82db8a4b4f22d0ec20':
  Allow Instrumentation to kill even persistent processes
2011-08-19 15:23:13 -07:00
Christopher Tate
d6a2be3ef7 Merge "Allow Instrumentation to kill even persistent processes" 2011-08-19 15:21:43 -07:00
Jeff Brown
65fd251c39 Input system bug fixes, particularly for stylus.
Bug: 5049148

Finished stylus support, including support for indirect stylus
and mouse tools.

Added TILT axis.  When stylus tilt X/Y is available, it is transformed
into an orientation and tilt inclination which is a more convenient
representation and a simpler extension to the exiting API.

Touch devices now only report touch data using a single input
source.  Previously touch devices in pointer mode would report
both absolute touch pad data and cooked pointer gestures.
Now we just pick one.  The touch device switches modes as needed
when the focused application enables/disables pointer gestures.
This change greatly simplifies the code and reduces the load
on the input dispatcher.

Fixed an incorrect assumption that the value of ABS_(MT_)DISTANCE
would be zero whenever the stylus was in direct contact.  It appears
that the correct way to determine whether the stylus is in direct
contact (rather than hovering) is by checking for a non-zero
reported pressure.

Added code to read the initial state of tool buttons and axis values
when the input devices are initialized or reset.  This fixes
problems where the input mapper state might have the wrong initial
state.

Moved responsibility for cancelling pending inputs (keys down,
touches, etc.) to the InputDispatcher by sending it a device reset
notification.  This frees the InputReader from having to synthesize
events during reset, which was cumbersome and somewhat brittle
to begin with.

Consolidated more of the common accumulator logic from
SingleTouchInputMapper and MultiTouchInputMapper into
TouchInputMapper.

Improved the PointerLocation output.

Change-Id: I595d3647f7fd7cb1e3eff8b3c76b85043b5fe2f0
2011-08-19 15:02:26 -07:00
Christopher Tate
3dacd8470a Allow Instrumentation to kill even persistent processes
Fixes bug 5117630

Change-Id: Iff40145fbbdc1d81a60cf2ecc5b24321162f7897
2011-08-19 14:57:57 -07:00
Dianne Hackborn
ae070921fd am ace0be25: Merge "Fix issue #5187844: Query is misrouted to wrong content provider"
* commit 'ace0be25d8b1043c8f3d74f8daf20c485b7496ef':
  Fix issue #5187844: Query is misrouted to wrong content provider
2011-08-19 14:52:21 -07:00
Dianne Hackborn
1c9b260cf5 Fix issue #5187844: Query is misrouted to wrong content provider
Change-Id: I56834f41844990d67edc8af83273036b3d755e37
2011-08-19 14:08:43 -07:00
Max Braun
3d41ecd9bd Fix occasional fusion divergence by detecting it and resetting the fusion.
Change-Id: I51186e12fb9b2316e3671e3908174f4495df89a0
2011-08-19 09:16:23 -07:00
Mathias Agopian
dd1e0e42d6 am eb031bb9: Merge "give the proper orientation to the h/w composer HAL"
* commit 'eb031bb9dd35fb136c19cc1e00e82aade16ebd52':
  give the proper orientation to the h/w composer HAL
2011-08-18 21:07:22 -07:00
Mathias Agopian
eb031bb9dd Merge "give the proper orientation to the h/w composer HAL" 2011-08-18 21:05:51 -07:00
Mathias Agopian
3f88327a54 give the proper orientation to the h/w composer HAL
we were using the "orientation" value instead of the
real transform, which may contain arbitrary rotations for
instance, and in some case ended up with a final "orientation"
that looked valid, but wasn't.

this fixes a problem on devices with a h/w composer hal where
the rotation animation looked weird.

Change-Id: I4be8a2a1bde49c33456fcf5c8d87ab515c216763
2011-08-18 18:33:44 -07:00
Dianne Hackborn
dccb1b0fc9 am 937ffc17: Merge "Fix issue #5180553: permission RECEIVE_BOOT_COMPLETED is not checked"
* commit '937ffc174c742c56d33f64c6f1129403445193fd':
  Fix issue #5180553: permission RECEIVE_BOOT_COMPLETED is not checked
2011-08-18 18:07:00 -07:00
Dianne Hackborn
937ffc174c Merge "Fix issue #5180553: permission RECEIVE_BOOT_COMPLETED is not checked" 2011-08-18 18:05:19 -07:00
Dianne Hackborn
d99b293d5f Fix issue #5180553: permission RECEIVE_BOOT_COMPLETED is not checked
Change-Id: I069673f2fbdf05e409c5e9ed99ccd1e15b4fe3ed
2011-08-18 16:02:41 -07:00
Jeff Sharkey
74e8ebb853 am 9a20fa54: Merge "Background data notification, API clean up."
* commit '9a20fa54c9ba4bd19f2afd6e8cc6e9954e7cb739':
  Background data notification, API clean up.
2011-08-18 15:03:51 -07:00
Jeff Sharkey
9a20fa54c9 Merge "Background data notification, API clean up." 2011-08-18 15:01:10 -07:00
Jamie Gennis
a7f0b4c004 am c8f4c6a5: Merge "SurfaceTexture: fix queues-to-composer"
* commit 'c8f4c6a5d02d46eedd876bfc0be3468d6d4000e0':
  SurfaceTexture: fix queues-to-composer
2011-08-18 14:33:31 -07:00
Jamie Gennis
c8f4c6a5d0 Merge "SurfaceTexture: fix queues-to-composer" 2011-08-18 14:31:39 -07:00
Mike Lockwood
40a6d3917e Merge "SystemServer: Add support for disabling AudioService and MountService" into ics-aah 2011-08-18 09:34:16 -07:00
Kenny Root
47faa20e26 am d1106fc9: Merge "Default disable watchdog for vold connection"
* commit 'd1106fc9bff66ac4f93f9d6291f0d0136bb544e7':
  Default disable watchdog for vold connection
2011-08-18 09:22:24 -07:00
Kenny Root
d1106fc9bf Merge "Default disable watchdog for vold connection" 2011-08-18 09:20:47 -07:00
Mike Lockwood
7dafec932f SystemServer: Add support for disabling AudioService and MountService
Using the same convention in system_init.cpp, you can disable these
services by setting system properties:

	system_init.startaudioservice=0
	system_init.startmountservice=0

Change-Id: Ie6c0225bf6e204b0b5e3280b29c7d493d08b8a5c
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-08-18 06:32:03 -07:00
Dianne Hackborn
031057d845 am c7e6c479: Merge "Fix issue #5163456: logspam/tight loop in BatteryStatsImpl"
* commit 'c7e6c47952fdf5707cce1a2394a68c1dde59e5ca':
  Fix issue #5163456: logspam/tight loop in BatteryStatsImpl
2011-08-17 19:21:08 -07:00
Dianne Hackborn
e8c88e6f76 Fix issue #5163456: logspam/tight loop in BatteryStatsImpl
No longer use the old history code.

Change-Id: I878ffe16e0014453c46db6a4f7228a81468d8cb9
2011-08-17 19:09:23 -07:00
Jamie Gennis
9b8fc65b03 SurfaceTexture: fix queues-to-composer
This change fixes the NATIVE_WINDOW_QUEUES_TO_WINDOW_COMPOSER query of
Surface and SurfaceTextureClient.  Surface now uses the inherited
SurfaceTextureClient implementation of this query.  SurfaceTextureClient
now queries SurfaceFlinger to determine whether buffers that are queued
to its ISurfaceTexture will be sent to SurfaceFlinger (as opposed to
some other process).

Change-Id: Iff187e72f30d454229f07f896b438198978270a8
2011-08-17 18:19:00 -07:00
Kenny Root
07714d41e5 Default disable watchdog for vold connection
cryptfs has long-running operations that cause the Watchdog to fire
reliably when encrypting the filesystem. Disable Watchdog on
MountService for this reason.

Change-Id: Id03f5f60c704dcd74a8696ad9f32b5fba5381731
2011-08-17 17:49:30 -07:00
Jeff Sharkey
3a844fcf5a Background data notification, API clean up.
When restricting background data, show ongoing notification to give
easy access to re-enable. Deprecate getBackgroundDataSetting() API
to always return true, since NetworkInfo.isConnected() is new source
of truth. Handle upgrade path by reading from existing secure value,
and kick one last broadcast when changing value. Remove background
data code from ConnectivityService.

Remove warning alerts, since they push ifaces into restricted list;
should only happen when iface has limit.

Bug: 5163559, 5129421
Change-Id: I0064d9d643656a4d32aaae51d4a58bce49fe295f
2011-08-17 14:12:42 -07:00
Mike Lockwood
9696c09472 Merge "BatteryService: Don't fail to register native methods if kernel power supply driver is missing" into ics-aah 2011-08-17 12:44:56 -07:00
Adam Cohen
a0062c0173 am 842d9de7: Merge "Getting rid of the (hidden) oldName parameter for widgets"
* commit '842d9de74f9eaaf8a7b89dbe8475faf014ddafb8':
  Getting rid of the (hidden) oldName parameter for widgets
2011-08-17 11:41:39 -07:00
Adam Cohen
842d9de74f Merge "Getting rid of the (hidden) oldName parameter for widgets" 2011-08-17 11:39:32 -07:00
Adam Cohen
bac26a1205 Getting rid of the (hidden) oldName parameter for widgets
Change-Id: I191cf64ed045fd7cb53e106f337cbeab5a914336
2011-08-17 11:37:58 -07:00
Mathias Agopian
8340fe2e8a am 21fb6343: Merge "as a debug option SrufaceFlinger can now connect to DDMS"
* commit '21fb6343ce079c23502b6969019d6b8795c47eb5':
  as a debug option SrufaceFlinger can now connect to DDMS
2011-08-17 09:59:44 -07:00
Mathias Agopian
21fb6343ce Merge "as a debug option SrufaceFlinger can now connect to DDMS" 2011-08-17 09:58:33 -07:00
Mike Lockwood
83ae76c5a9 BatteryService: Don't fail to register native methods if kernel power supply driver is missing
Change-Id: I1c8ac434eba23398ba9d9b3dc4f9a58c8f5c06a0
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-08-16 21:23:59 -07:00
Dianne Hackborn
188abec55a am e518be30: am 51beb81a: am ee93fd5c: am 7a0d746b: am baaf3ce6: Merge "Handle stopping of services with still bound applications."
* commit 'e518be3085c7457f3451a64fbea3f9499ae39bf5':
  Handle stopping of services with still bound applications.
2011-08-16 20:49:18 -07:00
Dianne Hackborn
e518be3085 am 51beb81a: am ee93fd5c: am 7a0d746b: am baaf3ce6: Merge "Handle stopping of services with still bound applications."
* commit '51beb81a8e901020293b7a30a68b405bca71d258':
  Handle stopping of services with still bound applications.
2011-08-16 20:47:39 -07:00
Dianne Hackborn
51beb81a8e am ee93fd5c: am 7a0d746b: am baaf3ce6: Merge "Handle stopping of services with still bound applications."
* commit 'ee93fd5c0d7b0296fca17363ec00dc2ee63a0841':
  Handle stopping of services with still bound applications.
2011-08-16 20:45:19 -07:00
Dianne Hackborn
baaf3ce638 Merge "Handle stopping of services with still bound applications." 2011-08-16 19:29:25 -07:00
Christopher Tate
f7a14376e2 am 755bd67a: Merge "Don\'t crash if a drag recipient throws an uncaught exception"
* commit '755bd67a5081727ae1bbee2d39863b464a8b4f35':
  Don't crash if a drag recipient throws an uncaught exception
2011-08-16 17:05:33 -07:00
Christopher Tate
755bd67a50 Merge "Don't crash if a drag recipient throws an uncaught exception" 2011-08-16 17:03:24 -07:00
Christopher Tate
d9be36c897 Don't crash if a drag recipient throws an uncaught exception
There turn out to be two distinct bugs leading to runtime restarts.

The first, dating from at least Android 3.1, is that following certain kinds
of app crashes we properly clean up the drag-state bookkeeping, but aren't
prepared in the case of the drag-target timeout clock firing with a now-
null drag state in effect.  We now catch that edge condition and don't NPE
(and note that there was already similar code around the separate timeout
when an app is *starting* the drag process).

The second bug is that some new-in-ICS code in the input channel management
wasn't prepared for certain cases where the current touch window could have
become unusable and its input channel torn down summarily in the case of the
aforesaid app crash during drag.  The code now makes sure that there really
is an input channel that needs to be flushed / cancelled prior to attempting
that operation.

Fixes bug 5173534

Change-Id: Idaae158ecfb4b93456ab1425769b669962893c00
2011-08-16 16:09:33 -07:00
repo sync
57878d2796 am 4a56c437: Merge "P2p enhancements"
* commit '4a56c437b6fd02dce06fa8565953964b01d21b5d':
  P2p enhancements
2011-08-16 14:53:02 -07:00
repo sync
4a56c437b6 Merge "P2p enhancements" 2011-08-16 14:50:56 -07:00
Chia-chi Yeh
442738e141 am 1db7f794: Merge "VPN: reset legacy VPN when resetting IPv4 addresses."
* commit '1db7f7940e24ad359a02aac07eb6b8b03f3f9804':
  VPN: reset legacy VPN when resetting IPv4 addresses.
2011-08-16 14:27:25 -07:00
Chia-chi Yeh
1db7f7940e Merge "VPN: reset legacy VPN when resetting IPv4 addresses." 2011-08-16 14:25:30 -07:00
Mike Lockwood
4c77081f5d am 33ffb366: Merge "UsbManager: Use resource IDs for notification IDs"
* commit '33ffb3661e42359c7485d0e1636828c0e7e5dd87':
  UsbManager: Use resource IDs for notification IDs
2011-08-16 14:08:50 -07:00
Mike Lockwood
fadd2b8e0f UsbManager: Use resource IDs for notification IDs
to avoid ID collisions with other system services.

Bug: 5161005

Change-Id: I069fbc40a8764bc85cceeacd04264abd32b62668
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-08-16 13:45:51 -07:00
Mike Lockwood
df5a183fef am 92bebc32: Merge "dumpsys: fix problems with -a option in battery and batteryinfo services"
* commit '92bebc3259c802be2a2313fadbe0116381189d7d':
  dumpsys: fix problems with -a option in battery and batteryinfo services
2011-08-16 13:09:02 -07:00
Mike Lockwood
e81740442f dumpsys: fix problems with -a option in battery and batteryinfo services
Now the dumpsys battery output will show up in bugreports again.

Change-Id: Id36e87d27e9d3c06dcc17671c81aa1d3fe260d1e
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-08-16 12:53:43 -07:00