CdmaLteServiceStateTracker: fix breakage

Change-Id: I8e3235989c290102896a24e783a2334ea1957554
Bluetooth: AVRCP 1.3 features changes (2/2)

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

Merged the following from AOKP ICS:
Change-Id: 37151cf5162404e27c985a1b6a874cfd9a51d657
Change-Id: f3d9f182f0eacc3ead491f7d3f571f5ed93f7c20
Change-Id: 432fdab5fbbfb6687b571d1e06d6b51e944ed4d5
Change-Id: b4d51e3bc1b52f6c1ff1d006aae6cff261c739e9
Change-Id: f1c1549254c17be681066544efbbcf7ad1e25913

       modified:   java/android/server/BluetoothA2dpService.java
       new file:   java/fm/last/api/Station.java
       modified:   jni/android_server_BluetoothA2dpService.cpp
       modified:   jni/android_server_BluetoothEventLoop.cpp
       new file:   res/res/values/avrcp_data.xml
       modified:   core/res/res/values/public.xml

Change-Id: I48d16462d4a95fa09ec382107456c65076bf15a5
Merge "CdmaLteServiceStateTracker: fix breakage" into jb
Framework: Audio service - add missing pieces from CM9 port

Author: Phil Tunstall
Fix ring/notification volume not restoring correctly on headset (dis)connect

We weren't checking the alias of each stream when restoring, which meant that
for the notification stream volume:
1. The wrong volume level would be stored.
2. The volume level to restore would be retrieved from the wrong place, and then
overwrite the correctly restored ring stream volume.

As well as fixing that I have improved the readability of the code a bit.

 + Change-Id: I95234c2b7ad7dfd4dbd455a56c8a69975c514b50

Author:  Phil Tunstall
Sound preference: Safe volume restore when plugging in a headset (1/2)
When enabled, volumes that were above a threshold (~55%) the previous time
something was connected to the audio jack will be restored to that threshold
rather than their full level.

Affects all sound streams apart from voice call audio.

 + Change-Id: I0007a09ce75b55c95986e38a4cbb24fe4e8200a9

Author: dalingrin
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

Author: gsarrica
Allow unlinking of notification sound and ringtone volume.
Thanks to http://forum.aokp.co/ for this.

 + Change-Id: I55db003cc1691fbca5d3e8ea79e088d0622d38ee

Settings side has been merged

Change-Id: I19deecf2346bcf0691dc3a1480791df7b00afb06
Audioservice: fix A2dp support on Samsung's Audio Policy HAL.

Samsung's audio policy HAL doesn't handle A2DP delay commands
correctly which was merged in JB.
Adds a nodelaya2dp config option.

Change-Id: Ib2a1648876ad7b5b21194bd2ad27f5767e46dbb2

Conflicts:

	core/res/res/values/public.xml
Fix a bunch of audio issues (1/2) Credit: CyanogenMod

Change-Id: I1a56d7227651cc6ea385c9bbb4eed0b01d46cdd7
Revert "Fix a bunch of audio issues (1/2) Credit: CyanogenMod"

This reverts commit dcb53ae2e34ed0c505b6f27651c0acf9dcba7218
Merge "Bluetooth: AVRCP 1.3 features changes (2/2)" into jb
Merge branch 'jb' of https://github.com/AOKP/frameworks_base into jb

Conflicts:
	core/res/res/values/config.xml

Change-Id: I45bd06b3497567c03abf9a1d5b54338855102994