Launch music player on headset connect

Launches the default music player when a headset is connected

Change-Id: Ib97077191c52b14e552265456312162b6ad3fdcd
Fix our bt and go back to AOSP

Revert "Bluetooth: Add trust device feature."

This reverts commit 12eacc798f754127eec8f85bea9cc23a7eb5f696.

Revert "Bluetooth: HID: Add support for Set Idle and Get Idle Commands"

This reverts commit 7b94ea319014574b3bc12c5a687e9c4e7ca4cfb7.
Add support for Samsung extended AGPS

The AGPS implementation in the GPS chipset used in some Samsung devices
(i9100, i9300) can make use of the Psc field. Adapt the relevant
functions hiding the changes incompatible with other devices under the
AGPS_USE_PSC #define.

Credit to Qaweck from xda-developers forum for finding the meaning
of the field.

Change-Id: Ie4691c79ca379a1f5c0a87500c1b06b56ae7ac0d
Improve scrolling cache

Scrolling cache helps make short scrolls/flings smooth but will
cause stutter when long flings are made. This patch disables
scrolling cache when long flings are made.

This patch also fixes a related bug where scrolling cache will
not be enabled properly when transitioning from flinging to scrolling.

Patch Set 2: Calculate threshold based on maximum velocity (Sang Tae Park)

Credits: Pawit Pornkitprasan

Change-Id: I1fdbaad92263c9f983a32900e74eba1f0367902b
Signed-off-by: Arham Jamal <arhamjamal@gmail.com>
fix lag camera tile flip

Change-Id: Ibf99ca88ecb672d5c3a329b9b3ff72c27564f297
Frameworks: Listanimation views and interpolator (1/2)

thanks team ThinkingBridge for it. Difference to original implementation

- code cleanup
- some smaller code fixes
- remove of rotation animation due it is to laggy
- multiuser support

Change-Id: Id439a284dc3a42687fec5d49914ca1119a6e9215
test Halo tile

Change-Id: I0b758440e6980c1b975f73a7a52ab4f63ed55703
test Halo tile

Change-Id: If482601ab2810203ece0d31a39330335ab49cf87
test halo tile

Change-Id: I6444745ab04eca4f7d7a0188c01634006a0e5d3b
test halo tile

Change-Id: Ia9758d6ba20286e30f2e965c5a69335b9fd119fb
fix camera tile lag

Change-Id: I5bdf850aa3d470bf49e9e84ccbe6dd8c3e693999
derp

Change-Id: I54e688ac1ea1afea990522d5854251fddf50c9d9
derp

Change-Id: I08fabe713894d8e6060658cfe6ea490894305dd2
fix

Change-Id: Iddf81e863955c7bdae523f50aaf56c6fde76b1bf
test

Change-Id: Id9f3f3ec54f63ddb0d2fcc5213c6669d93380430
fix

Change-Id: I345220851488a44241932ebc19ac3fc7b329b06b
revert test

Change-Id: Idbe04aa2663ea2579e6b9eada34b9058e49e3f18
Frameworks: fix possible NPE on SlimPIE

some activity chooser (from launchers) give the user choices which do not
exist and would give back a null drawable. To prevend the NPE
check the drawable for null

Change-Id: I3c2c1e1ddff32b383f1ee24e41de22a9a4524ff3
Frameworks: dynamic PIE menu button + navbar menu logic cleanup (1/2)

at least the whole menu button stuff is from android version to android
version more depreciated and will go more and more away. So let us do it
like google:

- clean up the messy old AOKP navbar menu code
- make it only selectable when the menu button is really there
  and not as well when it is completly hidden
- remove the menu button action with big icon due off redundancy
- switch between modes: default jb (shows only on request), always and none
- All the above as well now in PIE...small button in first row is added
  same selectable modes for the menu lover lol
- smaller adjustments
- settings adjustments

Change-Id: Ie383843990ea40e52ef2fbe90401a3c38375d740
revert

Change-Id: I23921c1197936a7899ecbd5a5e3df495b0073942