Allow compatibility with 'old' Touchscreens (Linux < 3.1)

BOARD_USE_LEGACY_TOUCHSCREEN := true in your BoardConfig.mk

Support the Multitouch, 10-points tested on the qtouch (Defy/Droid)

Remember to add the new idc file required for the touchscreen/keypad
Example: /system/usr/idc/qtouch-touchscreen.idc

Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>

Change-Id: Ic630fb91342e37ff0f96f7d6367d693d299adcf0
Process the BTN_MOUSE event

This is required in order to make the trackball on devices that has it to
work properly, like it does before ICS. In addition to this patch, you just
need an .idc file that matches the device name for your the trackball. You can
find it by either looking in a kernel log or a logcat.

For example, a device with a Crucial optical navigation pad, will be called
curcial-oj.idc

The .idc file should contain the following:

cursor.mode = navigation
cursor.orientationAware = 1

Place the file in /system/usr/idc folder.

Enable in BoardConfig.mk with BOARD_USE_LEGACY_TRACKPAD := true

Change-Id: I57e9912b9e4d6242c980c99f4fd28b0d50f19bb8
Legacy touchscreen: Fix B key issue

Patchset 2: Clean code

Change-Id: Ib1fc59833d066dee9c4c5f02a9bf1a912463cb1e
Revert "fix sms receiving for some Samsung CDMA phones"

This reverts commit 6ad23f7e3fd48f4fb86e8b6caa3916d6ea96ba3a.
simplify and improve BOARD_USE_LEGACY_TOUCHSCREEN

in addition to converting ABS_MT_TOUCH_MAJOR to ABS_MT_PRESSURE, it also converts ABS_MT_WIDTH_MAJOR to ABS_MT_TOUCH_MAJOR.

also add 2 workarounds for some touchscreen driver which
 1. has BTN_TOUCH feature but it doesn't send BTN_TOUCH event
 2. sends multi-touch event for not-in-use pointer

reference: http://source.android.com/tech/input/touch-devices.html

Change-Id: I7b7f8802e45bf9d9f8de00373559a30ea839a178
Telephony: Updated radio states for CM classes

Change-Id: Ida1522f117d6bbdfcd78f207a43cc8d9dac8fd72
framework: Split off some packages to a new file

frameworks.jar is now hitting the maximum number of member classes
(65535), resulting in the build failing with...

 trouble writing output: Too many methods: 65641; max is 65536. By package:
     26 android
    145 android.accessibilityservice
    700 android.accounts
    436 android.animation
      8 android.annotation
   3787 android.app

As a workaround, split off some packages to a new jar.

This will probably need reviewing, the wiggle room left by moving
these packages is only about 1100 members

Change-Id: I470ac6833693676884747f9204f8238652c2b322
Telephony: Reintroduce the old ICS RadioStates

All the previous SIM/RUIM states are now equivalent to "RADIO_ON".
Tested with a fully ICS-compliant set of radio libraries, and appears
to work fully.

Change-Id: Ia9ddfbb76e0321b9b7abc37336f45037348d9c2c
servicemanager: Allow tegra audio to register as a service

Change-Id: I6c792b6f5f586cf40d4a9b834e793a68c1e458a7
Wifi: Allow configuration of the P2P ifname

ICS used the same wifi.interface as the regular wifi service.
Let's use wifi.p2pinterface here, since they _can_ be different

Change-Id: Iab68b245b33377271354c849bbe33725a26193f1
Merge "Allow compatibility with 'old' Touchscreens (Linux < 3.1)" into jellybean
Merge "Process the BTN_MOUSE event" into jellybean
Merge "Legacy touchscreen: Fix B key issue" into jellybean
Merge "simplify and improve BOARD_USE_LEGACY_TOUCHSCREEN" into jellybean
LegacyUSB: Add support for legacy USB implementations

Rebased for ICS 4.0.3

Change-Id: I029d8eeca4de6d92499856feab2761a8bfa9a526
LegacyUSB: add overlay for UMS lun and use existence of lun to enable legacy USB

Change-Id: Id14f70f7e21b689c08cadef69f69da711c7dc566
framework: fix screenshot and rotation aimation for devices with abnormal hw rotation

Change-Id: I42694931cb1a754aa6c7652c0a96304ef1f88492
installd: Delete cache properly for devices using datadata partition

The java side already checks /data/data for free space but installd
still checks /data causing it to never reap the cache (because it
thinks that enough free space is available.)

Change-Id: I191f3ceb84df1101ab2918ec0038213d72ec1ce2
DexOpt anything on /system in /cache/dalvik-cache

Allow property to disable dexopt on /cache

(cherry-picked commit e2319e46f16b71e71e5e9cd593019edaa48c1be0)

Conflicts:

	cmds/installd/installd.h

Change-Id: I79e5de4b466c6b5175145592f1ca4e6331e4a4ac