Bluetooth: Check A2dp device priority.

For incoming connections stack does not check priority
of device.Add support to check priority of device in stack
for incoming connection.

Change-Id: Icc78d22048800bd448a93f96ab31e2673ce28dca
CRs-Fixed: 510957
Bluetooth: HID: Add support for HID Device in HAL

This patch adds support for HID Device Role in HAL so that jni
layer can communicate wtih Bluedroid Stack when calling HID Device
API's and callbacks.

Change-Id: I591f477ee58924a9003d6e733dcbbc4e8a7d3202
CRs-Fixed: 573086
Bluetooth: HAL Changes for LPP and extended LE scan

These changes include modifications for implementing Low power
proximity features and extended LE scan based on
UUID Filtering

CRs-Fixed: 581289
Change-Id: I5ddbc8edffec0c6ca5eb8ed4dab12bf2e108bd55
Bluetooth: support for a2dp sink

 - support to check remote sep type
 - support to suspend streaming in a2dp sink

CRs-Fixed: 580884

Change-Id: I9355056c663fb0cd685301cc76be6d1a700ee5f1
Bluetooth : HAL change for wake state change callback

This change includes function declaration for the wake state
change callback. This is to implement wake lock acquire/release
machanism to ensure the power saving when the ACL is not active.

Change-Id: I3205458e29521efd0d01a66a314fad499763cb87
CRs-fixed: 576239
Bluetooth: A2DP SINK changes for audiofocus

 - manage audio focus
 - send resume_sink from application

CRs-Fixed: 584276

Change-Id: I0eeb06b70b9dbb8c2276b0accb6afbafcba65376
Bluetooth: Stack certification.

Stack certification changes for L2CAP, SDP and RFCOMM

Change-Id: If322fff2c5dcf915333574aaae0394f130498305
Bluetooth: Play ring tone on incoming call.

Add callback to update app for incoming call.

Change-Id: I4b6c655cc06b70538be9a3f07455a32b579dafb2
CRs-Fixed: 582486
Bluetooth: HID-C: Add error code parameter in report_error

This patch adds error code as parameter to report_error API providing
better flexibility to application layer to send appropriate error
code for Set Report sent from HID Host.

Change-Id: I703523cef109ea1999746f064b3d2dc0e13c5300
CRs-Fixed: 595139
Bluetooth: Added API to get Remote Supported feature

Added new API to get the Remote supported features
from bluedroid.

CRs-fixed: 594652
Change-Id: I0ad3daf1756d6eae9e633b01b20b884f6c8e5bed
Bluetooth: Header file changes to add new APIs for Test APK

New APIs added to send to test commands and recevie events
from bluedroid stack.

Change-Id: I5981cbbf5d86d3e664c20ccc031ce63ca18b7718
CRs-Fixed: 598650
BT: Added new file bt_multi_hf.h

The new file contents are copied from initial
Bluetooth open source release of file "bt_hf.h"
revision 05f49546. This file will be used for
code modifications for Multi HF implementation.

Change-Id: I6da6d805bdfe3d44b6ec37302a7318cd10f3420c
BT: Multi HF support in libhardware.

This patch adds multi hf support in libhardware.
Adds bd_addr parameter for callbacks from stack.

Conflicts:

	include/hardware/bt_multi_hf.h

Change-Id: I872ba67422ae4310818d7b58ca051085f9146886
Bluetooth: Wipower HAL changes

Include HAL changes for Wipower and Bluetooth LE peripheral features

CRs-fixed: 587811

Change-Id: Idcfb35e548f1411ef34773c64847854ca810a5bb
Bluetooth: Add Wipower power apply events to HAL

Add callbacks and related data structure to introduce
Wipower power apply related events

CRs-fixed: 612628

Change-Id: I294cc3b15f3fae49bcc406279080163895921162
Revert "BT: Multi HF support in libhardware."

This reverts commit d1ffc00695f0403ea0591aa3f38a6b53eb36a857.
Bluetooth: Add support for set_priority for HID Host

This patch adds support for set_priority for HID Host. With this new
method, btif layer would be informed of remote HID Device priority
and would help in early rejection of HID incoming connection in case
User on DUT has unchecked Input device from Application.

Change-Id: I0c1ac7c8ad010b8d7e8aa5653e69568a45f4af92
CRs-Fixed: 532234
(cherry picked from commit e5987b7ab32b7b887693dbfd28ebfe0aac5f9f2f)
(cherry picked from commit 051d9de3e4f413fbd1c19dca69a461330267fd83)
(cherry picked from commit 59cb7a79c557ed355b02bc497443b425623ae036)
Bluetooth: Added new prototype of HFP feature bitmask.

This function will allow to let the BT stack use
the features supported by the Bluetooth HFP app.

CRs-Fixed: 482189
Change-Id: I9d015562e310ed2901ada91e692083dde7ac4614
(cherry picked from commit cad7f788e01e07659a605a1f61095a503f68563e)
(cherry picked from commit e0e16d9f105400b3339aa48ea99131fce1570029)
(cherry picked from commit 2d6f0d249c89a5cd9ece75a74bfd96c5c3a32068)
Bluetooth: Added function prototype for codec.

This function is used to notify the BT APP
about the codec negtiated.

Change-Id: I058a9b6409341d3fc849de1386174207bd9df1e3
(cherry picked from commit cce5c76bfa42c54e15d6eb3bd43ae9cea82c462c)
(cherry picked from commit 3add2cdff0fd82f887925ff6f26211c8ee6d0c07)
(cherry picked from commit ed834a7088edaa64aa48912abf15cc6ae510d766)
Bluetooth: SAP: Header files changes to support SAP on Bluedroid

This change consists of:
Header file changes for Bluedroid SAP profile

Change-Id: I3c685967d6ed154f57fcd6f30b2402af9f42ec3f
(cherry picked from commit ff4940b8f32511fb870facc4eb2c36fb27890de0)
(cherry picked from commit d60cdf06d3220127e05a4f0db8fcda8c452b5637)
(cherry picked from commit 8bcadb8fef1f42a930b6bcf44c51cb8da58e9383)