History log of /system/bt/stack/btu/btu_task.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
f8027005333c88a2f097cfd70d15c3d54c7764ae 12-Mar-2015 Chris Manton <cmanton@google.com> Demote, cleanup and extend observed logging
/system/bt/stack/btu/btu_task.c
95b74f252f534ec757aab1fc08e086e02b2cfe8d 12-Mar-2015 Sharvil Nanavati <sharvil@google.com> Use fully qualified path for btcore includes.
/system/bt/stack/btu/btu_task.c
0f9b91e150e153229235c163861198e23600e636 12-Mar-2015 Sharvil Nanavati <sharvil@google.com> Use fully qualified path for OSI includes.
/system/bt/stack/btu/btu_task.c
c0a87fe60f79ddf41595a30e75a77f43c19cd323 02-Mar-2015 Sharvil Nanavati <sharvil@google.com> Remove GKI timers
/system/bt/stack/btu/btu_task.c
24ff5af9e40aaebc236bb6a16849c63bff0f23ba 29-Dec-2014 Sharvil Nanavati <sharvil@google.com> Collapse more feature flags.

Start reviewing in include/bt_target.h.
/system/bt/stack/btu/btu_task.c
a330b102cc2f0b87919ff457563a3a722a73dd67 29-Dec-2014 Sharvil Nanavati <sharvil@google.com> Collapse RFCOMM_INCLUDED and GAP_INCLUDED guards.

Both of these features are always available in bluedroid.
/system/bt/stack/btu/btu_task.c
de35e095aa0a97ec4687aebec188205d41444a3e 07-Jan-2015 Zach Johnson <zachoverflow@google.com> Remove unused read link policy + friends

Was never called, and the removal of which obviated
a lot of other code.
/system/bt/stack/btu/btu_task.c
364a1e7be4d38d83f51f1363d9a1837de57bcd2d 26-Dec-2014 Sharvil Nanavati <sharvil@google.com> Remove unnecessary newlines at the end of log statements.
/system/bt/stack/btu/btu_task.c
44802768c447ab480d4227b3a852a97d923b816d 24-Dec-2014 Sharvil Nanavati <sharvil@google.com> Add platform-independent logging macros to OSI.

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.
/system/bt/stack/btu/btu_task.c
d906a1ad2f75aee8b3810ea25a23b0b21ab0f7b9 27-Feb-2015 Zach Johnson <zachoverflow@google.com> Remove some remaining references to message based timers

Some of this gets cleaned up in a later CL during the merge
but removing them now so the ptim removal change compiles.
/system/bt/stack/btu/btu_task.c
4469f57c1356f01168fc1f62e7b421f686e8a484 21-Oct-2014 Sharvil Nanavati <sharvil@google.com> Remove excessive log message from btu_task.
/system/bt/stack/btu/btu_task.c
8e90de46284238e551ad825fb00bda2bbc90ea1d 21-Oct-2014 Zach Johnson <zachoverflow@google.com> Remove some remaining references to OBX

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
/system/bt/stack/btu/btu_task.c
9df3c8cb90caea19b96a84aedec6f275b7b53b70 20-Oct-2014 Zach Johnson <zachoverflow@google.com> Remove a bunch of always-false macros

Referenced missing header files, so they wouldn't even
compile if set to true.
/system/bt/stack/btu/btu_task.c
65645888da537ff8b3480c36ffe2dfc58844aea6 15-Oct-2014 Zach Johnson <zachoverflow@google.com> Remove unused code in GAP

Left the BLE stuff for now, since some of it appears to
be used at least right now.
/system/bt/stack/btu/btu_task.c
24933b5b1a06274c47133debac5251a97128a267 25-Sep-2014 June R. Tate-Gans <jtgans@google.com> Removing unnecessary BTAPI #defines.
/system/bt/stack/btu/btu_task.c
91ba12d41916ed2da3959948cb0bc7dea7328ae1 26-Sep-2014 Zach Johnson <zachoverflow@google.com> Remove unused hci_cmd_cb in btu

An earlier change obviated the need for it, but I
forgot to remove it at that time.
/system/bt/stack/btu/btu_task.c
b1f991590b530715bb6fb4c44695af1e87e167f6 27-Sep-2014 Chris Manton <cmanton@google.com> Add paired cleanup routine for logmsg
/system/bt/stack/btu/btu_task.c
9891f32471b5c01cf58e4d7dadb04cb3024a9a88 23-Sep-2014 Zach Johnson <zachoverflow@google.com> Refactor btsnoop and stack config into modules

Moves stack config out of the combined bte_config, and into
its own module.

Makes btsnoop more self sufficient and removes uneccessary
levels of indirection.

Refactor logging slightly into a (temporary) module to disassociate
from the direct calls from config. Eliminates some useless stuff in
the module as well.
/system/bt/stack/btu/btu_task.c
c8ac8a276f61a9fc81b542f394de19c6732417ba 27-Sep-2014 Zach Johnson <zachoverflow@google.com> Unregister BTU queues upon shutdown

This ensures that the next run doesn't try to access memory
that is no longer valid.
/system/bt/stack/btu/btu_task.c
f857d64505d81ce0834de150b79b333a4ff445f2 26-Sep-2014 Chris Manton <cmanton@google.com> Remove HCI access macros

And some other minor bt_target cleanup.
/system/bt/stack/btu/btu_task.c
307381ef1ed1b434c956a9a98ca25ba6b415d7c7 05-Sep-2014 Chris Manton <cmanton@google.com> Remove btu_task and replace with bt_workqueue reactor
/system/bt/stack/btu/btu_task.c
bc3ac0657ece30a24258ecd0f708dc7635abbd42 17-Sep-2014 Chris Manton <cmanton@google.com> Add back timer list entry in_use field

I thought this field was used for internal
bookkeeping, but it turns the higher layer
protocols use it to condition if a timer
should be started or stopped.
/system/bt/stack/btu/btu_task.c
0479703f0e8b215d77d67851d4116ce09a21b09c 04-Sep-2014 Chris Manton <cmanton@google.com> Remove must-always-be-true BTU_BTA_INCLUDED

Change-Id: I7ddfb9d611b7f4a2787e0f4bec4a090cd9efc202
/system/bt/stack/btu/btu_task.c
218f375e989a6189cd9a3227656be17bf614485b 03-Sep-2014 Zach Johnson <zachoverflow@google.com> Sink all HCI transmission management into the HCI layer

Begins the refactoring of the HCI related code in BTA, corrects some
hacks in the HCI layer (no more concept of internal commands, yay!),
and corrects the handling of multiple commands pending response in the
HCI layer.

This introduce a horrible hack external to the HCI layer to keep BTU HCI
handling of command complete/status events on the BTU task. That hack
will be removed when BTU moves to a reactor model and we have osi
threads to work with.
/system/bt/stack/btu/btu_task.c
2aa6838748b11bb54f61d804aaa2bfcf62a010fb 15-Sep-2014 Chris Manton <cmanton@google.com> Demote timer hashmap entry failure log message

The procedures that use timers immediately cancel them upon startup
assuming they existed previously. The first time though the codepath
these traversalls cause the hashmap lookup failure.
/system/bt/stack/btu/btu_task.c
0eefef0f35dbf400f295e4be8c4c1ee295042d88 09-Sep-2014 Chris Manton <cmanton@google.com> btif task removal and reactor insertion
/system/bt/stack/btu/btu_task.c
8d9d02862b1e00d27681846e3de9c4cf4f6634fc 07-Sep-2014 Sharvil Nanavati <sharvil@google.com> GKI task entry points should have a consistent signature.

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.
/system/bt/stack/btu/btu_task.c
f79d28673355204c9ec14e64b87f14398affa06f 07-Sep-2014 Sharvil Nanavati <sharvil@google.com> Move BTU task creation into stack/btu/btu_init.c.

Also fixed function naming where the BTE prefix was used
instead of BTU.
/system/bt/stack/btu/btu_task.c
18023290406f076c5c76cdffdbf8ee081450a42f 29-Aug-2014 Chris Manton <cmanton@google.com> Replace timers and btu_task

Replace GKI timers with alarms.
/system/bt/stack/btu/btu_task.c
860a9af89f8dbf8ef65785d5db960c1fa488d2ba 27-Aug-2014 Chris Manton <cmanton@google.com> Replace mailboxes with fixed queues.

Also refactored btu_task a bit.
/system/bt/stack/btu/btu_task.c
72b0ba23d93b13cb12db186d25009a41738d85a7 27-Aug-2014 Chris Manton <cmanton@google.com> Remove unused #define RPC_INCLUDED
/system/bt/stack/btu/btu_task.c
115f2fa1a72d54bd805c8bb9d555105f8b76df62 27-Aug-2014 Chris Manton <cmanton@google.com> Remove must-always-be-on #define HCISU_H4_INCLUDED
/system/bt/stack/btu/btu_task.c
fe7216ca12f91baae733e7c93063db73121af308 06-May-2014 Chris Manton <cmanton@google.com> Enforce GKI API buffer usage

Also add another API GKI_queue_length(BUFFER_Q *)
/system/bt/stack/btu/btu_task.c
49ada1eb9382ce02a0d81b1a7c3065cccf38d09e 21-Feb-2014 Chris Manton <cmanton@google.com> Release GATT resources upon teardown
/system/bt/stack/btu/btu_task.c
97e75b73a57602b7d9771f28216630ba32fd702a 08-Oct-2014 Chaojing Sun <cjsun@broadcom.com> LE: Serialize multiple connection parameter update requests

Bluetooth controllers do not allow multiple connection parameter
updates where there is one outstanding. This requires serializing
all connection parameter update requests and send the latest
request when the pending one is finished.

Bug: 17979666
Change-Id: Ic49bd89a4ded28014d74b40e67f2a3ea490b9ef7
/system/bt/stack/btu/btu_task.c
3eae42f2a383adaaf83336dc4c92afd2de2c4112 02-Oct-2014 Mattias Agren <magren@broadcom.com> Raise A2DP threat priority to avoid music breaks

* Ensure all a2dp audiopath threads are configured to high
priority when actively streaming.
* For now set bt hc worker thread always to URGENT_AUDIO
until new thread api can adjust thread priority dynamically.

Bug: 17520043
Change-Id: I10e314085329278bcfcc4e8bc5ce899b03d22e2b
/system/bt/stack/btu/btu_task.c
cf32e8d4e0cabac8432a3c6c6d8ece27d6067770 13-Aug-2014 Andre Eisenbach <eisenbach@google.com> LE: Fix limited advertising not stopping after timeout

When starting to advertise with a given timeout, the alarm did not fire
and thus not stop the advertising. This patch switchs from the new alarm
system to use BTU timers.

Also fixes a bug in the oneshot timer handling where adding a new timer
with a short timeout value would not actually restart the timer to pull
in the deadline.

Bug: 16988160
Change-Id: Ia556562675636be440ddca7682ac7d092bc0b48b
/system/bt/stack/btu/btu_task.c
22b0d6bc7c48942f270fa8f8cf992c658b04f9a0 28-Jun-2014 Matthew Xie <mattx@google.com> featurize ble specific function to fix compile error on non-ble target

Change-Id: Ib968b55b407f6c4413d53623113c47f335c5f800
/system/bt/stack/btu/btu_task.c
0aee331900424ed23857ee2390fbb03338a60d91 12-Jun-2014 Chris Manton <cmanton@google.com> BLE privacy timer

Adds another timer with one-shot characteristic that
allows for variable firing of alarms. Change the BLE
privacy code to use this timer rather than the
BTU continuous timer.

Change-Id: I6baa4e6a76813285c15f24aeb3c7ef942ed01858
/system/bt/stack/btu/btu_task.c
5ec39bbc74875868ba54e837c6bd30bfa022563f 10-Jun-2014 Chris Manton <cmanton@google.com> Extended a few timer API functions

Timer queue and entry were lacking a few functions.
Also added field in timer entry to indicate initial
timing condition for use in a variable timer

Change-Id: I4d987a5bb4eddb48f8c54de8d3da26f1c0b77584
/system/bt/stack/btu/btu_task.c
167686c80108ed5cf030631057ec82dc169f3e65 10-Jun-2014 Chris Manton <cmanton@google.com> Remove dead timer code from btu

Change-Id: I28fb3fb64546aac6e08886f71f80fdeaf86fc5af
/system/bt/stack/btu/btu_task.c
0212487880be33e255d49f6e38dbb035d1f77750 04-May-2014 Sharvil Nanavati <sharvil@google.com> Start cleaning up log macros.

Change-Id: I228fef0198caeb47618a07c4c46526f611933e07
/system/bt/stack/btu/btu_task.c
8fe58875ce67c6e1099e7ba2339dcd2b979491b0 17-Apr-2014 Ganesh Ganapathi Batta <ganeshg@broadcom.com> Merge BT 4.1 features

The features include:
- LE Peripheral Mode
- Link Layer topology (LE Central & Peripheral Concurrency)
- Dual Mode Topology (Ability to choose LE transport when connecting with
other Dual Mode devices)
- Fast advertising Interval
- Limited Discovery Time Changes
- GAP Authentication and Lost Bond
- Dual Mode Addressing
- Common Profile and Service Error Code
- 32 bit UUIDs

Change-Id: Ic6701da4cf6aaa390ff2c8816b43157f36b7fb42
/system/bt/stack/btu/btu_task.c
5cd8bff2dd0337cb52bf48f312e3d2d55a8882fb 01-Feb-2014 Mike J. Chen <mjchen@google.com> Major warnings cleanup

Mostly fixing unused parameter warnings.
A few other warnings also fixed like possible use of
unitialized variables (no real issue found, just compiler couldn't
follow the path), signed vs unsigned warning.

Also fixed some typos, indent issues, removal of dead code, etc.

Change-Id: I95eb887aefc4d559d7921f71a0af5f3bfb01ac01
Signed-off-by: Mike J. Chen <mjchen@google.com>
/system/bt/stack/btu/btu_task.c
c16715fe1f36984dd3d8e78a4662806a8473b0bc 07-Sep-2013 zzy <zhenye@broadcom.com> Added lock in btu_xxx_timer api

Bug 10539101: Native crash in com.android.bluetooth while running monkey
/system/bt/stack/btu/btu_task.c
48ebe2c6928d8fd4dc97c8adb138c3440714dc89 24-Apr-2013 YK Jeffrey Chao <jechao@broadcom.com> Preload timeout and retry mechanism (1/3)

If the Preload process was stuck due to unknown hardware init failure,
a 8-second ENABLE_TIMEOUT timeout would be eventually expired in Java layer
at AdapterState and attempted to set BT state back to STATE_OFF.
However BluetoothManagerService did not handle this case accordingly and led
to state mis-matching between Java layer and BTIF at the end.

Add a timeout and retry mechanism to manage Preload process.
Clean up native space resource and explicitly report STATE_OFF back to Java
space when Preload did not go through.

bug 7566317

Change-Id: I99a225e524f2b951249618990a2d0a8a39b43ff3
/system/bt/stack/btu/btu_task.c
ead3cde4bac0c3e32cd31f149093f004eef8ceeb 06-Feb-2013 Ganesh Ganapathi Batta <ganeshg@broadcom.com> Initial version of BLE support for Bluedroid

Change-Id: I9825a5cef9be2559c34c2a529b211b7d471147cf
/system/bt/stack/btu/btu_task.c
5738f83aeb59361a0a2eda2460113f6dc9194271 13-Dec-2012 The Android Open Source Project <initial-contribution@android.com> Snapshot cdeccf6fdd8c2d494ea2867cb37a025bf8879baf

Change-Id: Ia2de32ccb97a9641462c72363b0a8c4288f4f36d
/system/bt/stack/btu/btu_task.c