Commit Graph

105 Commits

Author SHA1 Message Date
Andrei Emeltchenko
3ca4f940f6 android/hal-sco: Add audio HAL for SCO handling
This adds audio HAL for handling SCO. Following needs to be added to
audio_policy.conf:

  sco {
    outputs {
      sco {
        ...
        devices AUDIO_DEVICE_OUT_ALL_SCO
        ...
      }
    }
2014-05-09 13:42:32 +03:00
Marcin Kraglak
1d6148a038 gatt: Add skeleton of gatt-db
This change adds new() and destroy() fuctions for gatt_db,
which will be used for storing local attributes.
2014-04-25 09:49:50 +02:00
Ravi kumar Veeramally
8b862c87d9 android/client: Add initial support for health profile 2014-04-23 21:59:16 +02:00
Ravi kumar Veeramally
dceee75c55 android: Add initial MCAP common code
The patch keeps all MCAP specific logic in mcap-lib until it receives
proper unit tests and then eventually will be used by health profile
code as well.
2014-04-07 12:59:06 +02:00
Sebastian Chlad
e1d6f7875e android/hsp: Add MCAP and HDP files 2014-03-31 15:27:33 +02:00
Lukasz Rymanowski
f1f2ad6046 emulator: Use timeout for sending inquiry results
With this patch btdev uses timeout to schedule inquiry results
It also allows btdev to receive hci commands during inquiry.
Previously btdev was blocked since all the inquiry result were sent in
single loop
2014-03-20 14:11:25 +02:00
Lukasz Rymanowski
0c62d593c4 android/gatt: Add GATT Connect
This patch introduce connect LE device functionality.

There is gatt_device representing remote le device. Each gatt device
has a list own list of clients as it is possible that more apps
would like to use same remote device.

Possible connect scenarios:

1.  There is no ACL connection to device:
Then new dev is put on conn_wait_queue and le scan is enabled.
Once device is found we do connect it.

Once device is connected then device is moved form conn_wait_queue to
conn_list and success event is sent to client(s) with conn_id

2. Device is already connected:
Then we update client list, reply with success and do send connect event.

3. For unregisterd clients or uknown conn_id, failed response is sent.
2014-03-17 10:41:46 +01:00
Marcel Holtmann
8b644c3537 android: Make sure that ipc-common.h is included 2014-03-14 10:37:28 -07:00
Sebastian Chlad
037a592b11 android/hsp: PTS tests results for HSP 2014-03-14 14:42:12 +01:00
Ravi kumar Veeramally
72b36c7854 android/health: Add health.c|h file with basic calls
Add health.c|h with basic calls for register and unregister profile.
2014-03-14 13:34:16 +01:00
Ravi kumar Veeramally
d7e5e16a36 android/hal-health: Add hal-health.c with initial get interface call 2014-03-14 13:34:16 +01:00
Sebastian Chlad
b562bdba09 android/pts: Add HFP PTS tests results
Adding PTS test results for HFP 1.6
2014-03-13 15:19:24 +01:00
Sebastian Chlad
0cae6f71ed android/pics: Add PICS and PIXIT for GATT
Adding PICS and PIXIT for GATT targetting Android 4.4
2014-03-06 09:27:59 +01:00
Jakub Tyszkowski
90ce3b7bfc android/hal-gatt: Add skeleton for GATT HAL
This adds skeleton with stubs and proper build system entries.
2014-03-03 16:11:07 +01:00
Grzegorz Kolodziejczyk
319245da2b android/gatt: Add initial files
This adds initial daemon code for GATT profile.
2014-03-03 16:11:07 +01:00
Szymon Janc
d61f3fc72e android/a2dp: Use common IPC for audio socket
This makes audio HAL to use same code for IPC as BT HAL.
2014-02-28 15:22:45 +01:00
Sebastian Chlad
a7471c5334 android/pics: Add PICS and PIXIT for HFP
Added PICS and PIXIT target Android 4.4
2014-02-28 13:10:41 +01:00
Sebastian Chlad
b0ce17b5df android/pics: Add PICS and PIXIT for HSP
Added PICS and PIXIT target Android 4.4
2014-02-28 13:09:25 +01:00
Johan Hedberg
32b444a25d build: Link crypto code with the emulator 2014-02-26 17:59:37 +02:00
Szymon Janc
64d17c7904 android: Add pts-pan.txt to EXTRA_DIST 2014-02-24 12:12:25 +01:00
Andrei Emeltchenko
4351d46804 android: Add initial AVRCP common code
The patch makes AVRCP to be transport agnostic so that it can be used in
with socket pair to build unit tests.

The idea is that all AVRCP specific logic will stay on avrcp-lib until it
receives proper unit tests and then eventually will be used by audio
plugin as well.
2014-02-20 13:57:55 +02:00
Szymon Janc
1f7c726bfd android/hal-sock: Rename to hal-socket
This will match convention used for lib and daemon part of HAL.
2014-02-19 18:37:03 +01:00
Anderson Lizardo
124f6f0595 android: Add test-ipc to "make check" 2014-02-12 11:49:31 +02:00
Jakub Tyszkowski
83c7a21fe4 android/client-audio: Add sine generator as fallback
When no audio file path is provided use sine generator.
2014-02-05 15:08:24 +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
db17fbe467 android/handsfree: Add initial files
This adds initial HAL and daemon code for Handsfree profile.
2014-02-05 09:53:53 +01:00
Marcin Kraglak
981459271d android/unit: Add android IPC unit tests
It will test ipc library. First test case will check
ipc_init() call.
2014-02-03 14:15:00 +01:00
Luiz Augusto von Dentz
7568d14b66 android/haltest: Add init and cleanup calls to rc methods 2014-01-26 16:19:24 -08:00
Luiz Augusto von Dentz
44ef6f0c4c android: Add initial skeleton for AVRCP in the HAL 2014-01-26 16:19:24 -08:00
Luiz Augusto von Dentz
c466e79d6b android: Add initial skeleton for AVRCP in the daemon 2014-01-26 16:19:24 -08:00
Luiz Augusto von Dentz
51753d8e6e android/AVCTP: Strip dependencies
This strips AVCTP code of any dependency of core and btio to make it
transport agnostic.
2014-01-26 16:19:24 -08:00
Lukasz Rymanowski
29eb4fe6f5 android/audio: Fix for loading audio lib
clock_gettime requires linking with -rt for glibc versions before 2.17
2014-01-23 19:55:14 +02:00
Luiz Augusto von Dentz
e7bb627371 android: Move audio.a2dp.default.la build definitions
This way they are not spread in different parts of Makefile.am
2014-01-23 11:37:17 +02:00
Andrzej Kaczmarek
68141f0889 android: Build Audio HAL with SBC
Build for Android requires libsbc sources to be available in
external/bluetooth/sbc. Build for host requires libsbc package to be
installed.
2014-01-23 11:34:19 +02:00
Johan Hedberg
1a9051e9ee Rename glib-helper to uuid-helper 2014-01-21 14:12:47 +02:00
Jakub Tyszkowski
8cc27935d3 android/ipc-tester: Skeleton for ipc negative tester
Add skeleton for ipc negative testing.
2014-01-20 23:23:27 +01:00
Johan Hedberg
fb922ee610 emulator/bthost: Add SMP support 2014-01-20 16:26:33 +02:00
Jakub Tyszkowski
65e8e6ba32 android/pts: Add PTS test results document for AVCTP
This will allow for better tracking of current state of implementation.
2014-01-20 13:31:19 +01:00
Jakub Tyszkowski
bdfac94fcf android/pts: Add PTS test results document for AVRCP
This will allow for better tracking of current state of implementation.
2014-01-20 13:31:18 +01:00
Jakub Tyszkowski
24062f87e1 android/pts: Add PTS test results document for A2DP
This will allow for better tracking of current state of implementation.
2014-01-20 13:31:18 +01:00
Marcel Holtmann
d715a2ee3c android: Sort the documentation files a little bit 2014-01-17 18:32:58 -08:00
Szymon Janc
72c77073a4 android: Add sample init.bluetooth.rc file
This file is intended to be included from device init.rc.
2014-01-17 20:41:45 +01:00
Lukasz Rymanowski
987fae9513 android/hal-audio: Add audio_ipc_cmd
Add function to handle send/receive on audio_sk.
2014-01-16 16:01:40 +02:00
Szymon Janc
944a282821 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"
2014-01-16 12:32:10 +01:00
Jakub Tyszkowski
1d6fbfb1da android/pics: Add PICS and PIXIT for AVCTP
Add PICS/PIXIT for AVCTP, targeting Android 4.4.
2014-01-16 09:04:41 +01:00
Szymon Janc
8622810347 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.
2014-01-14 12:57:18 +01:00
Jakub Tyszkowski
28429dcd1e android/pics: Add PICS and PIXIT for A2DP
Add PICS/PIXIT for A2DP targeting Android 4.4.
2014-01-13 11:04:26 +01:00
Jakub Tyszkowski
4a88ffb177 android/pics: Add PICS and PIXIT for AVRCP
Add PICS/PIXIT for AVRCP targeting Android 4.4.
2014-01-13 11:04:26 +01:00
Luiz Augusto von Dentz
5e0582451a android: Fix not using AM_CFLAGS in the HAL modules
Both bluetooth.audio.so and audio.a2dp.default.so should use AM_CFLAGS
ortherwise some quite obvious errors that otherwise would break the
build may be pushed upstream.
2014-01-10 17:45:17 +02:00
Luiz Augusto von Dentz
ea873d1a6a android/haltest: Add support for loading Audio HAL
This makes audio.a2dp.default.so to be loaded by haltest.
2014-01-10 15:37:46 +02:00