libinput: port over JumpyTouchFilter from Gingerbread

Change-Id: Iceb3243f8a4b862ab757d870dedeb262ec15e02b
libinput: Introduce touch.filterTouchEvents parameter (squashed)

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

Change-Id: I50b74717edb0af082b067a552d6b10467c0eb3f2

libinput: Add applyFilters() and applyFiltersWithId functions.

Functions are called when filterTouchInput parameter is true.

Change-Id: I3b6d76ef02ea2253a5f900da411cc4aabf0d254a

libinput: MultiTouchInputMapper: hook up JumpyTouchFilter.

Change-Id: If934b1a4e5c82bb9ed6ebad7a385cbf16767fa8f

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

Change-Id: Ife47fa1375dc344cde18a58aeaea8c9b3420bcd4

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.

Change-Id: I806a5c1e8dd400b3d3a45f049cd9ffa033f6c758
Telephony: Send disconnect when disposing DCTs

Change-Id: Ia46ac82a04ff1aaf8cc6b1a4e1c809f29afbc799
CRs-Fixed: 344886
(cherry picked from commit a4e5b6227f9481c472a4db9002814603d2c1917d)

Conflicts:

	telephony/java/com/android/internal/telephony/cdma/CdmaDataConnectionTracker.java
Remove Customized Qcom Camera Features
Add customized parameters for qcom camera features
stagefright: remove extra QCOM ifndef

Conflicts:

	media/libstagefright/OMXCodec.cpp
Fixing a bug that when an app is dismissed or loaded that changes
the current active audio stream, if the volume overlay is visible during the swap,
if you adjust the volume (with hard keys) after the steam has changed while
the panel is still visible, the wrong panel (view) is still visible on-top of the
one that is being adjusted.

A good way to replicate this is to
   Open the Phone APP
   Go to the Keypad Screen
   Adjust the volume (not the icon on the overlay)
   While the volume is visible Hit the HOME hard key
   Before the volume dissapears, adjust the volume with hard keys

You will hear and feel the volume adjusting, but the overlay will not update.

Change-Id: I1c7a23d6e569d8582d3dab20523eef3aa9bdde0c
Realign frameworks with previous configuration

Conflicts:

	libs/gui/SurfaceTexture.cpp
	services/surfaceflinger/SurfaceFlinger.cpp
Remove CAF specific parameters until properly supported

Conflicts:

	libs/camera/CameraParameters.cpp
frameworks/base: handle supplicant termination in p2p modes

In p2p mode if supplicant terminates,

 -reload wlan driver
 -restart dhcp server, if in go mode
 -restart dhcp client, if in client mode

This is to start p2p sessions in a clean state after a fatal
error, that required supplicant to restart.

CRs-Fixed: 337607
(cherry picked from commit 9baa04cb32ac2128ed520e5a8c4eb13e6fc50a1f)

Change-Id: I00882e512a21ef743cacb00401383e0c8dba50cf
Telephony: Allow use of BearerType in Dual-IP retry

This change accomdates the use of bearer type when configuring APNs when
Dual-IP partial retry is required. Before this change, there cannot be
multiple APNs with bearer type as the differentiator.

Important note:
Dual-IP partial failure retry will only occur using the same APN on
which the original data call was established. For e.g: if LTE-APN and
EHRPD-APN are both configured as the default APN and the UE originates
the initial call on LTE-APN and then goes through multiple IRAT
handovers, any partial failure retry will take place on the LTE-APN.

CRs-Fixed: 343088
(cherry picked from commit 0cc44e8ac1b32b44e624bc19f67aaf6b02455f37)

Change-Id: I57440ee9c337370789ce6d12bf4b0a1c5b430892
Add separate headset and speaker volumes

This is a simple implementation of keeping separate volume
settings for the wired headset and the speaker without
overhauling the audio system.

This allows a person with sensitive headphones to keep music, ringer
and other stream volumes lower than they would usually keep the
speaker volumes.

Change-Id: Ia614c1e3ac548ff4e0104a090cda13b9daef09cb
frameworks/base: bluetooth: AVRCP 1.3 feature changes

Bluetooth module will listen metadata/event change intents
from Music app and post data to Bluez stack.

Modified by Chris Boyle: removed PLAYSTATUS_REQUEST/RESPONSE.
See http://review.cyanogenmod.com/14001

Conflicts:

	core/java/android/server/BluetoothA2dpService.java
	core/jni/android_server_BluetoothEventLoop.cpp

Gingerbread change Icbfb1712dde98c9677f57c869bcfffed2bb42a14

Change-Id: Id8cbec68302b53befbec4273013668a58c755369

Conflicts:

	core/jni/android_server_BluetoothA2dpService.cpp
Do not check for framerate.

HTC Camera sometimes reports the wrong framerate (31<>30).

Change-Id: I590c8ec910935af91d8b5aaae72fcb0f9dd3f6ca

Conflicts:

	media/libstagefright/CameraSource.cpp
Revert "Remove 'Bypass Texture Creation' hack in frameworks"

This reverts commit 481e26b2e85adb97b10f6a907f19363c4bdb5e2f.

Conflicts:

	include/gui/SurfaceTexture.h
	services/surfaceflinger/Layer.cpp
webkit: Handle AudioManager callback events on webcore thread

AudioManager callback may occur on a thread other than the WebCore
thread.  To avoid synchronization of MediaPlayer calls outside the
WebCore thread, create a WebCore message handler and redirect
AudioManager events to the WebCore message handler.

(cherry picked from commit f563a9e67b09dac669897b896ee3711c045c43b9)

Change-Id: I64aca4940cb6faf922b3866f44d98bb7779ff070
CRs-fixed: 343893
Remove CAF Camera Powermodes
Fix Remaining Build Derps
Deprecated testing reversion reversed
Imrove Back to Kill App - sethyx

Conflicts:

	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java