| 534aaf07 |
shared: Add simple queue handling functions |
Marcel Holtmann |
12 years ago |
2 files, +312, -0 |
| edb12d9f |
shared: Add pointer and memory macros |
Marcel Holtmann |
12 years ago |
1 file, +13, -0 |
| ed31a729 |
Release 5.13 |
Marcel Holtmann |
12 years ago |
2 files, +11, -2 |
| 1d0a7f59 |
build: Update library version |
Marcel Holtmann |
12 years ago |
1 file, +1, -1 |
| 35929318 |
lib: Update company identifiers |
Marcel Holtmann |
12 years ago |
1 file, +9, -1 |
| fd00064e |
monitor: Command Complete events with just status are valid |
Marcel Holtmann |
12 years ago |
1 file, +7, -0 |
| cce524b1 |
monitor: Fix small struct indentation issue |
Marcel Holtmann |
12 years ago |
1 file, +2, -2 |
| 4bc39b2b |
monitor: Check that manufacturer part of address is set |
Marcel Holtmann |
12 years ago |
1 file, +3, -0 |
| 2441a9b9 |
monitor: Decode OUI company information from addresses |
Marcel Holtmann |
12 years ago |
3 files, +73, -14 |
| 177eb483 |
monitor: Decode vendor and product information from Device ID |
Marcel Holtmann |
12 years ago |
4 files, +146, -11 |
| 670de1db |
monitor: Decode version information from Device ID |
Marcel Holtmann |
12 years ago |
1 file, +8, -2 |
| 7d310b01 |
android/tester: Refactor HAL callback check
This patch removes ID enum in favour of test cases having their own as
implementation of callbacks checking test conditions.
Now each test case uses it own callback function and within it
test conditions are checked, e.g. with property get test case, property
and if it's properly cb is checked.
Count of expected callback is defined as a number and after calling
proper cb, value is decremented.
This also changes to generic - property check used within HAL cb. |
Grzegorz Kolodziejczyk |
12 years ago |
1 file, +185, -218 |
| 678b2f52 |
android/tester: Correct bdname set test case struc conditions
This patch correct struct elements initialization. Now test name is
declared as variable before test case struct and its size is calculated
using sizeof(), not by hard coded number. |
Grzegorz Kolodziejczyk |
12 years ago |
1 file, +4, -2 |
| d9d2a4d8 |
android/tester: Whitespace and semicolon style correction
This patch adds semicolon to the last element in test case condition
structure. Additional whitespace was removed from function. |
Grzegorz Kolodziejczyk |
12 years ago |
1 file, +18, -20 |
| 2137559a |
android/tester: Change test data variables placement
This patch moves two test variables to proper place in code - before
test case init structs. |
Grzegorz Kolodziejczyk |
12 years ago |
1 file, +5, -4 |
| 3757d419 |
android/tester: Move BT discovery test cases before Socket Hal
This moves and organize test case data. BT discovery test cases to right
place in code. |
Grzegorz Kolodziejczyk |
12 years ago |
1 file, +80, -80 |
| 350180d7 |
android/tester: Seperate Socket HAL cbs from Bluetooth HAL cb
This patch adds seperate callbacks structure for socket HAL test cases.
Is's needed beceause Socket HAL cb have other purpose than Bluetooth HAL
cb. Callbacks are now initialized outside test setup function and
cb struct depends on HAL type. |
Grzegorz Kolodziejczyk |
12 years ago |
1 file, +56, -7 |
| 784ef1cd |
android/bluetooth: Print command opcode in DUT mode functions
Print command opcode in handle_le_test_mode_cmd and
handle_dut_mode_send_cmd. This is valuable information on what kind
of HCI command the Java layer tries to send. |
Szymon Janc |
12 years ago |
1 file, +2, -2 |
| 4257df2c |
android: Add comment why umask() is needed in system-emulator |
Szymon Janc |
12 years ago |
1 file, +1, -0 |
| 6eba17bf |
android/AVDTP: Fix ignoring endpoint delay reporting
The code was setting TRUE ignoring what the caller set. |
Luiz Augusto von Dentz |
12 years ago |
1 file, +1, -1 |
| a40ff5b2 |
android/AVDTP: Remove get_all parameter for get_capability callback
This is not necessary anymore since all delay reporting is now added
automatically whenever supported. |
Luiz Augusto von Dentz |
12 years ago |
3 files, +6, -7 |
| 7c3a06b7 |
android/bluetooth: Print error on unimplemented functions
Functions, callbacks or properties that are not implemented due to
being bogus or not feasible now prints error messages. |
Szymon Janc |
12 years ago |
1 file, +20, -2 |
| 385c00ce |
android/bluetooth: Add support for DUT mode configure command
This allows to enable and disable DUT mode. This is special mode so
adding more info from related kernel commit:
"The Device Under Test (DUT) mode is useful for doing certification
testing and so expose this as debugfs option.
This mode is actually special since you can only enter it. Restoring
normal operation means that a HCI Reset is required. The current mode
value gets tracked as a new device flag and when disabling it, the
correct command to reset the controller is sent." |
Szymon Janc |
12 years ago |
1 file, +26, -3 |
| 3330781a |
android/bluetooth: Fix error message in stop_discovery |
Szymon Janc |
12 years ago |
1 file, +1, -1 |
| 69b7e11c |
android/README: Fix consistency issues with whitespace |
Johan Hedberg |
12 years ago |
1 file, +2, -0 |
| 9f809c0c |
android: Add shortcommings section to README
This sections lists unimplemented methods, callbacks or properties
with few words of comments why feature is missing. |
Szymon Janc |
12 years ago |
1 file, +37, -0 |
| 8af14a0e |
android/bluetooth: Add support for timestamp device property
This allows to handle timestamp property request. Also this will be
usefull for devices info cache (clearing old devices). |
Szymon Janc |
12 years ago |
1 file, +13, -4 |
| 3abc5776 |
unit/AVDTP: Add /TP/SIG/SYN/BV-06-C test
Verify that a delay report received by a SRC IUT while in the STREAMING
state is properly accepted as valid. |
Luiz Augusto von Dentz |
12 years ago |
1 file, +16, -0 |
| b6cc8836 |
android/AVDTP: Fix rejecting DELAY_REPORT command while in OPEN state
This fixes rejection of DELAY_REPORT command while in OPEN state which
is tested by /TP/SIG/SYN/BV-05-C. |
Luiz Augusto von Dentz |
12 years ago |
1 file, +6, -2 |
| 483c6263 |
unit/AVDTP: Add /TP/SIG/SYN/BV-05-C test
Verify that a delay report received by a SRC IUT while in the OPEN state
is properly accepted as valid. |
Luiz Augusto von Dentz |
12 years ago |
1 file, +14, -1 |
| b18cf6d3 |
unit/AVDTP: Add /TP/SIG/SYN/BV-04-C test
Verify that an initial delay report is sent by a SNK (INT) device when
the Stream Configuration Procedure is initiated by the SNK device
(transition from IDLE to OPEN state) and that the report conforms to the
specification. |
Luiz Augusto von Dentz |
12 years ago |
1 file, +12, -0 |
| f4f6c602 |
android/AVDTP: Fix not sending delay reporting capability
If the SEP supports delay reporting and remote device request is GET_ALL
add delay report capability. |
Luiz Augusto von Dentz |
12 years ago |
2 files, +7, -1 |
| da08bafe |
unit/AVDTP: Add /TP/SIG/SYN/BV-03-C test
Verify that an initial delay report is sent by a SNK (ACP) device when
the Stream Configuration Procedure is initiated by the SRC device
(transition from IDLE to OPEN state) and that the report conforms to the
specification. |
Luiz Augusto von Dentz |
12 years ago |
1 file, +16, -1 |
| 70ab680d |
unit/AVDTP: Add /TP/SIG/SYN/BV-02-C test
Verify that the delay reporting capability is configured by a SNK device
when it is offered by the SRC device. This allows a SRC device to detect
and use the delay reporting capability of a SNK device when the SNK
device is the INT of the start streaming procedure. |
Luiz Augusto von Dentz |
12 years ago |
1 file, +9, -0 |
| 79ab981f |
unit/AVDTP: Add /TP/SIG/SYN/BV-01-C test
Verify if the IUT (SNK device) offers the delay reporting capability.
This is required in order to enable a SRC to configure delay reporting. |
Luiz Augusto von Dentz |
12 years ago |
1 file, +28, -0 |
| daa43c8d |
android/tester: Fix possible NULL dereference
value is checked for NULL and later is dereferenced if we do not return. |
Andrei Emeltchenko |
12 years ago |
1 file, +3, -0 |
| 2b62aff1 |
monitor: Add support for decoding inquiry response notification |
Marcel Holtmann |
12 years ago |
2 files, +16, -1 |
| 9bc70e63 |
android/bluetooth: Fix memory leaks in load_devices_info
Groups and key file were not free on function return. This fix
following valgrind reports:
34 (16 direct, 18 indirect) bytes in 1 blocks are definitely lost in
loss record 33 of 77
at 0x4C2A2DB: malloc (in /usr/lib/valgrind/vgpreload_memcheck-
amd64-linux.so)
by 0x4E81DD0: g_malloc (in /lib/x86_64-linux-gnu/libglib-2.0.so
.0.3800.1)
by 0x4E74BF1: g_key_file_get_groups (in /lib/x86_64-linux-gnu/
libglib-2.0.so.0.3800.1)
by 0x40CDFA: read_info_complete (bluetooth.c:1672)
by 0x40827C: request_complete (mgmt.c:221)
by 0x4085E9: received_data (mgmt.c:319)
by 0x4E7C3B5: g_main_context_dispatch (in /lib/x86_64-linux-gnu/
libglib-2.0.so.0.3800.1)
by 0x4E7C707: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.3800.1)
by 0x4E7CB09: g_main_loop_run (in /lib/x86_64-linux-gnu/
libglib-2.0.so.0.3800.1)
by 0x403B15: main (main.c:439)
1,633 (72 direct, 1,561 indirect) bytes in 1 blocks are definitely lost
in loss record 75 of 77
at 0x4C2A2DB: malloc (in /usr/lib/valgrind/
vgpreload_memcheck-amd64-linux.so)
by 0x4E81DD0: g_malloc (in /lib/x86_64-linux-gnu/
libglib-2.0.so.0.3800.1)
by 0x4E9796D: g_slice_alloc (in /lib/x86_64-linux-gnu/
libglib-2.0.so.0.3800.1)
by 0x4E97EAD: g_slice_alloc0 (in /lib/x86_64-linux-gnu/
libglib-2.0.so.0.3800.1)
by 0x4E746DA: g_key_file_new (in /lib/x86_64-linux-gnu/
libglib-2.0.so.0.3800.1)
by 0x40CDD4: read_info_complete (bluetooth.c:1667)
by 0x40827C: request_complete (mgmt.c:221)
by 0x4085E9: received_data (mgmt.c:319)
by 0x4E7C3B5: g_main_context_dispatch (in /lib/x86_64-linux-gnu/
libglib-2.0.so.0.3800.1)
by 0x4E7C707: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.3800.1)
by 0x4E7CB09: g_main_loop_run (in /lib/x86_64-linux-gnu/
libglib-2.0.so.0.3800.1)
by 0x403B15: main (main.c:439) |
Szymon Janc |
12 years ago |
1 file, +2, -0 |
| 6ceab6da |
android/tester: Add remote device found success test case
Add checking for remote device being found. |
Jakub Tyszkowski |
12 years ago |
1 file, +100, -2 |
| c1928410 |
android/bluetooth: Remove not needed local variable
Both manufacturer and sub_version already have correct type and struct
is marked as packed so there is no need to memcpy to temp variable. |
Szymon Janc |
12 years ago |
1 file, +2, -5 |
| b6b3ff89 |
android/bluetooth-hal: Fix using wrong struct for buffer size
Buffer is for hal_cmd_le_test_mode command. |
Szymon Janc |
12 years ago |
1 file, +1, -1 |
| 90bd1a3e |
android: Include btmon and l2test in userdebug builds
This patch changes btmon and l2test module tags from 'eng' to 'debug' so
they are automatically installed also for userdebug variant which is
default for AOSP devices. |
Andrzej Kaczmarek |
12 years ago |
1 file, +2, -2 |
| 06d18f96 |
bnep: Refactored bnep server apis for bridge addition and deletion
To simplify bnep server related bridge creation and deletion calls
provided extra apis and moved existing apis to static. |
Ravi kumar Veeramally |
12 years ago |
3 files, +51, -47 |
| 50246bba |
bnep: Refactored bnep connect and disconnect calls
Refactored bnep connect and disconnect calls to simplify and
keeping bnep related functionality behind curtains.
bnep_connect calls takes care of bnep_setup until interface up
then connect callback will be called. Set disconnect callback
when connect call succeeds. bnep_disconnect should be
called only when iface is up/connected. |
Ravi kumar Veeramally |
12 years ago |
4 files, +96, -87 |
| cd3dd64b |
bnep: Add bnep_disconnect and bnep_set_disconnect apis
Set disconnect call and callback will be triggered by I/O event on
bnep channel. Call bnep_disconnect, it will delete bnep connection
and down the interface, if interface is not up and running do not
use this api, simply call bnep_free. |
Ravi kumar Veeramally |
12 years ago |
2 files, +39, -0 |
| 02fdd78d |
bnep: Add bnep_new and bnep_free api's
Refactoring connect and disconnect mechanisms. It would be more
convinient for caller to maintain just bnep connection reference
and delete whenever it is not required. |
Ravi kumar Veeramally |
12 years ago |
2 files, +47, -0 |
| 9a706b36 |
bnep: Rename struct bnep_conn to bnep and vars for better readability |
Ravi kumar Veeramally |
12 years ago |
1 file, +40, -40 |
| b11f10f8 |
android/tester: Fix memory leak
Call del_hook() after add_hook(). This fixes valgrind warnings:
...
==15303==
==15303== HEAP SUMMARY:
==15303== in use at exit: 3,060 bytes in 27 blocks
==15303== total heap usage: 6,410 allocs, 6,383 frees, 332,477 bytes
allocated
==15303==
==15303== 24 bytes in 1 blocks are definitely lost in loss record 9 of
27
==15303== at 0x4C2A2DB: malloc (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==15303== by 0x406E20: btdev_add_hook (btdev.c:2166)
==15303== by 0x40BFC2: test_discovery_start_done
(android-tester.c:1401)
==15303== by 0x409C65: run_callback (tester.c:385)
==15303== by 0x4E7C3B5: g_main_context_dispatch (in
/lib/x86_64-linux-gnu/libglib-2.0.so.0.3800.1)
==15303== by 0x4E7C707: ??? (in
/lib/x86_64-linux-gnu/libglib-2.0.so.0.3800.1)
==15303== by 0x4E7CB09: g_main_loop_run (in
/lib/x86_64-linux-gnu/libglib-2.0.so.0.3800.1)
==15303== by 0x40A85C: tester_run (tester.c:784)
==15303== by 0x40368B: main (android-tester.c:1654)
==15303==
==15303== 24 bytes in 1 blocks are definitely lost in loss record 10 of
27
==15303== at 0x4C2A2DB: malloc (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==15303== by 0x406E20: btdev_add_hook (btdev.c:2166)
==15303== by 0x40BF12: test_discovery_stop_success
(android-tester.c:1386)
==15303== by 0x409C65: run_callback (tester.c:385)
==15303== by 0x4E7C3B5: g_main_context_dispatch (in
/lib/x86_64-linux-gnu/libglib-2.0.so.0.3800.1)
==15303== by 0x4E7C707: ??? (in
/lib/x86_64-linux-gnu/libglib-2.0.so.0.3800.1)
==15303== by 0x4E7CB09: g_main_loop_run (in
/lib/x86_64-linux-gnu/libglib-2.0.so.0.3800.1)
==15303== by 0x40A85C: tester_run (tester.c:784)
==15303== by 0x40368B: main (android-tester.c:1654)
==15303==
... |
Andrei Emeltchenko |
12 years ago |
1 file, +6, -1 |
| b3c0a8a3 |
android/tester: Add test Connect returns valid fd
The case is analog for similar test case with listen(). |
Andrei Emeltchenko |
12 years ago |
1 file, +6, -0 |
| 68f4b788 |
android/tester: Make code consistent using < 0 comparison |
Andrei Emeltchenko |
12 years ago |
1 file, +3, -3 |