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
Add support for ICS camera blobs

Change-Id: Icf9010f4b6059405275107fadd5aac81cd294182
libinput: port over JumpyTouchFilter from Gingerbread

 This is the 2nd commit message:

libinput: Introduce touch.filterTouchEvents parameter

Parameter will be used to decide wheter to apply filters to the touch
events of devices with bad touchscreens (such as bravo or passion).

libinput: Add applyFilters() and applyFiltersWithId functions.

Functions are called when filterTouchInput parameter is true.

libinput: MultiTouchInputMapper: hook up JumpyTouchFilter.

libinput: MultiTouchInputMapper: modify JumpyTouchFilter.

    - Drop more points when transitioning
    - Drop both coordinates when transitioning
    - If last event was hovering reset the dropped points count and
      do nothing

libinput: MultiTouchInputMapper: add BadTouchReleaseFilter.

When lifting one of two fingers on HTC Bravo's touchscreen an jump to
0x0 is emmited. The BadTouchReleaseFilter seaches for a jump like this
and replaces all points with the last ones.

libinput: rename LOGD to ALOGD

Change-Id: I50b74717edb0af082b067a552d6b10467c0eb3f2
Adjust kernel data stack TCP parameters to optimize performance

Enhance Android MobileDataStateTracker class to identify technology
EVDO rev B separate from earlier releases.  This permits use of
separate TCP buffer size for higher bandwidth technology.

Change-Id: Ib8dfa315c4485c36c66b2c66950c42ccb81fe9e5
CRs-Fixed: 260740
frameworks: Add inital Evervolv Toolbox setting.

 * DISABLE_TOOLBOX is going to be used to bring the users experience to
   as close to stock experience as possible.

Change-Id: Ie106f0e16bccab4aa81abc64e92bf9751c21de20
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>

 This is the 2nd commit message:

Legacy touchscreen: Fix B key issue

 This is the 3rd commit message:

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
frameworks/base: Increase Zygote preload GC threshold.

Increase Zygote preload GC threshold to half of the heapgrowthlimit,
to reduce boot up time.

Change-Id: I74a68a512c2266ac6e62f09f361f8607251ca9a7
bootanimation: allow using RGB565 instead of ARGB8888

RGB565 uses considerably less memory, and together with texture
cache, it allows us to offer a really smooth bootanimation on
not so powerful devices.

Change-Id: I9da8fd7e6a587b5895519dd0983ec9b8f676771b
SystemUI: allow dismissing the "Removed USB Storage" notification

*appears on grouper after removing the usb otg device

Change-Id: I1ebcdfcdd4e79b08a06e257c6974516970094049
EventHub: Modify the keyboard layout file name for headset button

The keyboard layout file name was formed based on the name of
tabla sound card on current machine. If it doesn't find such
file, it is going to use Generic keyboard layout where the
key mappings are different, even though the scan code is same.
The sound card name differs across different machine types.
So, generalising the keyboard layout file name will work across
all machine types.

CRs-fixed: 344297
Change-Id: I416b6179f51ac98fe7dfae5268ffb58c243540a4
Policy: support for volume wake/music control and tb wake

port from ics:
commit 153e40d29fae542b9c70f994d64e4c043645a523
Author: Sven Dawitz <sven@dawitz.de>
Date:   Sun Jan 8 21:32:43 2012 -0700

    add lockscreen volume button music control (framework part)

        *long-press vol up for next, vol down for previous
        *screen must be off to work
commit 7cee3218014293da1d131f3adfd0a53c1b23a473
Author: Andrew Sutherland <dr3wsuth3rland@gmail.com>
Date:   Fri Jan 13 22:03:51 2012 -0600

    volume button wake
commit 238568c72f140708d59db28ec520b15a35f12369
Author: Andrew Sutherland <dr3wsuth3rland@gmail.com>
Date:   Fri Apr 6 18:03:49 2012 -0500

    adjust vol wake / music control logic

    to allow concurrent operation (short press wakes / long press skips track)
    based on patch from <daneshm90@gmail.com>

* drewis - adjusted for 4.{2,3,4} api

 This is the 2nd commit message:

Hack for trackball wake with toggle

relies on current LEGACY_TRACKPAD board define

 This is the 3rd commit message:

PhoneWindowManager: let DISABLE_TOOLBOX remove vol/trackball customizations

 This is the 2nd commit message:

fix vol wake

Change-Id: I42c41f7ccba4cee377c31c144be1bbf2e339e875
Extended Powermenu (Squashed)

Port reboot option to Power Menu.

  * Ported from ICS, including hot reboot (overlay still needed).
  * Quite a bit changed from ics -> jb, so i just did this manually.
  * drewis - manual port from pm to power for ShutdownThread for 4.2

 This is the 2nd commit message:

power menu: fix a few things that got lost during reboot options port

* Shutdownthread stuff already applied

 This is the 3rd commit message:

Extended Power Menu - Screenshot

This adds the screenshot option to the device power menu and leverages
the built-in ICS functionality to take the resulting image.

It is dependant on the Extended Power Menu - Reboot commit

 This is the 4th commit message:

power menu: use only stock options when DISABLE_TOOLBOX is set

 This is the 5th commit message:

fwbs: Add support to individually hide power menu options.

 This is the 6th commit message:

frameworks: Add a setting to specify the screenshot delay.

 * Only works from power menu
 * Defaults to 1 second (1000ms)

 This is the 7th commit message:

Remove GB alert drawable from reboot menu

 This is the 8th commit message:

Framework: fix reboot dialog title for tablets

Change-Id: Iea99bc542b20df728965233a94de6b1b172ef974
Fixed group and child view caching in SimpleExpandableListAdapter.

Now the adapter reports the correct type count and type for group and child
views by overriding the respective methods from the base class. Each group
view has two types, one for expanded views, one for collapsed views. Each
child view has two types, one for the last view within a group, one for the
other views within a group.

Change-Id: I117b2c0f7e98fb7fe2fdd35c15f7d1f9dc06674f
Signed-off-by: Georg Hofmann <georg.hofmann@gmail.com>
frameworks/base: support devices with SoftAp that don't require firmware reload

Partial forward port from ICS.
Original Change-Id: If2db6e8ce675c3214ce645231c7a354f41ea0cc6

Change-Id: Iacb2498ec0f567a0a7c4e0dbf9127b70f09223bd

Conflicts:
	core/res/res/values/public.xml
Configurable 0, 90, 180 and 270 degree rotation

 *Modified for toolbox disable.

Contributor: jonasl
Change-Id: Ia1859c51d71ef9d01cec2d13c6468ed89c6ac53e
services: Fix tethering (softap) startup

The interface must be started after firmware reload. If it's not
started, the driver is unable to configure it.

Change-Id: I18b255caf961d23c0f7d4d29dfef040761536c2e

Conflicts:
	core/res/res/values/public.xml
move java-symbols to symbols.xml

Change-Id: I4c7d4aafb880a7169912a48f6765978b5594881f
LegacyUSB: Add support for legacy USB implementations

Rebased for JB 4.2

 This is the 2nd commit message:

LegacyUSB: add overlay for UMS lun and use existence of lun to enable legacy USB

Ported to JB 4.2

 This is the 2nd commit message:

UsbService: LegacyUSB initialize mDeviceManager sooner

Change-Id: I6730ac202167389ca55904c9db0db4c5b3eae78b
Add an option to change the device hostname (1/2).

This adds an option to modify the device hostname used
in ip resolution. This is useful when connecting to the
android device in a dynamic dhcp environment.

Change-Id: I44e4771f4415a32fe66867d4dd90f1ad138341e1
Fixed aapt warnings

Change-Id: I35389697266b3ec59a38b4142a8983d0a8cc31ac