OSDN Git Service
Andrzej Kaczmarek [Mon, 3 Mar 2014 08:56:41 +0000 (09:56 +0100)]
android/hal-audio: Use payload length for codec init
It makes more sense to pass maximum payload length to codec since this
is actually used for calculations. MTU value is used only to allocate
proper buffer.
Andrzej Kaczmarek [Mon, 3 Mar 2014 08:56:40 +0000 (09:56 +0100)]
android/hal-audio: Write and sync in common code
There's no need for codec abstraction to take care of writing and
synchronizing actual media stream since this is something that common
code can do regardless of codec used.
Data are synchronized based on number of samples consumed from input
stream instead of frames encoded to output stream which is also more
reliable since it's not affected by encoder errors.
Andrzej Kaczmarek [Mon, 3 Mar 2014 08:56:39 +0000 (09:56 +0100)]
android/hal-audio: Add encode_mediapacket function
This patch moves code which encodes data for media packet into single
function. It will simply try to put as much encoded frames as will fit
in provided media packet buffer. This is first step to make common code
responsible for media stream write and synchronizarion instead of codec
abstraction code as it is handled now.
Andrzej Kaczmarek [Mon, 3 Mar 2014 08:56:38 +0000 (09:56 +0100)]
android/hal-audio: Add open/close_endpoint helpers
Szymon Janc [Sun, 2 Mar 2014 23:50:49 +0000 (00:50 +0100)]
android/handsfree: Add support for disabling HSP or HFP AGs
This allows to tune what profiles are supported by handsfree HAL.
Szymon Janc [Sun, 2 Mar 2014 23:50:48 +0000 (00:50 +0100)]
android/handsfree: Allow to connect to HSP or HFP handsfree unit
This allows to connect to HSP (it HFP is not enabled) or fallback to
HSP if HFP is not supported by remote device.
Szymon Janc [Sun, 2 Mar 2014 23:50:47 +0000 (00:50 +0100)]
android/handsfree: Add support for HSP AG
Szymon Janc [Sun, 2 Mar 2014 23:50:46 +0000 (00:50 +0100)]
android/socket: Reserve channel for HSP AG
Szymon Janc [Sun, 2 Mar 2014 23:50:45 +0000 (00:50 +0100)]
android/handsfree: Factor out HFP AG enable code
This is in preparation for support to not enable HFP AG when
initializing HAL.
Szymon Janc [Sun, 2 Mar 2014 23:50:44 +0000 (00:50 +0100)]
android: Pass mode parameter to registered services
Szymon Janc [Sun, 2 Mar 2014 23:50:43 +0000 (00:50 +0100)]
android/hal: Update services register commands with mode parameter
Szymon Janc [Sun, 2 Mar 2014 23:50:42 +0000 (00:50 +0100)]
android/ipc: Add Mode parameter to register service command
This will allow to run daemon services in non-default mode.
Szymon Janc [Mon, 3 Mar 2014 19:04:47 +0000 (20:04 +0100)]
android/bluetooth: Remove leftover function declaration
Szymon Janc [Mon, 3 Mar 2014 18:54:27 +0000 (19:54 +0100)]
android: Fix build under Android
Jakub Tyszkowski [Mon, 3 Mar 2014 10:56:11 +0000 (11:56 +0100)]
android/hal-gatt: Add skeleton for GATT HAL
This adds skeleton with stubs and proper build system entries.
Grzegorz Kolodziejczyk [Mon, 3 Mar 2014 14:51:07 +0000 (15:51 +0100)]
android/gatt: Add stubs for GATT commands handlers
Add empty handlers for GATT IPC commands.
Grzegorz Kolodziejczyk [Mon, 3 Mar 2014 14:51:06 +0000 (15:51 +0100)]
android/gatt: Add initial files
This adds initial daemon code for GATT profile.
Andrei Emeltchenko [Mon, 3 Mar 2014 09:13:44 +0000 (11:13 +0200)]
tools/ibeacon: Fix using uninitialized value
Fixes warning:
tools/ibeacon.c:150:14: warning: The left expression of the compound
assignment is an uninitialized value. The computed value will also be
garbage
cmd.data[2] |= 0x02; /* LE General Discoverable Mode
*/
~~~~~~~~~~~ ^
1 warning generated.
Szymon Janc [Mon, 3 Mar 2014 10:35:06 +0000 (11:35 +0100)]
android/avrcp-lib: Fix destroy callback handling
AVRCP destroy callback was directly passed as AVCTP destroy callback
resulting in struct avrcp not being freed on remote disconnect.
This fix following Valgrind report:
931 (36 direct, 895 indirect) bytes in 1 blocks are definitely lost in
loss record 53 of 55
at 0x4896DC8: calloc (in /system/lib/valgrind/
vgpreload_memcheck-arm-linux.so)
by 0x48C5DB7: g_malloc0 (gmem.c:189)
by 0x118671: avrcp_new (avrcp-lib.c:219)
by 0x117D4F: connect_cb (avrcp.c:346)
by 0x12068B: connect_cb (btio.c:232)
by 0x48BD9C7: g_io_unix_dispatch (giounix.c:166)
by 0x48C2CCB: g_main_context_dispatch (gmain.c:2539)
by 0x48C2ED9: g_main_context_iterate.isra.19 (gmain.c:3146)
by 0x48C3167: g_main_loop_run (gmain.c:3340)
by 0x10BA03: main (main.c:490)
Szymon Janc [Mon, 3 Mar 2014 12:14:34 +0000 (13:14 +0100)]
doc: Update android-tester coverage statistics
Grzegorz Kolodziejczyk [Mon, 3 Mar 2014 10:44:18 +0000 (11:44 +0100)]
android/tester: Add remove bond success test case
This adds remove bond success test case. SSP as pairing mode.
Grzegorz Kolodziejczyk [Mon, 3 Mar 2014 10:44:17 +0000 (11:44 +0100)]
android/tester: Add cancel bond success test case
This adds cancel bond success test case. SSP as pairing mode.
Grzegorz Kolodziejczyk [Mon, 3 Mar 2014 10:44:16 +0000 (11:44 +0100)]
android/tester: Add create bond with bad addr fail test case
This adds create bond with bad addr fail test case.
Grzegorz Kolodziejczyk [Mon, 3 Mar 2014 10:44:15 +0000 (11:44 +0100)]
android/tester: Add create bond with no discovery test case
This adds create bond with no discovery before create bond as NFC does.
SSP with confirm as authentication mode.
Grzegorz Kolodziejczyk [Mon, 3 Mar 2014 10:44:14 +0000 (11:44 +0100)]
android/tester: Add create bond with SSP fail test case
This adds create bond with SSP fail test case. Confirm is set as SSP
pairing mode.
Grzegorz Kolodziejczyk [Mon, 3 Mar 2014 10:44:13 +0000 (11:44 +0100)]
android/tester: Add create bond with SSP sucess test case
This adds create bond with SSP succes test case. Confirm is set as SSP
pairing mode.
Grzegorz Kolodziejczyk [Mon, 3 Mar 2014 10:44:12 +0000 (11:44 +0100)]
android/tester: Add create bond with PIN fail test case
This adds create bond with PIN fail test case.
Grzegorz Kolodziejczyk [Mon, 3 Mar 2014 10:44:11 +0000 (11:44 +0100)]
android/tester: Add create bond with PIN success test case
This adds create bond with PIN success test case.
Grzegorz Kolodziejczyk [Thu, 27 Feb 2014 15:04:42 +0000 (16:04 +0100)]
android/tester: Coding style and syntax fix
Remove white spaces, break lines over 80 characters, redundand braces
for single statement blocks.
Szymon Janc [Sat, 1 Mar 2014 19:04:17 +0000 (20:04 +0100)]
android/avrcp-lib: Fix not freeing tx buffer on AVRCP shutdown
Szymon Janc [Sun, 2 Mar 2014 21:50:50 +0000 (22:50 +0100)]
android/socket: Remove leftover function declaration
Grzegorz Kolodziejczyk [Fri, 28 Feb 2014 11:20:04 +0000 (12:20 +0100)]
android/hal-gatt-api: Add Server Response Confirmation Notification
Grzegorz Kolodziejczyk [Fri, 28 Feb 2014 11:20:03 +0000 (12:20 +0100)]
android/hal-gatt-api: Add Server Request Execute Write Notification
Grzegorz Kolodziejczyk [Fri, 28 Feb 2014 11:20:02 +0000 (12:20 +0100)]
android/hal-gatt-api: Add Server Request Write Notification
Grzegorz Kolodziejczyk [Fri, 28 Feb 2014 11:20:01 +0000 (12:20 +0100)]
android/hal-gatt-api: Add Server Request Read Notification
Grzegorz Kolodziejczyk [Fri, 28 Feb 2014 11:20:00 +0000 (12:20 +0100)]
android/hal-gatt-api: Add Server Service Deleted Notification
Grzegorz Kolodziejczyk [Fri, 28 Feb 2014 11:19:59 +0000 (12:19 +0100)]
android/hal-gatt-api: Add Server Service Stopped Notification
Grzegorz Kolodziejczyk [Fri, 28 Feb 2014 11:19:58 +0000 (12:19 +0100)]
android/hal-gatt-api: Add Server Service Started Notification
Grzegorz Kolodziejczyk [Fri, 28 Feb 2014 11:19:57 +0000 (12:19 +0100)]
android/hal-gatt-api: Add Server Descriptor Added Notification
Grzegorz Kolodziejczyk [Fri, 28 Feb 2014 11:19:56 +0000 (12:19 +0100)]
android/hal-gatt-api: Add Server Characteristic Added Notification
Grzegorz Kolodziejczyk [Fri, 28 Feb 2014 11:19:55 +0000 (12:19 +0100)]
android/hal-gatt-api: Add Server Included Service Added Notification
Grzegorz Kolodziejczyk [Fri, 28 Feb 2014 11:19:54 +0000 (12:19 +0100)]
android/hal-gatt-api: Add Server Service Added Notification
Grzegorz Kolodziejczyk [Fri, 28 Feb 2014 11:19:53 +0000 (12:19 +0100)]
android/hal-gatt-api: Add Server Connection Notification
Grzegorz Kolodziejczyk [Fri, 28 Feb 2014 11:19:52 +0000 (12:19 +0100)]
android/hal-gatt-api: Add Server Register Notification
Jakub Tyszkowski [Fri, 28 Feb 2014 10:24:03 +0000 (11:24 +0100)]
android/hal-gatt-api: Add Client Listen event
Jakub Tyszkowski [Fri, 28 Feb 2014 10:24:02 +0000 (11:24 +0100)]
android/hal-gatt-api: Add Client Read Remote RSSI event
Jakub Tyszkowski [Fri, 28 Feb 2014 10:24:01 +0000 (11:24 +0100)]
android/hal-gatt-api: Add Client Exec Write event
Jakub Tyszkowski [Fri, 28 Feb 2014 10:24:00 +0000 (11:24 +0100)]
android/hal-gatt-api: Add Client Write Descriptor event
Jakub Tyszkowski [Fri, 28 Feb 2014 10:23:59 +0000 (11:23 +0100)]
android/hal-gatt-api: Add Client Read Descriptor event
Jakub Tyszkowski [Fri, 28 Feb 2014 10:23:58 +0000 (11:23 +0100)]
android/hal-gatt-api: Add Client Write Characteristic event
Jakub Tyszkowski [Fri, 28 Feb 2014 10:23:57 +0000 (11:23 +0100)]
android/hal-gatt-api: Add Client Read Characteristic event
Jakub Tyszkowski [Fri, 28 Feb 2014 10:23:56 +0000 (11:23 +0100)]
android/hal-gatt-api: Add Client Notify event
Jakub Tyszkowski [Fri, 28 Feb 2014 10:23:55 +0000 (11:23 +0100)]
android/hal-gatt-api: Add Client Register for Notification event
Jakub Tyszkowski [Fri, 28 Feb 2014 10:23:54 +0000 (11:23 +0100)]
android/hal-gatt-api: Add Client Get Included Service event
Jakub Tyszkowski [Fri, 28 Feb 2014 10:23:53 +0000 (11:23 +0100)]
android/hal-gatt-api: Add Client Get Descriptor event
Jakub Tyszkowski [Fri, 28 Feb 2014 10:23:52 +0000 (11:23 +0100)]
android/hal-gatt-api: Add Client Get Characteristic event
Jakub Tyszkowski [Fri, 28 Feb 2014 10:23:51 +0000 (11:23 +0100)]
android/hal-gatt-api: Add Client Search Result event
Jakub Tyszkowski [Fri, 28 Feb 2014 10:23:50 +0000 (11:23 +0100)]
android/hal-gatt-api: Add Client Search Complete event
Jakub Tyszkowski [Fri, 28 Feb 2014 10:23:49 +0000 (11:23 +0100)]
android/hal-gatt-api: Add Client Disconnect event
Jakub Tyszkowski [Fri, 28 Feb 2014 10:23:48 +0000 (11:23 +0100)]
android/hal-gatt-api: Add Client Connect event
Jakub Tyszkowski [Fri, 28 Feb 2014 10:23:47 +0000 (11:23 +0100)]
android/hal-gatt-api: Add Client Scan Result event
Jakub Tyszkowski [Fri, 28 Feb 2014 10:23:46 +0000 (11:23 +0100)]
android/hal-gatt-api: Add Client Register event
Luiz Augusto von Dentz [Sun, 2 Mar 2014 18:30:23 +0000 (20:30 +0200)]
android: Fix not cleaup AVRCP service
This causes the following leak:
744 (72 direct, 672 indirect) bytes in 1 blocks are definitely lost in loss record 114 of 119
at 0x4C291D4: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
by 0x4E7FEC6: g_malloc0 (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x41C2ED: avrcp_new (avrcp-lib.c:203)
by 0x41B4F8: connect_cb (avrcp.c:708)
by 0x4212AB: connect_cb (btio.c:232)
by 0x4E7A2A5: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x4E7A627: ??? (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x4E7AA39: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x403A54: main (main.c:490)
Luiz Augusto von Dentz [Sun, 2 Mar 2014 18:18:57 +0000 (20:18 +0200)]
android/avctp: Fix leaking passthrough handler
In case the handler is not destroyed by the owner automatically free it
as there is no use for it after the session is freed.
Marcel Holtmann [Sun, 2 Mar 2014 17:58:24 +0000 (09:58 -0800)]
lib: Update company identifiers
Anderson Lizardo [Sat, 1 Mar 2014 19:23:28 +0000 (15:23 -0400)]
monitor: Validate HCI event/command parameter length when parsing
Print an error message if the parameter length for HCI commands/events
does not match the actual remaining packet size.
This mainly avoids using garbage bytes when parsing corrupted packets.
The check was inspired on those used when parsing SCO/ACL packets.
Marcin Kraglak [Sat, 1 Mar 2014 20:00:46 +0000 (21:00 +0100)]
shared/hfp: Add function to get unquoted string
Marcin Kraglak [Sat, 1 Mar 2014 20:00:45 +0000 (21:00 +0100)]
shared/hfp: Add function to get string
It will look for quoted sting and write it to given buffer.
Marcin Kraglak [Sat, 1 Mar 2014 20:00:44 +0000 (21:00 +0100)]
shared/hfp: Add open/close container function
It will look for "(" or ")" parenthesis and skip it if found.
Marcin Kraglak [Sat, 1 Mar 2014 20:00:43 +0000 (21:00 +0100)]
shared/hfp: Add get_number implementation
User can call this function with hfp_gw_result, which will
be passed to prefix handler.
Marcin Kraglak [Sat, 1 Mar 2014 20:00:42 +0000 (21:00 +0100)]
shared/hfp: Add implementiation of processing commands
It will look for prefix handler for given cammand.
Marcin Kraglak [Sat, 1 Mar 2014 20:00:41 +0000 (21:00 +0100)]
shared/hfp: Add prefix handlers functionality
Add two functions: hfp_gw_register_prefix_handler() and
hfp_gw_unregister_prefix_handler(). It will allow user to register for
specific command. Current implementation just put/remove handler data
from queue.
Marcel Holtmann [Sat, 1 Mar 2014 20:05:28 +0000 (12:05 -0800)]
unit: Fix hton24 function for big endian platforms
Marcel Holtmann [Sat, 1 Mar 2014 20:01:21 +0000 (12:01 -0800)]
android: Fix ntoh24 and hton24 for big endian platforms
Marcel Holtmann [Sat, 1 Mar 2014 19:58:26 +0000 (11:58 -0800)]
audio: Update code for set_company_id function
Szymon Janc [Sat, 1 Mar 2014 13:51:31 +0000 (14:51 +0100)]
android/socket: Fix errno handling in rfsock_set_buffer
Szymon Janc [Sat, 1 Mar 2014 13:45:57 +0000 (14:45 +0100)]
android/hal-ipc: Fix double include of errno.h
Szymon Janc [Sat, 1 Mar 2014 13:19:17 +0000 (14:19 +0100)]
android/hal-audio: Fix error code handling in audio_ipc_init
Make audio_ipc_init follow convention of returning negative code on
error. This also fix passing negative error code to strerror in case
of pthread_create failure (this function returns non-negative code
on error).
Szymon Janc [Sat, 1 Mar 2014 13:11:55 +0000 (14:11 +0100)]
android/hal-audio: Fix errno handling in set_blocking
Szymon Janc [Fri, 28 Feb 2014 21:18:34 +0000 (22:18 +0100)]
android/socket: Use same RFCOMM channels for services as Linux daemon
Use numbers from doc/assigned-numbers.txt.
Marcel Holtmann [Sat, 1 Mar 2014 04:31:56 +0000 (20:31 -0800)]
tools: Add two simple LE white list test commands
Marcel Holtmann [Sat, 1 Mar 2014 04:23:51 +0000 (20:23 -0800)]
monitor: Add structure for LE remote connection parameter request event
Marcel Holtmann [Sat, 1 Mar 2014 04:17:45 +0000 (20:17 -0800)]
emulator: List LE commands, event and features from Bluetooth 4.1
Marcel Holtmann [Fri, 28 Feb 2014 23:09:55 +0000 (15:09 -0800)]
emulator: Add dummy support for clearing the LE white list
Szymon Janc [Fri, 28 Feb 2014 18:08:16 +0000 (19:08 +0100)]
android/hal-pan: Fix empty parameters list in functio definition
Szymon Janc [Fri, 28 Feb 2014 18:07:37 +0000 (19:07 +0100)]
android/hal-pan: Fix using wrong structure in pan_cleanup
Szymon Janc [Fri, 28 Feb 2014 17:57:50 +0000 (18:57 +0100)]
android/ipc-tester: Fix structure passed to core unregister tests
Szymon Janc [Mon, 24 Feb 2014 16:05:03 +0000 (17:05 +0100)]
android: Create comon header for IPC
This header contains IPC specific structures and code not related to
BT and audio HAL protocols. This allows to fully decouple IPC from
HAL messages.
This is first step to make HAL part of IPC unit-testable and reusable
between BT HAL and audio HAL.
Szymon Janc [Tue, 18 Feb 2014 15:18:33 +0000 (16:18 +0100)]
android/a2dp: Use common IPC for audio socket
This makes audio HAL to use same code for IPC as BT HAL.
Szymon Janc [Tue, 18 Feb 2014 14:53:25 +0000 (15:53 +0100)]
android: Add support for disabling notifications in IPC
Szymon Janc [Tue, 18 Feb 2014 13:06:44 +0000 (14:06 +0100)]
android/unit: Update test-ipc with disconnect handler support
Szymon Janc [Tue, 18 Feb 2014 13:05:14 +0000 (14:05 +0100)]
android: Add support for registering disconnect callback in IPC
Allow to register callback which is called in case of IPC failure
(eg malformed message) or disconnection. This makes caller responsible
for performing expected action in such case.
Szymon Janc [Mon, 24 Feb 2014 12:44:12 +0000 (13:44 +0100)]
android: Refactor IPC init
This allows to pass socket path and max service ID while initializaing
IPC. This is first step to allow use it both for BT and Audio HALs.
Sebastian Chlad [Fri, 28 Feb 2014 11:54:33 +0000 (12:54 +0100)]
android/pics: Add PICS and PIXIT for HFP
Added PICS and PIXIT target Android 4.4
Sebastian Chlad [Fri, 28 Feb 2014 11:54:32 +0000 (12:54 +0100)]
android/pics: Add PICS and PIXIT for HSP
Added PICS and PIXIT target Android 4.4
Andrei Emeltchenko [Fri, 28 Feb 2014 08:22:58 +0000 (10:22 +0200)]
unit/avrcp: Add /TP/PAS/BV-04-C test
Test verifies that the Get Player Application Setting Attribute Text
response issued from the Target.
Andrei Emeltchenko [Fri, 28 Feb 2014 08:22:57 +0000 (10:22 +0200)]
unit/avrcp: Add /TP/PAS/BV-03-C test
Test verifies that the get player application settings attribute text
command issued from the Controller.
Andrei Emeltchenko [Fri, 28 Feb 2014 08:22:56 +0000 (10:22 +0200)]
android/avrcp: Implement get player attributes text
Andrei Emeltchenko [Fri, 28 Feb 2014 08:22:55 +0000 (10:22 +0200)]
unit/avrcp: Add /TP/PAS/BV-02-C test
Test verifies that the List Player Application Setting Attributes
response issued from the Target.
Andrei Emeltchenko [Fri, 28 Feb 2014 08:22:54 +0000 (10:22 +0200)]
unit/avrcp: Add /TP/PAS/BV-01-C test
Test verifies that the List Player Application Setting Attributes command
issued from the Controller.