Commit Graph

1626 Commits

Author SHA1 Message Date
Marcel Holtmann
3fef9cdaf3 android: Small cosmetic changes in the README 2014-03-15 17:16:06 -07:00
Szymon Janc
8a635cc308 android/README: Add information about not implemented AVRCP calls 2014-03-15 23:51:53 +01:00
Szymon Janc
8afc913a42 android/README: Update HALs implementation status 2014-03-15 23:17:03 +01:00
Marcin Kraglak
84066fccbc android/handsfree: Connect audio when Android framemework expects it
There are few cases when framework doesn't call connect_audio method
from HAL but we should do it internally. Call connect_audio if
we started dialing or we accepted incoming call. Also if headset
connects during active call, start SCO connection. We don't have to
disconnect SCO internally, because Android always call disconect_audio
when call has finished.
2014-03-15 23:07:32 +01:00
Szymon Janc
5d5444d657 android/handsfree: Add support for three-way calling
This adds code needed for translating phone_state_change command to
call, callsetup and callheld indicators. Android HAL specifcy common
type for all calls state but only subset of values are valid for
phone_state_change.
2014-03-15 22:21:28 +01:00
Marcel Holtmann
8b644c3537 android: Make sure that ipc-common.h is included 2014-03-14 10:37:28 -07:00
Szymon Janc
bc7e20a107 android/client: Enable printf format string verification 2014-03-14 16:02:33 +01:00
Lukasz Rymanowski
2013f75493 android/client: Minor fix in print status 2014-03-14 16:02:33 +01:00
Lukasz Rymanowski
fc6cbace2c android/client: Fix service search command
We should be able to send NULL in case we want all the primary seavices
2014-03-14 16:02:33 +01:00
Szymon Janc
5409c16e84 android/hal-bluetooth: Fix passing uninitialized mode on init
This fix following Valgrind report:
Syscall param sendmsg(msg.msg_iov[1]) points to uninitialised byte(s)
   at 0x534823D: ??? (syscall-template.S:81)
   by 0x5F68689: hal_ipc_cmd (hal-ipc.c:357)
   by 0x5F6240B: init (hal-bluetooth.c:437)
   by 0x4128C0: setup_base (android-tester.c:2594)
   by 0x40DDE5: setup_callback (tester.c:380)
   by 0x50803B5: g_main_context_dispatch (in /lib/x86_64-linux-gnu/
     libglib-2.0.so.0.3800.1)
   by 0x5080707: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.3800.1)
   by 0x5080B09: g_main_loop_run (in /lib/x86_64-linux-gnu/
     libglib-2.0.so.0.3800.1)
   by 0x40EA0C: tester_run (tester.c:798)
   by 0x404475: main (android-tester.c:4864)
 Address 0x7ff0002b1 is on thread 1's stack
2014-03-14 14:42:12 +01:00
Jakub Tyszkowski
767df7695d android/tester: Don't verify test conditions if test is done
This avoids callbacks still being called when test result is already
decided and teardown procedure has already been triggered.
2014-03-14 14:42:12 +01:00
Sebastian Chlad
037a592b11 android/hsp: PTS tests results for HSP 2014-03-14 14:42:12 +01:00
Grzegorz Kolodziejczyk
f3a9cfe90a android/client: Fix segfault (invalid argv) for gatt scan
This patch fix segfault driven by lack of 4 element in avrg array.
If user put only two arguments, reading of lacking (auto set to start=1)
third argument, will trigger segfault.
2014-03-14 14:42:12 +01:00
Claudio Takahasi
7899d71215 Replace bt_put_le16() by put_le16() 2014-03-14 15:29:35 +02:00
Szymon Janc
5ab9740fbc android/handsfree: Fix not needed codec negotiation
If codec was already negotiated there is no need to do it again and AG
may try connecting SCO right away. This fix regression from f264a65170.
2014-03-14 13:44:29 +01:00
Ravi kumar Veeramally
72b36c7854 android/health: Add health.c|h file with basic calls
Add health.c|h with basic calls for register and unregister profile.
2014-03-14 13:34:16 +01:00
Ravi kumar Veeramally
2bb8f57c98 android/hal-health: Add HDP .cleanup method 2014-03-14 13:34:16 +01:00
Ravi kumar Veeramally
840dcd6868 android/hal-health: Add HDP .init method 2014-03-14 13:34:16 +01:00
Ravi kumar Veeramally
d7e5e16a36 android/hal-health: Add hal-health.c with initial get interface call 2014-03-14 13:34:16 +01:00
Ravi kumar Veeramally
1d0715f864 android/hal-msg: Add HDP app channel state event struct 2014-03-14 13:34:16 +01:00
Ravi kumar Veeramally
2da131cab4 android/hal-msg: Add HDP app registration state event struct 2014-03-14 13:34:16 +01:00
Ravi kumar Veeramally
376e6a0c2c android/hal-msg: Add HDP destroy channel struct 2014-03-14 13:34:16 +01:00
Ravi kumar Veeramally
9b6d2b1a7f android/hal-msg: Add HDP connect channel struct 2014-03-14 13:34:16 +01:00
Ravi kumar Veeramally
abb6b7602e android/hal-msg: Add HDP app unregistration struct 2014-03-14 13:34:16 +01:00
Ravi kumar Veeramally
185f1c3df6 android/hal-msg: Add HDP app registration struct 2014-03-14 13:34:16 +01:00
Jakub Tyszkowski
f01f3a2dae android/bluetooth: Move start discovery function up in the file
This is to avoid unneeded code move in further paatches.
2014-03-14 00:09:44 +01:00
Jakub Tyszkowski
80ca53ae3f android/bluetooth: Refactor start/stop discovery
Pass discovery type to discovery stop/start routine so it can be used
also for LE only scan.
2014-03-14 00:09:44 +01:00
Jakub Tyszkowski
a4b3e5f22a android/gatt: Change name of match functions 2014-03-14 00:09:44 +01:00
Grzegorz Kolodziejczyk
642c54d72f android/gatt: Use queue and stdlib instead of GLib where possible
This patch changes using GLib to queues and stdlib operators.
2014-03-14 00:08:29 +01:00
Szymon Janc
3697788937 android/handsfree: Cleanup info and error messages 2014-03-13 23:30:36 +01:00
Szymon Janc
f264a65170 android/handsfree: Simplify condition in connect_audio 2014-03-13 23:30:36 +01:00
Szymon Janc
f05d46c09a android/handsfree: Fix some style issues 2014-03-13 23:30:36 +01:00
Szymon Janc
6bdba6be43 android/handsfree: Split members in device for better readability 2014-03-13 23:30:36 +01:00
Marcin Kraglak
ffdf8c26fe android/handsfree: Add handling of AT+BCS and AT+BCC
It will service codec nogotiation and establish SCO connection with
negotiated parameters. If SCO establishment failed, try to connect
with mandatory codec CVSD.
2014-03-13 23:30:36 +01:00
Marcin Kraglak
86db3fc9d1 android/handsfree: Move connect_sco() to more appropriate place
Move connect_sco as it will be used in at_cmd_bcc()
2014-03-13 23:30:36 +01:00
Marcin Kraglak
7d8466bec3 android/handsfree: Add initial implementation of Codec Negotiation feature
It will handle AT+BAC command and update list of available codecs.
It will check if mandatory codec CVSD is present on list and, if
Wide Band Speech supported, MSBC codec is on next place. Other codecs
can be also used after extending codecs_defaults array.
It will also handle incorrect SLC establishment, when HF supports
Codec Negotiation, but didn't send AT+BAC.
2014-03-13 23:30:36 +01:00
Andrzej Kaczmarek
9d46ed7735 android: Adjust uinput permissions
We need to make sure /dev/uinput accessible for BlueZ in order for
AVRCP to work properly. On some devices (e.g. Nexus 7 a.k.a. flo)
permissions are set by default to 'system net_bt_stack' as thus we
need to change group to 'bluetooth'.
2014-03-13 21:35:35 +01:00
Szymon Janc
de8c19867b android/handsfree: Fix code comment
Tt is RING, not +RING.
2014-03-13 18:05:02 +01:00
Lukasz Rymanowski
2e77a0b2f3 android: Send confirm name request with mgmt_send
This patch improves handling stop disvocery in scenarios when there is a big
inflow of device found events. In such case, number of confirm
name request might block mgmt queses and make stop discovery stack in the queue.

Even we cancel previous confirm name request, there is still possibility that
new incoming device found events produce confirm name request which will
might block stop discovery.
2014-03-13 15:20:51 +01:00
Lukasz Rymanowski
a5ee41a24f android: Cancel all pending confirm name before stop discovery
If user wants to cancel discovery we should remove all the confirm name
requests from mgmt queues.

It is in order to make sure that stop discovery have a free way to
reach kernel.

This improves scenario when there is a big inflow of device found events and
mgmt queues become full of confirm name requests. In such case stop discovery
might stack in the queue.
2014-03-13 15:20:51 +01:00
Lukasz Rymanowski
08228cf45a android: Add tracking for pending confirm name command 2014-03-13 15:20:51 +01:00
Sebastian Chlad
b562bdba09 android/pts: Add HFP PTS tests results
Adding PTS test results for HFP 1.6
2014-03-13 15:19:24 +01:00
Sebastian Chlad
bd944fbbc8 android/pixit: Set phone number type
Phone number type should be set accordingly.
2014-03-13 15:19:23 +01:00
Andrei Emeltchenko
981d27fc93 android/avrcp: Add avrcp_set_addressed_player() function 2014-03-13 13:20:33 +02:00
Andrei Emeltchenko
b2f7927776 android/avrcp: Add avrcp_send_passthrough function
This function allows to send AVRCP vendor unique commands.
2014-03-13 13:07:44 +02:00
Andrei Emeltchenko
ebf14feae9 android/avctp: Add parameters to avctp passthrough send
This allows to use vendor unique commands
2014-03-13 13:04:41 +02:00
Grzegorz Kolodziejczyk
1701a37e52 android/gatt: Handle Unregister gatt client command
This adds unregister gatt client app command handling.
2014-03-12 14:01:41 +01:00
Grzegorz Kolodziejczyk
79a98874bc android/gatt: Handle Register gatt client command
This adds register gatt client app command handling.
2014-03-12 14:01:41 +01:00
Szymon Janc
ed6ba0a7e6 android/bluetooth: Set missing settings before loading linkkeys
This makes sure all settings are set before adapter ready callback is
called. Limit number of notifications send when settings are applied.
2014-03-11 22:50:53 +01:00
Szymon Janc
20bd1b02be android/system-emulator: Enable bluetoothd debug logs 2014-03-11 22:50:53 +01:00