Commit Graph

692 Commits

Author SHA1 Message Date
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
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
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
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
c1a0601a84 android/bluetooth: Add support for getting remote device UUIDs property
This allows to query for remote device UUIDs property.
2013-12-13 16:53:30 +02:00
Grzegorz Kolodziejczyk
c83b815997 android/tester: Add bdname get prop success test case
This adds bdname set property success test case. First bdname is set and
then is read.
2013-12-13 16:51:38 +02:00
Grzegorz Kolodziejczyk
8c8def53f5 android/tester: Add bdaddr get prop success test case
This adds bdaddr set property success test case.
2013-12-13 16:50:22 +02:00
Grzegorz Kolodziejczyk
9d3896c10e android/tester: Add discovery timeout set prop success test case
This adds discovery timeout set property success test case.
2013-12-13 16:50:10 +02:00
Grzegorz Kolodziejczyk
c9d60db55f android/tester: Add scan mode set prop success test case
This adds scan mode set property success test case.
2013-12-13 16:50:03 +02:00
Grzegorz Kolodziejczyk
cc103e18d8 android/tester: Add property check and bdname set success test case
This adds handling of property check, bdname set property success.
2013-12-13 16:49:33 +02:00
Szymon Janc
c85aa9d126 android/bluetooth: Fix missing property change notification
After setting new discoverable timeout property change notification
with new value should be send.
2013-12-13 16:46:08 +02:00
Andrei Emeltchenko
c01268ceab android/hal-sock: Fix returning incorrect error code
For socket type 0 we shall return BT_STATUS_PARM_INVALID.
2013-12-13 16:44:30 +02:00
Andrei Emeltchenko
4e19041eb8 android/tester: Add Socket test connect invalid sock_type L2CAP 2013-12-13 16:43:17 +02:00
Andrei Emeltchenko
5128fb7e2b android/tester: Add Socket test connect() invalid sock_type 2013-12-13 16:39:50 +02:00
Andrei Emeltchenko
6a9ed0d6b3 android/socket: Do not close fd on unref
We close file descriptors in cleanup_rfsock() and leaving the default
value gives us glib warnings if we close fd already and got G_IO_NVAL in
server_cb from bt_io.
2013-12-13 16:38:37 +02:00
Andrei Emeltchenko
1c79653204 android/tester: Add Socket test success with valid fd
Check that Socket listen() returns valid file descriptor
2013-12-13 16:37:18 +02:00
Andrei Emeltchenko
a1bbc9f0e7 android/tester: trivial: Make test cases prints look nice 2013-12-13 16:37:08 +02:00
Andrei Emeltchenko
a8c66bba70 android/tester: Check that fd is valid for Success case
For the successful test case check that file descriptor is valid through
fcntl which is cheap way.
2013-12-13 16:36:40 +02:00
Andrei Emeltchenko
c318d0e0e4 android/tester: Add Socket test invalid params: chan and uuid
For the socket listen() call parameters channel and uuid cannot be both
zeroes.
2013-12-13 16:36:23 +02:00
Szymon Janc
6377731097 android/pts: Add PTS test results for PBAP
This will allow for better tracking of current state of implementation.
2013-12-13 11:16:39 +02:00
Szymon Janc
e157f7e5f4 android/pts: Add PTS test results for OPP
This will allow for better tracking of current state of implementation.
2013-12-13 11:16:32 +02:00
Szymon Janc
7ac1987f2e android/pts: Add PTS test results for HID
This will allow for better tracking of current state of implementation.
2013-12-13 11:16:20 +02:00
Szymon Janc
1807ade25c android/pts: Add PTS test results for GAP
This will allow for better tracking of current state of implementation.
2013-12-13 11:16:10 +02:00
Luiz Augusto von Dentz
055f0f4cca android/tester: Fix failing tests
Two new adapter properties were indroduced in the daemon which broke
some tests.
2013-12-13 10:42:08 +02:00
Andrei Emeltchenko
0c94740ae2 android/tester: Add Socket listen() invalid L2CAP socket type
Check that we get BT_STATUS_UNSUPPORTED for socket type BTSOCK_L2CAP.
2013-12-12 15:02:02 +02:00
Andrei Emeltchenko
3898fc9d9d android/hal-sock: Fix returning unsupported instead of invalid
For socket type 0 we shall return BT_STATUS_PARM_INVALID,
BT_STATUS_UNSUPPORTED shall be returned for unsupported socket types
like L2CAP.
2013-12-12 15:02:01 +02:00
Andrei Emeltchenko
601edc34f7 android/tester: Add Socket listen() invalid sock type
Test invalid socket type during listen()
2013-12-12 15:01:59 +02:00
Andrei Emeltchenko
d087539106 android/tester: Add Socket data to generic test data struct
Socket data will be used in generic Socket HAL tests
2013-12-12 15:01:57 +02:00
Andrei Emeltchenko
ec2b46d55f android/tester: Add basic Socket Init test
Test get_socket_interface() and basic setup
2013-12-12 15:01:56 +02:00
Andrei Emeltchenko
fba940af00 android/tester: Make generic_data structure const void pointer
This allows us to have different types of generic data, like socket
data, bluetooth data, etc.
2013-12-12 15:01:54 +02:00
Andrei Emeltchenko
b70aac8078 android/tester: Rename controller_setup to test_dummy
test_dummy is a better name for dummy function test.
2013-12-12 15:01:52 +02:00
Szymon Janc
30c902cb06 android/pts: Add PTS PIXIT for PBAP
This complements PTS PICS configuration.
2013-12-12 10:27:58 +02:00
Szymon Janc
9bf0cead81 android/pts: Add PTS PIXIT for PAN
This complements PTS PICS configuration.
2013-12-12 10:27:56 +02:00
Szymon Janc
b313cde393 android/pts: Add PTS PIXIT for OPP
This complements PTS PICS configuration.
2013-12-12 10:27:54 +02:00