6965 Commits

Author SHA1 Message Date
Jeff Brown
431080e0f7 am aaee52cf: Merge "Clean up InputDispatcher debugging."
* commit 'aaee52cfa8bb1d0070b69cd4087be63dd2c0fee9':
  Clean up InputDispatcher debugging.
2011-08-25 11:30:53 -07:00
Jeff Brown
9bd23e2568 am a2bc2d25: Merge "Support BTN_TOOL_*TAP as synonyms for BTN_TOOL_FINGER. Bug: 5205301"
* commit 'a2bc2d2569e52dccb8df8fa73b9557e465113aab':
  Support BTN_TOOL_*TAP as synonyms for BTN_TOOL_FINGER. Bug: 5205301
2011-08-25 11:29:51 -07:00
Jason Simmons
df6bb0a7ee resolved conflicts for merge of 33264596 to ics-aah
Change-Id: I1b0b2c3a63d97d49940666ceec71293bdbab4e2e
2011-08-25 09:57:48 -07:00
Jeff Brown
aaee52cfa8 Merge "Clean up InputDispatcher debugging." 2011-08-23 20:15:09 -07:00
Jeff Brown
9cc695c579 Clean up InputDispatcher debugging.
Change-Id: I020e834bfb541a1f274e26a72705f96f4307dddf
2011-08-23 18:42:06 -07:00
Jeff Brown
a2bc2d2569 Merge "Support BTN_TOOL_*TAP as synonyms for BTN_TOOL_FINGER. Bug: 5205301" 2011-08-23 18:33:42 -07:00
Jeff Brown
ea6892e02e Support BTN_TOOL_*TAP as synonyms for BTN_TOOL_FINGER.
Bug: 5205301

Some drivers report one finger as BTN_TOOL_FINGER, two as
BTN_TOOL_DOUBLETAP, three as BTN_TOOL_TRIPLETAP and four
as BTN_TOOL_QUADTAP.  Since we care about the tool type,
we need to handle _DOUBLE/_TRIPLE/_QUAD tap in the same way
we handle _FINGER.

Change-Id: I8eb83d2a2bada9ac32d07619c7eea84e924316b8
2011-08-23 17:49:49 -07:00
Dianne Hackborn
29aae6f36e Fix issue #4279860: previous UI flashes before showing lock screen...
...(when turning display on after recently turning it off)

Also clean up when we decide to turn the screen on to improve that
transition.  There are still problems here with turning it on
before the wallpaper gets dispayed.

Change-Id: I2bc56c12e5ad75a1ce5a0546f43a845bf0823e66
2011-08-23 17:44:52 -07:00
Eric Laurent
c910571438 am b1d6e76a: Merge "AudioFlinger: add check for audio HAL init failure"
* commit 'b1d6e76af75f705a6165cf69a13365828fc6354a':
  AudioFlinger: add check for audio HAL init failure
2011-08-23 08:44:55 -07:00
Eric Laurent
b1d6e76af7 Merge "AudioFlinger: add check for audio HAL init failure" 2011-08-23 08:42:59 -07:00
Eric Laurent
8b4dbf7ff5 AudioFlinger: add check for audio HAL init failure
Do not call audio HAL functions on the primary HW interface
if it could not be initialized properly.

Change-Id: If54059c8fd188d6c1686f9e0439994fe9411478a
2011-08-23 08:25:03 -07:00
Mathias Agopian
f1162f10e7 am 7f76a3cf: fix "show screen update" debug option.
* commit '7f76a3cf667b95caccb3e6d3f5cf160180717340':
  fix "show screen update" debug option.
2011-08-22 21:48:13 -07:00
Mathias Agopian
7f76a3cf66 fix "show screen update" debug option.
Change-Id: I7d8b24124768b5f7d59d3bb0b019e9baaa0dfc4f
NOTE: from now on, this also disable the h/w composer
2011-08-22 21:44:41 -07:00
Jason Simmons
4fbb071fe8 resolved conflicts for merge of 661cd52e to ics-aah
Change-Id: I5eb4154ab969a5367e9f597595c09b5e499174d0
2011-08-22 16:39:16 -07:00
Dianne Hackborn
661cd52e0e Add progress dialog for booting after an upgrade.
This introduces a new facility for code during the boot process
to display messages to the user through a progress dialog.  This
is only for use when performing longer-than-usual post-upgrade
operations such as running dexopt on applications or upgrading
databases.

Change-Id: I0e78439ccec3850fb67872c22f235bf12a158dae
2011-08-22 13:42:05 -07:00
Jim Miller
78ba791878 am 95254800: Merge "Fix 4993068: Don\'t check password history when dpm sets the password"
* commit '9525480021e5f9385293a9e88fab40a2343fdbe8':
  Fix 4993068: Don't check password history when dpm sets the password
2011-08-22 13:31:18 -07:00
Jim Miller
0191bba17c Fix 4993068: Don't check password history when dpm sets the password
This fixes a crash caused by permission problems when we try to update
the password history and discover there's no password salt.  The code
attempts to create the salt, which triggers the exception.

This could be fixed by wrapping the call with a clearCallingIdentity()/
restoreCallingIdentity(ident).  However, while looking at it, it occurred to me
that this can cause unexpected failures if the DPM tries to set the
password twice or happens to set it to something in the password history.

Instead, we should *always* allow the DPM to reset the password to whatever it wants,
provided it passes the minimum password criteria.

Change-Id: I1505b24f9c097ee5c2c44e4bf378ba90095b113b
2011-08-21 14:47:59 -07:00
Jeff Brown
b9fab20297 am 86c471db: Merge "Fix tap gesture on touch pads."
* commit '86c471db06e35f0cd96e5505f8eae56294d0272f':
  Fix tap gesture on touch pads.
2011-08-19 17:39:52 -07:00
Jeff Brown
86c471db06 Merge "Fix tap gesture on touch pads." 2011-08-19 17:38:09 -07:00
Jeff Brown
a66cee134e Fix tap gesture on touch pads.
Change-Id: I92b23e5971d4b98b173aacd64fe03ce9f0755c88
2011-08-19 16:04:30 -07:00
Mathias Agopian
5b54b3adf9 am e74f83a5: Merge "Fix occasional fusion divergence by detecting it and resetting the fusion."
* commit 'e74f83a5f865e8a4477127c5a029cbbbd42ea24e':
  Fix occasional fusion divergence by detecting it and resetting the fusion.
2011-08-19 15:55:20 -07:00
Mathias Agopian
e74f83a5f8 Merge "Fix occasional fusion divergence by detecting it and resetting the fusion." 2011-08-19 15:54:09 -07:00
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