Commit Graph

45 Commits

Author SHA1 Message Date
Luiz Augusto von Dentz
697110ce07 android: Fix using plain integer as NULL pointer 2014-07-03 11:41:05 +03:00
Szymon Janc
7b78c20b7e android/hal-ipc: Pass FD to notification handlers 2014-06-12 13:04:31 +02:00
Szymon Janc
9692780128 android/hal-hidhost: Use compact syntax for event handlers 2014-06-10 14:56:29 +02:00
Szymon Janc
7a2d604673 android: Make multi-line comments style consistent
Use common style for multi-line comments consistent with rest of
codebase.
2014-04-29 13:31:00 +02:00
Szymon Janc
412f893256 android/hal: Update services register commands with mode parameter 2014-03-04 10:18:27 +01:00
Szymon Janc
7d95d027b1 android: Create comon header for IPC
This header contains IPC specific structures and code not related to
BT and audio HAL protocols. This allows to fully decouple IPC from
HAL messages.

This is first step to make HAL part of IPC unit-testable and reusable
between BT HAL and audio HAL.
2014-02-28 15:22:45 +01:00
Szymon Janc
70bc1db7a2 android/hidhost: Add idle time callback implementation
Although this callback is for deprecated functionality and
corresponding notification is never send by daemon it should be
implemented for library and IPC completeness.
2014-02-19 18:37:03 +01:00
Szymon Janc
47e30d43c5 android/hidhost: Move set_report parameter check to daemon
HAL library is to be as simple as possible and parameters values should
be verified by daemon for robustness anyway. Move this check to daemon.
2013-12-31 11:34:32 +02:00
Szymon Janc
33c2a480a8 android/hidhost: Move get_report parameter check to daemon
HAL library is to be as simple as possible and parameters values should
be verified by daemon for robustness anyway. Move this check to daemon.
2013-12-31 11:34:30 +02:00
Szymon Janc
af6b7bef23 android/hidhost: Move set_protocol parameter check to daemon
HAL library is to be as simple as possible and parameters values should
be verified by daemon for robustness anyway. Move this check to daemon.
2013-12-31 11:34:28 +02:00
Szymon Janc
81617ffdfc android/hidhost: Move get_protocol parameter check to daemon
HAL library is to be as simple as possible and parameters values should
be verified by daemon for robustness anyway. Move this check to daemon.
2013-12-31 11:34:05 +02:00
Jakub Tyszkowski
83d88bebd7 android/hidhost: Unregister ipc handlers if init fails
Add ipc handlers cleanup if init fails. Send proper status if
already initialized.
2013-12-08 17:47:42 +02:00
Szymon Janc
a54c1e9259 android/hal-hidhost: Use generic IPC message handling for events
Register handlers on service init and unregister on cleanup.
2013-11-19 16:42:01 +02:00
Ravi kumar Veeramally
ab8a2ab554 android: Fix opcode parameter type from uint16_t to uint8_t 2013-11-13 11:27:46 +02:00
Ravi kumar Veeramally
cb54bd85e9 android/hid: Fill send data command struct in hal-hidhost 2013-11-08 15:28:17 +02:00
Ravi kumar Veeramally
20a830495f android/hid: Fill send data command struct in hal-hidhost 2013-11-08 15:23:31 +02:00
Ravi kumar Veeramally
290f9826a5 android/hid: Rename virtual unplug define and struct
Renaming virtual unplug define and strcut name from VP to more
meaning full.
2013-11-08 11:17:29 +02:00
Ravi kumar Veeramally
c7d4ffd327 android/hid: Handle virtual unplug notification in HID HAL 2013-11-08 10:37:39 +02:00
Szymon Janc
bdbe86efab android/hal: Use hidhost instead of hh in hidhost HAL
Match functions names to HAL name. Where not needed hh prefix is
removed.
2013-11-07 18:45:06 +02:00
Szymon Janc
5ca1face1a android: Rename hidhost HAL related IPC API to match service name
Use 'Android HAL name' string from IPC doc as base for names.
2013-11-07 18:44:35 +02:00
Johan Hedberg
b8bc9c1b27 android/hid: Fix get report buffer size variable name 2013-11-06 10:31:31 +02:00
Johan Hedberg
9af81f5b9e android/hid: Fix camelcase variable names 2013-11-06 10:29:25 +02:00
Ravi kumar Veeramally
1aee093b3e android/hid: Handle invalid parameters in HAL 2013-11-06 10:26:36 +02:00
Ravi kumar Veeramally
62fe761a72 android/hid: Handle get report notification in HAL 2013-11-06 10:26:16 +02:00
Ravi kumar Veeramally
a74dec7475 android/hid: Implement hid set report in daemon
This patch requests hid device to set report.
2013-11-06 10:25:13 +02:00
Ravi kumar Veeramally
e8b0c8f13d android/hid: Implement hid get report in daemon
This patch requests hid device report and reads reply
message and sends notification to HAL.
2013-11-06 10:18:01 +02:00
Ravi kumar Veeramally
868e069fc1 android/hid: Handle protocol mode notification in HAL 2013-11-06 10:17:23 +02:00
Luiz Augusto von Dentz
a05dcf3e53 android/hal-hidhost: Add implemention of .hid_info_cb 2013-11-01 15:23:26 +02:00
Andrei Emeltchenko
89dc0b402d android/hidhost: Fix not unregistering HID
If HID is not unregistered it cannot be registered again and we get
following error:
...
E/BluetoothHidServiceJni( 2849): Failed to initialize Bluetooth HID, status: 1
...
2013-10-31 16:57:58 +02:00
Luiz Augusto von Dentz
6a92a05be3 android/hal-hidhost: Add implementation of .connection_state_cb 2013-10-31 15:00:10 +02:00
Luiz Augusto von Dentz
55a25cb83c android/hal-msg: Reduce length of defines and struct names
The current defines and struct names are way too big and sometimes
incosistent.
2013-10-24 10:46:24 +03:00
Luiz Augusto von Dentz
89a85ed6a8 android: Fix checking return of hal_ipc_cmd
hal_ipc_cmd should never return negative values
2013-10-23 13:16:17 +03:00
Ravi kumar Veeramally
9cbea426e1 android: Add initial code for hidhost set hid information
This adds the initial code for hidhost .set_info interface
2013-10-23 10:58:35 +03:00
Ravi kumar Veeramally
012b23595a android: Add initial code for hidhost send data
This adds the initial code for hidhost .send_data interface
2013-10-23 10:58:07 +03:00
Ravi kumar Veeramally
d1f285e9ff android: Add initial code for hidhost get and set report
This adds the initial code for hidhost .get_report and .set_report
interfaces
2013-10-23 10:57:43 +03:00
Ravi kumar Veeramally
d5a7a9980f android: Add initial code for hidhost get and set protocol
This adds the initial code for hidhost .get_protocol and .set_protocol
interfaces
2013-10-23 10:56:19 +03:00
Ravi kumar Veeramally
3590e6b8e9 android: Add initial code for hidhost virtual unplug
This adds initial code for hidhost .virtual_unplug interface
2013-10-23 10:55:21 +03:00
Ravi kumar Veeramally
66b6ea20ad android: Return right from hal_ipc_cmd call in hal hid disconnect
Do not print any error message and return from hal_ipc_cmd call in hal
hid disconnect
2013-10-23 10:54:59 +03:00
Ravi kumar Veeramally
5c12b56155 android: Return right from hal_ipc_cmd call in hal hid connect
Do not print any error message and return from hal_ipc_cmd call in hal
hid connect
2013-10-23 10:54:25 +03:00
Szymon Janc
76384da137 android/hal: Unify HALs callbacks pointers definition
Those are not suppose to be modified or used outside of each HAL.
2013-10-22 16:51:07 +03:00
Szymon Janc
3917177c40 android/hal: Make hal.h self contained 2013-10-22 16:17:26 +03:00
Luiz Augusto von Dentz
f6502b2bb0 android: Use hh prefix instead of bt_hidhost
This replaces the use of bt_hidhost as function prefix with hh.
2013-10-22 16:02:32 +03:00
Ravi kumar Veeramally
8dc3c01e7f android: Add initial code for hidhost
This adds the initial implementation of .init, .connect and .disconnect
2013-10-22 15:57:50 +03:00
Szymon Janc
092cf57fec android: Use hal-log.h for logging in hidhost HAL
This will allow to log both on Android and Linux (in haltest)
2013-10-20 22:38:45 +03:00
Andrei Emeltchenko
537d14b68d android: Add HID Host skeleton
Add skeleton for hidhost Android HAL. This is modified version
from Frederic Danis earlier patch set.
2013-10-18 14:30:14 +03:00