Commit Graph

93 Commits

Author SHA1 Message Date
Luiz Augusto von Dentz
ff33778a87 android/hal-ipc-api: Use variable length for text attributes
This prevent having to increase the MTU size just to fit all attributes
when in fact some attributes are numbers (3 out of 8) in text format
which should not get even close to use 256 bytes defined by bt_rc.h.
2014-02-19 19:17:15 +01:00
Luiz Augusto von Dentz
1446bca69d android/hal-ipc-api: Add Set Volume command 2014-02-19 19:17:15 +01:00
Szymon Janc
6c1c75b368 android: Match socket IPC messages types with HAL name 2014-02-19 18:37:03 +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
Luiz Augusto von Dentz
0d8db636db android/hal-ipc-api: Add Passthrough Command notification 2014-02-14 11:30:10 +01:00
Luiz Augusto von Dentz
16b11a26a3 android/hal-ipc-api: Add Volume Changed notification 2014-02-14 11:30:10 +01:00
Luiz Augusto von Dentz
a040d1bfa1 android/hal-ipc-api: Add Register Notification notification 2014-02-14 11:30:10 +01:00
Luiz Augusto von Dentz
eebb90c754 android/hal-ipc-api: Add Get Element Attributes notification 2014-02-14 11:30:10 +01:00
Luiz Augusto von Dentz
83541b26ed android/hal-ipc-api: Add Set Player Values notification 2014-02-14 11:30:10 +01:00
Luiz Augusto von Dentz
a788d22d81 android/hal-ipc-api: Add Get Player Values Text notification 2014-02-14 11:30:10 +01:00
Luiz Augusto von Dentz
d69e42b45d android/hal-ipc-api: Add Get Player Attributes Text notification 2014-02-14 11:30:10 +01:00
Luiz Augusto von Dentz
cb78844274 android/hal-ipc-api: Add Get Player Values notification 2014-02-14 11:30:10 +01:00
Luiz Augusto von Dentz
c6a6cb31c7 android/hal-ipc-api: Add List Player Values notification 2014-02-14 11:30:10 +01:00
Luiz Augusto von Dentz
e23e02ed6a android/hal-ipc-api: Add List Player Attributes notification 2014-02-14 11:30:10 +01:00
Luiz Augusto von Dentz
eb1263196b android/hal-ipc-api: Add Get Play Status notification 2014-02-14 11:30:10 +01:00
Luiz Augusto von Dentz
786229f4f8 android/hal-ipc-api: Add Remote Features notification 2014-02-14 11:30:10 +01:00
Luiz Augusto von Dentz
625fb585f5 android/hal-ipc-api: Add Register Notification Response 2014-02-12 19:26:32 +01:00
Luiz Augusto von Dentz
8c897760ca android/hal-ipc-api: Add Set Player Attributes Value Response 2014-02-12 19:26:32 +01:00
Luiz Augusto von Dentz
aad6de2ef1 android/hal-ipc-api: Add Get Element Attributes Text Response 2014-02-12 19:26:32 +01:00
Luiz Augusto von Dentz
c333844d4c android/hal-ipc-api: Add Get Player Values Text Response 2014-02-12 19:26:32 +01:00
Luiz Augusto von Dentz
c5522c9b0e android/hal-ipc-api: Add Get Player Attributes Text Response 2014-02-12 19:26:32 +01:00
Luiz Augusto von Dentz
0ff573021f android/hal-ipc-api: Add Get Player Attributes Response 2014-02-12 19:26:32 +01:00
Luiz Augusto von Dentz
341fe1cd57 android/hal-ipc-api: Add List Player Values Response 2014-02-12 19:26:32 +01:00
Luiz Augusto von Dentz
abe47600a8 android/hal-ipc-api: Add List Player Attributes Response 2014-02-12 19:26:32 +01:00
Luiz Augusto von Dentz
94b3b2b76f android/hal-ipc-api: Add Get Play Status Response 2014-02-12 19:26:32 +01:00
Andrzej Kaczmarek
968be4037c android/socket: Fix sockets security
Socket security shall be based on flags passed from HAL.

Android public API uses both encrypt and auth flags for "secure"
sockets which should be mapped to high security on our side, but since
this would also trigger requirement for 16-digits pin code (which is
not used in Android) we'll ignore auth flag and use either low or
medium security based on encrypt flag value only.
2014-02-12 13:50:49 +01:00
Szymon Janc
ba4702b208 android/handsfree: Use uint16_t for buffer length in IPC messages
This will match other IPC messages format.
2014-02-10 16:08:50 +01:00
Szymon Janc
b79d1f2d39 android/hal-msg: Match handsfree structures to IPC document 2014-02-10 13:38:36 +01:00
Szymon Janc
729fd52b8b android/handsfree: Add commands and events definition to IPC header 2014-02-05 09:53:53 +01:00
Andrei Emeltchenko
98ab7a7a66 android/ipc: trivial: Remove empty line 2014-01-22 17:33:23 +01:00
Luiz Augusto von Dentz
3ab724f7b2 android/hal-msg: Add defines for each audio state 2014-01-18 23:32:37 +02:00
Szymon Janc
74c65573ce android/socket: Move logic from HAL to daemon in listen
This reduce logic in HAL to bare minimum e.g. no modifications in
library will be needed to add different socket type support.

Both bdaddr2str and btuuid2str handle NULL pointers so it is safe to
print debug unconditionally.
2014-01-06 21:25:59 +02:00
Szymon Janc
e99c1dbd33 android/socket: Make channel int32_t in IPC specification
This match IPC type with type in socket HAL API. This allows to pass
data directly from HAL library and will allow to reduce logic in it.
2014-01-06 21:25:43 +02:00
Szymon Janc
2ce7e74bbb android/hal-bluetooth: Add support for device service record property
This allows to correctly handle device service record property.
2013-12-20 12:57:26 +02:00
Szymon Janc
9690e662ce android/hal-bluetooth: Add support for remote version info property
This allows to correctly handle remote version info property. Although
this property is marked as get/set in HAL only get is implemented as
I fail to see how this property could be settable.
2013-12-20 12:57:24 +02:00
Szymon Janc
63d0afde96 android/bluetooth: Add support for reporting adapter type property
This allows to get property with adapter type.
2013-12-11 15:37:23 +02:00
Andrei Emeltchenko
2022b92090 android: trivial: Add comment making code consistent 2013-11-19 11:16:11 +02:00
Luiz Augusto von Dentz
230211cd25 android/hal-a2dp: Add defines for possible connection states 2013-11-14 14:19:11 +02:00
Luiz Augusto von Dentz
f10e740f21 android/hal-a2dp: Use conn_state instead of connection_state
This is shorter and more consistent with other HAL such as HID.
2013-11-14 14:18:51 +02:00
Ravi kumar Veeramally
c1693c614e android/hidhost: Remove deprecated idle opcode from ipc document
Idle time is deprecated in HID_SPEC1_1. So get and set idle time api's
are removed and not implemented. But callback is left out in Android
bt_hh.h. Generally this callback needs to be called when HAL requests
get and set idle time calls with status. So the method calls itself
removed, no point to implement this callback.
Also update GET_REPORT and VIRTUAL_UNPLUG opcode values.
2013-11-13 11:26:38 +02:00
Ravi kumar Veeramally
68255433d6 android/pan: Add PAN related defines and event struct to hsl-msg header 2013-11-12 19:01:12 +02:00
Ravi kumar Veeramally
651522716f android/hid: Handle virtual unplug event from hid device
If hid host receives the virtual unplug event from hid device
recipient shall destroy or invalidate all bluetooth bonding and
virtual cable information
2013-11-11 10:30:37 +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
70a7c773c8 android/hid: Add hid event virtual unplug structure to HAL msg headers 2013-11-08 10:30:26 +02:00
Ravi kumar Veeramally
3e60caf677 android/hid: Add missing parameters in send data struct in HAL headers 2013-11-08 10:29:37 +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
Szymon Janc
d842e88a47 android: Rename a2dp HAL related IPC API to match service name
Use 'Android HAL name' string from IPC doc as base for names.
2013-11-07 17:58:39 +02:00
Andrei Emeltchenko
718032446a android/hal: Rename hal_op_sock_listen to hal_cmd_sock_listen
This makes structures consistent with the rest of the code.
2013-11-07 10:09:54 +02:00
Johan Hedberg
63d32200d3 android: Fix struct variable alignments in IPC header 2013-11-06 10:35:58 +02:00