Bluetooth: Check for device connection state.

 - Before storing call states check for device connection state.
 - When no device are connected getCurrentCalls returns null

Change-Id: I7211085fabb738267ca7e2524db976e8dc9a568e
Merge "Bluetooth: Check for device connection state."
FTP: Update isWaitingAuthorization as FALSE when user presses cancel

This patch updtes the value of isWaitingAuthorization to FALSE when user
presses cancel. Without this, authorization state was not correct in
timeout, and cancel scenarios leading to authorization popup not being
received at ftp layer which prevented new FTP connection until BT off and on
was done

CRs-Fixed: 753197
Change-Id: I685fdcc7aba54d3954c8a99a7fbe86e2da2e7773
Merge "FTP: Update isWaitingAuthorization as FALSE when user presses cancel"
HID-C: Update report id to pass PTS Teest cases

This patch updates report id for Keyboard and Mouse to get PTS test
cases passed. PTS is not reading the report id from report descriptor
but using values of 1 and 2 resp for Keyboard and Mouse to check input
reports recevied from Device. To get PTS test cases passed, report id
is now updated in sdp report descriptor of HID Device.

Change-Id: I422630f78a727fe2090afcbbe1a0c57bebabc446
CRs-Fxied: 753936
Bluetooth-Wipower: Avoid advertisement on USB connect.

Following changes have been made:
a> Advertisement seen after USB connection, Charge complete ensures
   power apply event is only triggered on 600ms long beacons.
b> Limited mode advetisement interval is reduced to 5seconds.
c> NULL validation been made to avoid unnecessary crashes.

Change-Id: Ie9e31a905674b98a429dca5a25910d62a9f51150
CRs-fixed: 749930
Merge "HID-C: Update report id to pass PTS Teest cases"
Merge "Bluetooth-Wipower: Avoid advertisement on USB connect."
HID-C: Fix KW issues in hiddtestapp

This patch fixes P1 KW issues in HID Client Test App.

Change-Id: I040dde43ee5cfb4a858f8f513aa3310beca66c08
CRs-Fixed: 740857
Merge "HID-C: Fix KW issues in hiddtestapp"
SAP: Klocwork issue

This change will fix the Klocwork issue coming
with respect to RfcommInputStream in SAP.

Change-Id: I29fc19e6b44b5eb35999111d45327b6cd4251ddb
CRs-fixed: 758581
PBAP C: Fix klocwork issue

This change will fix the klocwork issue coming with respect to
BluetoothPbapTestActivity.

Change-Id: Iffc45dc24796e718fc75c1d2c55743c871dd9839
CRs-fixed: 758578
Fix makefile guard

Change-Id: I783c112f522fc205d65152e741e06f05311fd72a
Revert "Bluetooth-wipower: Enabling A4WP Profile."

This reverts commit 83d78f5f6ef3c98cee35f0edc97271472ea07ec2.

Change-Id: I0241676da99c11014dcd4b4dd98acbb1d1d722e8
Bluetooth: Fix KW issues for DUN profile

This patch fixes P1 Klockwork issues in DunService.

Change-Id: I11f724451858d51825ad1a1d8b9dc1fd5ef21c20
CRs-fixed: 759267
FTP: Fix klockwork reported issues.

Fix NPE and RLK issues reported
from klockwork.
CRs-fixed: 758708

Change-Id: I017b1e8b954239cff377ca3e68d6737e32d53b2c
Merge "Bluetooth: Fix KW issues for DUN profile"
Merge "SAP: Klocwork issue"
Merge "PBAP C: Fix klocwork issue"
Merge "FTP: Fix klockwork reported issues."