Bluetooth: Register new callback for HCI events callback

As the new callback is added in BT-IF layer, made an
entry for callback with NULL to remove compilation
errors.

Change-Id: If87d4b0102295aac1b51c6625f5842b37b02ac14
CRs-Fixed: 598650
Bluetooth: Synchronise Key release command and Key State.

- Changes done to ignore key release command
  if Key State is not press.

CRs-Fixed: 597795

Change-Id: Ieacb7a8f9dbb9d33616145c2597f2bf3372bdd72
Bluetooth: Remove pending MAP authorization pop up

- If USER turn off BT on DUT before accepting incoming
authorization request for MAP connection, then MAP
authorization pop up should be removed.

-If ACL is disconnected by remote device before accepting
incoming authorization request for MAP connection, then MAP
authorization pop up should be removed.

Change-Id: Ib8068f793eb1b55a155d3ff657efefc40728233c
CRs-Fixed: 597974
Bluetooth: Map: update proper interrupted state during bt on/off

If listen socket creation fails for map services, then update
proper interrupted state. This would avoid the socket creation
failure during subsequent trials. Also cleanup init socket code
to stop trying to create listening socket if adapter becomes null
or if bluetooth is turned off.

Change-Id: Ib562e401370fac1ab85662e54380e9b21927cb15
CRs-fixed: 595064
Merge "Bluetooth: Map: update proper interrupted state during bt on/off"
Merge "Bluetooth: Remove pending MAP authorization pop up"
Merge "Bluetooth: Register new callback for HCI events callback"
Merge "Bluetooth: Synchronise Key release command and Key State."
BT: Ignore dial request from HS when 1st call is dialing/alerting

The patch fixes issue of sending dial request to telephony when 1st
call is dialing or alerting.

Change-Id: Ibc574e64301557363387a6e337ea0f9cce1e249c
CRs-Fixed: 597040
Map: Display mandatory fields in msg listing with 0 parmeter mask

When message listing is done with parameter mask as 0, we should be
listing all the required fields as per map spec. Add change to set
parameter mask accordingly in Bluetooth Map code to be able fetch the
required fields.

Change-Id: I85b71ffd370518ca432907680b4f1933cf398c35
CRs-fixed: 600691
Bluetooth: Prevent scan start if already in progress

The logic checks the number ofscan clients in queue
before starting an LE scan and triggers an LE scan
only if there is only one scanclient in the queue
to ensure that an LE scan is not progress.

CRs-Fixed: 600877
Change-Id: I411ca751cb6c696b62d79f488141b71e5cc34605
Bluetooth: Add NULL check before accessing Profile data

Add NULL check for profile data before accessing them
in case of stopping the profile.

This check is added for A2DP, HDP, HFP-AG and HFP client
profiles.

CRs-Fixed: 597242
Change-Id: I4a1f35842084bc6ae1b496adbe0b20cf7d1d68ef
Merge "Map: Display mandatory fields in msg listing with 0 parmeter mask"
Merge "BT: Ignore dial request from HS when 1st call is dialing/alerting"
MAP: Support MMS pushMessage feature.

Enable MMS push Message feature support.
Parse multi parts in bMessage including text
and attachments as per standard MIME format.

Change-Id: I92d809ac50a592f51ed933d9193907be0e12e496
CRs-fixed: 598010
Bluetooth: Application changes w.r.t. Wipower and Peripheral Services.

Changes needed for Wipower and Periferal support in Bluetooth

CRs-fixed: 587811

Change-Id: Ibfeeec57e6dbd07e4579c6f5f4b6fe41f0e5594b
Merge "MAP: Support MMS pushMessage feature."
Merge "Bluetooth: Add NULL check before accessing Profile data"
Merge "Bluetooth: Prevent scan start if already in progress"
Bluetooth: MAP: Delete Email for valid message hanlde .

Validate message handle in setmessage request from carkit
and allow delete only if message handle is existing in email
database.

Change-Id: Ia90bab88fe4fe500e3055420b4eebf07dc4c530b
CRs-fixed: 606838