Allow sending apk files to remote device

Change-Id: Ia31b5e544a00ea7e6dea6459538f8ae5ad4df289
Add null pointer check in A2DPService

A call to the stop() function in A2DPService.java
could cause a NullPointerException in certain events.
This patch adds a null pointer check before a
function call to avoid this issue.

Change-Id: I39b521592d9cc5b910c5ce232d0d8d03389a0391
Orig-Change-Id: I77ee8129c3d81230afc5b59b4cc29e690cbe547a
Author: Thomas Lehaux <thomasx.lehaux@intel.com>
Reviewed-on: http://android.intel.com:8080/102211
Reviewed-by: Poignet, Cedric <cedric.poignet@intel.com>
Reviewed-by: cactus <cactus@intel.com>
Reviewed-by: Bondier, CedricX <cedricx.bondier@intel.com>
Reviewed-by: Boniface, XavierX <xavierx.boniface@intel.com>
Tested-by: Zurmely, PierreX <pierrex.zurmely@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Signed-off-by: Jian Luo <jian.luo@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 85837
Fix another duplicate response bug in AT+CSCS handling.

Also use the code flow of AT+CSCS/AT+CBPS for AT+CBPR handling.

Change-Id: I7d5b4d4d52b190f33784779d5f4dee27b22c23c9
Added support for Filter parameter for PBAP function PullPhoneBook

VW Premium car kit sometimes behaves strangely if it receives entries with unexpected fields.
E.g. it does not like mail addresses with additional attributes.

Change-Id: I6d3145d802ad87e5fb47217a213f9bcb12670f60
Signed-off-by: Martin Gerczuk <admin@android-rsap.com>
Fix signal strength indicator.

Some devices don't check the service indicator, but only the signal
indicator. Don't give the false impression that the network signal is ok
when we're actually out of service for those devices.

Change-Id: I2e24daf13593439cbc23254fb4539cd250dbae89
Fix bluetooth phonebook sync problems on some car kits

Remove spaces from phone numbers synched with carkit bluetooth

Change-Id: I82e72c3fd371ce4a0c62cff3e9317ec8527a1278
Bluetooth: roll back phonebook sync changes

well it fixed for a few carcits the sync but broke it for way
more after going trough all the reports. For now due that we go
into stable direction roll back and we need to check deeper where the
problem is. AOSP did not push this changes trough till now as well

Change-Id: I35fcd6f96359ef1310bfc3c12d9c2859b5e5c301
Bluetooth: Update Signal strength

This change makes sure that signal
strength is updated properly when
there is no network service.

Change-Id: I8f2e9fedc4ac6f0d039c55d8211ed96fbe25317d
MAP: Set Empty name or address for unknown values in GetMessageListing.

Set Empty sender or recipient name and address values to indicate
info not available from MSE in GetMessageListing response.
Current implemenation to skip the entire feild in response doesnot
mark the uniformity for values being fetched from telephony or
phone book databases.

Change-Id: I44e2f61572607349ec20ec1efcc6c44abe084b83
OPP: Handle intent receiver leak for BT TURN OFF.

Mark INBOUND and OUTBOUND active transfer as cancelled
on BT TURN OFF.

Change-Id: I52e6d59ba56e004af2dc25b85975dfeb6c19320a
PBAP: Remove initialisation of Missed calls number

Thic change will remove initialisation of Missed calls number
at the time of connection as NewMissedCall number indicates the
number of missed calls that have been received on the PSE since
the last PullPhoneBook request on the mch folder, at the point
of the request.

Change-Id: I5f769011a34cfe8e7225fca646a58451639dcfa5
Avoid race condition that gets PanService stuck in STATE_DISCONNECTED.

http://b/12788418

Change-Id: I7cc43db047457eb6a4ac501770a714eef0ed6422
Update PAN JNI code to match updated interface definition.

This also fixes some weird internal reordering of arguments. All
of the implementations should match the interfaces now.

http://b/12853951

Change-Id: I019da4892204dd92ebf203e77bdb23af96c57697