Szymon Janc
7d95d027b1
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.
2014-02-28 15:22:45 +01:00
Szymon Janc
dd1e44fce1
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.
2014-02-28 15:22:45 +01:00
Szymon Janc
34f32c03dd
android/handsfree: Use HFP code for connection handling
...
HFP code is now able to handle disconnection on its own so just use
this instead of using own watches.
2014-02-24 10:49:38 +01:00
Anderson Lizardo
9b00e93b11
android: Use 16-bit UUID for SDP search
...
These UUIDs are assigned by BT-SIG and therefore there is no need to
use full 128-bit UUIDs. This also avoids unnecessary conversion from
string representation.
2014-02-12 11:26:56 +02:00
Marcel Holtmann
cde69653e0
android: Update copyright and license details
2014-02-11 10:42:56 -08:00
Andrei Emeltchenko
ed713a8319
android/handsfree: Fix memory leak
...
Free classes if sdp_get_access_protos fails.
2014-02-05 14:44:20 +01:00
Szymon Janc
5ca0c401ef
android/handsfree: Fix address printed in debug
2014-02-05 11:15:33 +01:00
Szymon Janc
f52cd974a3
android/handsfree: Use NULL instead of zero for pointers
2014-02-05 10:03:30 +01:00
Szymon Janc
077a899e87
android/handsfree: Add disconnect command handling
2014-02-05 09:53:54 +01:00
Szymon Janc
9ae2eda45d
android/handsfree: Add connect command handling
...
This allows to query SDP for RFCOMM channel and connect.
2014-02-05 09:53:54 +01:00
Szymon Janc
d404ab9874
android/handsfree: Add initial code for AT commands processing
...
Currently always reply with error and disconnect connection.
2014-02-05 09:53:54 +01:00
Szymon Janc
d08d1dbb2a
android/handsfree: Add support for RFCOMM connection handling
...
This adds incoming connection handling and initial connection state
tracking. Only one device is allowed to be connected at the same time.
2014-02-05 09:53:54 +01:00
Szymon Janc
82d4ce30ce
android/handsfree: Add SDP record for AG
...
Service Name: Hands-Free Audio GatewayService RecHandle: 0x10001
Service Class ID List:
"Handsfree Audio Gateway" (0x111f)
"Generic Audio" (0x1203)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 13
Profile Descriptor List:
"Handsfree" (0x111e)
Version: 0x0106
2014-02-05 09:53:53 +01:00
Szymon Janc
74241d6755
android/handsfree: Add stubs for commands handlers
...
Add empty handlers for all IPC commands.
2014-02-05 09:53:53 +01:00
Szymon Janc
db17fbe467
android/handsfree: Add initial files
...
This adds initial HAL and daemon code for Handsfree profile.
2014-02-05 09:53:53 +01:00