Bluetooth: Rfcomm Test Tool

Changes made in Bluetooth Stack to support RFCOMM
Test tool support
-RFCOMM Server
-RFCOMM Client
-Role Switch
-Pairing

Change-Id: I798f85cb4b4e2f1d5b01dd3d573ca07dd195f230
Bluetooth: Prevent server unregister to change LE connectability

This patch comments out the functionality that changes the device
connectability and alter the device adv parameters.

Change-Id: I5282914be47f432228a17d8b5f1134584ad86c9a
CRs-Fixed: 639373
Bluetooth: Add support for activating and deactivating Sink

 - make in_use of sep as true
 - do sdp registration/deregistration for Sink

CRs-Fixed: 641042
Change-Id: I09fce2d0bf188a6644d93b0cd6349d626cc20728
btsnoop: option to dump btsnoop from different process

    - Support for dumping to local socket
    - Seperate process for processing snoop packets
    - Config options to enable/disable snoop dump from other process

Change-Id: I7eab4887c057ec1bbb2c8c2a6feca2e43a0f38d3
Bluetooth: changes for Sink Initiator role

 - add UUID in connection request
 - initiate stream set-up procedure in case of
   A2DP Sink.

CRs-Fixed: 641042
Change-Id: I06a5b6a77177437a57cdbb14903dccb9722e4163
Bluetooth: Prevent multiple service discovery at HOGP connection

This change prevents the security request from the remote device
to perform multiple service discovery by using the induced
release delay state. Also, it handles the L2CAP disconnections
caused during the induced release delay period and prevents it
from unpairing the device

CRs-Fixed: 619561
Change-Id: I564f3b212b3a16461debb6cb17f3ba9a912126a0
Bluetooth: Add Carkits in Blacklist for AVRCP.

Add Honda Carkit and Denso Carkit address in blacklist
for AVRCP version.

Change-Id: Iec73f5401a41e4c6fc5e43d811cad2fffb19e06a
CRs-Fixed: 638764
Merge "Bluetooth: Add Carkits in Blacklist for AVRCP."
Merge "btsnoop: option to dump btsnoop from different process"
Merge "Bluetooth: Prevent multiple service discovery at HOGP connection"
Merge "Bluetooth: Add support for activating and deactivating Sink"
Merge "Bluetooth: changes for Sink Initiator role"
Bluetooth: Check RC Handle for processing pass-through Commands.

In some race conditions 2nd AVRCP connection
is connected and remote sends pass through commands
immediately, in such conditions check for RC handle before
processing pass through command.

Change-Id: Idc8756983adfd12b3871dfe46d5aafbe6c2b6a91
CRs-Fixed: 642934
Merge "Bluetooth: Check RC Handle for processing pass-through Commands."
Bluetooth: Checks connection link type in BLE connection complete callback

This adds logic to avoid calling  resume BLE background connection if
link type is SLAVE.

CRs-Fixed: 635705

Change-Id: Id3cdc7acedb4b91bf6ac589995fb4ce7039effaf
BLE buffer: Handle BLE and ACL buffers separately

Added checks to handle BLE buffers for BLE links and ACL buffers
for BR/EDR links. Currently, there is a logic to check and assign
dedicated buffers for BLE links, but while calculating the transmit
queue of each link, this was not taken into account.

CRs-Fixed: 639353
Change-Id: I8ca41d5737a3031a484854fb61d9a0a532d1f684
Bluetooth: Avoid discon due to timeout by service change indication

This patch includes changes to prevent disconnection due to
gatt response timeout that occurs on certain remote devices
who do not respond to the service change indication.

Change-Id: I545d43ec9167e25537af56cdaaa80d1144d4a8af
CRs-Fixed: 638331
Bluetooth: Add L2cap socket support in BT-IF layer for OOL

- Provides APIs to the Bluetooth JNI for connection and data
  management of L2CAP channel for the obex over L2CAP.

- Registers callbacks with BTA layer.

- Process the events from BTA layer, and passes them to the
  upper layers.

- SDP registration for OPP 1.2

Change-Id: Ie67a87ff6b9c41da8fda2336752f58dd9109d6df
CRs-Fixed: 639499
Bluetooth: Add L2cap socket support in BTA layer for OOL

- Provides APIs to the BT-IF layer for connection and data
  management of L2CAP channel for the obex over L2CAP.

- Registers callbacks with core stack layer.

- Process the events from core stack layer,and passes them
  to the BT-IF layer.

Change-Id: I17591408f28a852de584a2bd074e39fbb8273ebb
CRs-Fixed: 639499
Bluetooth: Set the config params for Obex over L2cap

- Introduce new buffer pool for the Obex over L2cap
  data.

- Set all configuration parameters for ERTM, FCR of
  L2CAP.

CRs-Fixed: 639499
Change-Id: If07da8fcecd643ee843293173e020ff8c03afe2e