| 7d07e650 |
android: Add wrapper for HAL logging
Provide logging API similar to standard logging used in daemon. This
will allow to log on both Android and Linux (i.e. in haltest).
Another advantage is that now LOG_TAG and message format are configured
from single location. |
Szymon Janc |
12 years ago |
2 files, +37, -1 |
| 12405f10 |
android: Remove not needed property_get function form cutils stubs
This is no longer used as daemon indicates its presence by connecting
socket. |
Szymon Janc |
12 years ago |
1 file, +0, -27 |
| d0cd4f3f |
android: Make HAL library wait for daemon to connect on init
After starting up, daemon is responsible for connecting to HAL library.
If this doesn't happen before timeout occured init will fail. |
Szymon Janc |
12 years ago |
1 file, +103, -23 |
| ecc5ce6e |
android: Connect daemon to HAL library
Connect to HAL when adapter initialization is finished. If any problem
with connection occurs or connected socket is closed by remote daemon
shutdowns. |
Szymon Janc |
12 years ago |
1 file, +122, -0 |
| f8aa51a3 |
android: Define path for HAL communication socket
This socket will be used by android daemon and libhal to communicate. |
Szymon Janc |
12 years ago |
1 file, +2, -0 |
| 80f9b055 |
android: Improve cutils/log.h stubs
Provide dummy function that will use ALOG* macros parameters. This fix
build errors about set-but-not-used used local variables on linux. |
Szymon Janc |
12 years ago |
1 file, +7, -5 |
| 09b89472 |
android: Fix missing log cleanup on daemon exit |
Szymon Janc |
12 years ago |
1 file, +2, -0 |
| 3a2f5946 |
monitor: Add support for decoding sync flow control commands |
Marcel Holtmann |
12 years ago |
2 files, +51, -2 |
| 66ac7a5a |
monitor: Add support for decoding SSP debug mode command |
Marcel Holtmann |
12 years ago |
2 files, +34, -1 |
| 1bbc54e1 |
wiimote: add new documented device IDs
Add some new device IDs for the LEGO wiimote and Wii U Pro Controllers.
Also add comments for each ID so we can track them better. |
David Herrmann |
12 years ago |
1 file, +7, -5 |
| 93b74025 |
android: Add completion for adapter to haltest
This patch adds all completion functions for adapter methods.
It also adds short help lines for all methods that require arguments. |
Jerzy Kasenberg |
12 years ago |
5 files, +330, -53 |
| 4246516c |
android: Fix error in draw line in haltest tool
This fixes small error that showed up when tab completion inserted
characters before end of line.
Cursor in line was not moved correctly. |
Jerzy Kasenberg |
12 years ago |
1 file, +1, -1 |
| 50fcb041 |
android: Add tab completion to haltest
This patch adds tab completion to interfaces, methods and parameters
in haltest. |
Jerzy Kasenberg |
12 years ago |
5 files, +342, -4 |
| 919757ed |
android: Add missing signal handler functionality
Added singal handling based on singalfd and removed sigaction
based code. |
Ravi kumar Veeramally |
12 years ago |
1 file, +67, -15 |
| 1bcc8ea5 |
core: Fix typo in adapter.c comments |
Claudio Takahasi |
12 years ago |
1 file, +7, -7 |
| ad26f5e6 |
core: Remove unneeded includes in device.c |
Claudio Takahasi |
12 years ago |
1 file, +0, -3 |
| 5632153c |
core: Remove leftover adapter_get_default() |
Claudio Takahasi |
12 years ago |
1 file, +0, -1 |
| 4f1ec5d7 |
android: Fix up white space issue |
Johan Hedberg |
12 years ago |
1 file, +1, -1 |
| 56a7159d |
android: Remove bogus error log |
Johan Hedberg |
12 years ago |
1 file, +0, -2 |
| 8b0dde62 |
android: Convert bt_adapter_new into a bt_adapter_init function |
Johan Hedberg |
12 years ago |
3 files, +53, -9 |
| 5b8e9154 |
android: Remove unused bt_adapter_start/stop functions |
Johan Hedberg |
12 years ago |
2 files, +0, -19 |
| 631304f9 |
android: Add PAN skeleton
Add skeleton for pan Android HAL. This is modified version
from Frederic Danis earlier patch set. |
Andrei Emeltchenko |
12 years ago |
5 files, +133, -1 |
| 537d14b6 |
android: Add HID Host skeleton
Add skeleton for hidhost Android HAL. This is modified version
from Frederic Danis earlier patch set. |
Andrei Emeltchenko |
12 years ago |
5 files, +220, -1 |
| 81f69b15 |
android: Rename hal_bt_sock.c to hal-btsock.c |
Andrei Emeltchenko |
12 years ago |
4 files, +90, -90 |
| 705b0cd2 |
android: Rename hal_bluetooth.c to hal-bluetooth.c |
Andrei Emeltchenko |
12 years ago |
4 files, +386, -386 |
| b4f88a4a |
android: Use kernel style to initialize struct fields |
Andrei Emeltchenko |
12 years ago |
1 file, +23, -23 |
| ec12cfc7 |
android: Fix logging usage |
Johan Hedberg |
12 years ago |
2 files, +10, -0 |
| e101e48a |
android: Implement read_info_complete callback
Handle read info complete callback from mgmt interface. |
Andrei Emeltchenko |
12 years ago |
4 files, +111, -20 |
| 1b78f83a |
build: Add missing Android files to EXTRA_DIST |
Szymon Janc |
12 years ago |
1 file, +18, -1 |
| 9a9b4536 |
gitignore: Add android/haltest |
Szymon Janc |
12 years ago |
1 file, +1, -0 |
| 63b0fede |
android: Fix crash in property_get stub
If value was not found and default_value was not provided NULL pointer
was passed as argument to strncpy resulting in crash. |
Szymon Janc |
12 years ago |
1 file, +1, -1 |
| 11c3ef8a |
android: Fix haltest build on Linux
On Linux HAL library is build into haltest binary and can be access
directly. Provide simple implementation of hw_get_module() that does
it. |
Szymon Janc |
12 years ago |
2 files, +29, -1 |
| 848c12cc |
build: Add haltest command line tester
This is intended for testing Android daemon and HAL library on Linux. |
Szymon Janc |
12 years ago |
1 file, +14, -0 |
| 9e93d255 |
core: Fix missing adapter address type
This patch fixes an invalid argument error when connecting to LE
devices. Bind and connect address type must match. |
Claudio Takahasi |
12 years ago |
1 file, +1, -0 |
| 90f1f946 |
build: Add missing android/cutils/properties.h to EXTRA_DIST |
Luiz Augusto von Dentz |
12 years ago |
1 file, +2, -1 |
| ed169a38 |
android: Fix build errors due to missing headers
In file included from ./android/hardware/bluetooth.h:24:0,
from android/hal_bt_sock.c:20:
./android/hardware/hardware.h:23:34: fatal error: cutils/native_handle.h: No such file or directory
#include <cutils/native_handle.h>
^
In file included from ./android/hardware/bluetooth.h:24:0,
from android/hal_bluetooth.c:23:
./android/hardware/hardware.h:23:29: fatal error: system/graphics.h: No such file or directory
#include <system/graphics.h>
^ |
Luiz Augusto von Dentz |
12 years ago |
1 file, +0, -3 |
| eab79de6 |
android: Fix build error with autotools
CC android/android_libbt_internal_la-hal_bluetooth.lo
android/hal_bluetooth.c:26:28: fatal error: cutils/sockets.h: No such file or directory
#include <cutils/sockets.h>
^
Apparently sockets.h is not used for anything, so for now remove it and
once it is actually necessary add local cutils/sockets.h so it can be
build with autotools as well. |
Luiz Augusto von Dentz |
12 years ago |
1 file, +0, -1 |
| 63a0440a |
android: Fix build error when compiling with autotools
android/hal_bt_sock.c:82:21: error: no previous declaration for 'bt_get_sock_interface' [-Werror=missing-declarations]
btsock_interface_t *bt_get_sock_interface(void) |
Luiz Augusto von Dentz |
12 years ago |
1 file, +2, -0 |
| 247d8289 |
build: Enable building android HAL as libhal-internal.la |
Luiz Augusto von Dentz |
12 years ago |
1 file, +21, -0 |
| 79625ed0 |
android: Add cutils/properties.h |
Luiz Augusto von Dentz |
12 years ago |
1 file, +65, -0 |
| 172b03b6 |
android: Add cutils/log.h |
Luiz Augusto von Dentz |
12 years ago |
2 files, +29, -1 |
| 402e81b4 |
build: Add Android HAL headers to EXTRA_DIST |
Szymon Janc |
12 years ago |
1 file, +14, -0 |
| 88b098bc |
android: Import Android HAL headers
This imports BT HAL headers as of tag android-4.3_r3.1 from
https://android.googlesource.com/platform/hardware/libhardware
Those files are needed for building HAL library and haltester tool on
Linux. |
Szymon Janc |
12 years ago |
13 files, +2312, -0 |
| d197f7f4 |
android: trivial typo fix |
Andrei Emeltchenko |
12 years ago |
1 file, +7, -7 |
| 08da3d9f |
Revert "unit/sdp: Check that correct packet received in recv"
This reverts commit b9981c4fa197e79f7ecd480fd9fbfa3601d121a1. Some tests
have intentionally incorrect PDU lengths, so trying to be strict in the
check is wrong. |
Johan Hedberg |
12 years ago |
1 file, +3, -2 |
| 969a171d |
l2test: Set CID due to socket restrictions for LE
Bluetooth kernel now restricts LE L2CAP sockets to ATT channels only.
For LE L2CAP socket bind, ATT CID is now mandatory. Reference: kernel patch
bfe4655f05d7ec4a7c0c1c7e4051862f824cd8ec |
Claudio Takahasi |
12 years ago |
1 file, +2, -0 |
| c03c91b6 |
android: sdp: Reuse BlueZ SDP server in Android
Reuse existing SDP server code in Android GPL daemon. |
Andrei Emeltchenko |
12 years ago |
3 files, +16, -1 |
| 035ae08b |
android: Add adapter and device struct for BlueZ daemon
Adapter structure in BlueZ daemon keeps track of default adapter
and device structure keeps track about found devices. |
Andrei Emeltchenko |
12 years ago |
4 files, +139, -0 |
| 3c9f4d64 |
android: Add basic mgmt initialization sequence
Initialize bluetooth controller via mgmt interface. |
Andrei Emeltchenko |
12 years ago |
3 files, +174, -1 |
| b8d1523b |
android: Create HAL API header skeleton
Header describes the protocol between Android HAL threads and BlueZ
daemon. The header is added to host build and not to Android since
it is smart enough to include it automatically. |
Andrei Emeltchenko |
12 years ago |
2 files, +250, -1 |