OSDN Git Service
Marcel Holtmann [Sat, 18 Jan 2014 02:32:58 +0000 (18:32 -0800)]
android: Sort the documentation files a little bit
Szymon Janc [Fri, 17 Jan 2014 15:30:46 +0000 (16:30 +0100)]
android/snoop: Drop capabilities on startup
Szymon Janc [Fri, 17 Jan 2014 15:30:45 +0000 (16:30 +0100)]
android: Change user to bluetooth when starting daemon
Szymon Janc [Fri, 17 Jan 2014 15:30:44 +0000 (16:30 +0100)]
android: Update README with init.rc updates
Szymon Janc [Fri, 17 Jan 2014 15:30:43 +0000 (16:30 +0100)]
android/system-emulator: Update property used for start/stop services
Szymon Janc [Fri, 17 Jan 2014 15:30:42 +0000 (16:30 +0100)]
android/hal: Update property used for start/stop services
Szymon Janc [Fri, 17 Jan 2014 15:30:41 +0000 (16:30 +0100)]
android: Add sample init.bluetooth.rc file
This file is intended to be included from device init.rc.
Johan Hedberg [Fri, 17 Jan 2014 13:29:31 +0000 (15:29 +0200)]
emulator/bthost: Remove unnecessary printf
Johan Hedberg [Fri, 17 Jan 2014 10:48:09 +0000 (12:48 +0200)]
eir: Prefer bool over gboolean
Andrzej Kaczmarek [Thu, 16 Jan 2014 15:38:20 +0000 (16:38 +0100)]
android/a2dp: Fix typo in condition
Szymon Janc [Tue, 14 Jan 2014 08:04:40 +0000 (09:04 +0100)]
android/bluetooth: Fix discovering new devices
Device found events should be send also for known devices if this is
new discovery session. Otherwise Android will ignore those devices.
Andrzej Kaczmarek [Wed, 15 Jan 2014 18:03:57 +0000 (19:03 +0100)]
android/hal-audio: Implement set_parameters for device
Andrzej Kaczmarek [Wed, 15 Jan 2014 18:03:56 +0000 (19:03 +0100)]
android/hal-audio: Fix AudioFlinger crash
We need to return some valid values for buffer size and latency so
AudioFlinger does not crash. For now just use some dummy values until
codec implementation is in place.
Andrzej Kaczmarek [Wed, 15 Jan 2014 18:03:55 +0000 (19:03 +0100)]
android/hal-audio: Fix module loading
Andrzej Kaczmarek [Wed, 15 Jan 2014 18:03:54 +0000 (19:03 +0100)]
android/hal-audio: Handle audio preset from stream
This patch adds handling of audio preset received after stream is
opened. Preset is used to initialize codec and then to set input
configuration so audio subsystem can write data in a format that
codec can handle later.
Andrzej Kaczmarek [Wed, 15 Jan 2014 18:03:53 +0000 (19:03 +0100)]
android/hal-audio: Add support to suspend output stream
This patch adds support to suspend output stream via Audio IPC.
>From HAL perspective stream can be either in standby or suspended -
the former is default one and can be auto-resumed on write while the
latter cannot be resumed only after explicitly going into standby
on audio code request.
Andrzej Kaczmarek [Wed, 15 Jan 2014 18:03:52 +0000 (19:03 +0100)]
android/hal-audio: Add support to resume output stream
This patch adds support to resume output stream via Audio IPC.
Stream is automatically resumed on first write when stream is in
standby state.
Andrzej Kaczmarek [Wed, 15 Jan 2014 18:03:51 +0000 (19:03 +0100)]
android/hal-audio: Add support to close output stream
Andrzej Kaczmarek [Wed, 15 Jan 2014 18:03:50 +0000 (19:03 +0100)]
android/hal-audio: Add support to open output stream
This patch adds support to open output stream via Audio IPC.
Since only SBC is supported, we always try to open stream for first
endpoint only which is enough.
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