Bluetooth: Add trust device feature.

Add set trust feature where the remote device is marked
as a trusted device for subsequent connection.

Change-Id: Iee491db2e5b6090761a4f42467ac36ed53923fc4
CRs-fixed: 523135
Bluetooth: HID : Add support for Set Idle and Get Idle commands

This patch adds support for Get Idle and Set Idle command handling
in jni and HidService which will be used to provide interface for
sending thse commands to HID Remote device.

Change-Id: I066d47c022905a39c11d365a9d26d128f94fe2f6
CRs-Fixed: 522511
Merge "Bluetooth: HID : Add support for Set Idle and Get Idle commands"
Bluetooth: Connect only A2dp Sink devices.

DUT supports only A2DP source role,it should connect
only with A2DP sink devices.RENDERING service must be
supported by A2DP sink devices.Hence try to connect A2DP
source only with these class of devices.

CRs-Fixed: 507306

Change-Id: I93d9d30185444473e79008b47b607802ec5e7f3e
Merge "Bluetooth: Add trust device feature."
Merge "Bluetooth: Connect only A2dp Sink devices."
Bluedroid: PBAP: SIM Access support.

This patch adds access to support SIM database.

Change-Id: Ica2e3a5c9203634814c0f4063d3f4ab99ff080f5
CRs-Fixed: 509165
Bluedroid : Pbap : Add condition to point to correct phone book

This patch adds a condition for vcard listing to fetch the contacts
from SIM phone book entry insted of main phone book.

Change-Id: I6478b33bf7ac66432ed20100acabc75532849c1e
CRs-Fixed: 509165
Bluetooth: PBAP: Add Filters support.

This patch adds attribute filter support to PBAP. It will allow remote
devices to request the particular attributes.

Change-Id: Ia0a4f55f14925b0cf8d0553c64222d781edef2fd
CRs-Fixed: 509165
Bluedroid: Update PBAP Filter logic to avoid loss of fields.

In PBAP there are filters for unsupported fields. But the logic
to check these has issue. It checks for Attribute string holds
unsupported parameter, rather than begins with.  So if the
field data has pattern matching unsupported field, that complete
attribute are being removed. The current logic fixes the issue.

Change-Id: Iafcc2915a81e3847f7bfe435a3329b708980af6e
CRs-Fixed: 509165
Bluedroid: Handle filtering with multiline attribute

This patch changes implementation so that if any of the
attributes has multiline value associated to it then the
entire value should be filtered out while applying the
filtering.

Change-Id: I286aaf3b7e7aaa6d85c9f0597799616b47bbc8da
CRs-Fixed: 509165
Bluedroid: Modify PBAP vCard filtering logic.

Modify vCard filtering logic to avoid unintended removal of
vCard attribute values. During applying filters do not
remove the entries directly from original vCard, but removes
it from the concerned token, and construct the filtered vCard with
the modified tokens and return the modified vCard.

Change-Id: I348605a9742854da6bd2e2a59167641f379d88b8
CRs-Fixed: 509165
Merge "Bluedroid: PBAP: SIM Access support."
Merge "Bluedroid : Pbap : Add condition to point to correct phone book"
Merge "Bluetooth: PBAP: Add Filters support."
Merge "Bluedroid: Update PBAP Filter logic to avoid loss of fields."
Merge "Bluedroid: Handle filtering with multiline attribute"
Merge "Bluedroid: Modify PBAP vCard filtering logic."
Revert "Added support for Filter parameter for PBAP function PullPhoneBook"

 * Taking upstream version instead.

This reverts commit ade50a8749b03a0ee64c0b1bba4ba911c89a0cd0.
Merge branch 'jb_mr2' of git://codeaurora.org/platform/packages/apps/Bluetooth into cm-10.2