Bluetooth: MAP: Close output stream before closing client session

Body field is not added on the put request if we close the client
session before output stream. Hence add change to close output stream
before client session.

CRs-fixed: 623805

Change-Id: I73bbf06ca9bcceb465e196f58d8d4dda19005861
Automatic translation import

Change-Id: Ib5909ca10706f41bb3d51ba2d5e97752dee3d00b
Bluetooth: Prevent race condition when authorizing

Change-Id: Ic875fd619afea5fd36ce9b2f71a91d2d68dbb578
Automatic translation import

Change-Id: I7281414edb4efe7d60d33050974d25ae3247cbc2
bluetooth: avrcp - Respond to PDU 0x16 correctly

Issue: CYAN-4148
Change-Id: I0509334a05a25068c25ea0ae84eb866804c3bba3
Automatic translation import

Change-Id: If4d4b4efcb0f56669b09c8c9d7d0a2014b0e844c
Automatic translation import

Change-Id: Ie878c63a43bfd3d66f9a5362f7743e2b2bf1ea8c
Automatic translation import

Change-Id: I17d4580242b132e9a28d3615fa40de171ca30f3e
Bluetooth: Fix some error messages

Change-Id: I368003da596bfa08e48354404f88b2ae1fbf8bb6
Automatic translation import

Change-Id: Ie780013fadae0b964539759ac0887dea23b37614
Update song start time and current Position

Update song start time and current position only when change in
metadata detected or Audio manager updates the time when playstatus
changes or seek is performed on media player.

CRs-Fixed: 674410
Change-Id: Ib0f1f9a551008084584ccfdcdff302c424d6214a
Bluetooth: Move CAF strings

Change-Id: If0166e83efba37441f271bcd2afd303880af4ceb
Remove duplicate mime type for apk file transfer

Change-Id: I2c3189531bca249783e286dc14a5d17627a3412a
Bluetooth: Delete the pointer to avoid memory leakage

Delete the pAttrs pointer incase of invalid input
parameters

Change-Id: I0da9a804da3462dcd582a9c6d761310282b2db83
CRs-Fixed: 638300
Bluetooth: Update proper delete calls in AVRCP JNI

Avoid delete[] to free the pointers which are not created
by using new[].

Change-Id: I8f03335445b3c1b169c2905ec9daa4ec16dcc13c
CRs-Fixed: 629728
Automatic translation import

Change-Id: I6e384915dc0ea5f05a40298f0a166b3df1529afa
Automatic translation import

Change-Id: I939e14fcc26274df455eec981e21ab990934181b
Bluetooth: Remove Connect time-out in stable state.

Remove connect time-out when moved to
Connected/Disconnected instead of Pending state.
Initiate disconnect on timer expiry.

Change-Id: I687d6916e037c30e6c0619bfe6404ddd4ddfa46a
CRs-Fixed: 678043
Bluetooth: Broadcast Audio Stopped Event.

When remote has suspended A2dp streaming broadcast
audio state as a2dp stopped.

Change-Id: I6389031f364d506d9f4b334f2a81bdef4542fc54
CRs-Fixed: 645135
Bluetooth: Added null check condtion.

Added null check before accessing
mCurrentDevice. Due to delay in broadcasting
A2dp connection states, Bluetooth settings can
query getConnectedDevices when current state is
disconnected causing NPE.

Change-Id: I2a612e05a3c1a830c9f3bda742bff1b32784e51b
CRs-Fixed: 644148