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

Conflicts:

	services/input/Android.mk
Sounds: cleanup/refactor (Sqashed)

Sounds: remove misplaced/duplicate file

This is the 2nd commit message:

Audio: Organize, include only newer ringtones

drewis: retain use of AllAudio and MINIMAL_NEWWAVELABS

 This is the 3rd commit message:

Remove duplicate notifications

Acrux=Antares and Bellatrix=Betelgeuse.

I'm guessing these are duplicate due to differing
names. I believe Antares and Betelgeuse are the names
in AOSP, so leaving those two.

 This is the 4th commit message:

Remove references to removed notifications.

Remove references to files deleted by patch: http://review.cyanogenmod.com/#/c/16913/

 This is the 5th commit message:

audio: in with the new out with the old

 This is the 6th commit message:

Audio: add the wireless charging sound to build

Change-Id: I5e80dc389c8f9cd15aed2c57deab513fc47df823
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
small build: only include needed, English fonts (2/2)

companion change in build/

Change-Id: Ib778aa0915eac9bcfdacf8619b723c83e0327f5e
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
Add ability to copy text in GTalk

Patch Set 2: Fix typo

Original credit to TeamBAMF(Ihtfp69)
http://www.teambamf.net/topic/4465-modhowto-enable-copypaste-for-google-talk/

Change-Id: I7d1fc03ca1a3022a1821b32ca41113c818e18e66
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 api

 This is the 2nd commit message:

Hack for trackball wake with toggle

relies on current LEGACY_TRACKPAD board define

* drewis - adjusted for 4.2 api

 This is the 3rd commit message:

PhoneWindowManager: let DISABLE_TOOLBOX remove vol/trackball customizations

* drewis - adjusted for 4.2 api
SystemUI: battery icon style option w/ DISABLE_TOOLBOX support

companion commit in EVToolbox

 This is the 2nd commit message:

fwbs: Fixup options that should disable when DISABLE_TOOLBOX is true.

 This is the 3rd commit message:

BatteryController: Fix default logic and cleanup code a bit.

 * Battery style change wasn't working because DISABLE_TOOLBOX was
  defaulted to on.

Change-Id: Ifef9febf01085c8fad302c385a6c11aa0c60d1a4
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
SystemUI: 6-bar signal icon sytle option

companion commit in EVToolbox

 This is the 2nd commit message:

Allowed mQSPhoneSignalIconId to use the 6 bars.  FIXED systemUI error

 This is the 3rd commit message:

telephony: fixup sixbar signal for gsm/lte

and minor cleanup: remove duplicate *_NONE_OR_UNKNOWN

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