summaryrefslogtreecommitdiffstats
path: root/main
Commit message (Collapse)AuthorAgeFilesLines
* Merge tag 'android-6.0.1_r30' into HEADJessica Wagantall2016-04-191-0/+5
|\ | | | | | | | | | | | | Android 6.0.1 release 30 RM-234 Change-Id: Ib49a88726f2df18ca5ecf04fae4e2d2d31ef9a82
| * DO NOT MERGE Add ability to add interop entries dynamically (2/2)Andre Eisenbach2016-02-241-0/+5
| | | | | | | | | | | | | | | | Add ability and interface for adding dynamic entries to the interop workaround database. Bug: 26548845 Change-Id: Id886e4233fc1548727e79f1581cdc0c6f0738d59
* | bluedroid: Remove ALSA check on sample rate settingSteve Kondik2015-11-201-0/+4
| | | | | | | | | | | | | | * All legacy QC devices using the CodeAurora drivers should be using a 48KHz samplerate for A2DP, since that's the only supported output frequency. Change-Id: I8cec354c5a2dde0f85f19cfee2f75501f2a2d5a3
* | Merge "A2DP_Sink: add support for AudioTrack"Linux Build Service Account2015-10-171-1/+4
|\ \
| * | A2DP_Sink: add support for AudioTrackAnubhavGupta2015-10-151-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | - add support for AudioTrack to be used for rendering audio data - add support for requesting and updating audio focus Change-Id: If2832e9dd4a070977edc38f1c142a91336a9822c
* | | Opt out of clang till issues are fixedAravind Asam2015-10-091-0/+1
|/ / | | | | | | | | | | Needed for moving to clang Change-Id: I798813c860ace32046b5cf9492c28865d8b944a9
* | Bluetooth: Add parameter to indicate reason for ssr_cleanuppramod kotreshappa2015-10-061-2/+2
| | | | | | | | | | | | Add parameter to distinguish the reason for ssr_cleanup. Change-Id: If8dbc8bbeef430c7cea3d8c300285c9aef1222ec
* | btsnoop: btsnoop write from external processMallikarjuna GB2015-10-061-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | - write btsnoop from external process - adjust the gmt offset to match with logcat logs - avoid btsnoop file write if btsnoop client is connected - limit the block of snoop write to 10 ms and drop the packet - memcpy and issue single write to eliminate multiple I/O - enable snoop by default on userdebug build - option to override snoop config for userdebug build Change-Id: I13749dc348baf88af57e3ebec1ec7acd5e999c04
* | AV: Logging changes to properly set loglevelMallikarjuna GB2015-10-062-1/+24
| | | | | | | | | | | | | | | | | | - Control block and log level initialization in BTA, AVDT and AVCT in proper place. - Init functions for AVCT and AVDT and call from stack init path. Change-Id: I6056d5e9132330b4116a6d4410c2259ccc181109
* | Bluetooth: LE Stack certification tool changesSatish kumar sugasi2015-10-061-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This includes changes needed for new code baseline and below stashed commits. Bluetooth stack 4.0/4.1 certification tool changes This adds test application code and stack interface code for BLE certification purpose CRs-fixed: 649248 Change-Id: I6e8ecbf2fdb0fe6ee80fd6d57c2e151b62797f01 Bluetooth: Avoid Encryption after gatt server connection complete. This doesn't start encrtyption by default after connecting to a client. needed for certain test cases of BLE stack certification. Change-Id: I04dbe1daba32b416f59fed00989168507ce261fa CRs-Fixed: 652485 Bluetooth: add config flag to gatt tool test app This adds logic to compile gatt tool only if config test flag is enabled and aincludes indendation changes Change-Id: If018d0676bb6334be0558fd6f6464ffbfc33196a Bluetooth: Gatt tool changes and code cleanup Fixes for compilation issues and remove CONFIG flag from makefile. Change-Id: I57646edf9b0ec3ffd62e34aeed54f13ef09ef1a0 Bluetooth: Include Gatt test app for certification This adds debug and optional flags to makefile to compile tool as part of android build Change-Id: I603a982a4bc7c392e45e753bcbb57bf8394ed21c Bluetooth: Add gatt refresh api in gatt certification tool this fixes gatt tool crash during service discovery test cases and code cleanup. CRs-Fixed: 734268 Change-Id: I7e600d912c0b631b3bc865c571f9ad1c05f99ae4 Bluetooth: Add conn update api for gatt tool This adds support to do LE connection parameters update after successful connection using Gatt test app for certification CRs-Fixed: 743373 Change-Id: Id76d244f6bf7721016ef397c8bfea9cd877b0253 Bluetooth: Gatt tool change for wakelock support and cleanup This change does send hci success status for wakelock apis which are newly added in BT.Also does remove tabs and proper indentation CRs-Fixed: 743399 Change-Id: I9346c3a04e4c7238cd5afaabb0361f7083cb93fe Supports Simple pairing with No bonding and no MITM Supports Bluetooth simple pairing with no MITM, no bonding set in the authentication request and initiator and responder keys set to 0. Change-Id: I6e8ecbf2fdb0fe6ee80fd6d57c2e151b62797f01 Conflicts: main/Android.mk Change-Id: I36eba14defe16418037ba4b253d31c9a6270d93c
* | QLogKit: Enable FW Logging and Set Stack Trace LevelSai Aitharaju2015-10-062-3/+42
| | | | | | | | | | | | | | | | | | | | | | | | - Enables FW Logging during BT On and disables the FW Logging during BT Off in userdebug builds only. - Provides an interface to set trace level for all the stack layers of bluedroid. CRs-Fixed: 866285 Change-Id: Ib12d220e0aa4845d04b05b7fbea079d30c308004
* | Bluetooth: Enable SSR.Kiran Kelageri2015-10-061-0/+19
| | | | | | | | | | | | Enabling SSR feature. Change-Id: I26eab5b3a10ac7823ff5e9f2adc3bc187939c87e
* | L2CAP test tool for L2cap layer certification.Srinu Jella2015-10-061-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Interface provided from BT-If layer to interact with l2cap - This tool covers all l2cap 4.0 PTS test cases whcih includes basic, ertm and streaming mode test cases. Conflicts: btif/src/bluetooth.c Change-Id: Ifacd0b99974c28788926e0f901c37ee2c12ff97b
* | Mcap test tool for mcap protocol certification.Srinu Jella2015-10-061-1/+2
| | | | | | | | | | | | | | | | | | - Interface provided from BT-If layer to interact with mcap - This tool covers all mcap PTS test cases. Change-Id: I07f1eb8dc3d98c95b82ee67554c1a846e71c4bfc
* | Rfcomm test tool for rfcomm protocol certification.Srinu Jella2015-10-061-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | - Interface provided from BT-If layer to interact with rfcomm. - This tool covers all rfcomm PTS test cases. Conflicts: btif/src/bluetooth.c Change-Id: I129fbabdbdd80c87f0867c90e472e65bd1611af2
* | BT: Audio: Enhance default stack logging for AUDIOrakesh reddy2015-10-061-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make default logging for upstream events, statemachine state transitions, sco state transitions, call state transitions etc. Change-Id: Ia0dcb22e2efb99f186166ae4af2a8cb73f87616d Bluetooth: A2DP Sink Logging. - logs for state transition. - Latency logs with sequence Number. Change-Id: Iedabccd97d1118406f43b7ba494bdec5935b60b9 Print delay logs during A2dp streaming - Log systrace during A2dp streaming. This logging is not enabled by default.BT_AUDIO_SYSTRACE_LOG needs to be defined in applicable files to turn this logging on. - Properly name threads. - Log A2dp write delays. - Log pcm dump before writing to media socket to mediatask. This logging is not enabled by default. BT_AUDIO_SAMPLE_LOG needs to be dfined to enable this logging Change-Id: If081480b29f02126a1d48b9d0d9f855a3a605cc5 Enable required AVRCP Logging by default Enable required AVRCP Logging by default. Introduce additional logging whereever required. Change-Id: Ie2e88de06254257af3b77b4f8b06401273f29262 CRs-Fixed: 751733
* | Bluetooth-Wipower: Enable WiPower feature.Kiran Kelageri2015-10-061-0/+9
| | | | | | | | | | | | | | | | Enabling WiPower feature on lastest PL, this feature enables wireless charging capablity on the target. Change-Id: I133a00b17efa5a89a764230864b9c2db252aea26
* | HID: Improve Logging for Hid Host and ClientHemant Gupta2015-10-061-0/+12
| | | | | | | | | | | | | | | | | | | | This patch adds support to enable logging for hid host's and client's stack components dynamically. Also some logs for host and cleint are added under verbose logging level which would help in latency measurements. Change-Id: I06de0ea89b8f5e40466519fe60aead6497b6cf11 CRs-Fixed: 608230
* | Bluetooth: Add support for HID Device Role (2/4)Hemant Gupta2015-10-061-0/+1
|/ | | | | | | | This patch adds support for HID Device role in bluedroid stack allowing DUT to be used as Keyboard or Mouse. Change-Id: I45b581a54f6c7bbc1f25226715a7ea23e34255c0 CRs-Fixed: 573086
* Re-enable the OSI memory allocation tracker.Pavlin Radoslavov2015-06-111-0/+10
| | | | | | | | | | | | | | | Previously, the OSI memory allocation tracker was disabled as a temporary workaround for Bug 21561735. The root cause for the original issue is now addressed by using the appropriate linker flags when generating the bluetooth.default.so shared library: LOCAL_LDLIBS := -Wl,-Bsymbolic,-Bsymbolic-functions Also, added missing #include in file "btif/src/btif_sock_sco.c" Bug: 21561735 Change-Id: I384a6f3d1d03c74f8d1e3c96bf7e0b5961206feb
* Build the shared library with --whole-archiveZach Johnson2015-05-191-3/+5
| | | | | | | | | | | | | | For stack static libraries, use LOCAL_WHOLE_STATIC_LIBRARIES to ensure they get --whole-archive applied to them. This means module symbols in static libraries won't be removed by the linker and dlsym will find them. This patch also removes the code hacks we needed to trick the linker into including the module symbols in the final shared library. Change-Id: I2463d0e6fb38f1e75c8293179cf9d4ca33eda84e
* Shutdown alarm callbacks on stack disable; added OSI moduleAndre Eisenbach2015-05-181-1/+1
| | | | Change-Id: Iecf1e2258da012bdac69a4f57d38b12a272e3edd
* Bluetooth native dumpsys logging support (2/5)Andre Eisenbach2015-05-111-1/+6
| | | | | | | Includes support for BTSnoop logging in memory. Bug: 18508263 Change-Id: I175da528cbcdc00d40622647d518a74210cfe6fd
* am f29a2fb..e07ad10 from mirror-m-wireless-internal-releaseVinit Deshpande2015-04-141-1/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e07ad10 merge in m-wireless-internal-release history after reset to d232721ae5e5b6949a5249f0d116408b8a3c5f1d d232721 L2CAP socket - fix merge errors 899b771 BR/EDR secure connections support 7fb0da6 Support numeric comparison in SMP aa351f2 merge in m-wireless-internal-release history after reset to 399e89150b3df87172bdf92d54712b379324b149 399e891 Fix for AVRCP CTRL stops sending pass through command daddea9 Free Avrcp Controller callbacks on Cleanup 764babe Protect reset of out stream with mutex 444a8da LE Privacy 1.2 and LE secure connections 8372aa5 L2CAP and SDP Search API for BT profiles (2/2) fd422a7 Update Service Availability. 2a0652a merge in m-wireless-internal-release history after reset to 0b47e0a35c16f5b7d77c30ec1c095ed92ff4fd74 78d0f4c merge in m-wireless-internal-release history after reset to m-wireless-internal-dev 0b47e0a Avoid duplicate disconnection callbacks for fixed channel connections 5646973 Add a section on assertions to the style guide. d768767 Merge "Avoid null-pointer dereference in l2c_release_lcb()" into m-wireless-dev ef92b53 Avoid null-pointer dereference in l2c_release_lcb() 4bf68bf merge in m-wireless-internal-release history after reset to f538707fe64c62b1dbb8e4210e4a1bfa0bab2b56 de6ac86 Add a 'Bluedroid conventions' section to the style guide. 1b80439 Add a section to the style guide on variable declarations. 485f19e merge in m-wireless-internal-release history after reset to 4540f59bc447dc2b7b31a3e974b74a60b2417e7d bef8940 merge in m-wireless-internal-release history after reset to 841c9103cad1898ceca87b734acd4d4537f9f452 ab4c38c merge in m-wireless-internal-release history after reset to a7e698f5a9e062f62e21bc435643975c30bab846 2807a74 merge in m-wireless-internal-release history after reset to a7e698f5a9e062f62e21bc435643975c30bab846 99dbe9a merge in m-wireless-internal-release history after reset to 78c0b060f29b7b7014adddb2f98bf6ae9755c488 f7f8399 merge in m-wireless-internal-release history after reset to a5371c238b4e874d8313ac56a23451e7345ff541 3aa60d7 Make A2DP audio HAL a shared library again 3256a31 Move unused include file out of hci_audio.h b866b69 Add option for schedule_next_instance to force rescheduling 4ae5e3e Ensure alarms are called back when they expire in the past a7bd03e Rewrite alarms to use a single posix timer instance 88e7b15 Resolved hardware error observed during SCO Connection setup Change-Id: Ib9a0a2ffca1d4811a9a9e56674bf43275d8b2205
| * L2CAP and SDP Search API for BT profiles (2/2)Kim Schulz2015-04-101-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Added support for exposing L2CAP to Java such that OBEX over L2CAP is made possible. Added support to create SDP records as a seperate step.(as opposed to creating a SDP record when a BluetoothSocket is created). This allows both a RFCOMM channel and a L2CAP PSM to be included in a SDP record. (Additionally the content of the SDP record is set by the profile in Java, in stead of beeing hardcoded in the socket layer.) This completes the L2CAP channel exposure to Java. Change-Id: Iaf68a07d910145cdd33e940d73cd680f79164100
* | Merge commit '4bf68bf020c7fd1aabcdc4b5d8f5fbb8bacdec9d' into merge_workPrerepa Viswanadham2015-04-102-0/+1
|\| | | | | | | Change-Id: Ibc6d6e691b7f97611d16f96220346dfd6ffbbf52
| * Static code analysis cleanups and minor bug fixesVenkatRaghavan VijayaRaghavan2015-04-061-0/+0
| | | | | | | | | | | | | | | | | | | | | | - Fix for initializing all the un-initialized variables - Handling system call failure like socket,fcntl etc... - In btpan_tap_close validate tap_if_down and close the socket. - Invalid memset size, which could have potential memory issue - Change -1 to INVALID_FD where appropriate Bug: 19417758 Change-Id: Id31832f8678b2d72c80740c29b946a94e7ae0197
| * osi: add compat code for glibcScott James Remnant2015-04-021-0/+1
| | | | | | | | | | | | | | glibc doesn't declare strlcpy(), strlcat() or gettid(). Add a header of compatibility routines that only get included when compiling on this. Change-Id: I889ac7f1d22cf7056757890fcff0403107488d62
* | Merge commit 'f7f839985b3931682363d2ef3b7c5cae55a842ee' into mergeEtan Cohen2015-03-316-1503/+418
|\| | | | | | | Change-Id: Iaaec1ea0bf3009b7e32a9a60f697631a3f56e889
| * Resolved hardware error observed during SCO Connection setupMudumba Ananth2015-03-261-57/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hardware error was caused due to a faulty HCI command formed in the process of vendor specific pre-SCO setup in the stack(set_audio_state) Fixed the above problem and also added back the vendor (interface) mapping for the set_audio_state functionality to facilitate the sending of the pre-SCO vendor specific commands. Made common vendor library audio setting by moving to hci subsystem. General cleanup around this functionality. Bug: 19923226 Change-Id: I4a743f6725459f360bd2a90e0a46f08fcca2292d
| * Revert "Resolved hardware error observed during SCO Connection setup"Chris Manton2015-03-251-2/+1
| | | | | | | | | | | | This reverts commit 4d8ac4ff015ff87c4e985ac0d9a5f3c2a6b0d9fa. Change-Id: Ie1433c82014b6ddce78c5363100ab109ae0fecde
| * Resolved hardware error observed during SCO Connection setupMudumba Ananth2015-03-251-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | Hardware error was caused due to a faulty HCI command formed in the process of vendor specific pre-SCO setup in the stack(set_audio_state) Fixed the above problem and also added back the vendor (interface) mapping for the set_audio_state functionality to facilitate the sending of the pre-SCO vendor specific commands. Bug: 19923226 Change-Id: I03c6a1c048c21549b7326a783b70588686283eb3
| * Demote, cleanup and extend observed loggingChris Manton2015-03-162-48/+48
| |
| * Use fully qualified path for btcore includes.Sharvil Nanavati2015-03-161-2/+2
| |
| * Use fully qualified path for OSI includes.Sharvil Nanavati2015-03-164-10/+10
| |
| * Rejig hci upwards dispatchZach Johnson2015-03-161-2/+4
| | | | | | | | | | | | | | Split events and acl data in hci dispatch, and dispatch events by event code Future code will now be able to dynamically tie into hci events, instead of relying on a hard coded routing.
| * Reinstate btsnoop last log savingZach Johnson2015-03-161-0/+6
| | | | | | | | | | Waited for the merge to complete before reworking the feature into the stack.
| * Remove GKI timersSharvil Nanavati2015-03-161-2/+1
| |
| * Collapse more feature flags.Sharvil Nanavati2015-03-162-20/+0
| | | | | | | | Start reviewing in include/bt_target.h.
| * Collapse RFCOMM_INCLUDED and GAP_INCLUDED guards.Sharvil Nanavati2015-03-162-20/+0
| | | | | | | | Both of these features are always available in bluedroid.
| * Add platform-independent logging macros to OSI.Sharvil Nanavati2015-03-164-25/+28
| | | | | | | | | | | | These macros should replace ALOG* and the various trace macros used throughout bluedroid. This change eliminates all uses of the ALOG* macros in favor of the new ones.
| * Move controller module to device directoryChris Manton2015-03-161-0/+2
| |
| * counter implementationChris Manton2015-03-161-0/+5
| |
| * Remove uncompiled unused PBAP supportZach Johnson2015-03-161-7/+0
| | | | | | | | | | | | | | | | Like OPP, the phone book access profile is implemented in java for android. Cleaning up some references to uncompiled phone book support in bluedroid. Left the few definitions SDP relies on. We can consolidate that later.
| * Removal of bd.[c|h]Chris Manton2015-03-161-1/+0
| | | | | | | | Consolidate legacy types into bt_types.h
| * Remove some remaining references to OBXZach Johnson2015-03-162-19/+0
| | | | | | | | | | | | | | | | | | | | | | | | Android implements the Object Push Profile in java against RFCOMM sockets with its own implementation of OBX there. OBX in Bluedroid isn't compiled, and is missing header files required to compile it anyway. Removed a number of OBX related headers and updated a few references where they were used out of place. Change-Id: Ifaecfb6f85b1dca9055932886af484b6dc107fc1
| * Remove a bunch of always-false macrosZach Johnson2015-03-162-235/+1
| | | | | | | | | | Referenced missing header files, so they wouldn't even compile if set to true.
| * Remove definitions for DUNZach Johnson2015-03-162-15/+1
| | | | | | | | Missing header files, etc so it wouldn't compile anyway.
| * Remove always false TCS_INCLUDED macro & friendsZach Johnson2015-03-161-29/+0
| | | | | | | | Referenced non existent headers, so would not compile if set to true.
| * Remove remaining references to GOEPZach Johnson2015-03-162-16/+2
| | | | | | | | FALSE by bt_target. Header files never used. Missing header files.