summaryrefslogtreecommitdiffstats
path: root/gki
Commit message (Collapse)AuthorAgeFilesLines
* Merge tag 'android-6.0.1_r61' into HEADreplicant-6.0-0001stable/cm-13.0-ZNH5YJessica Wagantall2016-08-021-1/+1
|\ | | | | | | | | | | Android 6.0.1 Release 61 (MOB30Z) Change-Id: Icda48d6c36e74365e608d80f0054fc58d8febc26
| * DO NOT MERGE Fix potential DoS caused by delivering signal to BT processSharvil Nanavati2016-06-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | Bug: 28885210 Change-Id: I63866d894bfca47464d6e42e3fb0357c4f94d360 Conflicts: btif/co/bta_hh_co.c btif/src/btif_core.c Merge conflict resolution of ag/1161415 (referencing ag/1164670) - Directly into mnc-mr2-release
* | bt: Unify usage of clock_gettimeChristopher R. Palmer2016-06-111-1/+2
| | | | | | | | | | | | | | This moves all clocks to CLOCK_BOOTTIME and puts this define into a common shared location rather than a smear all over the code. Change-Id: I11dbf557f35f75b3030dc0b6829dbaec70e20a19
* | BT: Fixed Static Analysis IssuesMatadeen Mishra2015-10-061-0/+1
|/ | | | | | | | | | - This fix avoids NULL pointer dereferences, Array Index Out of Bounds Exceptions and Banned funciton in the bluedroid code space of Bluetooth. CRs-Fixed: 890309, 890321 Change-Id: I24ae794ee01b65b5ab15c73cd82677b0481910ad
* Replace malloc/calloc/free with osi_malloc/osi_calloc/osi_freePavlin Radoslavov2015-06-031-2/+2
| | | | | | | | | | | | | | | | | | There were several leftover places that were still using malloc/calloc/free . Those are replaced to use osi_malloc/osi_calloc/osi_free like majority of the rest of the code. Note: There are few remaining places that are still using malloc/calloc/free: * Some of the unit tests * audio_a2dp_hw/audio_a2dp_hw.c It is used as part of the audio.a2dp.default.so library, and the bluetooth.default.so library Its usage of malloc/calloc/free should be refactored independently. Change-Id: Iafbed996e5f1ae8eb1343fb2acfadf32e515e419
* Fix build issues in bluedroid on masterEtan Cohen2015-03-312-0/+3
| | | | Change-Id: I0d3e93ea61dd03505fe9db902ed90bdd4141cab2
* Merge commit 'f7f839985b3931682363d2ef3b7c5cae55a842ee' into mergeEtan Cohen2015-03-319-3545/+178
|\ | | | | | | Change-Id: Iaaec1ea0bf3009b7e32a9a60f697631a3f56e889
| * Use fully qualified path for OSI includes.Sharvil Nanavati2015-03-161-1/+1
| |
| * Remove more GKI code.Sharvil Nanavati2015-03-165-576/+55
| | | | | | | | | | This change removes all remaining GKI task remnants as well as a few timer and buffer bits.
| * Remove GKI timersSharvil Nanavati2015-03-165-455/+3
| |
| * Add platform-independent logging macros to OSI.Sharvil Nanavati2015-03-163-11/+10
| | | | | | | | | | | | 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.
| * Update module names to not use C preprocessor and to be at top of headers.Sharvil Nanavati2015-03-161-2/+2
| |
| * Expand include pathnames and add bd root pathChris Manton2015-03-161-0/+1
| | | | | | | | Hopefully this will squash the sem_t semaphore_t collision
| * Back GKI buffers with mallocZach Johnson2015-03-162-225/+0
| | | | | | | | | | | | | | It looks like we're somehow getting NULL back from buffer allocation. Backing GKI buffers with malloc should fix this. Bug: 18324148
| * Remove ptim and associated GKI timer functionsZach Johnson2015-03-162-230/+0
| |
| * Remove data_types.hChris Manton2015-03-161-54/+0
| |
| * Modulizification of GKIZach Johnson2015-03-163-28/+20
| |
| * Remove GKI task codeChris Manton2015-03-162-254/+0
| |
| * GKI task entry points should have a consistent signature.Sharvil Nanavati2015-03-162-35/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | Previously, GKI task entry points had inconsistent signatures. For example, we had: int btif_media_task(void *p) void btif_task(UINT32 params) void btu_task (UINT32 param) The single argument was universally ignored and the caller always set it to 0. This change consolidates all of that and defines the entry point as having 0 arity and no return value.
| * Code cleanup in GKI layer.Sharvil Nanavati2015-03-164-218/+47
| | | | | | | | | | | | | | * move buffer macros into .c from .h * delete dead code (e.g. GKI_igetpoolbuf, pool_list variable) * define task states as an enum and not a bitfield * start renaming fields in GKI control block for future consolidation
| * Eliminate unnecessary macros GKI_API, EXPORT_API, and UDRV_API.Sharvil Nanavati2015-03-163-59/+54
| |
| * Delete GKI debug code.Sharvil Nanavati2015-03-165-422/+0
| | | | | | | | GKI is slowly disappearing so much of that debug code isn't useful.
| * Eliminate GKI_os_malloc and GKI_os_free.Sharvil Nanavati2015-03-163-49/+5
| |
| * Eliminate unused variables bufpool{0..15} in GKI control block.Sharvil Nanavati2015-03-162-137/+19
| |
| * GKI_USE_DEFERED_ALLOC_BUF_POOLS is always defined. Flatten code paths.Sharvil Nanavati2015-03-163-164/+0
| |
| * Remove unused fields from GKI internal header.Sharvil Nanavati2015-03-163-38/+10
| |
| * Cleanup and remove unused variables in GKI's common OS control block.Sharvil Nanavati2015-03-162-40/+3
| |
| * Use arrays instead of variable names like Tmr0, Tmr1, ... in GKI.Sharvil Nanavati2015-03-163-262/+44
| |
| * Eliminate all attempts to set scheduling policy (all no-ops).Sharvil Nanavati2015-03-162-47/+3
| |
| * Eliminate GKI_run and GKI_stop. Neither had any effect.Sharvil Nanavati2015-03-163-101/+0
| | | | | | | | | | | | | | GKI_run was called but didn't do anything: it would call sched_setscheduler to increase the priority of the current process but Android OS policy doesn't allow for that. And GKI_stop was never called.
| * Eliminate always-on macro GKI_PTHREAD_JOINABLE.Sharvil Nanavati2015-03-161-43/+2
| |
| * Eliminate unused 'stack' concept for GKI tasks.Sharvil Nanavati2015-03-163-32/+13
| | | | | | | | | | This change also fixes the type for task names: should be a const string, not a mutable INT8*.
| * Replace mailboxes with fixed queues.Chris Manton2015-03-164-134/+0
| | | | | | | | Also refactored btu_task a bit.
| * Implement GKI timers in terms of alarm.c. This also fixes some alarm/wake ↵Sharvil Nanavati2015-03-162-173/+19
| | | | | | | | | | | | | | | | | | | | lock bugs. The OS callout implementation expects only a single outstanding alarm and a single wake lock being taken. Since alarm.c uses both and GKI timers use both, they were occasionally clobbering each other resulting in unpredictable behaviour. By writing GKI timers in terms of alarm.c, this change addresses those bugs.
| * Add a VALGRIND #define to heap-allocate all GKI buffers.Sharvil Nanavati2015-03-162-2/+30
| | | | | | | | | | | | This change allows us to run Valgrind on bluedroid to find memory leaks. It has already been used to track down multiple memory leaks which weren't trackable with the existing GKI buffer implementation.
| * Enforce GKI API buffer usageChris Manton2015-03-164-66/+73
| | | | | | | | Also add another API GKI_queue_length(BUFFER_Q *)
* | am d736b8d6: Merge "Fix some more missing libc includes."Christopher Ferris2015-02-071-0/+2
|\ \ | | | | | | | | | | | | * commit 'd736b8d6b3f95b7af19b75a613486b023279c3ee': Fix some more missing libc includes.
| * | Fix some more missing libc includes.Ian Coolidge2015-02-061-0/+2
| | | | | | | | | | | | | | | | | | stddef and signal are not pulled in transitively in glibc. Change-Id: I7a834bbdc31ae2aee4cb700a223c1636fda42afa
* | | am 61331337: Merge "Add missing includes."Elliott Hughes2015-01-291-0/+2
|\| | | | | | | | | | | | | | * commit '61331337c05cde410665e6a533a338b867fad45c': Add missing includes.
| * | Add missing includes.Elliott Hughes2015-01-281-0/+2
| | | | | | | | | | | | Change-Id: I041a5ea84b82155b0a7a8c4e7dc416c2c2b5e251
* | | am 5ad6d725: Merge "Fix missing #includes in external/bluetooth."Elliott Hughes2014-12-301-0/+1
|\| | | | | | | | | | | | | | * commit '5ad6d72549feb5c0f49f654edd177d98907a1586': Fix missing #includes in external/bluetooth.
| * | Fix missing #includes in external/bluetooth.Elliott Hughes2014-12-291-0/+1
| | | | | | | | | | | | Change-Id: I5b1f75efb4b0f595a6e47849b4d8393a8d1dca24
* | | am 6f65f670: Merge "Cleanup Obsolete LOCAL_PRELINK_MODULE."Ying Wang2014-12-161-1/+0
|\| | | | | | | | | | | | | | * commit '6f65f6706f125f4319f041eec51e95655d36c390': Cleanup Obsolete LOCAL_PRELINK_MODULE.
| * | Cleanup Obsolete LOCAL_PRELINK_MODULE.Ying Wang2014-12-161-1/+0
| | | | | | | | | | | | | | | Bug: 18675947 Change-Id: Iba2a3e4b07b4d11e6584ca3c19f85c82030faa04
* | | resolved conflicts for merge of ed0bdd42 to lmp-mr1-dev-plus-aospChih-Hung Hsieh2014-12-113-72/+0
|\| | | |/ |/| | | Change-Id: Ife8b72d3688ed78a95ccb8d5e0b60f40e7fec9e9
| * Cleanups needed to make clang happyBernhard Rosenkränzer2014-12-053-72/+0
| | | | | | | | | | | | | | | | | | This patch removes a slew of unused variables and some unused functions, fixes some incomplete initializations of structs and an sprintf parameter mismatching the format string. Change-Id: I35f22fdccc8350f885cd357d3685b869224fa433 Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
* | am cf7f6a15: Prevent Java call for acquiring already held wakelockAndre Eisenbach2014-12-041-7/+14
|\ \ | | | | | | | | | | | | * commit 'cf7f6a154aed48659260d391994dc59151be937b': Prevent Java call for acquiring already held wakelock
| * | Prevent Java call for acquiring already held wakelockAndre Eisenbach2014-12-031-7/+14
| | | | | | | | | | | | Change-Id: Icf455b6aa7c0c1bf7abf7ea9700cfde17f6c7c2b
* | | Make GKI_TIMER_INTERVAL_FOR_WAKELOCK configurable for different targetMatthew Xie2014-12-021-6/+2
| | | | | | | | | | | | | | | | | | | | | Set the default value as 3000 ms Bug: 18549150 Change-Id: I1d5b4fca627c22fdd8a32a41d5beac6837b6dff4
* | | am 254b5ba2: gki_buffer: add missing mutex unlockSimon Wilson2014-11-261-0/+6
|\| | | | | | | | | | | | | | * commit '254b5ba2e3f4c44b82a0369579b66bafcd0d6aa2': gki_buffer: add missing mutex unlock