Commit Graph

19190 Commits

Author SHA1 Message Date
Jakub Tyszkowski
8a2f624343 android/pts: Update GATT results 2014-05-29 16:20:40 +02:00
Jakub Tyszkowski
b6931ace33 android/gatt: Support exec write request test command
'u2' parameter is used to pass exec write flag.
2014-05-29 16:20:40 +02:00
Jakub Tyszkowski
05050e76d4 android/gatt: Support prepare write request test command
'u2' parameter is used for handle value, 'u3' for offset and
'u4' holds the value.
2014-05-29 16:20:40 +02:00
Jakub Tyszkowski
8c35ec18d7 android/gatt: Support write command test command
'u2' parameter is used to pass handle value.
2014-05-29 16:20:40 +02:00
Jakub Tyszkowski
70f1b9bfff android/gatt: Support write request test command
'u2' parameter is used to pass handle value.
2014-05-29 16:20:40 +02:00
Jakub Tyszkowski
23f5f2fc3c android/gatt: Initial support for write test command
This is handled mostly the same way as read so we can use the same
function for sending att requests.

As test command parameters are of type uint16_t, we cannot write longer
values. We can figure out the ways to overcome this limitation if it
turns out that it's really needed (i.e. some PTS test cases cannot be
passed).
2014-05-29 16:20:40 +02:00
Eva Kolanska
be129c891a android/pts: Update GATT test results 2014-05-29 15:42:53 +02:00
Jakub Tyszkowski
868c6eaa21 android/pts: Update GATT PTS status 2014-05-29 13:23:28 +02:00
Jakub Tyszkowski
b3ef5ca3f6 android/gatt: Support read by group in test commands
'u2' command parameter is used as start handle, 'u3' as end handle and
uuid as group type.
2014-05-29 13:23:28 +02:00
Jakub Tyszkowski
721d0c8349 android/gatt: Support read blob request in test command
'u2' command paremeter is used as handle and 'u3' as offset value.
2014-05-29 13:23:28 +02:00
Jakub Tyszkowski
c2cbfe92ab android/gatt: Suport read by type request in test command
'u2' parameter is used as start handle, 'u3' as end handle and uuid as
attribute type.
2014-05-29 13:23:28 +02:00
Jakub Tyszkowski
d94367362d android/gatt: Support read request in test command
'u2' command parameter is used to pass attribute handle.
2014-05-29 13:23:28 +02:00
Jakub Tyszkowski
7f51fb8f4f android/gatt: Add read test command stub
This adds read support to test command handler. Particular read types will be
handled basing on the 'u1' command parameter.
2014-05-29 13:23:28 +02:00
Szymon Janc
7c3f57fedc android/pts: Update PTS GAP tests results 2014-05-29 12:51:21 +02:00
Szymon Janc
9bc5485849 android/pics: Update PICS for GAP
Enable peripheral mode and tweak some other settings.
2014-05-29 12:51:21 +02:00
Szymon Janc
9c2c59ef02 android/pts: Update PTS GATT tests selection 2014-05-29 12:51:21 +02:00
Szymon Janc
d98ad578a3 android/pics: Update PICS for GATT 2014-05-29 12:51:21 +02:00
Eva Kolanska
30e915f00e android/pts: Update GATT Server test results 2014-05-29 09:27:09 +02:00
Jakub Tyszkowski
72c0f73d3a android/gatt: Fix doing database reads on write
Wrong function was called resulting in read responses being send along
with write response. As it is now 'process_dev_pending_requests' is
processing only read requests.
2014-05-29 09:27:09 +02:00
Szymon Janc
50e8846d15 android/gatt: Implement disconnect test command 2014-05-28 14:44:49 +02:00
Szymon Janc
32c5ba75d5 android/gatt: Implement connect test command 2014-05-28 14:44:49 +02:00
Szymon Janc
f803cc568a android/gatt: Implement enable test command
This command is used to enable and disable test interface.
2014-05-28 14:44:49 +02:00
Szymon Janc
221e262a8e android/gatt: Factor out unregistering client into helper function
This will be also used by test interface.
2014-05-28 14:44:49 +02:00
Szymon Janc
e84d92b16f android/gatt: Add initial implementation of client test command
This command is used to performe some tasks not available from
standard API and usable only for PTS testing.
2014-05-28 14:44:49 +02:00
Andrzej Kaczmarek
7c29b18cf2 tools/hcidump: Decode MPEG-1,2 Audio codec capabilities 2014-05-28 14:40:54 +03:00
Jakub Tyszkowski
b6d655f3d8 android/gatt: Initialize crypto first
This fixes the missleading error on crypto setup failure:

02-17 20:19:44.639 I/bluetoothd( 1705): bluetoothd[1706]: gatt: Failed
to allocate memory for queues
2014-05-28 12:20:40 +02:00
Jakub Tyszkowski
24d9ec7e15 android/pts: Update GATT PTS results 2014-05-28 11:37:05 +02:00
Lukasz Rymanowski
657fc7b62e android/pts: Update SM PTS test results
Rerun TC_JW_* test cases
2014-05-28 11:36:21 +02:00
Jakub Tyszkowski
d4ea8f3299 android/gatt: Fix not checking for read errors in read by type 2014-05-28 11:25:56 +02:00
Jakub Tyszkowski
a02d0cbff5 android/client: Allow zero length responses 2014-05-28 11:25:56 +02:00
Eva Kolanska
47bcc522d0 android/pts: Update GATT test results 2014-05-28 11:10:29 +02:00
Jakub Tyszkowski
4a826d6899 shared/gatt-db: Fix cropping permissions value 2014-05-27 22:46:49 +02:00
Jakub Tyszkowski
b03d59f8c6 android/gatt: Use proper variable to store response length
This fixes confirmations being not send.
2014-05-27 22:46:49 +02:00
Jakub Tyszkowski
35e77c1c5f gatt: Fix not freeing GError on failure 2014-05-27 22:46:49 +02:00
Jakub Tyszkowski
111150d7e6 attrib: Fix minor whitespace issue
Replace spaces with tabs.
2014-05-27 22:46:49 +02:00
Jakub Tyszkowski
86f395467c android/gatt: Fix not sending write request responses
Responses were pushed to pending response queue but send was never
triggered.
2014-05-27 22:06:35 +02:00
Eva Kolanska
69c8ff8a60 android/pts: Update GATT PTS tests results 2014-05-27 21:59:56 +02:00
Johan Hedberg
2790b3b250 tools/btmgmt: Fix address type in user confirm replies 2014-05-27 20:59:45 +03:00
Andrzej Kaczmarek
3c3e8a8b73 android: Add avinfo to makefile 2014-05-27 17:57:25 +03:00
Andrzej Kaczmarek
a78aec57a5 tools/avinfo: Decode aptX codec capabilities 2014-05-27 17:57:25 +03:00
Andrzej Kaczmarek
d7d11d074f tools/avinfo: Decode MPEG-2,4 AAC codec capabilities 2014-05-27 17:57:25 +03:00
Andrzej Kaczmarek
a238e3b108 tools/hcidump: Decode aptX codec capabilities 2014-05-27 17:57:25 +03:00
Andrzej Kaczmarek
fee302da25 tools/hcidump: Decode MPEG-2,4 AAC codec capabilities 2014-05-27 17:57:25 +03:00
Andrzej Kaczmarek
62c32efcab audio: Add definitions for aptX 2014-05-27 17:56:36 +03:00
Andrzej Kaczmarek
e0268c9936 audio: Add macros to access MPEG-2,4 AAC codec info
This patch provides helper macros to get, set and init-in-struct both
frequency and bitrate fields in codec info structs for MPEG-2,4 AAC.
2014-05-27 17:56:36 +03:00
Andrzej Kaczmarek
c93915c343 audio: Add definitions for MPEG-2,4 AAC codec
frequency and bitrate bit-fields are splitted into separate bytes since
they span across byte-boundary and cannot be set easily on LE arch
anyway.
2014-05-27 17:56:36 +03:00
Andrzej Kaczmarek
73f5534028 audio: Fix a2dp_vendor_codec_t declaration
As per A2DP spec, both Vendor ID (4.7.2.1) and Codec ID (4.7.2.2) are
defined as 32-bit and 16-bit values respectively rather that array of
bytes. Also changing to uint types will make using these values in code
much easier.
2014-05-27 17:56:36 +03:00
Andrei Emeltchenko
3c5413c3dd android/hal-sco: Fix memory leak
Release resampler on exit.
2014-05-27 16:38:48 +03:00
Johan Hedberg
cc3dd149f8 shared/crypto: Fix fd leaks in bt_crypto_sign_att() 2014-05-27 12:15:11 +03:00
Eva Kolanska
cad7c666c1 android/pts: Update GATT PTS tests results 2014-05-27 11:06:52 +02:00