Commit Graph

18558 Commits

Author SHA1 Message Date
Andrei Emeltchenko
076e5e2ca1 unit/avrcp: Add /TP/MCN/CB/BV-07-C test
Test verifies that GetItemAttributes command issued by the Controller.
2014-04-02 14:25:41 +03:00
Luiz Augusto von Dentz
272d77594e android/avrcp: Add avrcp_get_item_attributes() function 2014-04-02 14:25:41 +03:00
Andrei Emeltchenko
47c2a232b3 unit/avrcp: Add /TP/MCN/CB/BV-04-C test
Test verifies that the ChangePath command issued by the Controller.
2014-04-02 14:25:41 +03:00
Luiz Augusto von Dentz
8731902f62 android/avrcp: Add avrcp_change_path() function 2014-04-02 14:25:41 +03:00
Andrei Emeltchenko
04fc7bc512 unit/avrcp: Add /TP/MCN/CB/BV-01-C test
Test verifies that the GetFolderItems command issued by the Controller
with VFS parameter.
2014-04-02 14:25:41 +03:00
Andrei Emeltchenko
34fd1b4e76 unit/avrcp: Add Connection establishment and release tests
Tests are checking connection establishment and release for browsing
channel. Since we are connected through socketpair the tests are dummy.
2014-04-02 14:25:41 +03:00
Andrei Emeltchenko
99125619aa unit/avrcp: Add /TP/MPS/BV-01-I test
Test verifies that Controller is able to request the list of available
Media Players.
2014-04-02 14:25:40 +03:00
Andrei Emeltchenko
909ae0ca03 unit/avrcp: Add /TP/MPS/BV-08-C test
Test verifies that GetFolderItems cmd for the Media Player List
issued by the Controller.
2014-04-02 14:25:40 +03:00
Luiz Augusto von Dentz
36d6b226c7 android/avrcp: Add avrcp_get_folder_items() function 2014-04-02 14:25:40 +03:00
Andrei Emeltchenko
e405b40842 unit/avrcp: Add /TP/MPS/BV-03-C test
Test verifies that SetBrowsedPlayer command issued by the Controller.
2014-04-02 14:25:40 +03:00
Andrei Emeltchenko
973a2d8a29 unit/avrcp: Add browsing channel support in unit testing 2014-04-02 14:25:40 +03:00
Luiz Augusto von Dentz
007909a842 android/avrcp: Add avrcp_set_browsed_player() function 2014-04-02 14:25:40 +03:00
Andrei Emeltchenko
6114561af4 android/avrcp: Add avrcp_connect_browsing()
Add support for browsing channel
2014-04-02 14:25:40 +03:00
Luiz Augusto von Dentz
97518af91a android/avrcp-lib: Add support for parsing SetAddressed response 2014-04-02 14:25:40 +03:00
Luiz Augusto von Dentz
ac93ba0e44 gobex: Fix asserting when resending connect request
In case connect requests needs to be resent to authenticate the timeout
handle should be removed otherwise it may end up asserting:

ERROR:gobex/gobex.c:251:req_timeout: assertion failed: (p != NULL)
2014-04-02 14:25:39 +03:00
Johan Hedberg
ccd67f611c btio: Remove unnecessary get_peers() function 2014-04-02 14:06:53 +03:00
Johan Hedberg
8dec0f65b4 btio: Do RFCOMM peer address lookup only when really necessary 2014-04-02 14:06:53 +03:00
Johan Hedberg
56f443387e btio: Do L2CAP peer address lookup only when really necessary 2014-04-02 14:06:53 +03:00
Szymon Janc
989ff1d03d tools/btmgmt: Fix bogus comment in eir_get_flags function
This was due to copy-and-paste.
2014-04-02 13:43:00 +03:00
Szymon Janc
aca6d609da tools/btmgmt: Add option to pass adress type to disconnect command
This is needed to disconnect LE devices.
2014-04-02 13:42:09 +03:00
Szymon Janc
4b294a9486 tools/btmgmt: Print AD flags for LE devices
This is usefull for GAP qualification tests.
2014-04-01 17:09:41 +03:00
Grzegorz Kolodziejczyk
aeed3155a6 android/gatt: Handle unregister gatt server command
This adds unregister gatt server app command handling.
2014-04-01 15:52:19 +02:00
Grzegorz Kolodziejczyk
0e0f715a19 android/gatt: Handle register gatt server command
This adds register gatt server command handling.
2014-04-01 15:52:10 +02:00
Grzegorz Kolodziejczyk
27fadad16f android/gatt: Remove redundant hal cmd check
This removes redundant hal cmd check (is received in cmd UUID == NULL).
2014-04-01 15:51:27 +02:00
Szymon Janc
fc07271d7a android/gatt: Refator bt_gatt_register function
This fix possible memory leaks and not unregistering IPC handlers if
function failed.
2014-04-01 14:06:28 +02:00
Szymon Janc
1ec0a0ca05 android/gatt: Cleanup bt_gatt_unregister function
This also fix memory leak when destroying gatt_clients queue.
2014-04-01 14:06:28 +02:00
Jakub Tyszkowski
058ce45961 android/gatt: Simplify matching functions
We should match uuid from element_id struct to avoid uuid creation every
time.
2014-04-01 13:41:57 +02:00
Jakub Tyszkowski
873bf9d46b android/gatt: Add helpers for element_id to hal structs conversion
We have helpers for hal structs to element_id conversion, so we should
use symetrical element_id to hal struct helpers when sending
notifications.
2014-04-01 13:41:57 +02:00
Jakub Tyszkowski
e12e8a3b41 android/gatt: Move element_id creation helpers up
This helpers should be in one place, in file's upper part.
2014-04-01 13:41:56 +02:00
Johan Hedberg
adaf6d26ce android: Fix coding style in IPC handler tables 2014-04-01 11:31:39 +03:00
Grzegorz Kolodziejczyk
3b933c950f android/gatt: Handle write characteristic client command
This adds write characteristic client command handling.
2014-03-31 19:12:35 +02:00
Grzegorz Kolodziejczyk
fdea682ba7 android/gatt: Handle read characteristic client command
This adds read characteristic client command handling.
2014-03-31 19:12:35 +02:00
Luiz Augusto von Dentz
dbf917d9e8 TODO: Mark OBEX Authentication as done 2014-03-31 17:30:59 +03:00
Luiz Augusto von Dentz
00d4081aa9 obexd: Remove code related to OBEX authentication
gobex can now generate responses authentication challenge so this code
is no longer needed.
2014-03-31 17:30:59 +03:00
Luiz Augusto von Dentz
df95622cd8 unit/test-gobex: Add test for OBEX authentication fail 2014-03-31 17:30:59 +03:00
Luiz Augusto von Dentz
4f1414e3a8 unit/test-gobex: Add test for OBEX authentication 2014-03-31 17:30:59 +03:00
Luiz Augusto von Dentz
774aae64e8 gobex: Respond to authentication challenge
This implements authentication response as defined in OBEX specification
since it is a mandatory feature for many Bluetooth profiles.
2014-03-31 17:30:59 +03:00
Luiz Augusto von Dentz
ab22fce6bb gobex/header: Add g_obex_header_new_tag function
This function can be used to set tag using GObexApparam as argument but
for arbritary headers.
2014-03-31 17:30:58 +03:00
Sebastian Chlad
c7fece8847 android/pts: Bump PTS version
Add proper PTS version for PICS and PIXIT.
2014-03-31 15:54:07 +02:00
Marcin Kraglak
f87ad9690f android: Fix NULL pointer dereference
If there is no adapter, hal_ipc in not initialized. Below is
message from valgrind:

==22501== Invalid read of size 4
==22501==    at 0x805B809: ipc_unregister (ipc.c:421)
==22501==    by 0x804AEAF: main (main.c:548)
==22501==  Address 0x4 is not stack'd, malloc'd or (recently) free'd
2014-03-31 15:53:31 +02:00
Ravi kumar Veeramally
a7191058a0 android/hal-health: Add HDP .register_application method
Implementation of register_application is different compared
to other apis. Due to limited IPC_MTU and variable length of
fields from 'bthl_reg_param_t *', it is difficult to put them
in single command and send though IPC. So we split this command
multiple calls. First command will be called with opcode of
HAL_OP_HEALTH_REG_APP with 'struct hal_cmd_health_reg_app' data.
Later command will be called with opcode of
HAL_OP_HEALTH_MDEP with 'struct hal_cmd_health_mdep' data for
number_of_mdeps times. App id will be sent in response to
HAL_OP_HEALTH_REG_APP command.

This avoids increasing value of IPC_MTU and mainly because of
optional parameters in 'bthl_reg_param_t'. Incase of unfilled
optional parameters, fixed size arrays in hal commands will be
empty.
2014-03-31 15:47:54 +02:00
Ravi kumar Veeramally
7a9f2aed12 android/hal-msg: Add extra struct for mdep data
Defined extra structure for MDEP data which is required for Register
Application. Also updated Opcodes for rest.
2014-03-31 15:47:54 +02:00
Ravi kumar Veeramally
53b4d02154 android/hal-ipc-api: Add extra command to Health HAL api document
Defined extra command for MDEP data which is required for Register
Application command. Also updated Opcode for rest of the commands.
2014-03-31 15:47:54 +02:00
Sebastian Chlad
f67afff1fc android/pixit: PIXIT for L2CAP
Adjusting some of the PIXITs settings for more reliable testing
environment.
2014-03-31 15:35:45 +02:00
Sebastian Chlad
17403304e6 android/pts: Add PTS test results for L2CAP
Since new PTS has been published this patch updates PTS tests
results for L2CAP. It also changes some minor mistakes in notes
to some of the test cases.
2014-03-31 15:35:45 +02:00
Sebastian Chlad
e1d6f7875e android/hsp: Add MCAP and HDP files 2014-03-31 15:27:33 +02:00
Sebastian Chlad
469df646d4 android/pts: Add PICS for HDP 2014-03-31 15:27:33 +02:00
Sebastian Chlad
cf2fbc0fe0 android/pts: Add PICS for MCAP 2014-03-31 15:27:33 +02:00
Sebastian Chlad
526fcc139e android/pts: Add PIXITs for MCAP and HDP 2014-03-31 15:27:33 +02:00
Claudio Takahasi
a8c00286f8 tools: Add emitting descriptor PropertiesChanged
This patch forces emitting PropertiesChanged signal when the descriptor
Value changes. Internally, BlueZ tracks the signal emitted to update
the GDBusProxy properties.
2014-03-31 16:14:16 +03:00