| 89f48401 |
audio/AVRCP: Always assign a player to TG role
Currently the code does not assign a player if version is bellow 1.3,
but sometimes the version may not be initialized correctly e.g: record
could not be fetch.
Futhermore by assigning a player for 1.0 CT it won't break backward
compatibility as no commands will be sent but adds the possibility to
respond properly in case the CT is sending commands above its own
version which is a violation of the spec but unfortunately there exists
such stacks on the market. |
Luiz Augusto von Dentz |
12 years ago |
1 file, +0, -3 |
| 556507b4 |
android/hal: Add support for handling SSP request event |
Szymon Janc |
12 years ago |
1 file, +16, -0 |
| 10e7618c |
android/hal: Add support for handling pin request event |
Szymon Janc |
12 years ago |
1 file, +14, -0 |
| 4e7e340b |
android: Fix build errors
The patch fixes following issues when building:
Make links to sco.h and rfcomm.h needed for Android sockets.
...
btio.c:39:30: fatal error: bluetooth/rfcomm.h: No such file or directory
compilation terminated.
...
btio.c:40:27: fatal error: bluetooth/sco.h: No such file or directory
compilation terminated.
... |
Andrei Emeltchenko |
12 years ago |
1 file, +2, -0 |
| b201633a |
android/hal: Add support for handling bond state change event |
Szymon Janc |
12 years ago |
1 file, +13, -0 |
| d9cbe6ca |
android: Update IPC headers to match SSP and PIN requests events
Name should be 249 bytes so it is always NULL terminated string.
Class of device is send as uint32. This will allow to make simple
passing of data in HAL library without need of copying data. |
Szymon Janc |
12 years ago |
1 file, +4, -4 |
| 4360ee9b |
android: Define class of device as four bytes in IPC doc
For PIN and SSP requests callback define CoD as 4 bytes. This will
allow HAL library to pass CoD direclty to callback. Will also match
how CoD is passed as property. |
Szymon Janc |
12 years ago |
1 file, +2, -2 |
| 806721a4 |
build: Move Makefile.android to android/Makefile.am
This will keep all Android related changes within android directory. |
Szymon Janc |
12 years ago |
3 files, +115, -115 |
| 2abdd036 |
android/hal: Set callbacks before initializing IPC
Notification thread is started on IPC init and it can be scheduled
before main thread.
Fix following crash on HAL init:
pid: 3392, tid: 3492, name: droid.bluetooth >>> com.android.bluetooth <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000028
eax 00000000 ebx ce047f64 ecx ce0405d0 edx f7763724
esi cdf3af00 edi f837fb90
xcs 00000023 xds 0000002b xes 0000002b xfs 00000000 xss 0000002b
eip ce042289 ebp cdf3a9f8 esp cdf3a9e0 flags 00010292
backtrace:
#00 pc 00003289 /system/lib/hw/bluetooth.default.so (bt_thread_associate+25)
#01 pc 000015f8 /system/lib/hw/bluetooth.default.so (notification_handler+40)
#02 pc 0000f804 /system/lib/libc.so (__thread_entry+276)
#03 pc 0002999d /system/lib/libc.so
#04 pc 00082ae7 /system/lib/libdvm.so (dvmThreadSelf()+39)
#05 pc 00010db9 /system/lib/libc.so (pthread_mutex_unlock+25) |
Szymon Janc |
12 years ago |
1 file, +5, -3 |
| c9902d2b |
android: Add initial HID disconnect implementation.
Implemented basic HID disconnect method. Host disconnects
with bt device at L2CAP level. |
Ravi kumar Veeramally |
12 years ago |
1 file, +23, -0 |
| 508e048e |
android: Add initial HID connect implementation
Implemented basic HID connect method. Host connects to
bt device at L2CAP level. |
Ravi kumar Veeramally |
12 years ago |
3 files, +248, -1 |
| fe74c46d |
android: Use helper function to convert bdaddr to android format
This will make easier to understand why swap is needed. |
Szymon Janc |
12 years ago |
1 file, +2, -1 |
| 11bdfcae |
android: Add helper functions for converting bdaddr transmitted over IPC
Android holds Bluetooth address in reverse order comparing to
bluetoothd. Add convenient functions for converting to and from that
format.
Convertion will done on daemon side to keep HAL library simple. |
Szymon Janc |
12 years ago |
2 files, +34, -0 |
| d4453aeb |
android: Remove bogus hal_rsp_register_module structure
Core service Register ID command doesn't return any parameter. |
Szymon Janc |
12 years ago |
1 file, +0, -3 |
| 7bf69408 |
android: Fix HAL_OP_REMOVE_BOND value
This is a copy-and-paste mistake. |
Szymon Janc |
12 years ago |
1 file, +1, -1 |
| 2a974c63 |
android: Rename send_adapter_name to send_adapter_address
Make function name match what it acctually does. |
Szymon Janc |
12 years ago |
1 file, +2, -2 |
| 5b5f6279 |
android/client: Add clear screen on Cltr-L
This patch allows to clear screen on Ctrl-L. |
Jerzy Kasenberg |
12 years ago |
1 file, +13, -0 |
| 3c10d4e0 |
android/hal-pan: Add implementation of .disconnect |
Luiz Augusto von Dentz |
12 years ago |
2 files, +10, -3 |
| ca999716 |
android/hal-pan: Add implementation of .connect |
Luiz Augusto von Dentz |
12 years ago |
2 files, +15, -3 |
| 209f302f |
android/hal-pan: Add implementation of .get_local_role |
Luiz Augusto von Dentz |
12 years ago |
2 files, +15, -1 |
| ab2a0efb |
android/hal-pan: Add implementation of .enable |
Luiz Augusto von Dentz |
12 years ago |
2 files, +13, -1 |
| 1e8089a4 |
android/hal-pan: Add implementation of .init |
Luiz Augusto von Dentz |
12 years ago |
1 file, +7, -4 |
| c8fea98c |
android/client: Add completion for hf methods
This patch adds completion functions to handsfree methods. |
Jerzy Kasenberg |
12 years ago |
1 file, +114, -10 |
| dcd6c057 |
android/client: Add code for handsfree methods
This patch adds implementation of handsfree methods to haltest. |
Jerzy Kasenberg |
12 years ago |
1 file, +289, -0 |
| ff1e7c07 |
android/client: Add code for handsfree callbacks
This adds implementation for handsfree callbacks. |
Jerzy Kasenberg |
12 years ago |
1 file, +23, -0 |
| e0895c15 |
android/client: Add skeleton for handsfree calls
This patch adds skeleton for all methods of handsfree along with
all callbacks. |
Jerzy Kasenberg |
12 years ago |
6 files, +375, -1 |
| d15f317b |
android/hal-av: Fix command struct names
The command struct names should start with hal_cmd as the others. |
Luiz Augusto von Dentz |
12 years ago |
2 files, +4, -4 |
| 5a5158bb |
android/hal: Add support for send av disconnect command
This allows HAL to send av disconnect command |
Grzegorz Kolodziejczyk |
12 years ago |
2 files, +10, -3 |
| 11410bf9 |
android/hal: Add support for send av connect command
This allows HAL to send av connect command |
Grzegorz Kolodziejczyk |
12 years ago |
2 files, +12, -3 |
| c737af93 |
android/hal: Add support for handling av audio state event |
Grzegorz Kolodziejczyk |
12 years ago |
2 files, +17, -0 |
| 7bca531f |
android/hal: Add support for handling av connection state event |
Grzegorz Kolodziejczyk |
12 years ago |
2 files, +19, -0 |
| 9b67ebb0 |
android/hal: Add skeleton for handling av notifications
Only default case is handled in skeleton |
Grzegorz Kolodziejczyk |
12 years ago |
3 files, +17, -0 |
| e2f41f5b |
android/hal: Fix typo in A2DP HAL service name
A2DP was misspelled as AD2P |
Grzegorz Kolodziejczyk |
12 years ago |
2 files, +2, -2 |
| c23b54e3 |
android: Rename setting_powered_changed to powered_changed |
Luiz Augusto von Dentz |
12 years ago |
1 file, +2, -2 |
| d21050de |
android: Add support for notifying HAL about scan mode change
If connectable or discoverable setting changes property change is send
to HAL. |
Szymon Janc |
12 years ago |
1 file, +40, -14 |
| 3676715f |
android: Always set adapter to pairable on init
There is no operation to enable/disable pairable mode in Android HAL. |
Szymon Janc |
12 years ago |
1 file, +37, -35 |
| 9be3bd66 |
android: Add support for setting adapter scan mode
This allows to set all modes defined: none, connectable and
'connectable and discoverable'. |
Szymon Janc |
12 years ago |
1 file, +72, -1 |
| e73aba71 |
android: Add missing scan mode difinitions to IPC header |
Szymon Janc |
12 years ago |
1 file, +4, -0 |
| 36235e21 |
android: Add initial code for handling adapter set property command
No commands are handled yet. |
Szymon Janc |
12 years ago |
1 file, +20, -0 |
| 27eeafd6 |
android: Use common exit path for commands in bt_adapter_handle_cmd
All adapter commands return no parameters so putting error and success
response on common exit path. This will make function easier to follow
when more commands support will be added. |
Szymon Janc |
12 years ago |
1 file, +16, -18 |
| eb53c75b |
android/hal: Use debug helpers from hal client
Debug helpers really helps a lot when debugging on Android target. The
patch uses helper functions already defined for hal test tool so
we do not need to reimplement them. |
Andrei Emeltchenko |
12 years ago |
2 files, +5, -2 |
| 81af6f91 |
android/hal: Use defined function to check that interface is ready |
Andrei Emeltchenko |
12 years ago |
1 file, +6, -6 |
| 39bf745e |
android/hal: Associate thread to Java
Without thread assiciation callbacks are not received by Java.
They are blocked by JNI:
E/BluetoothServiceJni( 2844): Callback env check fail: env: 0x0, callback: 0x0
E/BluetoothServiceJni( 2844): Callback: 'adapter_state_change_callback' is not
called on the correct thread |
Andrei Emeltchenko |
12 years ago |
3 files, +18, -0 |
| d52939fd |
android: Rename ipc_send_error to ipc_send_rsp |
Luiz Augusto von Dentz |
12 years ago |
5 files, +8, -8 |
| 1610f70c |
android: Rename ERROR enum and command to STATUS
This is more consistent with HAL interface which does name the enum as
bt_status_t and does use BT_STATUS prefix. |
Luiz Augusto von Dentz |
12 years ago |
6 files, +36, -36 |
| 7d9d4d87 |
android: Add initial support for handling adapter get property command
Support for HAL_BT_PROP_BDADDR property only. |
Szymon Janc |
12 years ago |
1 file, +50, -0 |
| a9be0747 |
android: Add missing success status definition to IPC header
This is used in HAL callbacks to indicate success. |
Szymon Janc |
12 years ago |
1 file, +1, -0 |
| 1c0d8eef |
android/hal: Add support for handling adapter properties change event |
Szymon Janc |
12 years ago |
1 file, +34, -0 |
| ea73f7b7 |
android/hal: Add support for sending adapter SSP reply command
This allows HAL to reply to SSP request. |
Szymon Janc |
12 years ago |
1 file, +9, -3 |
| 96bdbe13 |
android: Add missing SSP variant definitions to IPC header |
Szymon Janc |
12 years ago |
1 file, +5, -0 |