OSDN Git Service
Zach Johnson [Tue, 24 Mar 2015 01:07:46 +0000 (18:07 -0700)]
Rewrite alarms to use a single posix timer instance
This means we lose the ability to send the intended alarm
as context with the posix timer, but this can be handled
gracefully enough by making sure we actually have an
expired alarm at the front of the list when the timer
callback occurs.
Change-Id: I909195b5c3155075096328c529655eeb5b7d80d0
Chris Manton [Thu, 26 Mar 2015 20:28:51 +0000 (13:28 -0700)]
Change logtag to conform to rest of module
Change-Id: I9b99111f50dc4f1c581ef96e78b36d14b51a6866
Andre Eisenbach [Thu, 26 Mar 2015 21:14:40 +0000 (14:14 -0700)]
Move unused include file out of hci_audio.h
This fixes include path issues for libbt.
Change-Id: I416f563c0056216e86898d8e9cc111b600c73ce0
Mudumba Ananth [Wed, 25 Mar 2015 12:20:02 +0000 (05:20 -0700)]
Resolved hardware error observed during SCO Connection setup
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
Satya Calloji [Tue, 3 Feb 2015 22:41:49 +0000 (14:41 -0800)]
Random address does not get written properly
The random address not getting written with correct
instance ID, as per Google spec.
Bug:
19370739
Change-Id: I7e5fc8d274bad5f127bd791469a46e2f257eaddd
Steve Gu [Thu, 6 Nov 2014 19:16:41 +0000 (11:16 -0800)]
Builds server with service, characteristic, and descriptor UUIDs. Then starts and stops the server.
Change-Id: I22e269010c5e4d96d9562155e03903c3ea957c97
Steve Gu [Wed, 29 Oct 2014 01:38:30 +0000 (18:38 -0700)]
Adds tests for BLE advertising and BLE server register. Also fixes random seed.
Change-Id: Ic15360baefb133b761ff077d27946c0ea7fa3edb
Steve Gu [Mon, 27 Oct 2014 19:59:02 +0000 (12:59 -0700)]
Adds BLE tests to bdtest.
Change-Id: Idcdc01339f0e8a14b6fedf27545566e7efdf53c2
Andre Eisenbach [Thu, 26 Mar 2015 00:04:14 +0000 (00:04 +0000)]
Merge "Add section on booleans and bitfields to the style guide" into m-wireless-dev
Zach Johnson [Tue, 24 Mar 2015 17:05:15 +0000 (10:05 -0700)]
Add section on booleans and bitfields to the style guide
Change-Id: I75df8b638d71bfe2ba1dc98d3eb148d8a61f5b9c
Nitin Arora [Fri, 20 Mar 2015 00:00:35 +0000 (17:00 -0700)]
Rectify allocation of GATT control block
This change ensures that a valid value is returned while
requesting available control block or allocating memory
for a new control block for saving GATT discovery handles.
The bug if not fixed causes memory corruption and thus
modifying some callback handles.
Change-Id: I148ee82d2ea9fe77bebd34fd345b4fb6a6eee3cd
Chris Manton [Wed, 25 Mar 2015 18:01:11 +0000 (18:01 +0000)]
Revert "Resolved hardware error observed during SCO Connection setup"
This reverts commit
4d8ac4ff015ff87c4e985ac0d9a5f3c2a6b0d9fa.
Change-Id: Ie1433c82014b6ddce78c5363100ab109ae0fecde
Mudumba Ananth [Wed, 25 Mar 2015 12:20:02 +0000 (05:20 -0700)]
Resolved hardware error observed during SCO Connection setup
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
Nitin Arora [Wed, 22 Jan 2014 18:33:26 +0000 (10:33 -0800)]
Allow dual-mode devices to be processed by BR/EDR scan
This change lets a Dual mode device which is already processed
as LE device for the current inquiry, to be also processed as
a BR/EDR device in case an extended inquiry result is recvd.
This helps setting the cod correctly.
Change-Id: I0a0c598ebdafe2b6153015c3cda5dde8f7a15873
Zach Johnson [Mon, 23 Mar 2015 20:59:10 +0000 (13:59 -0700)]
Rewrite alarm to avoid drift in the periodic version
Also improve names of some functions.
Change-Id: Ia5aeebc8226ce5c36abdd372ea4de5195314e273
Andre Eisenbach [Tue, 24 Mar 2015 01:11:01 +0000 (01:11 +0000)]
Merge "Remove unused remote_name_* variables" into m-wireless-dev
Andre Eisenbach [Tue, 24 Mar 2015 01:07:54 +0000 (18:07 -0700)]
Remove unused remote_name_* variables
Change-Id: Ib0db95646564439a9458542db9b1891ea818c5d7
Andre Eisenbach [Tue, 24 Mar 2015 00:44:36 +0000 (00:44 +0000)]
Merge "Style guide: Use C99 style flexible arrays" into m-wireless-dev
Andre Eisenbach [Thu, 19 Mar 2015 22:38:34 +0000 (15:38 -0700)]
Style guide: Use C99 style flexible arrays
Change-Id: I012d9f4195833e2c6c9a5c953e71b7a7b5847673
Nitin Arora [Fri, 26 Sep 2014 21:05:24 +0000 (14:05 -0700)]
Delete 0 index LE scan filter at inquiry cancel
This patch ensures that the 0 index filter is deleted when the
inquiry is cancelled due to initiation of a direct connection
from inquiry or due to return from the Settings menu screen
Change-Id: I281c6ace15b17fb7e413c42d36e016b8f82d2ace
Nitin Arora [Sat, 22 Mar 2014 01:28:04 +0000 (18:28 -0700)]
Ignore LE security request if BR/EDR pairing is ongoing
This change checks the btm state to see if a BR/EDR pairing
is ongoing when a security request is received from a remote
device.
Change-Id: Ia3f9c9db6c1aed944857174528c14ed66f184152
Andre Eisenbach [Mon, 23 Mar 2015 20:26:23 +0000 (20:26 +0000)]
Merge "Extend Bluetooth startup timeout from 3s to 8s" into m-wireless-dev
Andre Eisenbach [Mon, 23 Mar 2015 20:21:42 +0000 (20:21 +0000)]
Merge "Reset LE connecting flag on disconnect only if BDA matches" into m-wireless-dev
Andre Eisenbach [Mon, 23 Mar 2015 20:12:53 +0000 (20:12 +0000)]
Merge "Remove ACL connection reference counting" into m-wireless-dev
Nitin Arora [Fri, 6 Jun 2014 22:21:25 +0000 (15:21 -0700)]
Reset LE connecting flag on disconnect only if BDA matches
This change will make sure that the flag representing that BLE device
is connecting is made false only if a disconnection of the same
LE device is received, whose connection is in progress. This is ensured
by matching the bda of the disconnecting device and the LE device which
is in connecting state. This is to prevent a BR/EDR disconnection from
cancelling the connection timeout of an LE device
Change-Id: Ia5b47681479dc0be217cdfc3e15af9ca5323575c
Nitin Arora [Tue, 18 Feb 2014 23:28:59 +0000 (15:28 -0800)]
Send GATT discovery complete only if discovery is active
This change forces a discovery complete event at gatt close
event only if service discovery is in progress and not when
inquiry is on going. Otherwise, a false discovery complete
is sent to the host, which cause a never ending inquiry.
Change-Id: I7ca207382b04ed233c149ca50040dab993067870
Andre Eisenbach [Mon, 23 Mar 2015 16:46:08 +0000 (09:46 -0700)]
Extend Bluetooth startup timeout from 3s to 8s
Change-Id: I0e8af541bf9c5837d92b5ccc047b3dd9d3765767
Andre Eisenbach [Thu, 19 Mar 2015 22:15:05 +0000 (15:15 -0700)]
Remove ACL connection reference counting
In addition to maintaining ACL link control blocks, which carry a
"in_use" flag, ACL links are reference counted in the num_acl links
variable.
The reference counting is thrown off when a SM connection initiated for
pairing is followed up by a GATT connection after pairing completes. The
2nd connection is counted against num_acl, even so other parts of the
code recognize the connection as a duplicate ACL connection to the same
BDA.
This patch removes the unecessary reference counting and relies on the
control block status instead, which is correctly maintained.
Bug:
19019189
Change-Id: I0a5f4d279fc634689d0e8c0ef4ad639d0ce5d687
Chris Manton [Thu, 12 Mar 2015 16:22:48 +0000 (09:22 -0700)]
Demote, cleanup and extend observed logging
Sharvil Nanavati [Thu, 12 Mar 2015 18:53:44 +0000 (11:53 -0700)]
Code formatting and language feature additions to the style guide.
Sharvil Nanavati [Thu, 12 Mar 2015 22:55:21 +0000 (15:55 -0700)]
Use fully qualified path for btcore includes.
Sharvil Nanavati [Thu, 12 Mar 2015 22:42:50 +0000 (15:42 -0700)]
Use fully qualified path for OSI includes.
Sharvil Nanavati [Wed, 11 Mar 2015 04:14:40 +0000 (21:14 -0700)]
Start putting together a style guide for bluedroid.
It's far from complete but provides a starting point for codifying
best practices and guidelines for developing in this codebase.
Sharvil Nanavati [Thu, 12 Mar 2015 06:50:42 +0000 (23:50 -0700)]
Atomically update config files.
There's a race condition on shutdown between Java and native code.
A stack shutdown is issued from Java and in the meantime the
calling thread calls System.exit(0). If that line is reached before
the native code has had a chance to shut down cleanly, the system
could be stuck in a bad state.
This change uses rename(2) to replace an existing config file
atomically instead of truncating, writing, and then flushing. In
case of a crash or the race condition above, the config file will
still be valid.
There's an implementation gotcha. The config saving code uses ".new"
as a suffix on the original filename to write to a temporary file.
If a file by that name already exists, it will be overwritten.
Zach Johnson [Wed, 11 Mar 2015 08:55:27 +0000 (01:55 -0700)]
Add ability to set periodic alarms
Adds alarm_set_periodic so the alarm code can have more
contextual information when rescheduling alarms.
Problem: A2DP would stream for a few seconds and then
stop working.
Cause: The Java garbage collector. Bluedroid reaches out
to javaland to acquire and release the wake lock. Alarm was
always reaching out to get the wake lock when it scheduled a
short timeout. If GC kicked in during that call out to make
sure we have the wake lock, it could take more than 100ms to
get back us. That would screw over the alarm implementation
particularly for small 20ms timers.
So now if the wake lock was already acquired, we don't try to
reacquire it.
Cool. But we still have thrashing. Why? Because the alarm code
doesn't know the alarm is actually being used in a periodic way.
Here's what used to happen:
alarm expires
alarm is removed
reschedule
alarm callback is called
alarm callback sets the alarm again
alarm is added
reschedule
The problem is the first reschedule will get rid of the wake lock
if the next alarm is too far out or doesn't exist, meaning the next
reschedule needs to get the wake lock again.
With the extra periodicity information we can eliminate the
unnecessary intermediate reschedule, meaning no thrashing on the
wake lock. yay!
Chris Manton [Fri, 6 Mar 2015 22:41:32 +0000 (14:41 -0800)]
Allocate a2d list properly
Some other minor cosmetic improvements
Zach Johnson [Thu, 5 Mar 2015 23:24:40 +0000 (15:24 -0800)]
Remove dead code checks for BLE support
On some build configurations (looking at you, hammerhead) the controller
hasn't come up before BTU init stuff happens.
These BLE support checks were triggering the assert that ensures the
controller module has loaded when you try to access it.
However, these BLE support checks were dead code because the outcome was
the same regardless in either case (returning from the function). Removed.
It's a good thing these asserts were in place, because if these checks
were actually important to the correctness of the code we'd be reading
bad state (BLE supported would always be false during this stage) and
we would have no idea. Yay asserts!
Zach Johnson [Wed, 4 Mar 2015 22:47:00 +0000 (14:47 -0800)]
Rejig hci upwards dispatch
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.
Zach Johnson [Wed, 4 Mar 2015 22:06:13 +0000 (14:06 -0800)]
Reinstate btsnoop last log saving
Waited for the merge to complete before reworking
the feature into the stack.
VenkatRaghavan VijayaRaghavan [Fri, 6 Feb 2015 06:20:39 +0000 (22:20 -0800)]
Prevent Memory overbound and initialize variables
1. Fix for initializing all the un-initialized variables
2. Potential strncpy overbound
Bug:
19417758
VenkatRaghavan VijayaRaghavan [Tue, 10 Feb 2015 15:35:10 +0000 (07:35 -0800)]
Resolved trace level issue for AVDTP
Root Cause: Trace messages are getting logged
When setting TRC_AVDT=5 the trace level doesn't take effect. Due to
multiple initialization points the bt_stack.conf value was overwritten
Bug:
19417758
Zach Johnson [Mon, 2 Mar 2015 22:42:02 +0000 (14:42 -0800)]
Move list function comments to the header file
Zach Johnson [Mon, 2 Mar 2015 22:28:54 +0000 (14:28 -0800)]
Move hashmap function comments to the header file
Sharvil Nanavati [Sun, 28 Dec 2014 10:25:02 +0000 (02:25 -0800)]
Remove more GKI code.
This change removes all remaining GKI task remnants as well as
a few timer and buffer bits.
Sharvil Nanavati [Mon, 2 Mar 2015 23:34:21 +0000 (15:34 -0800)]
Remove dependency on GKI tasks from BTIF media task.
The previous code started a thread and posted a long-running function
to the thread's event loop. In essence, it created a thread and ran
a custom thread main that did its own event handling using GKI_wait.
The new code doesn't use GKI_wait or GKI_send_event at all. Instead,
it uses thread_post and the thread's reactor to enqueue and dispatch
events.
Sharvil Nanavati [Mon, 2 Mar 2015 23:02:39 +0000 (15:02 -0800)]
Don't call GKI_send_event on BTU task since it's not a GKI task anymore.
Sharvil Nanavati [Mon, 2 Mar 2015 22:56:24 +0000 (14:56 -0800)]
Remove GKI timers
June R. Tate-Gans [Thu, 9 Oct 2014 21:16:25 +0000 (14:16 -0700)]
Adding some documentation for the power management flow.
Zach Johnson [Wed, 28 Jan 2015 19:16:15 +0000 (11:16 -0800)]
Add sniff changed log statement on the mode changed event
This will ensure we log accordingly when the other end
decides to put the connection into sniff mode.
Sharvil Nanavati [Wed, 21 Jan 2015 07:12:31 +0000 (23:12 -0800)]
Collapse BNEP #defines that don't need to be configurable.
In some instances, defining these macros to FALSE would result in
broken runtime behavior (e.g. UUID fields containing uninitialized
values). This change collapses the following defines:
BNEP_SUPPORTS_PROT_FILTERS
BNEP_SUPPORTS_MULTI_FILTERS
BNEP_SUPPORTS_DEBUG_DUMP
BNEP_SUPPORTS_ALL_UUID_LENGTHS
Sharvil Nanavati [Mon, 19 Jan 2015 18:03:08 +0000 (10:03 -0800)]
Add a new l2cap_client class.
The code to negotiate an L2CAP connection is currently scattered
and duplicated throughout the codebase. Each profile that uses
L2CAP has its own explicit or implicit state machine to go establish
a connection and go through the handshake. This class is intended
to consolidate that duplicated code and provide a usable API for
L2CAP client connections.
Sharvil Nanavati [Sun, 18 Jan 2015 06:12:38 +0000 (22:12 -0800)]
Add connection-specific function L2CA_SetConnectionCallbacks.
This function allows a client to specify callback routines per-
connection instead of per-PSM.
Chris Manton [Thu, 8 Jan 2015 18:47:59 +0000 (10:47 -0800)]
property api unification, naming and testing
Sharvil Nanavati [Mon, 15 Dec 2014 09:37:59 +0000 (01:37 -0800)]
Add a reference counted buffer implementation.
This implementation introduces the notion of a 'slice'. A slice is
simply a sub-buffer of the original buffer. Slices refer to their
parent buffer so no memory is copied and slice creation becomes an
O(1) operation. Although I'm introducing a new concept, in practice,
a slice is indistinguishable from a buffer (they share a type and
all operations).
I expect slices to be used heavily during packet construction. For
example, an RFCOMM implementation would request a buffer from the
L2CAP layer (which may in turn request a buffer from the HCI layer).
The L2CAP layer would reserve some space in the buffer for its header
and return a slice to the RFCOMM layer.
Sharvil Nanavati [Mon, 29 Dec 2014 18:24:15 +0000 (10:24 -0800)]
Collapse more feature flags.
Start reviewing in include/bt_target.h.
Sharvil Nanavati [Mon, 29 Dec 2014 06:29:42 +0000 (22:29 -0800)]
Collapse RFCOMM_INCLUDED and GAP_INCLUDED guards.
Both of these features are always available in bluedroid.
Sharvil Nanavati [Mon, 29 Dec 2014 12:51:27 +0000 (04:51 -0800)]
Delete unused Broadcom-specific extensions API.
Sharvil Nanavati [Mon, 29 Dec 2014 12:23:30 +0000 (04:23 -0800)]
Eliminate unusable wcassert code in favor of plain old C asssert.
The WC_* macros only expand to something meaningful when _DEBUG is
also defined. However, on enabling _DEBUG, bluedroid fails to build
because the wc_assert function is not defined anywhere. We can get
what I imagine is the equivalent behavior by switching over to the
standard C assert macro.
Zach Johnson [Mon, 12 Jan 2015 21:56:46 +0000 (13:56 -0800)]
Drop duplicate profile connection requests
If profile connection requests come in too quickly
for us to handle, clients can effectively DoS the bluetooth
stack.
We used to see out of buffer errors because the requests
were batched up and sitting on buffers the rest of the stack
needed. With the switch to pure allocation we didn't see that
specific problem anymore, but we were still running into the
sanity assert.
Bug:
18323666
Chris Manton [Thu, 8 Jan 2015 17:19:20 +0000 (09:19 -0800)]
Data type representing the bluetooth iac parameter
June R. Tate-Gans [Wed, 7 Jan 2015 01:38:29 +0000 (17:38 -0800)]
First pass at the bluedroid profile manager.
Chris Manton [Wed, 7 Jan 2015 21:59:14 +0000 (13:59 -0800)]
Rename legacy uuid_copy to not conflict
Chris Manton [Wed, 7 Jan 2015 21:54:24 +0000 (13:54 -0800)]
Add size_t inclusion
Chris Manton [Wed, 7 Jan 2015 21:34:18 +0000 (13:34 -0800)]
bt property object
Chris Manton [Wed, 7 Jan 2015 21:34:06 +0000 (13:34 -0800)]
Add bdcopy method
Zach Johnson [Wed, 7 Jan 2015 17:48:50 +0000 (09:48 -0800)]
Remove some more unused functions in btm_acl
Zach Johnson [Wed, 7 Jan 2015 17:37:20 +0000 (09:37 -0800)]
Remove unused read link policy + friends
Was never called, and the removal of which obviated
a lot of other code.
Zach Johnson [Wed, 7 Jan 2015 17:18:28 +0000 (09:18 -0800)]
Remove unused link supervision timeout code
The btm callback was never set, so this code
did nothing useful.
Chris Manton [Wed, 7 Jan 2015 19:07:04 +0000 (11:07 -0800)]
uuid_test
Chris Manton [Thu, 20 Nov 2014 06:15:35 +0000 (22:15 -0800)]
Device class implementation
Chris Manton [Tue, 6 Jan 2015 23:45:41 +0000 (15:45 -0800)]
Add compile time checks
Chris Manton [Tue, 11 Nov 2014 20:14:52 +0000 (12:14 -0800)]
Add more uuid methods
Zach Johnson [Wed, 5 Nov 2014 05:43:33 +0000 (21:43 -0800)]
Add a simple classic peer
Zach Johnson [Wed, 5 Nov 2014 22:29:31 +0000 (14:29 -0800)]
Add a hash function for bluetooth addresses
Also includes simple tests for it + disambiguates
including hash_function.h throughout the stack.
Zach Johnson [Wed, 5 Nov 2014 22:25:49 +0000 (14:25 -0800)]
Add key equality function option for hash_map
This will allow us to do deeper equality on things like
bluetooth addresses where the actual pointers are different
but the values of the bluetooth addresses are the same.
Zach Johnson [Sat, 27 Dec 2014 04:29:27 +0000 (20:29 -0800)]
Clean up unused functions in btm_sec
Zach Johnson [Thu, 25 Dec 2014 03:09:22 +0000 (19:09 -0800)]
Remove unused security abort callback
The callback in BTA was null, so it never was actually
used.
Zach Johnson [Wed, 24 Dec 2014 23:59:14 +0000 (15:59 -0800)]
Remove link key request callback
The core security manager stores whether we have link keys
for each peer. This other call up to the bta device manager
to see if it has link keys is a dead end and does nothing.
Zach Johnson [Sat, 27 Dec 2014 01:51:03 +0000 (17:51 -0800)]
Canonicalize HCI logtags with bt_ prefix
Zach Johnson [Thu, 25 Dec 2014 05:07:38 +0000 (21:07 -0800)]
Add bash script for running unit tests
This script helps simplify pushing and running bluedroid unit tests.
You can run all of the known ones, or provide names of selected unit
test executables you wish to run.
Sharvil Nanavati [Mon, 29 Dec 2014 08:56:46 +0000 (00:56 -0800)]
Rename Bluetooth binaries to use the net_ and net_test_ prefixes.
Steve Gu [Fri, 7 Nov 2014 23:05:06 +0000 (15:05 -0800)]
Sometimes I forget stopping shell before running bdtest.
Make this check automatic and print out a friendly message for reminder.
Sharvil Nanavati [Fri, 26 Dec 2014 06:17:09 +0000 (22:17 -0800)]
Remove unnecessary newlines at the end of log statements.
Sharvil Nanavati [Wed, 24 Dec 2014 07:08:58 +0000 (23:08 -0800)]
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.
Zach Johnson [Mon, 8 Sep 2014 19:10:30 +0000 (12:10 -0700)]
Remove unused ACL packet size getters, remove unused timer entity
Sharvil Nanavati [Fri, 12 Dec 2014 07:19:44 +0000 (23:19 -0800)]
Extend bdtool to accept / initiate SCO connections.
This is a great way to run controlled audio quality experiments for
the Handsfree profile.
Sharvil Nanavati [Fri, 12 Dec 2014 09:52:55 +0000 (01:52 -0800)]
Remove unused shell script, gen-buildcfg.sh.
Sharvil Nanavati [Sun, 7 Dec 2014 22:15:09 +0000 (14:15 -0800)]
Add RFCOMM result code string for an unspecified error.
The code enumerating the list of possible error codes is not
a C enum and the original authors skipped a value. As a result, the
table mapping error codes to strings is off by one after that skipped
value. I'm inserting a string for that error code even though it's not
defined so the strings line up with the actual error.
June R. Tate-Gans [Tue, 2 Dec 2014 20:48:03 +0000 (12:48 -0800)]
Adding some logging for the close states for RFCOMM connections.
Sharvil Nanavati [Sat, 15 Nov 2014 08:17:35 +0000 (00:17 -0800)]
Fix bug in SDP server where it would get into an infinite loop.
If the SDP database is mutated while a client is fetching SDP records,
we can end up in an infinite request/response loop. Specifically, if
an SDP record is deleted after a client has received the first fragment
of a multi-fragment response, the server will not be able to complete
the request. Instead, it will return the same continuation token back
to the client which will request the next fragment and the server,
again, will return the same continuation token. This process repeats
forever, resulting in a large amount of unncessary BT traffic and
power costs on both devices.
Unfortunately, this seems to be a design flaw in the current SDP
server implementation. This change simply detects the above condition
and aborts the transaction entirely by returning an error to the
client. Future changes will eliminate this class of problem entirely.
Sharvil Nanavati [Fri, 14 Nov 2014 01:29:21 +0000 (17:29 -0800)]
Introduce a growing array class.
Arrays are useful for storing a collection of small objects where
linked list node allocations would be a lot of overhead. They are
also useful for random access through the container. Lastly, this
implementation assumes copy semantics which are intentionally
different from list's reference semantics (since objects are assumed
to be smaller).
The current interface is intentionally sparse.
Zach Johnson [Thu, 13 Nov 2014 21:55:32 +0000 (13:55 -0800)]
Increase GKI buffer size
Bug:
18324148
Chris Manton [Tue, 11 Nov 2014 21:15:13 +0000 (13:15 -0800)]
Add counter unit tests
Chris Manton [Thu, 13 Nov 2014 00:31:43 +0000 (16:31 -0800)]
Explicitly add include paths
Allocation test harness included relatively local
header allocation_tracker.h. Change to include
absolute header location from bluedroid root.
Sharvil Nanavati [Thu, 13 Nov 2014 09:04:19 +0000 (01:04 -0800)]
Enable allocation tracking for eng and userdebug builds.
This change will result in a constant increase in memory utilization
per allocation but will help us catch memory errors earlier.
Sharvil Nanavati [Wed, 5 Nov 2014 22:48:58 +0000 (14:48 -0800)]
Add a "setDiscoverable" command to hci.
June R. Tate-Gans [Tue, 11 Nov 2014 00:34:45 +0000 (16:34 -0800)]
Adding in some additional, but critical, logs.
Sharvil Nanavati [Fri, 7 Nov 2014 02:34:06 +0000 (18:34 -0800)]
Update module names to not use C preprocessor and to be at top of headers.
Chris Manton [Fri, 19 Sep 2014 17:49:50 +0000 (10:49 -0700)]
Replace BUFFER_Q with list_t #2
rcv_hold_q -> rcv_pending_q
Chris Manton [Thu, 18 Sep 2014 23:19:26 +0000 (16:19 -0700)]
Replace BUFFER_Q with list_t
soc_queue