Ravi kumar Veeramally
c5ca292eb6
android/hid: Retrieve BOOT_DEVICE attribute from SDP and cache it
...
It will be usefull to handle when application level requests
get or set protocol from hid device.
2013-11-05 10:19:15 +02:00
Ravi kumar Veeramally
34492997bf
android/hid: Rename function name set_state to notify_state
...
Renaming notification preparation function name from bt_hid_set_state
to bt_hid_notify_state. Rest of the funtions name will have proper
notify* names.
2013-11-05 10:18:51 +02:00
Szymon Janc
d2064df699
android: Send current state of all properties while powering adapter
...
When adapter is powered on it is expected to emit all properties so
that framework could synchronize its state machine with current
state of HAL. There is no need to set scan mode to none on startup
as framework will set scan mode if current mode is different than
desired one.
2013-11-04 21:31:27 +02:00
Szymon Janc
556c5ceb71
android: Implement scan_mode property in get property command
...
This will allow to query current state of scan mode property.
2013-11-04 21:31:20 +02:00
Szymon Janc
a880b227bd
android: Add support for handling get properties commands
...
When this commands is received all properties shall be reported to HAL.
2013-11-04 21:31:16 +02:00
Andrei Emeltchenko
8baa84b767
android/client: Fix printing not NULL terminated strings
...
Android passes not NULL terminated strings.
2013-11-04 21:17:50 +02:00
Andrei Emeltchenko
5af8a574eb
android/daemon: Fix setting adapter name
...
Android use the full string returned even if we terminate it with '\0'.
2013-11-04 21:15:58 +02:00
Andrei Emeltchenko
2dda637c83
android/daemon: Clean up get_address name
...
Make function name consistent with the rest of the code.
2013-11-04 21:15:46 +02:00
Andrei Emeltchenko
c98ce8a67b
android/daemon: Implement get adapter name
...
Use adapter_name_changed for get_property call.
2013-11-04 21:15:37 +02:00
Jerzy Kasenberg
fe552a1a5d
android/client: Fix annoying delay in command line
...
Move fflush(stdout) to after prints and user input.
This removes delay of showing prompt.
2013-11-04 21:14:35 +02:00
Jerzy Kasenberg
180bc6dbd8
android/client: Change interface name to bluetooth
...
This changes 'adapter' to 'bluetooth' as name of HAL interface.
This name matches name fond in bluetooth.h where all interfaces
are defined.
2013-11-04 21:13:52 +02:00
Luiz Augusto von Dentz
1ca4c658d9
android/pan: Add initial code for handling commands
2013-11-04 21:13:05 +02:00
Luiz Augusto von Dentz
8e955dfd82
android: Add initial skeleton for pan in the daemon
2013-11-04 21:12:40 +02:00
Luiz Augusto von Dentz
00e69a7570
android/a2dp: Add initial code for handling commands
2013-11-04 21:12:25 +02:00
Luiz Augusto von Dentz
5daffcb642
android: Add initial skeleton for a2dp in the daemon
2013-11-04 21:12:23 +02:00
Jerzy Kasenberg
bd75bd816e
android: Bump PLATFORM_SDK_VERSION to KitKat
...
This updates PLATFORM_SDK_VERSION to 19 since
bluetooth headers were updated already.
2013-11-04 12:15:45 +02:00
Szymon Janc
3c82cea914
android: Fix not sending scan mode change notification
...
Check for current settings instead of changed setting mask when
sending notification. Otherwise scan mode change would be communicated
only if power state changed at the same time.
2013-11-04 12:15:04 +02:00
Jerzy Kasenberg
6807460f1b
android/client: Fix uninitialized variable
...
Pin accept variable was intended to be set to 1
only when pin was typed by user. If no pin was given
accept should be set to 0. This patch fixes this.
2013-11-04 12:14:18 +02:00
Luiz Augusto von Dentz
d661ba725c
android: Add the missing HAVE_CONFIG_H check daemon files
2013-11-04 12:10:31 +02:00
Luiz Augusto von Dentz
f18bb68ba5
android/hid: Use BT_IO_OPT_SOURCE_BDADDR whenever possible
2013-11-04 12:10:29 +02:00
Marcin Kraglak
992f3f669f
Fix incorrect result type in set_adapter_name
2013-11-04 12:07:47 +02:00
Marcin Kraglak
c304a4c963
android: Add stub of get_remote_services command
2013-11-04 10:20:28 +02:00
Marcin Kraglak
5658fadf26
android/hal: Send get_remote_services cmd
2013-11-04 10:20:07 +02:00
Marcin Kraglak
ef4e9a8884
android: Fix typo in get_remote_services command
2013-11-04 09:37:13 +02:00
Andrei Emeltchenko
f2782699e8
android/daemon: Add logs to trace failed cmd
2013-11-04 09:33:19 +02:00
Andrei Emeltchenko
be06afd877
android/hal: Add extra logs to HAL
...
Use exported functions from hal test tool to print properties.
2013-11-04 09:29:09 +02:00
Andrei Emeltchenko
5ad3530e8b
android/haltest: Fix print device name
2013-11-04 09:28:49 +02:00
Andrei Emeltchenko
2563307c2d
android/haltest: Use pointer as parameter for debug
...
Pass structure as pointer. This makes it consistent with the rest of
the code and helps to reuse this function in other parts.
2013-11-04 09:28:33 +02:00
Andrei Emeltchenko
59dcd70722
android/haltest: Export print property
...
Export property printing debug function.
2013-11-04 09:28:16 +02:00
Luiz Augusto von Dentz
bcbbe2d1f3
android/socket: Log not implemented HAL functions
...
This makes it easier to spot which functions the HAL is calling.
2013-11-01 16:40:40 +02:00
Luiz Augusto von Dentz
da48ebbe18
android/hid: Log not implemented HAL functions
...
This makes it easier to spot which functions the HAL is calling.
2013-11-01 16:40:38 +02:00
Luiz Augusto von Dentz
bb7f3b6304
android/adapter: Log not implemented properties
...
This makes it easier to stop which functions the HAL is calling.
2013-11-01 16:40:35 +02:00
Andrei Emeltchenko
33323282cd
android/daemon: Add handler for device disconnected
...
Send event to callback thread which shall call acl state change callback.
2013-11-01 16:39:07 +02:00
Andrei Emeltchenko
c70142b3f4
android/hal: Add debug prints for every HAL callback
...
This allows us to trace callbacks to Java.
2013-11-01 16:39:07 +02:00
Andrei Emeltchenko
2a33a44431
android/daemon: Add debug handlers for unhandled mgmt event
...
Add debug prints to some mgmt events.
2013-11-01 16:39:07 +02:00
Andrei Emeltchenko
981b04355e
android/hal: Handle acl_state_changed event
2013-11-01 16:39:07 +02:00
Andrei Emeltchenko
6554000ab7
android/daemon: Implement mgmt device connected event
...
Send HAL_EV_ACL_STATE_CHANGED event to HAL through IPC.
2013-11-01 16:39:07 +02:00
Andrei Emeltchenko
789ed3dbcb
android/ipc: Update HAL IPC header
...
Add ACL states to the header.
2013-11-01 16:39:07 +02:00
Marcel Holtmann
33c400b88b
android: Fix up the GATT client to handle KitKat API changes
2013-11-01 06:25:30 -07:00
Marcel Holtmann
97b1deec59
android: Copy the KitKat Bluetooth hardware headers
2013-11-01 06:24:55 -07:00
Luiz Augusto von Dentz
5e1e3a097d
android/hid: Add handling of HAL_EV_HID_INFO
2013-11-01 15:23:26 +02:00
Luiz Augusto von Dentz
a05dcf3e53
android/hal-hidhost: Add implemention of .hid_info_cb
2013-11-01 15:23:26 +02:00
Luiz Augusto von Dentz
e01894ce63
android/hid: Fix passing vendor id as version to uHID
2013-11-01 15:23:26 +02:00
Luiz Augusto von Dentz
65ec172c2b
android/hid: Rename hdev vars to dev
2013-11-01 15:23:26 +02:00
Marcel Holtmann
194d97df9d
android: Make system-emulator start daemon only once
2013-11-01 06:07:42 -07:00
Andrei Emeltchenko
a3b0003409
android/daemon: Update CoD and RSSI only when they exist
...
This avoid sending zeroed Class of Device and making it unidentified.
...
prop[0]: type=BT_PROPERTY_CLASS_OF_DEVICE len=4 val=000000
prop[1]: type=BT_PROPERTY_REMOTE_RSSI len=1 val=-75
prop[2]: type=BT_PROPERTY_BDNAME len=249 val=Microsoft Bluetooth Number Pad
...
2013-11-01 14:07:06 +02:00
Marcel Holtmann
22eb024fe9
android: Add support for device id information
2013-11-01 03:53:56 -07:00
Marcel Holtmann
629447a588
android: Add the missing HAVE_CONFIG_H check to adapter.c
2013-11-01 03:51:46 -07:00
Marcel Holtmann
3ac9589731
android: Run through valgrind with the system-emulator
2013-11-01 03:40:05 -07:00
Marcel Holtmann
86691b3a57
android: Allow connect() for property_set to fail
2013-11-01 03:18:47 -07:00