OSDN Git Service
John Huang [Wed, 19 Sep 2012 18:07:36 +0000 (11:07 -0700)]
Merge "Enable Bluetooth sharing of downloaded files." into jb-mr1-dev
Jean-Baptiste Queru [Tue, 18 Sep 2012 19:54:12 +0000 (12:54 -0700)]
Revert "Reference headers in their new location"
This reverts commit
7e2c121e720d9c4f7914df218c30b240662fe0b2.
Wink Saville [Sun, 16 Sep 2012 16:36:30 +0000 (09:36 -0700)]
Merge "Add StateMachine make methods." into jb-mr1-dev
Jean-Baptiste Queru [Sat, 15 Sep 2012 16:23:28 +0000 (09:23 -0700)]
Reference headers in their new location
Change-Id: I45608fe5089492b20d09abeda624b8d32c5343e7
Wink Saville [Sat, 15 Sep 2012 14:59:10 +0000 (07:59 -0700)]
Add StateMachine make methods.
StateMachines must be started before any messages are sent to them
otherwise an exception is thrown.
Bug:
7091976
Change-Id: I05315d45d4d6db42843442b7feb37c665cfabcab
Jake Hamby [Fri, 27 Jul 2012 21:38:32 +0000 (14:38 -0700)]
Enable Bluetooth sharing of downloaded files.
Change BT OPP to open the InputStreams of files to share in the
BluetoothOppLauncherActivity (or BluetoothOppHandoverReceiver
for NFC shares), while the process has grantUriPermission() on
the URI's to share.
InputStreams are saved inside the existing BluetoothOppSendFileInfo
objects, which no longer include the mDestination field because
this isn't known at the time the SendFileInfo object is now created
(before the user has chosen the destination BT device). These
objects are stored in a static ConcurrentHashMap in BluetoothOppUtility
and are removed when the file is closed (on success or failure).
If the user tries to share thousands of files in one batch, we may
not be able to open InputStreams for all of the files in the batch.
In this case, the open should fail gracefully.
Bug:
6808783
Change-Id: I3f3f86d2dc1a78a837aeb6a888f90b26434ba499
Matthew Xie [Fri, 14 Sep 2012 00:38:43 +0000 (17:38 -0700)]
Donot include photo in vard in pbap
Certain carkit abort pbap transfer if vcard includes photo
bug
7070862
Change-Id: Iacd7e20901a7450599e844d1fb34923108e81bdc
zzy [Tue, 11 Sep 2012 00:38:06 +0000 (17:38 -0700)]
fixed bt on off stress test issue
root cause: cleanup stack process overlapped with bt turning
on process sometime. The cleanup() call in adapterservice.java
need to be call from onUnbind() to synchronize the
BluetoothSererviceManager unbindandFinish() call.
bug
7083069
Change-Id: Ib4c64d7e5fc996277278471969f187bb5e915a76
Kausik Sinnaswamy [Mon, 10 Sep 2012 11:41:14 +0000 (17:11 +0530)]
Terminate PBAP service cleanly during BT off
PBAP service runs in a loop of 10 trials to create the RFCOMM listener
thread; this loop is not getting interrupted during BT off, due to which
we end up delaying PBAP stop by 3 seconds (10 * 300ms). The fix is to
check for BT state after RFCOMM listener failure and break out of the
loop if BT is being turned off.
bug
7134544
Change-Id: I81d2a559857eef9138ebca662ea28f1d3e358bb8
Matthew Xie [Mon, 10 Sep 2012 21:10:59 +0000 (14:10 -0700)]
Revert "Terminate PBAP service cleanly during BT off"
This reverts commit
f5d88a7b8659bb9ce49edc4faea6bf56f2158572
Change-Id: I67a4950831dce7392d63edad6f693abcc69d2ffe
Kausik Sinnaswamy [Mon, 10 Sep 2012 11:41:14 +0000 (17:11 +0530)]
Terminate PBAP service cleanly during BT off
PBAP service runs in a loop of 10 trials to create the RFCOMM listener
thread; this loop is not getting interrupted during BT off, due to which
we end up delaying PBAP stop by 3 seconds (10 * 300ms). The fix is to
check for BT state after RFCOMM listener failure and break out of the
loop if BT is being turned off.
bug
7134544
Change-Id: I35db2221be30980bec973253cdd888e0ce8cc36b
zzy [Sat, 8 Sep 2012 00:28:09 +0000 (17:28 -0700)]
fixed local reference leak
Ravi Nagarajan [Wed, 29 Aug 2012 12:29:51 +0000 (05:29 -0700)]
Adjust profile priorities when setting auto-connect
At a given point only one device should be set to have
PRIORITY_AUTO_CONNECT per profile. When setting a device priority
adjust the other devices' priority to make sure auto-connect
is attempted with only one device
bug
7076087
Change-Id: I1e03945a06e7acc901b53f34429194b3c3e76cd7
Syed Ibrahim M [Thu, 23 Aug 2012 14:41:40 +0000 (20:11 +0530)]
Fix for BT crash during CPBR AT cmd processing
Delete the local reference of jstring objects during every callback
for unknown AT command and dial command after JNI calls the Java
methods.
Bug
7044655
Change-Id: I21792b95fbad37c488ec5a1a30521a5413192751
Martijn Coenen [Mon, 20 Aug 2012 19:09:52 +0000 (12:09 -0700)]
Merge "Don't trust length specified by ContentProvider for file transfers." into jb-mr1-dev
Ravi Nagarajan [Tue, 14 Aug 2012 14:18:25 +0000 (07:18 -0700)]
Notify headset of signal strength change
Battery and service state changes were relayed to the stack, but not
signal strength. This has been resolved.
bug
6983415
Change-Id: Ie6fbb108805348e39c9119d028afb834556ae6b0
Ganesh Ganapathi Batta [Wed, 8 Aug 2012 22:14:16 +0000 (15:14 -0700)]
Implement enableNoAutoconnect() for NFC handover
Implementation of BT enable in Quiet mode without initiating auto connect and not allowing
Incoming HFP, A2DP and HID connections.
Change-Id: I857aea8d95677f8287df4641ec0aeae58a9f7a99
Ravi Nagarajan [Mon, 13 Aug 2012 14:51:05 +0000 (07:51 -0700)]
listenForPhoneState only after SLC
Start phone state listener after SLC setup, instead of on
Disconnected SM exit(). On BT OFF, quitNow() forces a SM exit()
which incorrectly started the phone state listener. Additionally
no indicator updates should be sent prior to SLC setup
bug
6976119
Change-Id: Icff2bc52602230b098651225bec92d532f3a3ff9
Martijn Coenen [Thu, 2 Aug 2012 22:08:08 +0000 (15:08 -0700)]
Don't trust length specified by ContentProvider for file transfers.
It seems that the length specified by content providers for images
is often not correct. This happens because applications modify the
images later on with meta-data, etc., but don't update the length
field.
This causes Bluetooth OPP transfers to fail, usually with an
IndexOutOfBoundException. The root cause (wrong size in content
provider) of course needs to be fixed, but we can also make
Bluetooth more resilient to these situations.
Since OBEX needs to know the transfer length
up front, the only other way we have of determining the size
of the content is by opening a file descriptor and getting
its length.
Bug:
6857704
Change-Id: Iaf2304b44e9e81ef6e6ac7e0fe3be84ad31a312f
Ravi Nagarajan [Mon, 6 Aug 2012 12:39:35 +0000 (05:39 -0700)]
Add unbond reason to bond state change intent
HAL sends the status to indicate the reason for bonding failure, if any.
Add this to bond state change intent, so that the Settings app can
display the error dialong, if necessary.
bug
6936335
Change-Id: Ide7c9e497bbfc6428b60c7a6de6e01ca538edfb8
Matthew Xie [Wed, 8 Aug 2012 19:19:13 +0000 (12:19 -0700)]
Merge "Fix for BT turn on/off issues: NPE, FD/thread leaks, ANR." into jb-mr1-dev
Fred [Wed, 1 Aug 2012 04:14:11 +0000 (21:14 -0700)]
Fix for BT turn on/off issues: NPE, FD/thread leaks, ANR.
This fix addresses numerous BT on/off issues found from the CTS test.
Fixed fD/pipe leak in various state machine Looper objects by calling quit() function.
Fixed cursor leak in AtPhonebook.
Change Pbap to stop the RFCOMM listener on the STATE_TURNING_OFF instead of STATE_OFF.
Removed several cleanup() methods causing NPE.
Reduced RFCOMM listener timeout from 3 seconds to 300ms between retry.
bug
6834336
Change-Id: I52423343d8f52f65294af0143f373871a9874d77
Ganesh Ganapathi Batta [Tue, 31 Jul 2012 23:22:32 +0000 (16:22 -0700)]
Implement Profile Auto connection logic
Implement Profile Auto connection logic (moved from Settings App )in Bluetooth APK
to avoid Auto connection not happening if the Settings App is not running
As part of this implementation following features are implemented
1. Auto connection initiation during BT on OFF
2. Profile Auto connection priority management
3. Connecting Missing profile logic
4. Initialize Profile Priorities on Bond State Change
Change-Id: I12b7c190e28f043b4b008c9b48ac7e13aaf178e6
Ganesh Ganapathi Batta [Wed, 1 Aug 2012 23:51:09 +0000 (16:51 -0700)]
Proper update of friendly name for a paired device.
Update friendly name for a paired device by properly initializing mAlias
member of DeviceProperties in Property Changed Callback() for remote device.
bug
6884149
Change-Id: I01d0679af4facfe6e92527f7618f4ff791928d0e
Ganesh Ganapathi Batta [Fri, 27 Jul 2012 18:43:56 +0000 (11:43 -0700)]
Fix typo in PBAP Server name SDP record
Change-Id: Iff48e815987178597d93069ae3874ca903882e37
Ganesh Ganapathi Batta [Wed, 18 Jul 2012 18:27:44 +0000 (11:27 -0700)]
Do not accept connection from remote PANU if the local role is also PANU
Fix for BLTH01537991
Change-Id: Ieea143a5929217c7dc52c541e55ddf57077b244f
Nick Kralevich [Mon, 30 Jul 2012 19:41:30 +0000 (12:41 -0700)]
Explicitly export content providers
In a future version of Android, the default value for
<provider android:exported> will change from true to false.
Explicitly set android:exported="true"
Bug:
3306452
Change-Id: I4df74c627505c596a3bce81a5417d32e5002a75f
Ravi Nagarajan [Fri, 29 Jun 2012 13:49:59 +0000 (19:19 +0530)]
Resolve incoming pairing and connection issue
When the remote side initiates pairing & connection, occassionally
connection is made before the phone has had a chance to do SDP.
In this case, the profile priorities are not initialized, which caused
us to incorrectly reject the incoming connection. Allow connection
if priority is undefined, but device is not unpaired
Change-Id: Icd8257adea19fc9a4d3853cd85da9bd791cfe505
Conflicts:
src/com/android/bluetooth/a2dp/A2dpStateMachine.java
Ganesh Ganapathi Batta [Wed, 27 Jun 2012 23:19:04 +0000 (16:19 -0700)]
Ensure mAddr member of DeviceProperties is properly set with device BD Addr
Change-Id: I5dafb48fc63dadfc5ad60e5a4e9735cf72d56534
Swaminatha Balaji [Mon, 25 Jun 2012 11:04:09 +0000 (04:04 -0700)]
Fix for When Hf is rejected the device should initiate A2dp if a2dp is enabled
Change-Id: I15d3d6c8456e94553f479009c600dca1cd2361ac
zzy [Tue, 26 Jun 2012 22:01:20 +0000 (15:01 -0700)]
Added code to ignore the empty value of remote device property change
Change-Id: I0d6b293c0bf35d9b4a2df00e9b3cd810c4a9b251
Syed Ibrahim M [Thu, 14 Jun 2012 08:37:23 +0000 (14:07 +0530)]
Virtual call implementation
Change-Id: I72a96eedd1cac10a0da7223ebc9b70fd4a21974d
Priti Aghera [Mon, 18 Jun 2012 20:57:50 +0000 (13:57 -0700)]
HDP-App crash fix
Set the channel fd to null in channel state callback if new state is not CONNECTED
Change-Id: Id540d9ca2e20ef3e03b11a61634b8a2cb4e05df1
Ying Wang [Fri, 20 Jul 2012 17:58:46 +0000 (10:58 -0700)]
Import translations. DO NOT MERGE
Change-Id: I1c99fc8291bddc2e9c318e0d7e8d5de516601161
Auto-generated-cl: translation import
Matthew Xie [Wed, 20 Jun 2012 18:23:29 +0000 (11:23 -0700)]
Notify Connection state chnage to AudioManager via an API call
bug
6834913
Change-Id: I58af46710320f3debee1780aeaea7f5548233604
Matthew Xie [Sat, 14 Jul 2012 18:06:59 +0000 (11:06 -0700)]
Remove unused import com.android.internal.telephony.Call
Change-Id: I491dc175b29f98900b79e801ff3fb4f116752668
Matthew Xie [Thu, 12 Jul 2012 22:55:22 +0000 (15:55 -0700)]
Add CONNECTIVITY_INTERNAL permission for PanService
Change-Id: I0e601eecdb1e7f52bc7ada037b1182b1a5a49f16
Matthew Xie [Thu, 12 Jul 2012 01:59:38 +0000 (18:59 -0700)]
Removed onStartCommand().
BT ON/OFF now done via enable() and disable() binder API call.
Also fixed bug with BT OFF if set scan mode times out
Change-Id: Ib88dfc148bb5a24cda1e84a86f044ae85a5a6514
Matthew Xie [Sat, 7 Apr 2012 10:44:13 +0000 (03:44 -0700)]
replace logx with alogx
Change-Id: Iec82cb4545bb26a8aa55dc7d473247396b9fd6e1
Conflicts:
jni/com_android_bluetooth_hid.cpp
Matthew Xie [Tue, 12 Jun 2012 01:50:51 +0000 (18:50 -0700)]
comment out state machine quit call
Change-Id: I0d4f72d50cd981a3c334583948dc0563f0662662
Matthew Xie [Wed, 6 Jun 2012 06:57:59 +0000 (23:57 -0700)]
matt: my fix to get it compile, change logx to alogx, and etc
Change-Id: I0b361ad6ba9a5f6ac4db9203a389ee309b04019a
Kausik Sinnaswamy [Mon, 11 Jun 2012 10:52:41 +0000 (16:22 +0530)]
Add remote device while pairing without inquiry
Change-Id: Ia7d99075b196414b3ded117b323ca5295c2c0b73
Ravi Nagarajan [Wed, 6 Jun 2012 13:56:12 +0000 (19:26 +0530)]
Resolved incoming pairing/connection issue
Sending bond_state_changed and adapter_properties_cb concurrently was
causing a race condition, which resulted in the BOND_STATE_CHANGED intent not
being sent. This caused the Settings to not show the newly bonded
device. This has been resolved by letting BondStateMachine manage
the mBondedDevices
Change-Id: Ieba39602436370fd9a87c3aa938ff3bd724c68cf
Sreenidhi T [Tue, 5 Jun 2012 10:09:06 +0000 (03:09 -0700)]
Additional check included for the case when PhoneApp queries Bluetooth Audio state before the stack responds for the sco disconnect issued previously in AudioOn state.
Change-Id: I8b85fc9d3b4463205f01dfaa3bb309a3dbeb8231
Syed Ibrahim M [Thu, 31 May 2012 10:30:04 +0000 (16:00 +0530)]
Fix the issue where HID connection was failing on first connection randomly.
Made changes in HidService to send a STATE_CONNECTING broadcast when HIDService.connect() is invoked;
Also before rejecting the incoming connection, check if the connection is transitioning from STATE_DISCONNECTED to STATE_CONNECTED and then only do a disconnectHidNative(). The normal flow of HID connect would transition from STATE_CONNECTING to STATE_CONNECTED
Change-Id: Ia416e3a70fc6c3561c3530091691367c5da2674c
Fred [Fri, 25 May 2012 17:56:18 +0000 (10:56 -0700)]
Fixed PBAP to use simple pairing instead of numeric comparison (same as before).
Also, escape special characters in vCard-Listing XML object
Change-Id: I32eb126f3dba4b35af39e6e0636f2f7f7e8d94a8
zzy [Fri, 25 May 2012 23:40:27 +0000 (16:40 -0700)]
Added code to cleanup connection state when bt off
Sreenidhi T [Mon, 21 May 2012 10:39:22 +0000 (03:39 -0700)]
Changing the order of notification of connection state change, as it was causing a race condition, with the UI not being updated with the correct connection state.
Change-Id: I6f4c75e4eac4ae798cb7918a4f1b7458e1eaa4b0
fredc [Sat, 19 May 2012 00:42:09 +0000 (17:42 -0700)]
Fixed displaying images in pbap browse and pull when configured
Change-Id: I8315d4db76d7cbfeaefe4187100984d12bd952ed
Kausik Sinnaswamy [Fri, 18 May 2012 07:56:29 +0000 (13:26 +0530)]
Ensure that A2DP stream is suspended during Voice Dial when SCO
connection is established. This is needed to be compliant with the SIG's
AV+HF whitepaper
Change-Id: Ie072782ea70de0f1b13c6cf8bfcb88c072a1d093
Priti Aghera [Tue, 15 May 2012 20:29:42 +0000 (13:29 -0700)]
Fix for force closing HDP app: Included review comments
Included a callback to linkToDeath and notify the HealthService when BluetoothHealth is dead
Change-Id: Ie34a391f78c4fba0a74bcefd3dedccaa63f7bba3
Swaminatha Balaji [Tue, 15 May 2012 09:59:35 +0000 (02:59 -0700)]
Fix for A2dp/hf connection happening even when profile is disabled in Settings
Change-Id: I32145db12e0107b858e2e25ad1ae6cba6eadb55d
fredc [Fri, 11 May 2012 05:07:32 +0000 (22:07 -0700)]
Added support for enabling/disabling profiles
Change-Id: I819ca7920d9d866bd3aca88d4365a18e2369ee81
Kausik Sinnaswamy [Mon, 14 May 2012 11:59:22 +0000 (17:29 +0530)]
Fix to ensure that we are able to pair with a device that was just unpaired. The fix was to clear a boolean variable which was causing some stale data to be maintained
Change-Id: Iaad0e21794b0b6e47d12c837ef36e026b6ece655
Sreenidhi T [Mon, 14 May 2012 09:32:30 +0000 (02:32 -0700)]
Change done to clear mUuid - local copy of Uuid. If not cleared, the cachedBluetoothDevice issued a connect using the local cached copy of uuids, without waiting for the ACTION_UUID intent. This was resulting in multiple calls to connect().
Change-Id: Ida6fd2e805dee8c19b4d7d656b4102891f51fd00
Priti Aghera [Sat, 12 May 2012 02:05:04 +0000 (19:05 -0700)]
Fixed HDP Disconnection issue. Included channel to list of channels when channel state callback is received
Change-Id: Icd361a3f19b883b3cca27fe9eb0cafc3b969290b
fredc [Mon, 7 May 2012 21:20:35 +0000 (14:20 -0700)]
Added PBAP support for fetching owner vcard info from phone's profile. Added PBAP image support
Change-Id: Ieb2993c9505185d4f85cbbf6b5c554936618cff0
fredc [Wed, 9 May 2012 23:54:51 +0000 (16:54 -0700)]
Moved BluetoothAdapter.ACTION_STATE_CHANGED broadcast from AdapterService to BluetoothManagerService
Change-Id: Ic9911359c1d9e04a5d803807ea7cf4ad39616960
fredc [Mon, 7 May 2012 07:10:27 +0000 (00:10 -0700)]
Fixed memory leak in Binder objects from repeatedly turning on/off Bluetooth
Change-Id: Ibee5382816d47b1e9b846461942a9daccc4210a7
Sreenidhi T [Tue, 8 May 2012 10:19:54 +0000 (03:19 -0700)]
Changes done for disconnecting sco connection based on disconnectAudioNative() return status, instead of waiting till BTA_AG_AUDIO_CLOSE_EVT is received. The delay in disconnecting sco was causing audio to be routed to earpiece instead of speaker, when selected from incall screen.
Change-Id: I307c3e9c114676649750cb64f1043fc7fe79d71b
Sreenidhi T [Fri, 27 Apr 2012 14:11:20 +0000 (07:11 -0700)]
Added AT+CPBR support
Change-Id: Ice860d8f97350d805a5478e94a27ae19cf42dafd
zzy [Fri, 27 Apr 2012 19:14:11 +0000 (12:14 -0700)]
Added code to turn off pan connection when tethering state changed
fredc [Thu, 26 Apr 2012 05:43:51 +0000 (22:43 -0700)]
Backed out workaround for RFCOMM socket close issue when BT is turning off
Change-Id: I793fa2a0fa0127b6ff70aeb448c97c3cc9154d6f
fredc [Thu, 26 Apr 2012 01:27:04 +0000 (18:27 -0700)]
Fixed Bluetooth on/off issues. Removed singleton instances causing issues when services reload. Updated adapter state machine
Change-Id: Ie1ff4284f507c7da102569f3c0acfd55612a5f6b
fredc [Tue, 24 Apr 2012 18:51:48 +0000 (11:51 -0700)]
Fixed exception in BondStateMachine when quit message occurs. Fixed exception in OPP when remote does not accept incoming request.
Change-Id: Ibb43a26ee0ac62967518468d243880a0af987ba0
Ravi Nagarajan [Tue, 24 Apr 2012 08:48:02 +0000 (01:48 -0700)]
Handle NREC. On connect, enable echo cancellation locally, headset will then override it
Change-Id: I8fca1e82d1457b47122c17393ffbff362e1f3134
Kausik Sinnaswamy [Wed, 4 Apr 2012 06:39:10 +0000 (12:09 +0530)]
Added ACL connect/disconnect state callbacks
Change-Id: Ibd44de8601521a11b106711ccad9261fb40beca8
Ravi Nagarajan [Fri, 20 Apr 2012 11:54:29 +0000 (04:54 -0700)]
On disable send the disable event to stack right away, as the stack will take care of tearing down the active connections. ALL_DEVICES_DISCONNECTED was not being sent (as no profiles handled it), causing 3 second delay on BT off
Change-Id: I8aa83f3cd2019f521d5522e9455303a413dddcc1
Priti Aghera [Sun, 22 Apr 2012 06:05:17 +0000 (23:05 -0700)]
Fixed random pin generation for pairing with HID keyboard
Change-Id: I7e6fd39289c6c5ebefd94f45e24de86e6aeaa625
fredc [Thu, 19 Apr 2012 07:58:43 +0000 (00:58 -0700)]
Fixed BT on/off issue
Change-Id: I47cbac9fc694d5604a664f20170eeed90eeee8e6
Conflicts:
jni/com_android_bluetooth_btservice_AdapterService.cpp
Harish Paryani [Fri, 20 Apr 2012 22:02:58 +0000 (15:02 -0700)]
Added a comment
Change-Id: Ia52a0f58ee2085f3452877e23a591dcd842bafac
Harish Paryani [Fri, 20 Apr 2012 21:38:31 +0000 (14:38 -0700)]
Corrected a comment
Change-Id: I365bf2dd835385629b7e7bbff649e9fdd6646db8
Ravi Nagarajan [Thu, 19 Apr 2012 08:15:47 +0000 (13:45 +0530)]
Connection state change has to be handled in AudioOn state. Some headsets send RFCOMM disconnect prior to disconnecting the SCO. In this case the state machine has to handle the connection state change
Change-Id: Ib80a49cbd959055624baae6e5a35022c628f4bba
Ravi Nagarajan [Thu, 19 Apr 2012 17:40:43 +0000 (10:40 -0700)]
Memory profiling changes : Updated the Bluetooth code to handle cleaning up of object references (context, handlers, and collection objects ) during service cleanup.Memory profiling changes : Updated the Bluetooth code to handle cleaning up of object references (context, handlers, and collection objects ) during service cleanup.
Change-Id: I2b0235f71c1feaf32215b2aaf89a2e06d8fa7d73
Kausik Sinnaswamy [Thu, 19 Apr 2012 18:54:28 +0000 (00:24 +0530)]
Added support to handle A2DP audio state changed events and broadcast
A2dp API intents
Change-Id: I1938e5e0acbbaf602239e14e1dfd3c890712930a
Ravi Nagarajan [Wed, 18 Apr 2012 09:15:27 +0000 (14:45 +0530)]
Handle the scenario where the phone number is empty. CLCC should not send number & type if number is NULL
Change-Id: I5a5bde4f1493d05f02ea9246e36b5d849e96bef2
Kausik Sinnaswamy [Tue, 17 Apr 2012 08:09:21 +0000 (13:39 +0530)]
BT icon not getting updated on profile connection due to incorrect handling of the prevState
Change-Id: Ibd3836047faebcaacb335898cc3d7392ab7571f4
Kausik Sinnaswamy [Mon, 16 Apr 2012 11:11:08 +0000 (16:41 +0530)]
Clear BT Interface pointer during cleanup for BT on/off cycles to work
Change-Id: I89cdf7714c78b2b8dcbcdc6e78cd2500f85df986
fredc [Sun, 15 Apr 2012 22:19:37 +0000 (15:19 -0700)]
adapter non persistent service. Fixed null exception when profile services connect/disconnect
Change-Id: Iefafd1115471256d3107f039897e2af16077cdae
fredc [Thu, 12 Apr 2012 07:18:52 +0000 (00:18 -0700)]
Non persistent adapter service
Change-Id: I65e1c18e2899cea0a1e5c0102c4d24d39dce0249
Conflicts:
jni/com_android_bluetooth_hdp.cpp
jni/com_android_bluetooth_hid.cpp
Conflicts:
jni/com_android_bluetooth_hid.cpp
Priti Aghera [Wed, 11 Apr 2012 22:29:22 +0000 (15:29 -0700)]
Patch for inconsistent pair-unpair state
Change-Id: I356cd978c6b30b415a94267c9e535dc0297d6540
Syed Ibrahim M [Wed, 11 Apr 2012 18:16:16 +0000 (11:16 -0700)]
Fix for memory leak in AdapterSertvice.cpp : The native jobjectArray and jintArray instances are being declared and de-referenced in adapter_properties_callback() and remote_device_properties_callback() methods but is being initialized in get_properties() method. Becasuse of this, when the get_properties() method returns, VM looses reference to the native instances and hence leading to memory leak.
Change-Id: I48944887903a492a40cb95f5f79a56b9d58f85fa
Ravi Nagarajan [Wed, 11 Apr 2012 07:44:49 +0000 (13:14 +0530)]
AT Response needs to be send for CNUM
Change-Id: Ia6aa0e91bc42b9a77143087f65b95c81117b9e3c
Priti Aghera [Wed, 11 Apr 2012 03:37:23 +0000 (20:37 -0700)]
Patch to fix getBondedDevices and inconsistent pair state
Change-Id: Idaf2a18dcaaaca422d3d5ee9245dbfa75cbbb96c
Priti Aghera [Mon, 9 Apr 2012 19:59:30 +0000 (12:59 -0700)]
HID-PTS:Included API and calbabkcs for hid pts tests
Change-Id: I7f3b19dbcda24dbb0cd4700a54f7cd05e84d3745
Kausik Sinnaswamy [Mon, 9 Apr 2012 14:32:49 +0000 (20:02 +0530)]
Improve BT enable/disable stability under stress tests
Change-Id: Ie6323a225b5e1ccd1ad9f65e90b144c93b957a8b
Ravi Nagarajan [Mon, 9 Apr 2012 13:07:15 +0000 (18:37 +0530)]
Implement the getDevicesMatchingConnectionStates for A2DP
Change-Id: Icf5b14d13c4ee6564876aac529e992a22747ac41
fredc [Fri, 6 Apr 2012 09:12:06 +0000 (02:12 -0700)]
Added support for BluetoothDevice.fetchUuidsWithSdp()
Change-Id: Icd260b0cafd7fee72a7ad0275b62052257c6fc13
Srikanth Uppala [Wed, 4 Apr 2012 10:33:43 +0000 (03:33 -0700)]
Fix discoverability timeout issues. (a) implement timeout logic (b) persist 'never timeout' after reboot (c) code cleanup
Change-Id: I9313277c39c69f90d0b0556cf24d9c30a774a0a6
Priti Aghera [Wed, 4 Apr 2012 19:32:12 +0000 (12:32 -0700)]
Fixed checkCallbck thread so that callback env is always intitialized
Change-Id: Id959c99a0aa7823d36a0437d0b59972052f3edb9
Matthew Xie [Wed, 4 Apr 2012 08:03:50 +0000 (01:03 -0700)]
check device.mAlias null case before copying to it
Change-Id: I705126ce11272d9c3a5577c0266982a6478e8a87
fredc [Sat, 31 Mar 2012 06:27:24 +0000 (23:27 -0700)]
Initial checkin of OPP and PBAP
Change-Id: Ie43a26874bd5f0c00d69c2ce02430f4a16da327a
Syed Ibrahim M [Wed, 4 Apr 2012 06:51:13 +0000 (23:51 -0700)]
Updated the AdapterState class to handle persisted Bluetooth setting after AIRPLANE MODE OFF event
Change-Id: I5e1ca111b72ff49498e87149c32769997e545c54
Matthew Xie [Wed, 14 Mar 2012 00:24:54 +0000 (17:24 -0700)]
initial check in of rfcomm socket implementation Author: Zhenye Zhu, Matthew Xie
Change-Id: Ie3ab12c3bafc0a44e378a31c426c5eb41192f154
Matthew Xie [Fri, 23 Mar 2012 00:32:29 +0000 (17:32 -0700)]
Initial implementation of hdp service and jni
Change-Id: Ieca906080835098383cabbc13fa914363459f555
Kausik Sinnaswamy [Tue, 3 Apr 2012 10:01:12 +0000 (15:31 +0530)]
Fixed incorrect handling of the RSSI during inquiry which causes the devices to not get sorted properly.
Change-Id: Ib4eca5405a3393aef79f43943853adf76da23e76
Ravi Nagarajan [Fri, 30 Mar 2012 10:11:43 +0000 (15:41 +0530)]
ATD commands have a trailing ';'. Remove the trailing ';' prior to dialing a call. Else a send tone popup is received.
Change-Id: Icbd53166001d3be102bac6a8d2f782cb22c4dc56
Sreenidhi T [Fri, 30 Mar 2012 08:26:34 +0000 (01:26 -0700)]
Fixed the pairing variant check typo.
Change-Id: I1a835531bc35cc6b1a178a0d131a86715df6f3f0
Ravi Nagarajan [Wed, 28 Mar 2012 13:41:30 +0000 (19:11 +0530)]
Resolved HSP PTS issues. When call is active, and CKPD is received: 1. If audio is not ON, audio will be enabled 2. If audio is ON, call with be disconnected (fixed a typo here, which answered the call, instead of hangup)
Change-Id: Ib60f7109f9fe982523c3db68ea6014c25bad8262
Ravi Nagarajan [Tue, 27 Mar 2012 14:47:36 +0000 (20:17 +0530)]
Integrate HFP with VR app. Handle both cases where VR is started by peer as well as launched from the phone
Change-Id: Icf2922f4caf20190fdb3f0afa2ddd19d1852c4fb