BT: HDP: Add NULL check in cleanupApps

Add NULL check for profile Apps data before accessing
them during cleanup.

CRs-Fixed: 611620
Change-Id: Iebc6dc0399ed3d77078962b50550d3080a82644f
Bluetooth-OPP: Avoid IndexOutOfBoundsException if share is zero

This change will avoid IndexOutOfBoundsException if number of sharing
files are zero. Otherwise, Bluetooth application will force close itself
when exception encountered.

CRs-Fixed: 628860
Change-Id: I42473c8ca2d9116c6d57707ab8f3c452d7027e67
Fix to avoid the case when interface is already enabled.

Added BT_STATUS_DONE check in JNI interface loading.
Change-Id: Iccfbe510a91bd94de258bcbe61b4fd6fa9044441
CRs-Fixed: 636497
Bluetooth  Activate/deactivate sink connection

 - provide a native api to send enable/disable

CRs-Fixed: 641042
Change-Id: I0cbbad9f97bdf4e88245b11bc9f7742847374423
Bluetooth: changes for sink initiator role.

 - revert earlier changes to stop sink connection
 - pass connection request for src or sink
 - implement new api in jni

CRs-Fixed: 641042

Change-Id: Ib921e2bdfab385d57c02bc083fc5dc69047ea20e
Bluetooth: Send AT+CNUM response.

Send ok response to remote when current
number returned by phone proxy is null.
Send ok so that remote initiates command again.

Change-Id: Ibd00fd8d9abbac98d315ed31b7bcd43c2e1389bb
CRs-Fixed: 638779
Bluetooth: Map: Fix null pointer exception during mms getMessage

Add change to avoid null pointer exception when mms with null part
element is fetched and also if output/input stream is closed without
validating.

Change-Id: I144377b4a653bc95eb7bdacf43c178aa3cf94ce4
CRs-fixed: 640449
Bluetooth: Avoid waking up the display

Avoid waking up display during bluetooth tx/tx operations.

Change-Id: Ifb2ffa182692a5c53554eaf7c8c4b2d7188c4317
CRs-fixed: 637900
Bluetooth: Set bit for Extended Error Codes.

Extended Error Codes is supported by stack.Set corresponding
bit in HF features.

Change-Id: I94e643fc1a4cf539e04a61fd50ef06be9ca5bbf7
CRs-Fixed: 640432
Merge "Bluetooth: Set bit for Extended Error Codes."
Merge "Bluetooth: Map: Fix null pointer exception during mms getMessage"
Merge "Bluetooth: Send AT+CNUM response."
Merge "Bluetooth  Activate/deactivate sink connection"
Merge "Bluetooth: changes for sink initiator role."
Merge "Fix to avoid the case when interface is already enabled."
Bluetooth: MAP: Provide Unicode support For Map Operations

Provide UTF-8 encoding support in XML building executed
during forming the content of MAP MsgList

Provide UTF-8 encoding support while creating the bMessage
of MAP Message.

CRs-fixed: 637233

Change-Id: I0ba799e5008552fb139ae171e4cb326854bb16d2
Bluetooth: Map: Add support to add CC list recipients in get Message

As per the present map profile email implementation cc list is not
displayed in getMessage response. Add support to send recipients in
cc list of email on getMessage response

Change-Id: If09a245f18f3727ec678308a46d0a43cd2abf0bf
CRs-fixed: 635778
Merge "Bluetooth: Map: Add support to add CC list recipients in get Message"
Merge "Bluetooth: Avoid waking up the display"
Merge "Bluetooth: MAP: Provide Unicode support For Map Operations"