| c7a838af |
android/client: Don't align name property while printing
Received name property is guaranteed to be NULL terminated so there is
no need to use length specifier. This also fix really long space while
printing due to text alignment to the right. |
Szymon Janc |
12 years ago |
1 file, +1, -2 |
| dce613ef |
android: Set pairable mode only if it is not set
There is no need to set already set setting. |
Szymon Janc |
12 years ago |
1 file, +2, -1 |
| 42817e6c |
android: Always enable SSP if supported by controller
There is no HAL function to enable/disable SSP so always enable it if
supported by controller. |
Szymon Janc |
12 years ago |
1 file, +8, -0 |
| 043251a8 |
android/daemon: Fix not reporting scan mode to Java
After set_adapter_property() higher layer expects callback to be returned
even if property is not changes. Otherwise Java timeouts and reset Bluetooth
enetring to the loop.
...
BluetoothAdapterState( 2850): Timeout will setting scan mode..
Continuing with disable...
... |
Andrei Emeltchenko |
12 years ago |
1 file, +9, -3 |
| 5eaf3a88 |
android/daemon: Fix error setting property
Do not return error setting property which is already set. This fixes
bug with set_scan_mode which might return HAL_STATUS_DONE. |
Andrei Emeltchenko |
12 years ago |
1 file, +1, -1 |
| 26ba1906 |
android/hid: Add handling of HAL_EV_HID_CONN_STATE
This patches generate proper events when the connection state changes:
>hidhost connect
BlueZ D: android/hal-hidhost.c:hh_connect()
connection_state_cb: bd_addr= connection_state=BTHH_CONN_STATE_CONNECTING
if_hh->connect: BT_STATUS_SUCCESS
connection_state_cb: bd_addr= connection_state=BTHH_CONN_STATE_CONNECTED
>hidhost disconnect
BlueZ D: android/hal-hidhost.c:hh_disconnect()
connection_state_cb: bd_addr= connection_state=BTHH_CONN_STATE_DISCONNECTING
if_hh->disconnect: BT_STATUS_SUCCESS
connection_state_cb: bd_addr= connection_state=BTHH_CONN_STATE_DISCONNECTED |
Luiz Augusto von Dentz |
12 years ago |
1 file, +39, -7 |
| 6a92a05b |
android/hal-hidhost: Add implementation of .connection_state_cb |
Luiz Augusto von Dentz |
12 years ago |
5 files, +44, -0 |
| 043fd76a |
android/hid: Add handling of incoming connections |
Luiz Augusto von Dentz |
12 years ago |
1 file, +90, -0 |
| 3e4893a2 |
android/client: Fix crash in get_profile_interface
This fixes crash due to uncheck input from user. |
Jerzy Kasenberg |
12 years ago |
1 file, +7, -1 |
| 42876422 |
android: Add support for handling remove bond command
Bond state change is send when command complete for unpair device is
received and status was success. |
Szymon Janc |
12 years ago |
1 file, +33, -0 |
| 08e6aadd |
android/hal: Add support for repacking received IPC data to HAL data
Some HAL defined types that are passed as type-len-value in properties
callback needs to be repacked at runtime to match defined types.
This is due to HAL using data types without strict refined sizes like
enums or unpacked structures. This is needed only if data is passed as
TLV. With data passed to callbacks as parameters compiler will handle
types convertion.
Currently only enum types are supported. |
Szymon Janc |
12 years ago |
1 file, +96, -8 |
| a49fa76f |
android/haltest: Fix bug when building for Android 4.2.2
Since I started to use system Android headers instead of local this
bug was found. |
Andrei Emeltchenko |
12 years ago |
1 file, +2, -2 |
| dd4f0ea5 |
android/haltest: Use Android system headers instead of local |
Andrei Emeltchenko |
12 years ago |
1 file, +4, -0 |
| 705b9a2d |
android: Add support for handling SSP reply command |
Szymon Janc |
12 years ago |
1 file, +94, -0 |
| 1169f479 |
android: Add support for handling pin reply command |
Szymon Janc |
12 years ago |
1 file, +49, -0 |
| e7d8ab64 |
android: Add support for notify variant in SSP request event |
Szymon Janc |
12 years ago |
1 file, +24, -0 |
| c5b55f03 |
android: Add support for entry variant in SSP request event |
Szymon Janc |
12 years ago |
1 file, +21, -0 |
| 17ee5048 |
android: Add initial support for sending SSP request event
Only consent and confirm variants are supported in this patch. |
Szymon Janc |
12 years ago |
1 file, +40, -0 |
| 6e2e717e |
android: Add support for sending pin code request |
Szymon Janc |
12 years ago |
1 file, +27, -0 |
| a56bec66 |
android: Add support for handling cancel bond command |
Szymon Janc |
12 years ago |
1 file, +18, -0 |
| 9ec2351f |
android: Add support for handling create bond command |
Szymon Janc |
12 years ago |
1 file, +63, -0 |
| 2ed04662 |
android: Set default IO capability on daemon start
There is no HAL function for setting IO capabilities so this is
hardcoded to DisplayYesNo as Android devices usually have screen
and input. |
Szymon Janc |
12 years ago |
1 file, +17, -0 |
| 21bf46e1 |
android: Make load_link_keys function load keys
GSlist passed is expected to hold mgmt_link_key_info structures. |
Szymon Janc |
12 years ago |
1 file, +24, -9 |
| 7e0bc2f0 |
android: Add support for handling new link key mgmt event
When link key is emitted by kernel bond state change notification is
send to HAL. Storing link key is not yet implemented. |
Szymon Janc |
12 years ago |
1 file, +57, -0 |
| e7356e5e |
android: Add missing bond state definition to IPC header |
Szymon Janc |
12 years ago |
1 file, +4, -0 |
| 424219cd |
android: Add missing bonding state definitions to IPC specification |
Szymon Janc |
12 years ago |
1 file, +4, -0 |
| 51236854 |
android: Use Android headers instead of local ones
Add path to Android libhardware library headers |
Andrei Emeltchenko |
12 years ago |
1 file, +1, -0 |
| a56aeec3 |
android: Initial implementation of socket interface
Add stub implementation of socket interace on daemon side. |
Marcin Kraglak |
12 years ago |
3 files, +49, -0 |
| 2a7971fc |
android/hal: Add initial socket implementation
Added socket api opcodes and structures and its implementation
in hal-sock.c. |
Marcin Kraglak |
12 years ago |
2 files, +46, -2 |
| ea1347cf |
android/client: Define Android version for host
This patch defines PLATFORM_SDK_VERSION like it is handled in
Android.mk. This value corresponds to current copy of headers
from Android committed to bluez. |
Jerzy Kasenberg |
12 years ago |
1 file, +2, -1 |
| d9ea2226 |
android/hid: Fix not cleanup properly after disconnect
If the device is disconnected it should be removed from the list of
connected devices and free its data. |
Luiz Augusto von Dentz |
12 years ago |
1 file, +3, -9 |
| dbefd63d |
android: Fix compiler flags with Android version
This fixes commit that removed PLATFORM_SDK_VERSION when building
haltest. Now all android targets get this define. |
Jerzy Kasenberg |
12 years ago |
1 file, +3, -3 |
| 35b7d4b3 |
tools/mgmt-tester: Rename 'LE-only' to 'LE' for nicer logs |
Johan Hedberg |
12 years ago |
1 file, +10, -10 |
| 7522cd32 |
tools/mgmt-tester: Add LE test for set_connectable when limited discoverable
We also need to update the order of the initial settings since limited
discoverable is only allowed when powered on. |
Johan Hedberg |
12 years ago |
1 file, +20, -2 |
| 395eba9b |
tools/mgmt-tester: Add LE test for connectable off when discoverable |
Johan Hedberg |
12 years ago |
1 file, +24, -0 |
| e5748af3 |
tools/mgmt-tester: Add basic LE-only discoverable on test case |
Johan Hedberg |
12 years ago |
1 file, +22, -3 |
| 6b2d2e80 |
tools/mgmt-tester: Add basic LE-only limited discoverable on test case |
Johan Hedberg |
12 years ago |
1 file, +20, -0 |
| 09da9e2f |
tools/mgmt-tester: Add basic BR/EDR limited discoverable on test cases |
Johan Hedberg |
12 years ago |
1 file, +54, -0 |
| f83187dd |
tools/mgmt-tester: Fix sending right set_discoverable parameters in setup |
Johan Hedberg |
12 years ago |
1 file, +1, -0 |
| 20c2fedb |
tools/mgmt-tester: Fix calling test_setup twice |
Johan Hedberg |
12 years ago |
1 file, +1, -1 |
| ef4f77e6 |
android: Add missing discovery state definitions to IPC header |
Jakub Tyszkowski |
12 years ago |
1 file, +3, -0 |
| ccfc207b |
android/hal: Add device state changed event handler
This is used to report property change of already reported remote
device. |
Jakub Tyszkowski |
12 years ago |
1 file, +18, -0 |
| 56f12d1a |
android/hal: Add device found event handler
This is called when new remote device is found. |
Jakub Tyszkowski |
12 years ago |
1 file, +16, -0 |
| 66f9de59 |
android/hal: Extract bt property repacking code for further reuse
This extracted part of code can be reused for repacking remote device
properties. |
Jakub Tyszkowski |
12 years ago |
1 file, +22, -17 |
| 2cbbb5bb |
android/hal: Add support for handling discovery state change event |
Jakub Tyszkowski |
12 years ago |
1 file, +11, -0 |
| 98f4e398 |
android/hal: Add support for start/cancel device discovery commands |
Jakub Tyszkowski |
12 years ago |
1 file, +6, -2 |
| b95fba99 |
android: Suppress compiler warnings not used in autotools build
Android build system is enabling some additional warnings that are not
enabled when building with autotools. This avoids spurious warnings
while building on Android. |
Szymon Janc |
12 years ago |
1 file, +3, -0 |
| 0f8e15cb |
android: Add common place for adding compiler flags in Android.mk
This will contain CFLAGS common for all BlueZ code. |
Szymon Janc |
12 years ago |
1 file, +7, -2 |
| c2630916 |
android/client: Fix crash in tab completion
When user pressed tab on third or later argument when
first two did not make sense tool crashed.
Now method is checked for NULL before accessing help field. |
Jerzy Kasenberg |
12 years ago |
1 file, +1, -1 |
| 5ff30dbe |
android: Add README file with instructions
This file cotains help on how BlueZ for Android should be build, run
and test. Some hints and examples on how BlueZ can be intergrated into
Android are present as well. |
Szymon Janc |
12 years ago |
2 files, +91, -1 |