Bluetooth: AF Translations

PS3: Trigger Cid

Change-Id: I18617fa131f6851d018a879ef43628d3f284077e
Bluetooth: Changes for concurrent service discovery

The change includes additional log for the
multiple encryption links' race condition
and attempts a fix by searching chars/descriptors
based on connid.

Change-Id: I5152995ef424b643ea9b301993385d971a42ab93
OPP: Set ics format as acceptable shareinbound type

Adding ics format to acceptable inbound type, to be
able to receive these file format from remote device.

Change-Id: Ief9da2c745378ea28fa03da770aee3c8310892c4
CRs-fixed: 570922
Bluetooth: HID: Add support for HID Device Role

This patch adds support for HID Device Role which enables phone being
used as a Bluetooth keyboad or mouse.

Change-Id: I931867442111ad997a34a166c7b2ec1daf317ddd
CRs-Fixed: 573086
Bluetooth-OPP: Handle SQLException while OPP operation

Handle SQLException during updateActiveNotification of OPP
operation.

CRs-Fixed: 568920
Change-Id: I95116a21f0177fdbf3eb0c6c7beb90cd6c264724
OPP: Support for Obex Tx Rx at the same time

This change will allow the OPP Rx to be done even when
Tx is ongoing.

Change-Id: I87a048e8fdb1090bb755fe977901cc6325ce5415
CRs-fixed: 565447
Bluetooth: Include timestamp of FilterPeriodEnd in where clause.

Add change to include the FilterPeriodEnd time stamp provided during
get message listing. This will allow us to fetch the messages which
has same timestamp as filterPeriodEnd.

Change-Id: Idef0034b04ad6f0423c3ebcb01783e617eb0296d
CRs-fixed: 573640
Bluetooth: Reset the alias name on remote dev property change

Reset the alias name on receiving the Friendly name changed
event from bt-if.

CRs-Fixed: 539420
Change-Id: I11549b4a5501eb92500e781bc97b6ec71c6fd598
MAP: Set Empty name or address for unknown values in GetMessageListing.

Set Empty sender or recipient name and address values to indicate
info not available from MSE in GetMessageListing response.
Current implemenation to skip the entire feild in response doesnot
mark the uniformity for values being fetched from telephony or
phone book databases.

Change-Id: I44e2f61572607349ec20ec1efcc6c44abe084b83
CRs-fixed: 569760
Bluetooth: set messageList element to proper value when offset is non zero

When non zero offset is provided to get message listing for any folder,
then message listing element was getting set to null because of invalid
check, leading to null pointer exception.

CRs-fixed: 573631

Change-Id: Ifee42581d937c44eac74c98e7f4469c998c8bd2b
Bluetooth: MAP: Not doing Message listing when proper folder is not set

Add change to do message listing of any folder, only if it is a
subfolder of the current folder and not do message listing otherwise.
Without this change we were able to do message listing of any folder
irrespective of the current folder.

Change-Id: I1c2e703b287ab61fdfb1e852ea82c4d4174bc70b
CRs-fixed: 577982
PBAP: Compare full name instead of substring

Compare full name instead of substring when
returning contact name by number as caller information.

Change-Id: Ia25329a55ac024f46880161964391fde18677d13
CRs-Fixed: 576924
MAP: PushMessage parse BMessage content body till END:MSG.

Parse BMessage body content till line occurence of END:MSG
instead of using  LENGTH parameter from MCE. Handle common IOT
issue where MCE may not set correct LENGTH parameter.

Change-Id: I28748d3e5f31a5f53c2d17a4d58ae11900fedfa2
CRs-fixed: 571933
Bluetooth: Queue USER_TIMEOUT to disconnect MAP OBEX session

A scenario where remote is initiating MAP connection request
to DUT. If User does not accept or reject authorization
request from remote device. As user time-out scenario is
not handled, where MAP OBEX session is stopped. So MAP OBEX
session does not get cleared till BT OFF. So MAP OBEX
connection is failed next iteration onward. Queuing User
time-out(30 seconds) to disconnect MAP OBEX session to
solve this issue.

CRs-Fixed: 579815

Change-Id: Id28920129684ea6932ffb4f95244fa806836e7b3
Bluetooth:Fix to show authorization popup for FTP after PBAP/MAP

A case where PBAP/MAP connection was accepted before requesting
FTP connection from same remote device. So remote device was
authorized for all profiles & FTP connection is automatically
accepted. As PBAP/MAP have it's own authorization/trust mechanism
to store the user choice. So remote device should not be added
into NV trusted list(BD config file) while accepting PBAP/MAP
authorization request to solve this issue.

Change-Id: Icf781cfd93128058722d9f2ee1c070c3c8fe542d
CRs-Fixed: 568389
Bluetooth: Remove remote device from trust list on BOND change

A special case where remote device is paired & authorized by
DUT. Remote device is unpaired by itself & try to connect again.
In this scenario Link key is deleted from remote device. So
SSP is performed again. & remote device bond state is changed
to BOND_BONDING from BOND_BONDED on DUT while SSP, As it was
in DUT BONDED list. So permission/trust info for all profile
need to be false when it's moved to BOND_BONDING to solve the
issue.

Change-Id: Ibf54992e09d5cfcaf36b12eda443daee046d0721
CRs-Fixed: 578523
PBAP: Getting proper filename on Vcardlisting

This change will add a check on strict name checking
on GET operations for phonebook and vcard listing.

Change-Id: Iec4f7dc97a3dd94eb02f40f26cd0f8a7449d5987
CRs-Fixed: 579090
PBAP: Remove initialisation of Missed calls number

Thic change will remove initialisation of Missed calls number
at the time of connection as NewMissedCall number indicates the
number of missed calls that have been received on the PSE since
the last PullPhoneBook request on the mch folder, at the point
of the request.

CRs-Fixed: 583151
Change-Id: I5f769011a34cfe8e7225fca646a58451639dcfa5
Bluetooth: Delay Auto connect profiles.

This change delays the auto connect of
audio profiles to make sure that all the
clients of the Bluetooth Audio services
are ready. This handles a corner case
of BT OFF-ON and auto connect while in
call and makes sure that call indicators
are updated properly.

Change-Id: I3f2703d9d0ba20676a83b4ba3eef9513b5696998
CRs-Fixed: 548493
Bluetooth: Update Signal strength.

This change makes sure that signal
strength is updated properly when
there is no network service.

CRs-Fixed: 574377
Change-Id: I8f2e9fedc4ac6f0d039c55d8211ed96fbe25317d