OSDN Git Service
Andrzej Kaczmarek [Wed, 15 Jan 2014 18:03:49 +0000 (19:03 +0100)]
android/hal-audio: Add support to unregister audio endpoints
Andrzej Kaczmarek [Wed, 15 Jan 2014 18:03:48 +0000 (19:03 +0100)]
android/hal-audio: Add support to register audio endpoints
This patch adds support to register audio enpoints via Audio IPC.
Endpoints are registered based on predefined codecs table and for
each defined codec one endpoint is registered. By default, only
SBC will be supported.
Lukasz Rymanowski [Wed, 15 Jan 2014 18:03:47 +0000 (19:03 +0100)]
android/hal-audio: Add audio_ipc_cmd
Add function to handle send/receive on audio_sk.
Luiz Augusto von Dentz [Thu, 16 Jan 2014 13:56:34 +0000 (15:56 +0200)]
android/A2DP: Add timeout to setup stream if remote becomes idle
If remote initiate the connection but do not setup any stream take over
the role and initiate the stream setup procedure.
Luiz Augusto von Dentz [Thu, 16 Jan 2014 13:28:09 +0000 (15:28 +0200)]
android/A2DP: Send stream fd in open stream response
This adds support of sending stream fd within open stream response.
Luiz Augusto von Dentz [Thu, 16 Jan 2014 12:27:53 +0000 (14:27 +0200)]
android/A2DP: Fix selecting invalid bitpool range for SBC
For SBC bitpool range may not strictly match with presets so it needs to
be adjusted to fit within remote capabilities otherwise the remote device
may reject the configuration.
Luiz Augusto von Dentz [Wed, 15 Jan 2014 13:01:01 +0000 (15:01 +0200)]
android/A2DP: Change to connected state when a transport open
This changes the connected state to be only sent once a transport is
open, before this was done right after the signalling was connected but
this reflect in the audio HAL side attempting to open a stream while
with possible no transport available.
Szymon Janc [Thu, 16 Jan 2014 11:28:05 +0000 (12:28 +0100)]
android: Fix distcheck build
Add missing monitor/rfcomm.h to android-tester sources. This fix
following build error on make distcheck:
CC emulator/android_android_tester-bthost.o
../emulator/bthost.c:40:28: fatal error: monitor/rfcomm.h: No such
file or directory
#include "monitor/rfcomm.h"
Marcel Holtmann [Thu, 16 Jan 2014 11:03:26 +0000 (03:03 -0800)]
doc: Add rfcomm-tester to coverage list
Johan Hedberg [Thu, 16 Jan 2014 10:22:42 +0000 (12:22 +0200)]
emulator/bthost: More RFCOMM code cleanups
Johan Hedberg [Thu, 16 Jan 2014 10:15:42 +0000 (12:15 +0200)]
tools/rfcomm-tester: Clean up coding style
Johan Hedberg [Thu, 16 Jan 2014 10:07:32 +0000 (12:07 +0200)]
tools/rfcomm-tester: Don't enable SSP (as it's not necessary)
Johan Hedberg [Thu, 16 Jan 2014 10:02:12 +0000 (12:02 +0200)]
emulator/bthost: Further cleanups to the RFCOMM code
Johan Hedberg [Thu, 16 Jan 2014 09:47:35 +0000 (11:47 +0200)]
tools/rfcomm-tester: Only BR/EDR is relevant for RFCOMM
Johan Hedberg [Thu, 16 Jan 2014 09:46:07 +0000 (11:46 +0200)]
emulator/bthost: Clean up RFCOMM related code
Johan Hedberg [Thu, 16 Jan 2014 09:37:55 +0000 (11:37 +0200)]
tools/rfcomm-tester: Update callback to match new API
Johan Hedberg [Thu, 16 Jan 2014 09:37:43 +0000 (11:37 +0200)]
tools/bthost: Remove useless channel parameter from RFCOMM callback
Marcin Kraglak [Fri, 10 Jan 2014 09:18:29 +0000 (10:18 +0100)]
tools/rfcomm-tester: Add RFCOMM server negative test case
This test case create RFCOMM server and reject incoming connection
from bthost.
Marcin Kraglak [Fri, 10 Jan 2014 09:18:28 +0000 (10:18 +0100)]
tools/rfcomm-tester: Add RFCOMM server test case
This test case create RFCOMM server and accept incoming connection from
client bthost.
Marcin Kraglak [Fri, 10 Jan 2014 09:18:27 +0000 (10:18 +0100)]
emulator/bthost: Call rfcomm_connect_cb when connected
This will call connect callback when connected or failed to connect.
Marcin Kraglak [Fri, 10 Jan 2014 09:18:26 +0000 (10:18 +0100)]
emulator/bthost: Add implementation to PN RSP
This will send sabm command if PN_RSP will be received.
Marcin Kraglak [Fri, 10 Jan 2014 09:18:25 +0000 (10:18 +0100)]
emulator/bthost: Ad implementation of rfcomm_ua_recv
This will handle ua responses in bthost.
Marcin Kraglak [Fri, 10 Jan 2014 09:18:24 +0000 (10:18 +0100)]
emulator/bthost: Implement bthost_connect_rfcomm
This method will start L2CAP connection on RFCOMM PSM and continue
connecting to rfcomm server. User can specify callback to be called
after connection.
Marcin Kraglak [Fri, 10 Jan 2014 09:18:23 +0000 (10:18 +0100)]
tools/rfcomm-tester: Add Connection refused client test case
This will test RFCOMM client connection to wrong server channel.
Marcin Kraglak [Fri, 10 Jan 2014 09:18:22 +0000 (10:18 +0100)]
tools/rfcomm-tester: Implement client test case
This will test RFCOMM client connection.
Marcin Kraglak [Fri, 10 Jan 2014 09:18:21 +0000 (10:18 +0100)]
emulator/bthost: Implement recv_disc rfcomm frame in bthost
Marcin Kraglak [Fri, 10 Jan 2014 09:18:20 +0000 (10:18 +0100)]
emulator/bthost: Service msc frames
Marcin Kraglak [Fri, 10 Jan 2014 09:18:19 +0000 (10:18 +0100)]
emulator/bthost: Add recv_pn implementation
Marcin Kraglak [Fri, 10 Jan 2014 09:18:18 +0000 (10:18 +0100)]
emulator/bthost: Add rfcomm_mcc_recv stub
It will handle mcc frames in bthost.
Marcin Kraglak [Fri, 10 Jan 2014 09:18:17 +0000 (10:18 +0100)]
monitor: Add mcc structs and types to rfcomm.h
Marcin Kraglak [Fri, 10 Jan 2014 09:18:16 +0000 (10:18 +0100)]
emulator/bthost: Add recv_sabm imnplementation
This will handle sabm frames and send ua or dm frame.
Marcin Kraglak [Fri, 10 Jan 2014 09:18:15 +0000 (10:18 +0100)]
emulator/bthost: Add method to create rfcomm server
It allows user to create rfcomm server on bthost.
Marcin Kraglak [Fri, 10 Jan 2014 09:18:14 +0000 (10:18 +0100)]
emulator/bthost: Add initial rfcomm handling
This is initial rfcomm handling in bthost.
Marcin Kraglak [Fri, 10 Jan 2014 09:18:13 +0000 (10:18 +0100)]
monitor: Add rfcomm.h to tree
Add initial rfcomm structs and defines to rfcomm.h.
Marcin Kraglak [Fri, 10 Jan 2014 09:18:12 +0000 (10:18 +0100)]
tools/rfcomm-tester: Add basic rfcomm test case
This test case verifies creating rfcomm socket.
Marcin Kraglak [Fri, 10 Jan 2014 09:18:11 +0000 (10:18 +0100)]
tools/rfcomm-tester: Initial version of rfcomm-tester
Add rfcomm-tester to tree.
Marcel Holtmann [Thu, 16 Jan 2014 08:27:30 +0000 (00:27 -0800)]
tools: Remove --smd option from proxy utility
Jakub Tyszkowski [Wed, 15 Jan 2014 09:31:35 +0000 (10:31 +0100)]
android/pics: Add PICS and PIXIT for AVCTP
Add PICS/PIXIT for AVCTP, targeting Android 4.4.
Andrzej Kaczmarek [Wed, 15 Jan 2014 21:01:39 +0000 (22:01 +0100)]
android/a2dp: Fix memory leak
audio_ipc_send_rsp_full() does not free buffer passed as parameter
thus it should be freed by caller.
This fixes following Valgrind report:
==1238== 5 bytes in 1 blocks are definitely lost in loss record 22 of 54
==1238== at 0x4896DC8: calloc (in /system/lib/valgrind/vgpreload_memcheck-arm-linux.so)
==1238== by 0x48C5DB7: g_malloc0 (gmem.c:189)
==1238== by 0x1150EF: bt_stream_open (a2dp.c:1177)
==1238== by 0x1116A7: ipc_handle_msg (ipc.c:95)
==1238== by 0x111C11: audio_watch_cb (audio-ipc.c:66)
==1238== by 0x48BD9C7: g_io_unix_dispatch (giounix.c:166)
==1238== by 0x48C2CCB: g_main_context_dispatch (gmain.c:2539)
==1238== by 0x48C2ED9: g_main_context_iterate.isra.19 (gmain.c:3146)
==1238== by 0x48C3167: g_main_loop_run (gmain.c:3340)
==1238== by 0x10B207: main (main.c:436)
Andrzej Kaczmarek [Wed, 15 Jan 2014 21:01:38 +0000 (22:01 +0100)]
android/a2dp: Fix memory leak
avdtp_service_cap_new() makes own copy of data stored in "codec" thus
it should be freed by caller.
This fixes following Valgrind report:
==1238== 6 bytes in 1 blocks are definitely lost in loss record 27 of 54
==1238== at 0x4896DC8: calloc (in /system/lib/valgrind/vgpreload_memcheck-arm-linux.so)
==1238== by 0x48C5DB7: g_malloc0 (gmem.c:189)
==1238== by 0x115B4B: discover_cb (a2dp.c:303)
==1238== by 0x111DE7: finalize_discovery (avdtp.c:933)
==1238== by 0x114441: session_cb (avdtp.c:2556)
==1238== by 0x48BD9C7: g_io_unix_dispatch (giounix.c:166)
==1238== by 0x48C2CCB: g_main_context_dispatch (gmain.c:2539)
==1238== by 0x48C2ED9: g_main_context_iterate.isra.19 (gmain.c:3146)
==1238== by 0x48C3167: g_main_loop_run (gmain.c:3340)
==1238== by 0x10B207: main (main.c:436)
Andrzej Kaczmarek [Wed, 15 Jan 2014 21:01:36 +0000 (22:01 +0100)]
android: Add simple rotation of snoop file
Already existing snoop file is renamed by adding ".old" suffix before
new one is created. This is useful in case phone is restarted so logs
are not overwritten and for this reason it's only applied in case
default snoop file name is used.
Andrzej Kaczmarek [Wed, 15 Jan 2014 21:01:37 +0000 (22:01 +0100)]
android: Fix typo in bluetoothd-snoop.c
Marcel Holtmann [Thu, 16 Jan 2014 05:50:49 +0000 (21:50 -0800)]
doc: Update mgmt-tester and hci-tester coverage statistics
Johan Hedberg [Wed, 15 Jan 2014 13:27:47 +0000 (15:27 +0200)]
tools/mgmt-tester: Add auth failure mgmt event to pair_device test conditions
Johan Hedberg [Wed, 15 Jan 2014 13:24:52 +0000 (15:24 +0200)]
tools/mgmt-tester: Add new link key mgmt event to pair_device test conditions
Szymon Janc [Wed, 15 Jan 2014 13:20:54 +0000 (14:20 +0100)]
doc: Update android-tester coverage statistics
Grzegorz Kolodziejczyk [Wed, 15 Jan 2014 12:17:08 +0000 (13:17 +0100)]
android/tester: Add set device DISCTIMEOUT prop fail test case
This adds set device DISCOVERY TIMEOUT property fail test case.
Grzegorz Kolodziejczyk [Wed, 15 Jan 2014 12:17:07 +0000 (13:17 +0100)]
android/tester: Add set device BONDED_DEV prop fail test case
This adds set device BONDED DEVICES property fail test case.
Grzegorz Kolodziejczyk [Wed, 15 Jan 2014 12:17:06 +0000 (13:17 +0100)]
android/tester: Add set device SCAN_MODE prop fail test case
This adds set device SCAN MODE property fail test case.
Grzegorz Kolodziejczyk [Wed, 15 Jan 2014 12:17:05 +0000 (13:17 +0100)]
android/tester: Add set device SERVICE_RECORD prop fail test case
This adds set device SERVICE RECORD property fail test case.
Grzegorz Kolodziejczyk [Wed, 15 Jan 2014 12:17:04 +0000 (13:17 +0100)]
android/tester: Add set device BDADDR prop fail test case
This adds set device BDADDR property fail test case.
Grzegorz Kolodziejczyk [Wed, 15 Jan 2014 12:17:03 +0000 (13:17 +0100)]
android/tester: Add set device TIMESTAMP prop fail test case
This adds set device TIMESTAMP property fail test case.
Grzegorz Kolodziejczyk [Wed, 15 Jan 2014 12:17:02 +0000 (13:17 +0100)]
android/tester: Add set device RSSI prop fail test case
This adds set device RSSI property fail test case.
Grzegorz Kolodziejczyk [Wed, 15 Jan 2014 12:17:01 +0000 (13:17 +0100)]
android/tester: Add set device TOD prop fail test case
This adds set device TYPE OF DEVICE property fail test case.
Grzegorz Kolodziejczyk [Wed, 15 Jan 2014 12:17:00 +0000 (13:17 +0100)]
android/tester: Add set device COD prop fail test case
This adds set device CLASS OF DEVICE property fail test case.
Grzegorz Kolodziejczyk [Wed, 15 Jan 2014 12:16:59 +0000 (13:16 +0100)]
android/tester: Add set device UUIDS prop fail test case
This adds set device UUIDS property fail test case.
Grzegorz Kolodziejczyk [Wed, 15 Jan 2014 12:16:58 +0000 (13:16 +0100)]
android/tester: Add set device BDNAME prop fail test case
This adds set device BDNAME property fail test case.
Grzegorz Kolodziejczyk [Wed, 15 Jan 2014 12:16:57 +0000 (13:16 +0100)]
android/tester: Add set device FRIENDLY_NAME prop success test case
This adds set device FRIENDLY NAME property success test case.
Johan Hedberg [Wed, 15 Jan 2014 13:21:07 +0000 (15:21 +0200)]
tools/mgmt-tester: Add basic pairing acceptor failure test
Johan Hedberg [Wed, 15 Jan 2014 13:19:09 +0000 (15:19 +0200)]
tools/mgmt-tester: Wait for link key event in pairing acceptor test
Johan Hedberg [Wed, 15 Jan 2014 13:18:25 +0000 (15:18 +0200)]
tools/mgmt-tester: Allow checking for mgmt events in pairing acceptor tests
Johan Hedberg [Wed, 15 Jan 2014 13:17:57 +0000 (15:17 +0200)]
tools/mgmt-tester: Make expected mgmt event content checking optional
Luiz Augusto von Dentz [Tue, 14 Jan 2014 11:41:22 +0000 (13:41 +0200)]
android/A2DP: Connect transport channel when initiator
This connects transport channel when initiator of open request.
Luiz Augusto von Dentz [Tue, 14 Jan 2014 11:24:47 +0000 (13:24 +0200)]
android/A2DP: Add handling of incoming transport connection
This adds handling of incoming transport connection attempt.
Johan Hedberg [Wed, 15 Jan 2014 12:48:37 +0000 (14:48 +0200)]
tools/mgmt-tester: Add simple pairing acceptor test case
Johan Hedberg [Wed, 15 Jan 2014 12:48:12 +0000 (14:48 +0200)]
tools/mgmt-tester: Include PIN callback as a necessary test condition
Johan Hedberg [Wed, 15 Jan 2014 12:38:04 +0000 (14:38 +0200)]
emulator/bthost: Fix requesting encryption if authentication failed
Johan Hedberg [Wed, 15 Jan 2014 12:34:01 +0000 (14:34 +0200)]
emulator/bthost: Add API to request authentication
Johan Hedberg [Wed, 15 Jan 2014 12:33:38 +0000 (14:33 +0200)]
emulator/bthost: Add basic support for link key requests
Johan Hedberg [Wed, 15 Jan 2014 10:27:25 +0000 (12:27 +0200)]
tools/mgmt-tester: Fix BR/EDR disable callback if it's the last setting changed
Andrzej Kaczmarek [Tue, 14 Jan 2014 16:16:19 +0000 (17:16 +0100)]
android/a2dp: Fix freeing preset on SEP close
In case SEP was opened from local side, corresponding a2dp_setup
structure has just reference to a2dp_preset which is stored on presets
list. As a result, when closing SEP such preset will be freed leaving
dangling pointer on presets list.
Andrzej Kaczmarek [Tue, 14 Jan 2014 16:16:18 +0000 (17:16 +0100)]
android/a2dp: Fix IPC response length calculation
struct audio_rsp_open_stream has only zero-length array member thus its
size equals to 0. We need to explicitly specify size of array element
type here.
Marcel Holtmann [Wed, 15 Jan 2014 04:40:29 +0000 (20:40 -0800)]
android: Actually btmon does not need GLib includes
Marcel Holtmann [Wed, 15 Jan 2014 04:37:13 +0000 (20:37 -0800)]
android: Fix typo in referenced source file
Marcel Holtmann [Wed, 15 Jan 2014 04:31:55 +0000 (20:31 -0800)]
android: Include btproxy utility in distribution
Marcel Holtmann [Tue, 14 Jan 2014 21:42:45 +0000 (13:42 -0800)]
tools: Do not modify the available features
Johan Hedberg [Tue, 14 Jan 2014 20:42:21 +0000 (22:42 +0200)]
doc: Update l2cap-tester coverage statistics
Johan Hedberg [Tue, 14 Jan 2014 20:41:10 +0000 (22:41 +0200)]
doc: Fix minor whitespace issue
Johan Hedberg [Tue, 14 Jan 2014 20:40:13 +0000 (22:40 +0200)]
doc: Update mgmt-tester coverage statistics
Marcel Holtmann [Tue, 14 Jan 2014 20:35:42 +0000 (12:35 -0800)]
android: The property_set wrapper is actually written by Intel
Szymon Janc [Tue, 14 Jan 2014 18:37:16 +0000 (19:37 +0100)]
doc: Update android-tester summary in test-coverage.txt
Grzegorz Kolodziejczyk [Tue, 14 Jan 2014 13:54:46 +0000 (14:54 +0100)]
android/tester: Add get device FRIENDLY_NAME prop fail test case
This adds device FRIENDLY NAME property fail test case.
Grzegorz Kolodziejczyk [Tue, 14 Jan 2014 13:54:45 +0000 (14:54 +0100)]
android/tester: Add get device VERINFO property fail test case
This adds device VERSION INFO property fail test case.
Grzegorz Kolodziejczyk [Tue, 14 Jan 2014 13:54:44 +0000 (14:54 +0100)]
android/tester: Add get device DISCTIMEOUT prop fail test case
This adds device DISCOVERY TIMEOUT property fail test case.
Grzegorz Kolodziejczyk [Tue, 14 Jan 2014 13:54:43 +0000 (14:54 +0100)]
android/tester: Add get device BONDED_DEV property fail test case
This adds device BONDED DEVICES property fail test case.
Grzegorz Kolodziejczyk [Tue, 14 Jan 2014 13:54:42 +0000 (14:54 +0100)]
android/tester: Add get device SCAN_MODE property fail test case
This adds device SCAN MODE property fail test case.
Grzegorz Kolodziejczyk [Tue, 14 Jan 2014 13:54:41 +0000 (14:54 +0100)]
android/tester: Add get device SERVREC property fail test case
This adds device SERVICE RECORD property fail test case.
Grzegorz Kolodziejczyk [Tue, 14 Jan 2014 13:54:40 +0000 (14:54 +0100)]
android/tester: Add get device BDADDR property fail test case
This adds device BDADDR property fail test case.
Grzegorz Kolodziejczyk [Tue, 14 Jan 2014 13:54:39 +0000 (14:54 +0100)]
android/tester: Add get device TIMESTAMP prop success test case
This adds device TIMESTAMP property success test case.
Grzegorz Kolodziejczyk [Tue, 14 Jan 2014 13:54:38 +0000 (14:54 +0100)]
android/tester: Add get device RSSI property success test case
This adds device RSSI property success test case.
Grzegorz Kolodziejczyk [Tue, 14 Jan 2014 13:54:37 +0000 (14:54 +0100)]
android/tester: Add get device TOD property success test case
This adds device TOD property success test case.
Grzegorz Kolodziejczyk [Tue, 14 Jan 2014 13:54:36 +0000 (14:54 +0100)]
android/tester: Add get device COD property success test case
This adds device COD property success test case.
Grzegorz Kolodziejczyk [Tue, 14 Jan 2014 13:54:35 +0000 (14:54 +0100)]
android/tester: Add get device UUIDS property success test case
This adds device UUIDS property success test case.
Grzegorz Kolodziejczyk [Tue, 14 Jan 2014 13:54:34 +0000 (14:54 +0100)]
android/tester: Add get device BDNAME property success test case
This adds device BDNAME property success test case.
Grzegorz Kolodziejczyk [Tue, 14 Jan 2014 13:54:33 +0000 (14:54 +0100)]
android/tester: Add get device properties success test case
This adds device properties success test case.
Grzegorz Kolodziejczyk [Tue, 14 Jan 2014 13:54:32 +0000 (14:54 +0100)]
android/tester: Fix for asynchronous test case condition check
This patch fixes checking the state of test case. Due to asynchronous of
callbacks during state check of every single condition, state can be
checked double time by callback condition check with pass status already
set in meantime. Now state is kept as one decremented int.
To pass it must be equal zero and cannot be checked set again.
Szymon Janc [Tue, 14 Jan 2014 12:26:46 +0000 (13:26 +0100)]
android: Fix host build if libcap headers are not present
Szymon Janc [Tue, 14 Jan 2014 11:51:47 +0000 (12:51 +0100)]
android: Remove support for old Android versions
This removes compatibility with Android 4.3 and older. Android 4.4 is
current target. Due to bug in Audio HAL in 4.2 build was failing on
that version anyway.
Szymon Janc [Mon, 13 Jan 2014 22:47:08 +0000 (23:47 +0100)]
android/README: Update documentation with AOSP 4.4
This includes:
- sample repository to AOSP 4.4 based repository with support for
Nexus 4 and Nexus 7 2013 devices.
- adds info about snoop service
- other random additions
Andrei Emeltchenko [Mon, 13 Jan 2014 16:39:44 +0000 (18:39 +0200)]
l2test: Use correct buffer size