summaryrefslogtreecommitdiffstats
path: root/btif
Commit message (Collapse)AuthorAgeFilesLines
* Fixed the issue that local adapter name cannot be changed and lost last ↵zzy2012-08-292-19/+21
| | | | | | | | | bonded device 2 Root case: the adapter name property set/get with wrong section & key; The end condition of the loop to load bonded device is wrong removed the wrong return value check when loading blacklist Change-Id: Ib02d472311cd872befd17e6d2445f649f53f02fb
* Merge "fixed the issue that remote unpaired device not removed from config ↵Matthew Xie2012-08-291-0/+1
|\ | | | | | | file" into jb-mr1-dev
| * fixed the issue that remote unpaired device not removed from config filezzy2012-08-291-0/+1
| | | | | | | | | | root cause: forgot to remove the device from storage when bound is canceled Bug 7077419
* | Turn on NUMLOCK states for HID KBs without NUMLOCKSyed Ibrahim M2012-08-292-8/+208
|/ | | | | | | Set NUMLOCK state for HID keyboards without NUMLOCK key to be ON so that the numeric keypad can be used. Change-Id: Ib9811d55cc62ba380c0418f0ac9ff3827b9a3c8a
* Log DM eventsRavi Nagarajan2012-08-283-1/+35
| | | | | | Add strings for DM event Change-Id: I800780c181dd51cbf9bb037690ad167a5f8bf363
* Added new storage code and bluez configuration migration supportzzy2012-08-2713-847/+2143
| | | | | | | | | | Filter out hid device from bluez migration. Change-Id: I8b5eb29f37ca37e97b728f69063266a1b0a61eb8 Conflicts: main/Android.mk
* Null terminate Local name before sending to stackGanesh Ganapathi Batta2012-08-251-2/+9
| | | | | | | | Ensure that Local name string is always Null terminated when sending it to BT stack from BTIF layer Bug:7027639 Change-Id: I319642d6073d4178bd34ca82431c4bda16270474
* Ignore AVRCP Pause command from carkits right after the callGanesh Ganapathi Batta2012-08-241-9/+10
| | | | | | | | | Certain carkits (e.g Audi MMI 2801)send AVRCP Pause command right after the call if there was an active music streaming when the call was answered. This command needs to be ignored as Phone/MediaPlayer will take care of music Play/pause after the call based on the state of the streaming before the call Change-Id: Iddb50089bff0f54bc3ad9665f95e64d3083c568a
* Do not send Bond state change evt after SDP completion if security upgrade ↵Ganesh Ganapathi Batta2012-08-231-1/+6
| | | | | | | | | is in progress In mid of security upgrade, sending BOND_STATUS_BONDED to java dismisses Pairing confirmation dialog and results in security upgrade failure. Change-Id: If2a3858c6811eaa243f1c67d055862a634ccbb45
* Remove attr_mask field from BTA_HH_ADD_DEV_EVT cbSyed Ibrahim M2012-08-231-1/+0
| | | | | | | | Remove attr_mask field from bta_hh_api.c and bta_hh_act.c for BTA_HH_ADD_DEV_EVT callback as stack updates the attribute mask to the stack callout function bta_hh_co_open() Change-Id: I1e450a210a63359c7ae30551fd3c468f0e109fda
* fixed the second reconnect issueSen-Der Huang2012-08-211-39/+48
| | | | | | | The problem was due to incorrect loading of the MDL configuratoion The issues is fixed after loading the MDL configiration in the right order Change-Id: Id33f680e089e71a10f9dd00163f931daa277b021
* Modified HID host to use kernel UHID driverPriti Aghera2012-08-172-110/+104
| | | | | | Included more error checking and removed unused code Removed header file as the header file will be included in kernel Change-Id: I3086d6520fc764b73e0e740dadaa64a9cdc11945
* Enhanced bluetooth HAL with DUT mode APIsKausik Sinnaswamy2012-08-134-5/+138
| | | | | | | These APIs are needed to allow the bluetooth chip to be put into DUT mode so that RF/BB BQB tests can be run Change-Id: Ie5be00da567bc94173f35b098abcaf6f6603a129
* Send auth fail for both auto & non-auto pair triesRavi Nagarajan2012-08-091-1/+2
| | | | | | | | | Both when auto-pair attempts exceeded or when auto-pair was not attempted, but authentication failure was observed, send auth fail to upper layer bug 6936335 Change-Id: Ieafd0c6bbc57fb36cf4c2c450556e4df7ec23a1a
* Fix issue with passing wrong str len to java layerGanesh Ganapathi Batta2012-08-092-3/+3
| | | | | | | Send only length of string to Java instead of length +1 from btif for local Bluetooth name, Remote name and Friendly name for paired devices. Change-Id: I4e822db62eb2affaadad283c6ceb2a368e3b107c
* Fix for updating correct COD value after pairingSyed Ibrahim M2012-07-251-20/+19
| | | | | | | Set the correct pointer to properties[] array before sending HAL callback for remote_device_properties_cb Change-Id: I199566d5f4b5997aad6a5b2ca83b67c9b1bd108b
* Handle RC_Close while AV_Closing to cleanup uinputKausik Sinnaswamy2012-07-251-0/+5
| | | | | | | | While AV disconnection is in progress, we need to handle the RC_CLOSE event from the stack to trigger the uinput cleanup. Otherwise we would leaking uinput FDs. Change-Id: I9e37eef7b1c0fa0d56e809f1bf5686235f782cb5
* Fix for carkits that send PLAY without AVDTP STARTRavi Nagarajan2012-07-251-0/+7
| | | | | | | | | | Some carkits after send AVDTP SUSPEND right after RC PAUSE Per the whitepaper, the device sending AVDTP SUSPEND should send AVDTP START. However a few carkits send AVRCP PLAY without sending AVDTP START. Added a workaround to reset the remote suspend flag when an AVRCP PLAY is received Change-Id: If12e55b4d905b03890c69c2137f363986482ab1a
* configure avdtp signalling timeout to default value (4 secs)Mattias Agren2012-07-2514-4/+4
| | | | | | | | | | | also added mutex protection for any a2dp control path signalling to ensure only one outstanding request at a time Change-Id: I06d95793a8632f6a8baec967a1d8440ecce8a65d Conflicts: audio_a2dp_hw/audio_a2dp_hw.c
* fix strncat overflow compiler errorMatthew Xie2012-07-141-1/+1
|
* make HAL_MODULE_INFO_SYM non constMatthew Xie2012-07-141-1/+1
|
* replace logx with alogxMatthew Xie2012-07-1417-77/+77
| | | | | | | | | | | | | | | | | Conflicts: btif/src/btif_core.c btif/src/btif_dm.c btif/src/btif_hh.c btif/src/btif_sock.c gki/ulinux/gki_ulinux.c hci/include/bt_hci_bdroid.h hci/src/bt_hci_bdroid.c hci/src/btsnoop.c hci/src/hci_h4.c hci/src/userial.c vendor/libvendor/src/hardware.c vendor/libvendor/src/upio.c
* Send SCO_AUDIO_CONNECTING on connect_audioKausik Sinnaswamy2012-07-142-0/+35
| | | | | | | | This translates to AUDIO_STATE_CHANGED intent with state STATE_AUDIO_CONNECTING which is needed for AudioService/AudioManager to suspend music Change-Id: I1293c105aaf1486f046620d5778c680908aad362
* resubmit code-cleanup changes lost in gerrit mergeSrikanth Uppala2012-07-145-156/+4
| | | | Change-Id: Iebc520d9b10ef220a83a16ff55efa46b4c5a0d27
* Handle AG SLC setup timeoutRavi Nagarajan2012-07-141-0/+4
| | | | | | If the AG SLC is not setup within 10 seconds, disconnect the link Change-Id: If60338e821e575bf46bb81a5f3a640b7d530eb2f
* Notify bond state change prior to UuidsChangedRavi Nagarajan2012-07-141-6/+10
| | | | | | | | UuidsChanged event will force the Settings app to fetch the bonded devices list. Thus, bond state change event needs to be sent prior to sending SDP data (uuids) Change-Id: I15c420f477c89780022c28b47a3f7c1cd1b20aeb
* Fixed rename issuePriti Aghera2012-07-141-1/+2
| | | | | | Unknow characters were added while storing adapter name to storage sonetimes Change-Id: I081942cfb7be93cdbe0f5cd3d9fc9edef333a794
* Send PAN disconnecting event on local side disconnect initiationKausik Sinnaswamy2012-07-142-1/+33
| | | | | | | When the local side initiates disconnection, bluedroid should send diconnecting event, otherwise the instrumentation tests do not pass. Change-Id: Ic21a905407814c2117c04044c2799ea17a16d33b
* Handle service discovery failureRavi Nagarajan2012-07-141-4/+7
| | | | | | | | | For HID connection, hid and sdp connections could be attempted at the same time. Some devices, that are short on resources, do not handle this well, and reject our SDP L2CAP connection. SDP discovery failure was not handled, leading to GKI exception. This has been resolved Change-Id: Ib49d66c62a2d05a83b44b733d3c9c4259b5d4c6f
* Send bond_state_bonded only after SDP is completeKausik Sinnaswamy2012-07-141-1/+9
| | | | | | | | | With instrumentation tests, there were race conditions where the while SDP was in progress after bonding, the next iteration of bonding was triggerred. The fix was to ensure that the bonded callback is sent only after SDP is complete Change-Id: I07269b9188aa00eb91f8ecc089b9beb7dbff7af6
* Store all remote properties upon incoming pairingRavi Nagarajan2012-07-141-29/+55
| | | | | | | | When an incoming pairing request is received, store all the remote device properties - name, cod and type. Failing which results in an exception when upper layer tries to access remote device properties Change-Id: I7f5d27a90319a78cefc05873e74f1b322bbce8ac
* Not invoking adapter_bonded_devices_cb on Pairing.Kausik Sinnaswamy2012-07-141-7/+0
| | | | | | | | Calling adapter_bonded_devices_cb on Pairing was causing a race condition in certain scenario which resulted in bond_state_change intent being dropped. Change-Id: Ifa98331ad3a89d5b48b01f91a70db7fa660c7b26
* Fixed the BTIF_HL to exit the select thread and close the signal FDs when ↵Syed Ibrahim M2012-07-141-1/+40
| | | | | | | cleanup() is called. This stops the signal FDs to be leaked for every BT on/off cycle Closed the open FDs in univ_linux.c to stop FD leaks during BT on/off cycles Change-Id: I86af438dc1186e12aa1f18fd44bcc89343ef5489
* Fixed HID seg fault crashPriti Aghera2012-07-141-1/+0
| | | | Change-Id: Ib5e1342b4fba98fa5651ed8428f5580ad54a3332
* When Bluetooth disable is initiated, terminate pending bonding setup, and ↵Ravi Nagarajan2012-07-144-5/+23
| | | | | | reset control blocks on startup/init Change-Id: Iddc37e60ddb712de4af39a25f3c2e5bc7b11410d
* Ensure we ack back suspend request if we are not ready for itMattias Agren2012-07-144-41/+98
| | | | | | | Block audioflinger/a2dp hal from trying to restart stream while we are remotely suspended. Change-Id: I17577306f1be248857a8484a22a8a14cb956ec19
* Updated preferred SBC settings to only allow 44.1 khz to match theMattias Agren2012-07-141-1/+1
| | | | | | audioflinger audiostream Change-Id: Ifd983b0fdea0dd24b21a2f3fdf3bfeeec486b63d
* After calling BTA_HHOpen(), sending a HAL callback for connection state ↵Syed Ibrahim M2012-07-141-0/+1
| | | | | | | | | | | | changed to BTHH_CONN_STATE_CONNECTING to sync up the HIDService java class to the right connection state. On branch main_syedibra_1462879 Changes to be committed: (use "git reset HEAD <file>..." to unstage) modified: btif/src/btif_hh.c Change-Id: If6e00b0ea4bc0195577b6ee4ce9aa0a899f8b44e
* Fix for BLTH01456966 : Clear stack's connection queue when the BT is disabledGanesh Ganapathi Batta2012-07-143-0/+28
| | | | Change-Id: I075e5f95d354d81925b9dbfd06ae89efa8bf6eb3
* Modified the BT stack to check for HID_VIRTUAL_UNPLUG SDP attribute and send ↵Syed Ibrahim M2012-07-142-5/+10
| | | | | | a virtual unplug for all HID devices for device disconnect event; Change-Id: I0068958800103037998eeaa01a45aad1f1605729
* If the peer supports both source and sink role, peer initiated connections ↵Ravi Nagarajan2012-07-141-1/+3
| | | | | | were ending up in a bad state (infinite loop). Resolve this by terminating the getcap on successful codec match Change-Id: I8d669f4ff06284e601525e3b4ab025f10fd4abeb
* Fix for hdp channel disconnect when connection is initiated from sourcePriti Aghera2012-07-141-7/+53
| | | | Change-Id: Ifffb8a96c3d553e5c15f1c284da30ad62fe93a91
* Convert BDA str to uppercase before comparing with autopair blacklistGanesh Ganapathi Batta2012-07-141-1/+13
| | | | Change-Id: I6088f79f818cee347811cd8f883daf8e8ef92eeb
* disable pan nap for wingray and misc fixeszzy2012-07-143-39/+53
|
* Changes done to queue play if received during the timeout for AV connection ↵Sreenidhi T2012-07-142-2/+86
| | | | | | initiation and send the pending play after AV open event. Change-Id: I2bff3a8f5ff3eb85918156a84c855dc8eb990634
* Drop the automatic AVRCP Play command sent from the remote right after the ↵Ganesh Ganapathi Batta2012-07-142-0/+61
| | | | | | | | call is terminated if the remote device is a non headset. This change is to fix the interop issues with few carkits. Change-Id: I2e2fc51ed6bbf98f0e994a512588782791c6ea82
* Cleaned-up HF/AV profile serialization codeAndre Eisenbach2012-07-142-9/+3
| | | | Change-Id: I064e750d7a446aa1785324df3df1b6b9fc80848e
* AV/HFP profile connection serializationAndre Eisenbach2012-07-144-7/+286
| | | | Change-Id: Id70d24986badf09b31fd171e130936dd01ed7987
* Fixed the status to return int value instead of boolean valuePriti Aghera2012-07-141-3/+7
| | | | Change-Id: Ibaf4e5244d385b6c03f6fb33d619ad7f697d9c0c
* Added support to disable HFP via compile time variable in bdroid_<target>.txtfredc2012-07-142-31/+47
| | | | Change-Id: If9b043e96a1eb66c8ca244787de8f8bcb52311bb