d2e250824fca5c42b87b3b6f5fa19646ffa2d321 |
|
25-Aug-2015 |
Pavlin Radoslavov <pavlin@google.com> |
Add support for native kernel and callout wakelocks * Moved wakelock-related code to osi/src/wakelock.c The API is in osi/include/wakelock.h * Use wakelock_set_os_callouts() to specify native kernel or callout-based wakelock. On Android, wakelock_set_os_callouts() is called to set the bt_os_callouts_t callbacks into the Java layer. * Renamed alarm_set_wake_lock_paths() to wakelock_set_paths() Also, added Bluetooth Wakelock Statistics to the bugreport. Sample output: $ adb shell dumpsys bluetooth_manager ... Bluetooth Wakelock Statistics: Wakelock is acquired : false Wakelock acquired/released count : 5 / 5 Wakelock acquired/released errors : 0 / 0 Wakelock last acquired time (ms) : 1524 Wakelock acquired time min/max/avg (ms) : 1511 / 8104 / 3167 Wakelock total acquired time (ms) : 15836 Bluetooth total run time (ms) : 44123 Bug: 26645431 Change-Id: I42bfb7db5b016719faea39e47ebc77c3ad02467b
/system/bt/btcore/src/osi_module.c
|
592afafb911cccc8aaa7d74c54f638e6bfb0a62d |
|
25-Nov-2015 |
Pavlin Radoslavov <pavlin@google.com> |
Add missing initialization of module OSI_MODULE Also, fix a resource leak (memory + file descriptors) inside function AVDT_WriteReqOpt(). The leak was exposed by the module OSI_MODULE initialization fix when audio is playing. Bug: 21743601 Change-Id: Ia220042b9060b0640ac0851f4f9132ddf2773264
/system/bt/btcore/src/osi_module.c
|
1eb1ea0cf2da992a3193506806e571dcbe3ec947 |
|
25-Sep-2015 |
Pavlin Radoslavov <pavlin@google.com> |
GKI cleanup - Moved functions GKI_disable() and GKI_enable() to OSI Added new functions mutex_global_lock() and mutex_global_unlock() within the OSI module, and replaced GKI_disable() and GKI_enable() with those functions. Also, minor cleanup in the gki.h header file. Change-Id: I5f410e3174541224fcf30f37e1524ef099c25193
/system/bt/btcore/src/osi_module.c
|
a9130e07646835a8550611bed32138ed79385a38 |
|
02-Jun-2015 |
Pavlin Radoslavov <pavlin@google.com> |
Moved the OSI alarm_shutdown() operations to alarm_cleanup() Also, removed the OSI module's start_up and shut_down steps, because now they are no-op. Bug: 21558791 Change-Id: I24259b327f399af57c37937111158baa9704f644
/system/bt/btcore/src/osi_module.c
|
0d6a501d0517c186f11cbee294ae2c509073de91 |
|
23-May-2015 |
Pavlin Radoslavov <pavlin@google.com> |
Add missing clean_up step for the OSI module. Now the OSI module's shut_down processing is split into "shut_down" and "clean_up". Previously, there was an ordering issue manipulating some of the internal state during graceful shutdown/cleanup. Some of the modules had two steps: shut_down, followed by clean_up, while other had only shut_down step. This triggered the following assert in file alarm.c alarm_cancel: assertion "alarms != NULL" failed Bug: 21406940 Change-Id: Iab1f033a69cbff646a6b0f346760ae82f8b00b8f
/system/bt/btcore/src/osi_module.c
|
3e3d2a1d3bb9ada4fa612bf9d58c05b629385af2 |
|
18-May-2015 |
Andre Eisenbach <eisenbach@google.com> |
Shutdown alarm callbacks on stack disable; added OSI module Change-Id: Iecf1e2258da012bdac69a4f57d38b12a272e3edd
/system/bt/btcore/src/osi_module.c
|