Bluetooth: Disconnect SCO for In-Band Ringtone.

 -Disconnect SCO when remote sends RING indication
  even after disabling in-band ringtone.

Change-Id: I6955de8a7dd192aea492b768dd80343a32ca1cc0
CRs-Fixed: 751075
MAP: PushMessage Email parsing issue

Handle illFormated BMessage email parsing
issue for not rfc822 complaint body format.

Change-Id: I0370d63f0042ce59a947dcc72d19f7c1ec8ea3bb
CRs-fixed: 752501
Bluetooth-OPP: Start Notification when transfer starts

Notification thread will start when there an ongoingtransfer and
terminate when transfer is finished. Otherwise, new thread will be
created at every 1sec.

CRs-Fixed: 745331
Change-Id: I287b1b4e6c92e260cae2a931f2e6d5c0a08823ac
Bluetooth: Validate SCO device.

This change makes sure that active
SCO device is vaidated before using it
to send the volume changed event to stack.
A NPE happened when audio updated the SCO
volume changed event at the time when
SCO was disconnected and the SCO
active device was null.

Change-Id: I56a2b05a832ae01dad9f325baad79fd46640c81c
CRs-Fixed: 752481
Bluetooth-OPP: Monitor display status during transfer

Check the status of the display during ongoing transfer to avoid
creating new update threads for updating the transfer progress if
display is off. Otherwise, power consumption will increase even
though display is off because of starting new thread every one
second.

CRs-Fixed: 745331
Change-Id: I862a163d31cf9a174e907ccb48b92e7cf77b4441
Bluetooth: Allow all pass filter if filter value is empty

This change ensures that the ALL pass filter is created only
if the filter size is 0 or empty and removes incorrect logic
that prevents adding more than 2 filters for batch scan or
regular scan

CRs-Fixed: 752797
Change-Id: I43502267bfc2c303ff0ca60cf9498eae04953ce9
Merge "Bluetooth: Validate SCO device."
Merge "Bluetooth-OPP: Start Notification when transfer starts"
Merge "Bluetooth-OPP: Monitor display status during transfer"
Merge "MAP: PushMessage Email parsing issue"
Merge "Bluetooth: Disconnect SCO for In-Band Ringtone."
Merge "Bluetooth: Allow all pass filter if filter value is empty"
MAP: Fix sent and delivery pendingIntent updatation for pushMsg

Set unique request code for PendingIntent.getBroadcast to get
the updated info of message handle(s) for pushMsg multiple
recipients case.

Change-Id: Ib36384734a0a8d534acab4a052378ffcbb09b4b1
CRs-fixed: 749034
Fix to avoid the invalid state of profiles

Due to STOP_TIMEOUT followed by ANR crash, we need to
kill the process similar to DISABLE_TIMEOUT case.

Change-Id: I89cc46481610457142b479acb68de224b1eecda3
Merge "MAP: Fix sent and delivery pendingIntent updatation for pushMsg"
Bluetooth: Cleanup the handler threads properly

Cleanup the handler threads in Advertisementmanager
and ScanManager so that there are no resource leaks

CRs-fixed: 749335

Change-Id: Ia51899f449d57c1ef68a9516b8472d1fd492572b
Bluetooth: NPE and Memory leaks.

Fix NPE and Memory leak identified by
static analysis.

CRs-Fixed: 747566
Change-Id: If73882341f7dfb2aaa2756be6ebbbb96fb779085
Properly handle NowPlayingList Browsing commands

Properly handle NowPlayingList Browsing commands
by ensuring the following:
  - Change data type to store Max value of End index.
  - Change implementation to properly handle request
    for any un-supported attribute.
  - Properly store and use start index offset while
    responding with items in NowPlayingList.

CRs-Fixed: 753306 753307 753310

Change-Id: Iccce0ab0577277ebc5107c4e52ef1013eaeaeab3
Merge "Fix to avoid the invalid state of profiles"
Merge "Bluetooth: Cleanup the handler threads properly"