Jakub Tyszkowski
e3c51867d9
android/tester: Add stop device discovery done test case
...
Add test case for stopping device discovery when it wasn't started.
2013-12-19 16:39:50 +02:00
Jakub Tyszkowski
2a814c460c
android/tester: Add start device discovery success test case
...
Add test case for starting device discovery with success.
2013-12-19 16:39:43 +02:00
Jakub Tyszkowski
47b3dda804
android/tester: Fix bluetooth disable success test case
...
This fixes not checking for proper status on bluetooth disable.
2013-12-19 16:39:36 +02:00
Jakub Tyszkowski
1474f6cdfe
android/tester: Fix for not checking for BT_STATUS_SUCCESS
...
For BT_STATUS_SUCCESS no checks were done as it is 0 in bt_status_t
enum. Valid status for no status expected should be STATUS_NOT_EXPECTED.
2013-12-19 16:38:59 +02:00
Sebastian Chlad
478e2235c0
android/build: Add l2test to Android.mk
...
Enable l2test tool for the Android target.
2013-12-19 14:18:58 +01:00
Luiz Augusto von Dentz
f9762f5e53
audio/AVRCP: Fix check for values out of range in SetAbsoluteVolume
...
Volume is 7 bits since the 8 bit should be ignored as it is reserved it
should never be > 127. Futhermore the value passed to
media_transport_update_device_volume should be the stored in volume as
it ignores the reserved bits properly.
2013-12-19 15:08:56 +02:00
Sebastian Chlad
94b43b6463
android/pts: Add PICS, PIXITs and PTS for L2CAP
...
This allows better tracking of the current state of implementation
2013-12-19 13:52:10 +01:00
Marcin Kraglak
303acb8364
emulator: Add L2CAP PSM handling to bthost
...
Store the PSM of L2CAP connections. We retrieve the PSM from the
connection request frame.
2013-12-19 13:58:09 +02:00
Andrei Emeltchenko
94d49aa07e
android/socket: Handle Android events for server socket
...
Add watch for tracking events from Android framework for server socket.
Android might want to close server connection, in this case we close
our listening socket and cleaning up rfsock structure. Glib watch is
added with high priority to avoid races.
2013-12-19 11:08:22 +02:00
Andrei Emeltchenko
54468c7fbd
android/tester: Add Socket test close and listen
...
This test the situation when Android close file descriptor we passed to
it and try to listen() again.
2013-12-19 11:08:22 +02:00
Andrei Emeltchenko
402fef79e1
android/tester: Test that connect call returns channel number
...
The test connects to emulated bthost and read channel number
2013-12-19 11:08:22 +02:00
Andrei Emeltchenko
eaf5064375
android/socket: Connect directly to RFCOMM channel if uuid is zero
...
Check uuid and connect to specified RFCOMM channel directly if uuid is
zeroed.
2013-12-19 11:08:22 +02:00
Andrei Emeltchenko
b81374ec80
android/socket: Refactor connect to allow directly connect to rfcomm
...
Since Socket HAL allows us to specify RFCOMM channel number and directly
connect refactor send function to allow connect directly is uuid is zero
and channel number is specified.
2013-12-19 11:08:22 +02:00
Ravi kumar Veeramally
fe8dabaaa1
android/pan: Change local_role to NONE only when device list is empty
2013-12-19 10:11:14 +02:00
Ravi kumar Veeramally
f8a38f2f68
android/pan: Free device after sending diconnected notification
2013-12-19 10:10:25 +02:00
Luiz Augusto von Dentz
24fc2b639e
android/AVDTP: Fix not removing start_timer source
...
It is possible that stream->start_timer can be set on stream_free which
should then should take care of remove it properly otherwise it can
trigger which would very likely cause a crash.
Thanks to Hannu Mallat <hannu.mallat@jolla.com> for reporting it.
2013-12-18 14:53:34 +02:00
Grzegorz Kolodziejczyk
eb220d8d8b
android/tester: Add bluetooth HAL test case - name prefix
...
This add prefix for bluetooth HAL test case names. Bluetooth HAL test
cases now can be easily distinguished. Now Bluetooth HAL test cases
can be run separately.
2013-12-18 14:52:30 +02:00
Grzegorz Kolodziejczyk
394b243eca
android/tester: Move Bluetooth HAL functions before socket HAL
...
This patch move bluetooth HAL test functions before socket
HAL functions. This make it more readable for future test cases growth.
2013-12-18 14:52:11 +02:00
Johan Hedberg
08340f7fdb
android/tester: Fix expected_property_len value for bdname test
2013-12-18 12:39:01 +02:00
Johan Hedberg
27c4ddc3bd
android/tester: Fix whitespace wrt braces
2013-12-18 12:32:01 +02:00
Andrei Emeltchenko
1006b785ac
android/tester: Enable bthost after device is enabled
...
This puts bthost to connectible mode allowing us to use powered setup
for connect to emulated device.
2013-12-18 12:23:23 +02:00
Andrei Emeltchenko
0dc41e579d
android/tester: Check return status for enable()
...
Use check_expected_status helper for test for returned status in
enable() HAL call.
2013-12-18 12:23:17 +02:00
Andrei Emeltchenko
4a60ca797e
android/tester: Check status returned from HAL calls
...
In test setup phase check status returned from enable() call.
2013-12-18 12:23:14 +02:00
Grzegorz Kolodziejczyk
fa2450491e
android/tester: Add SERVICE_RECORD set prop fail test case
...
This adds SERVICE_RECORD set property fail test case due to only
get possibility.
2013-12-18 12:22:08 +02:00
Grzegorz Kolodziejczyk
7dcbb651cf
android/tester: Add RSSI set prop fail test case
...
This adds RSSI set property fail test case due to be only remote device
property.
2013-12-18 12:22:08 +02:00
Grzegorz Kolodziejczyk
a326f43754
android/tester: Add TOD set prop fail test case
...
This adds TYPE_OF_DEVICE set property fail test case due to only
get possibility.
2013-12-18 12:22:08 +02:00
Grzegorz Kolodziejczyk
0ce90dca34
android/tester: Add COD set prop fail test case
...
This adds CLASS_OF_DEVICE set property fail test case due to only
get possibility.
2013-12-18 12:22:08 +02:00
Grzegorz Kolodziejczyk
82a12efec1
android/tester: Add UUIDS set prop fail test case
...
This adds UUIDS set property fail test case due to only get
possibility.
2013-12-18 12:22:08 +02:00
Luiz Augusto von Dentz
d853443954
unit/AVDTP: Add /TP/SIG/FRA/BV-02-C test
...
Verify ithat the IUT (SNK) is able to receive streaming media data on an
established stream.
2013-12-18 12:17:00 +02:00
Luiz Augusto von Dentz
1a564b5b2b
unit/AVDTP: Add /TP/SIG/FRA/BV-01-C test
...
Verify that the IUT (INT and ACP) fragments the signaling messages that
cannot fit in a single L2CAP packet.
2013-12-18 12:17:00 +02:00
Andrei Emeltchenko
efe7bd03fa
android/tester: Fix not returning in failure
2013-12-18 10:41:31 +02:00
Szymon Janc
9a706710e4
bluetooth/hidhost: Fix using feature event as output event
...
Rename handle_uhid_event to handle_uhid_output and make it handle only
output events.
2013-12-18 10:01:30 +02:00
Grzegorz Kolodziejczyk
004ea08953
android/tester: Check adapter cb irrespective of receiving order
...
This patch change checking of expected callbacks from static order to
dynamic. For example properties can be received in different order
than now.
2013-12-18 09:54:28 +02:00
Grzegorz Kolodziejczyk
2eec96c421
android/tester: Fix enum and define coding style
...
This changes all enums values and defines to uppercase instead of
lowercase according to coding style.
2013-12-18 09:51:51 +02:00
Jakub Tyszkowski
dadc54aa5f
android/pts: Add PTS test results for MAP
...
Stock Bluedroid PTS results.
2013-12-17 13:34:40 +02:00
Jakub Tyszkowski
4b3820cc8a
android/pts: Add PTS PICS and PIXIT for MAP
...
Add PICS and PIXIT targetting Android 4.4 and PTS version 5.0.
2013-12-17 13:34:40 +02:00
Johan Hedberg
de7ad8b451
tools/smp-tester: Prefer tester_warn() over fprintf
2013-12-17 13:00:16 +02:00
Andrei Emeltchenko
ea8657a93c
android/tester: Add missing break
2013-12-17 09:43:15 +02:00
Lukasz Rymanowski
2c2a56f546
android/audio: Add audio-hal initial skeleton
...
This patch adds audio module for A2DP.
Also adds empty callbacks for stream_out, stream_in and hw_device
methods.
2013-12-16 17:41:56 +02:00
Lukasz Rymanowski
e47bb633c4
android/audio: Add kitkat audio headers
...
This patch add audio headers required to implement A2DP audio module
Note that from all of these files #include <cutils/bitops.h> has been
removed. The only function used from this include is popcount() and it
is used in system/audio.h. Instead of this function we can use GCC
builtin function __builtin_popcount() which does what is needed.
2013-12-16 17:41:56 +02:00
Luiz Augusto von Dentz
b8b681197e
android: Add initial Android Bluetooth Audio protocol API doc
...
This IPC is used to communicate Android BlueZ daemon and AudioFlinger
plugin.
2013-12-16 17:41:49 +02:00
Andrei Emeltchenko
3e17e3ad22
hciemu: Print error in case hci_vhci is not loaded
...
Error message should indicate that module is not loaded:
Opening /dev/vhci failed: No such file or directory
2013-12-16 11:16:28 +02:00
Andrei Emeltchenko
0ed99fa049
hciemu: Make code consistent
...
It is enough to check for zero in __sync_sub_and_fetch(). This makes
code consistent like shown below:
./src/shared/mgmt.c: if (__sync_sub_and_fetch(&mgmt->ref_count, 1))
./src/shared/pcap.c: if (__sync_sub_and_fetch(&pcap->ref_count, 1))
./src/shared/btsnoop.c: if (__sync_sub_and_fetch(&btsnoop->ref_count, 1))
./src/shared/hciemu.c: if (__sync_sub_and_fetch(&hciemu->ref_count, 1))
2013-12-16 11:16:08 +02:00
Andrei Emeltchenko
63840f3883
btmgmt: Remove unneeded code
2013-12-16 11:15:35 +02:00
Andrei Emeltchenko
2a1ad0fc32
android/tester: Add Socket test invalid bdaddr
...
Test for zero bluetooth address in connect().
2013-12-16 11:13:56 +02:00
Andrei Emeltchenko
c58b4096b5
android/tester: Add Socket test invalid chan and uuid
...
At least one of parameters: channel or uuid shouldn't be zero.
2013-12-16 11:13:54 +02:00
Andrei Emeltchenko
77f9ecc70f
android/tester: Add Socket test read channel number after listen
...
After listen() call Bluedroid sends channel number as (int) through file
descriptor.
2013-12-16 11:13:53 +02:00
Andrei Emeltchenko
b3749d587c
android/tester: Fix syntax of test cases
...
Remove "Test" from every test message print and correct typo.
2013-12-16 10:10:40 +02:00
Szymon Janc
1f9177812c
emulator/bthost: Fix use after free in bthost_destroy
...
cmd was dereferenced after free. Use temp pointer for freeing.
2013-12-16 10:06:34 +02:00
Sebastian Chlad
42744b42ad
build: Add missing test scripts to Makefile.tools
2013-12-16 10:05:41 +02:00