Szymon Janc
931eb9f16d
android/hal: Use a2dp instead of av in a2dp HAL
...
Match functions names to HAL name. Where not needed av prefix is
removed.
2013-11-07 17:59:01 +02:00
Szymon Janc
f42a2bafa3
android/hal: Rename hal-av.c to hal-a2dp.c
...
Name of HAL implementation will match Android HAL name. This will make
code navigation easier as daemon part and HAL library implementation
will be in foo.c and hal-foo.c respectively.
2013-11-07 17:58:54 +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
14924cd24b
android/ipc: Fix receiving file descriptors
...
It does make sense iterate over !NULL controll headers. This fixes
the bug that file descriptors cannot be send over IPC.
2013-11-07 17:14:15 +02:00
Lukasz Rymanowski
817177ef1d
android: Use BASELEN define for property changed
2013-11-07 17:07:24 +02:00
Szymon Janc
fd02ec9d91
android: Use payload member to access message data
...
This make it similar to other places in code.
2013-11-07 17:06:05 +02:00
Szymon Janc
fb1e40d65c
android: Remove includes from adapter.h
...
This is internal header and dependencies should be included in
respective .c files.
2013-11-07 17:05:57 +02:00
Szymon Janc
052e481adc
android: Pass notification socket fd to service handlers
...
IPC helpers were converted to accept socket, not GIOChannel so there
is no need of passing former to handlers.
2013-11-07 17:05:47 +02:00
Szymon Janc
32f29761bf
android: Make IPC helpers accept file descriptor
...
There is no need to pass GIOChannel as writes are done immediately.
2013-11-07 17:05:07 +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
Andrei Emeltchenko
20002d0a37
android/hal-sock: Check socket type in connect
...
Only RFCOMM sockets are supported in Android.
2013-11-07 10:09:40 +02:00
Lukasz Rymanowski
dfe8ac32fd
android: Change name for get_disc_timeout
...
Change name to get_discoverable_timeout. Previous name could be
confusing with disconnection timeout.
2013-11-07 10:08:05 +02:00
Johan Hedberg
48eb05b0b0
android: Remove useless device.{c,h} files
2013-11-06 16:39:55 +02:00
Marcin Kraglak
645da8e857
android: Implement class of device property callback
...
This will send adapter property with class of device
to notification socket.
2013-11-06 13:32:07 +02:00
Johan Hedberg
63d32200d3
android: Fix struct variable alignments in IPC header
2013-11-06 10:35:58 +02:00
Johan Hedberg
9d4ec54095
android/hid: Fix unnecessary second check for cmd->buf_size value
2013-11-06 10:33:31 +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
ff8dad2942
android/hid: Align hal hid struct variables properly
2013-11-06 10:27:10 +02:00
Ravi kumar Veeramally
8c7daf5389
android/hid: Handle uhid events
...
Handling few uhid events and described scenarios. OUTPUT and
FEATURE events are not yet handled.
2013-11-06 10:26:58 +02:00
Ravi kumar Veeramally
1aee093b3e
android/hid: Handle invalid parameters in HAL
2013-11-06 10:26:36 +02:00
Ravi kumar Veeramally
aac7c55133
android/hid: Replace header checking magic number with defines
2013-11-06 10:26:25 +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
93f04d5a33
android/hid: Add missing set report parameters to ipc document
2013-11-06 10:24:43 +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
125099108f
android/hid: Add hid event get report structure to HAL msg headers
2013-11-06 10:17:52 +02:00
Ravi kumar Veeramally
868e069fc1
android/hid: Handle protocol mode notification in HAL
2013-11-06 10:17:23 +02:00
Ravi kumar Veeramally
bf0031a50b
android/hid: Implement hid set protocol in daemon
...
This patch requests hid device to set protocol mode and reads
reply message and sends notification to HAL.
2013-11-06 10:16:41 +02:00
Ravi kumar Veeramally
176ac66b0c
android/hid: Implement hid get protocol in daemon
...
This patch requests hid device protocol mode and reads reply
message and sends notification to HAL.
2013-11-06 10:15:46 +02:00
Johan Hedberg
80a2ea61f2
android: Use more common 'failed' label instead of 'error'
2013-11-06 10:12:13 +02:00
Szymon Janc
40fb9b2032
android: Add option to specify controller index to use
...
This will be usefull while testing on Linux where more controllers
can be present.
2013-11-06 10:10:14 +02:00
Szymon Janc
6dc9321e2e
android: Stop mainloop if reading index list failed
...
If reading index list failed mainloop should be stopped since adapter
init guard timer is not yet running.
2013-11-06 10:08:15 +02:00
Szymon Janc
8a98e083b8
android: Stop mainloop if reading version failed
...
If reading mgmt version failed or kernel supported version is to old
mainloop should be stopped.
2013-11-06 10:07:54 +02:00
Szymon Janc
81c0c34ef6
android: Remove mgmt_version and mgmt_revision static variables
...
There is no need to keep those as Android daemon is expecting new
enough kernel to operate.
2013-11-06 10:07:47 +02:00
Szymon Janc
9d89bb121b
android: Require at least 1.3 version of mgmt interface
...
Android daemon is not providing old kernels compatibility features.
2013-11-06 10:07:37 +02:00
Marcin Kraglak
c17cf38ecf
android: Pass found uuids to remote_device_properties_cb
...
Send remote device's uuids in remote_device_properties_cb.
This patch will pack found uuids to buffer containing property
with list of uuids and send it to notification socket.
2013-11-05 18:23:03 +02:00
Marcin Kraglak
4b9e1d80a9
android: Fetch remote device uuids after pairing
...
Android framework expects list of bonded device's uuids.
Start sdp query after setting bond state to BOND_STATE_BONBED.
2013-11-05 18:22:40 +02:00
Marcin Kraglak
1ee0b2f9f9
android: Initial implementation of get_remote_services
...
This patch implements method to retrieve remote device sdp records.
Caching struct is implemented for adding fetched uuids to list.
sdp_req_list will contain list of devices which are asked for records.
Function get_remote_services will check if device is on list, and will
start sdp procedure.
2013-11-05 18:20:46 +02:00
Luiz Augusto von Dentz
cd8bbd29f4
android/hid: Fix passing wrong adapter address to bt_io_listen
2013-11-05 15:21:27 +02:00
Jerzy Kasenberg
ef0609cc15
android/client: Fix build for android 4.3
...
Chagnes in HAL interface from 4.3 to 4.4 result in build failure:
target thumb C: haltest <=
external/bluetooth/bluez/android/client/if-gatt.c
external/bluetooth/bluez/android/client/if-gatt.c:225:1:
error: unknown type name 'btgatt_gatt_id_t'
This patch allows to build GATT for Android 4.3 (api level 18).
2013-11-05 14:55:37 +02:00
Ravi kumar Veeramally
5de2f26a11
android/hid: Add hid event proto mode structure to hal msg headers
2013-11-05 14:52:34 +02:00
Szymon Janc
762a2ef434
android: Suppress compiler warnings not enabled by autotools build
...
missing-field-initializers warning is not enabled on autotools build.
Current code rely on implicit fields intializations resulting in flood
of bogus compiler warnings while building for Android.
monitor/packet.c:348:2: warning: missing initializer
[-Wmissing-field-initializers]
monitor/packet.c:348:2: warning: (near initialization for
'error2str_table[64].error') [-Wmissing-field-initializers]
monitor/packet.c:542:2: warning: missing initializer
[-Wmissing-field-initializers]
monitor/packet.c:542:2: warning: (near initialization for
'svc_class_table[8].bit') [-Wmissing-field-initializers]
monitor/packet.c:557:2: warning: missing initializer
[-Wmissing-field-initializers]
monitor/packet.c:557:2: warning: (near initialization for
'major_class_computer_table[8].val') [-Wmissing-field-initializers]
2013-11-05 13:04:00 +02:00
Luiz Augusto von Dentz
b01319a33f
android/adapter: Make adapter_set_name call adapter_name_changed
...
This simplifies the code since the action of changing the name should
always be progated to the HAL there is no point in doing this
separately.
2013-11-05 12:43:43 +02:00
Andrei Emeltchenko
324ba2b35f
android/daemon: Save adapter name on complete event
...
Saving adapter name was missing from set name complete event.
Refactor code to function and reuse it in both places where
name is changed.
2013-11-05 12:32:53 +02:00
Jerzy Kasenberg
126aad3a5d
android/client: Change adapter to bluetooth
...
This fixes all places where adapter should be changed to
bluetooth.
2013-11-05 12:31:27 +02:00
Jerzy Kasenberg
c73ddc609b
android/client: Fix style and typos
...
Fixes spelling errors and white space style errors.
2013-11-05 12:31:25 +02:00
Andrei Emeltchenko
6886d16e6c
android: Add btmon to Android Makefile
...
Build btmon for Android image. btmon requires fresh bionic to build.
2013-11-05 12:30:40 +02:00
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