OSDN Git Service

android-x86/external-bluetooth-bluez.git
10 years agobuild: Move gatt-service test utility into tools directory
Marcel Holtmann [Thu, 6 Mar 2014 17:46:57 +0000 (09:46 -0800)]
build: Move gatt-service test utility into tools directory

10 years agounit/avrcp: Add /TP/MDI/BV-01-C test
Andrei Emeltchenko [Wed, 5 Mar 2014 14:32:31 +0000 (16:32 +0200)]
unit/avrcp: Add /TP/MDI/BV-01-C test

Test verifies Get play status command.

10 years agoandroid/avrcp: Add avrcp_get_play_status() function
Andrei Emeltchenko [Wed, 5 Mar 2014 14:32:30 +0000 (16:32 +0200)]
android/avrcp: Add avrcp_get_play_status() function

10 years agounit/avrcp: Add /TP/PAS/BI-05-C test
Andrei Emeltchenko [Wed, 5 Mar 2014 14:32:29 +0000 (16:32 +0200)]
unit/avrcp: Add /TP/PAS/BI-05-C test

Test verifies that Set player application setting value returns error on
invalid attribute value.

10 years agounit/avrcp: Add /TP/PAS/BI-04-C test
Andrei Emeltchenko [Wed, 5 Mar 2014 14:32:28 +0000 (16:32 +0200)]
unit/avrcp: Add /TP/PAS/BI-04-C test

Test verifies that Get current player application setting value return
error when given invalid attribute id.

10 years agounit/avrcp: Add /TP/PAS/BI-03-C test
Andrei Emeltchenko [Wed, 5 Mar 2014 14:32:27 +0000 (16:32 +0200)]
unit/avrcp: Add /TP/PAS/BI-03-C test

Test verifies thst Get player application setting value text returns
error for invalid attribute value.

10 years agounit/avrcp: Add attributes and value check
Andrei Emeltchenko [Wed, 5 Mar 2014 14:32:26 +0000 (16:32 +0200)]
unit/avrcp: Add attributes and value check

Adds check to get_player_value_text() and update test case.

10 years agounit/avrcp: Add /TP/PAS/BI-02-C test
Andrei Emeltchenko [Wed, 5 Mar 2014 14:32:25 +0000 (16:32 +0200)]
unit/avrcp: Add /TP/PAS/BI-02-C test

Test verifies that List player application setting values returns error
when invalid attribute id is provided.

10 years agounit/avrcp: Add attributes check in list_player_vals()
Andrei Emeltchenko [Wed, 5 Mar 2014 14:32:24 +0000 (16:32 +0200)]
unit/avrcp: Add attributes check in list_player_vals()

Add check and fix test case since it was testing that response is
received but attribute 0 is illegal one.

10 years agounit/avrcp: Refactor check attributes code
Andrei Emeltchenko [Wed, 5 Mar 2014 14:32:23 +0000 (16:32 +0200)]
unit/avrcp: Refactor check attributes code

Make check_attributes() function which would handle attributes check.

10 years agoandroid/avrcp: Fix warnings when freeing avrcp_device struct
Luiz Augusto von Dentz [Thu, 6 Mar 2014 12:58:02 +0000 (14:58 +0200)]
android/avrcp: Fix warnings when freeing avrcp_device struct

If the device does not yet have queue due to not have a session it cause
the following warnings when avrcp_device_free is called:
(bluetoothd:1102): GLib-CRITICAL **: g_queue_foreach: assertion 'queue != NULL' failed
(bluetoothd:1102): GLib-CRITICAL **: g_queue_free: assertion 'queue != NULL' failed

10 years agoandroid/arvrcp: Fix not parsing SDP record correctly
Luiz Augusto von Dentz [Thu, 6 Mar 2014 12:55:57 +0000 (14:55 +0200)]
android/arvrcp: Fix not parsing SDP record correctly

10 years agoandroid/client: Add AVRCP remote_features_cb support
Luiz Augusto von Dentz [Wed, 5 Mar 2014 12:58:17 +0000 (14:58 +0200)]
android/client: Add AVRCP remote_features_cb support

10 years agoandroid/avrcp: Add remote features notification
Luiz Augusto von Dentz [Wed, 5 Mar 2014 12:48:00 +0000 (14:48 +0200)]
android/avrcp: Add remote features notification

10 years agocore: Fix passing correct bdaddr_type parameter to set_paired
Johan Hedberg [Thu, 6 Mar 2014 15:09:54 +0000 (17:09 +0200)]
core: Fix passing correct bdaddr_type parameter to set_paired

10 years agobluetooth.conf: Add ObjectManager interface
Claudio Takahasi [Thu, 6 Mar 2014 13:44:27 +0000 (10:44 -0300)]
bluetooth.conf: Add ObjectManager interface

10 years agotest: Add registering external service
Claudio Takahasi [Thu, 6 Mar 2014 13:44:26 +0000 (10:44 -0300)]
test: Add registering external service

This patch extends gatt-service to call RegisterService() when org.bluez
service gets connected to the system bus.

10 years agotest: Add signal handling for gatt-service
Claudio Takahasi [Thu, 6 Mar 2014 13:44:25 +0000 (10:44 -0300)]
test: Add signal handling for gatt-service

This patch implements signal handling to run cleanup tasks before
exiting.

10 years agotest: Add external service GATT skeleton
Claudio Takahasi [Thu, 6 Mar 2014 13:44:24 +0000 (10:44 -0300)]
test: Add external service GATT skeleton

This patch adds the initial code for an external GATT service example.
It implements the API defined at doc/gatt-api.txt

10 years agogatt: Make RegisterService() async
Claudio Takahasi [Thu, 6 Mar 2014 13:44:23 +0000 (10:44 -0300)]
gatt: Make RegisterService() async

GDBusProxy objects consistency should be checked, and attributes
declaration inserted in the local GATT database before replying
the caller.

10 years agogatt: Add GATT service to the local database
Claudio Takahasi [Thu, 6 Mar 2014 13:44:22 +0000 (10:44 -0300)]
gatt: Add GATT service to the local database

This patch creates GATT service attribute based on its GDBusProxy
object, and inserts the declaration to the local database.

10 years agogatt: Add proxy removed handler
Claudio Takahasi [Thu, 6 Mar 2014 13:44:21 +0000 (10:44 -0300)]
gatt: Add proxy removed handler

10 years agogatt: Add proxy added handler
Claudio Takahasi [Thu, 6 Mar 2014 13:44:20 +0000 (10:44 -0300)]
gatt: Add proxy added handler

This patch creates a list of GATT objects sorting the entries based on
the object path to allow inserting the attributes following hierarchical
association.

10 years agogdbus: Add g_dbus_client_set_ready_watch()
Claudio Takahasi [Thu, 6 Mar 2014 13:44:19 +0000 (10:44 -0300)]
gdbus: Add g_dbus_client_set_ready_watch()

This patch adds a new gdbus helper to notify the clients that
GetManagedObjects reply was received and the last proxy has been
informed previously by the proxy_added callback.

10 years agocore: Fix length check for stored LTKs
Johan Hedberg [Thu, 6 Mar 2014 12:28:52 +0000 (14:28 +0200)]
core: Fix length check for stored LTKs

10 years agocore: Drop 0x prefix from IRKs in storage
Johan Hedberg [Thu, 6 Mar 2014 12:25:50 +0000 (14:25 +0200)]
core: Drop 0x prefix from IRKs in storage

10 years agocore: Fix using correct 64-bit integer GKeyFile function
Johan Hedberg [Thu, 6 Mar 2014 12:20:21 +0000 (14:20 +0200)]
core: Fix using correct 64-bit integer GKeyFile function

10 years agoandroid/handsfree: Fix IPC response code for COPS response command
Szymon Janc [Thu, 6 Mar 2014 11:24:47 +0000 (12:24 +0100)]
android/handsfree: Fix IPC response code for COPS response command

10 years agoandroid/bluetooth: Remove not used local variable
Szymon Janc [Thu, 6 Mar 2014 10:56:41 +0000 (11:56 +0100)]
android/bluetooth: Remove not used local variable

10 years agocore: Fix link key storage value check
Johan Hedberg [Thu, 6 Mar 2014 10:45:22 +0000 (12:45 +0200)]
core: Fix link key storage value check

10 years agocore: Fix not sending Paired property
Luiz Augusto von Dentz [Thu, 6 Mar 2014 10:33:20 +0000 (12:33 +0200)]
core: Fix not sending Paired property

device_set_paired was checking state->paired which is never set at that
point thus pending_paired will not be set either causing Paired property
to no be sent after services are discovered.

10 years agocore: Fix not passing correct argument to device_set_paired
Luiz Augusto von Dentz [Thu, 6 Mar 2014 09:15:17 +0000 (11:15 +0200)]
core: Fix not passing correct argument to device_set_paired

device_set_paired now receives address type instead of boolean.

10 years agocore: Store EDiv and Rand as logical integers
Johan Hedberg [Thu, 6 Mar 2014 09:33:56 +0000 (11:33 +0200)]
core: Store EDiv and Rand as logical integers

This patch acknowledges the endianess of ediv and rand as they are
received from the kernel and stores them as logical decimal integers in
storage. This involves converting to little endian before passing to the
kernel and from little endian after receiving from the kernel.

10 years agocore: Drop 0x prefix from key values in storage
Johan Hedberg [Thu, 6 Mar 2014 09:32:11 +0000 (11:32 +0200)]
core: Drop 0x prefix from key values in storage

The 0x prefix gave the impression that the storage was representing the
logical 128-bit integer value of the key instead of the little endian
value that was actually being stored. This patch removes the prefix but
maintains backwards compatibility for reading old storage.

10 years agogitignore: Ignore Automake generated files for Android unit tests
Szymon Janc [Thu, 6 Mar 2014 09:09:27 +0000 (10:09 +0100)]
gitignore: Ignore Automake generated files for Android unit tests

10 years agodoc: Add HFP Audio Gateway functionality test cases to coverage list
Szymon Janc [Thu, 6 Mar 2014 09:04:23 +0000 (10:04 +0100)]
doc: Add HFP Audio Gateway functionality test cases to coverage list

10 years agoshared/hfp: Don't try read uninitialized data in ringbuffer
Marcin Kraglak [Wed, 5 Mar 2014 19:22:56 +0000 (20:22 +0100)]
shared/hfp: Don't try read uninitialized data in ringbuffer

Don't try to read uninitialized value if '\r' was not found.
This is call stack from test-hfp run with valgrind:

/hfp/test_fragmented_1: ==24869== Conditional jump or move depends on uninitialised value(s)
==24869==    at 0x400A5E4: memchr (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==24869==    by 0x804D24D: can_read_data (hfp.c:359)
==24869==    by 0x804A6E2: read_callback (io-glib.c:168)
==24869==    by 0x4108BFD5: ??? (in /usr/lib/libglib-2.0.so.0.3600.4)
==24869==    by 0x410470E5: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.3600.4)
==24869==    by 0x41047497: ??? (in /usr/lib/libglib-2.0.so.0.3600.4)
==24869==    by 0x41047912: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.3600.4)
==24869==    by 0x8049EE0: execute_context (test-hfp.c:186)
==24869==    by 0x4106CBC1: ??? (in /usr/lib/libglib-2.0.so.0.3600.4)
==24869==    by 0x4106CD5B: ??? (in /usr/lib/libglib-2.0.so.0.3600.4)
==24869==    by 0x4106D0E0: g_test_run_suite (in /usr/lib/libglib-2.0.so.0.3600.4)
==24869==    by 0x4106D13C: g_test_run (in /usr/lib/libglib-2.0.so.0.3600.4)

10 years agounit/test-hfp: Add /hfp/test_fragmented_1
Marcin Kraglak [Wed, 5 Mar 2014 19:22:55 +0000 (20:22 +0100)]
unit/test-hfp: Add /hfp/test_fragmented_1

10 years agounit/test-hfp: Add /hfp/test_register_5
Marcin Kraglak [Wed, 5 Mar 2014 19:22:54 +0000 (20:22 +0100)]
unit/test-hfp: Add /hfp/test_register_5

10 years agounit/test-hfp: Add /hfp/test_register_4
Marcin Kraglak [Wed, 5 Mar 2014 19:22:53 +0000 (20:22 +0100)]
unit/test-hfp: Add /hfp/test_register_4

10 years agounit/test-hfp: Add /hfp/test_register_3
Marcin Kraglak [Wed, 5 Mar 2014 19:22:52 +0000 (20:22 +0100)]
unit/test-hfp: Add /hfp/test_register_3

10 years agounit/test-hfp: Add /hfp/test_register_2
Marcin Kraglak [Wed, 5 Mar 2014 19:22:51 +0000 (20:22 +0100)]
unit/test-hfp: Add /hfp/test_register_2

10 years agounit/test-hfp: Add /hfp/test_register_1
Marcin Kraglak [Wed, 5 Mar 2014 19:22:50 +0000 (20:22 +0100)]
unit/test-hfp: Add /hfp/test_register_1

10 years agounit/test-hfp: Add /hfp/test_cmd_handler_2
Marcin Kraglak [Wed, 5 Mar 2014 19:22:49 +0000 (20:22 +0100)]
unit/test-hfp: Add /hfp/test_cmd_handler_2

10 years agounit/test-hfp: Add /hfp/test_cmd_handler_1
Marcin Kraglak [Wed, 5 Mar 2014 19:22:48 +0000 (20:22 +0100)]
unit/test-hfp: Add /hfp/test_cmd_handler_1

10 years agounit: Initial version of test-hfp
Marcin Kraglak [Wed, 5 Mar 2014 19:22:47 +0000 (20:22 +0100)]
unit: Initial version of test-hfp

This is skeleton of hfp unit tests with basic init test
for hfp_gw_new().
Basic test with hfp_gw_new() and hfp_gw_unref.

10 years agoshared/hfp: Fix not freeing cmd_handler prefix
Marcin Kraglak [Wed, 5 Mar 2014 19:22:46 +0000 (20:22 +0100)]
shared/hfp: Fix not freeing cmd_handler prefix

It should be freed while destroy.

10 years agoandroid/pts: PAN PICS and PTS results
Sebastian Chlad [Thu, 6 Mar 2014 07:07:21 +0000 (08:07 +0100)]
android/pts: PAN PICS and PTS results

Adjusting some optional PICS settings as well as updating PTS
test's results

10 years agoandroid/pics: Add PICS and PIXIT for GATT
Sebastian Chlad [Thu, 6 Mar 2014 06:27:39 +0000 (07:27 +0100)]
android/pics: Add PICS and PIXIT for GATT

Adding PICS and PIXIT for GATT targetting Android 4.4

10 years agoalert: Only remove attio callback after ATT request was sent
Anderson Lizardo [Tue, 28 Jan 2014 15:51:38 +0000 (11:51 -0400)]
alert: Only remove attio callback after ATT request was sent

If there is a single registered attio callback, any pending ATT requests
will be dropped as soon as it is removed. This commit makes sure that
the request is sent before removing the callback.

Other places using attio callbacks may need fixing as well.

10 years agocore: Fix associating a GAttrib to a device on incoming connections
Anderson Lizardo [Tue, 28 Jan 2014 15:51:37 +0000 (11:51 -0400)]
core: Fix associating a GAttrib to a device on incoming connections

If BlueZ is running as slave, incoming connections using ATT CID will
have a GAttrib created for them. But this GAttrib will not be assigned
to the underlying device (whose struct btd_device instance was created
in response to the Device Connected mgmt event).

This patch fixes this by assigning the GAttrib to the btd_device as soon
as a connection is first requested, which is done using attio callbacks.

Note that a new GAttrib reference is taken because attio callbacks "own"
device->attrib and thus need their own reference.

10 years agoattrib-server: Remove unnecessary fields from struct gatt_channel
Anderson Lizardo [Tue, 28 Jan 2014 15:51:36 +0000 (11:51 -0400)]
attrib-server: Remove unnecessary fields from struct gatt_channel

These fields are only used internally by attrib_channel_attach(). The
"No GATT server found..." error message was also removed as it is also
displayed by find_gatt_server().

10 years agovarious header include fixes for building with musl libc
Natanael Copa [Wed, 22 Jan 2014 21:20:38 +0000 (21:20 +0000)]
various header include fixes for building with musl libc

we need:
 sys/stat.h for mode_t
 limits.h for PATH_MAX

Fixes compile errors:
In file included from tools/hciconfig.c:45:0:
./src/textfile.h:27:1: error: unknown type name 'mode_t'
 int create_file(const char *filename, const mode_t mode);
 ^

tools/csr_usb.c: In function 'read_value':
tools/csr_usb.c:71:12: error: 'PATH_MAX' undeclared (first use in this function)
  char path[PATH_MAX];
            ^

10 years agoautopair: Remove time(NULL) fallback when seeding rand()
Anderson Lizardo [Mon, 7 Oct 2013 21:05:24 +0000 (17:05 -0400)]
autopair: Remove time(NULL) fallback when seeding rand()

If /dev/urandom cannot be opened or read, just fail the plugin
initialization, as it is very unlikely that a fully working Linux system
does not have a working /dev/urandom. This also simplifies the code
logic.

10 years agoandroid/hal-ipc-api: Trivial typo fix in doc
Jakub Tyszkowski [Wed, 5 Mar 2014 14:43:59 +0000 (15:43 +0100)]
android/hal-ipc-api: Trivial typo fix in doc

10 years agoandroid/hal-ipc-api: Add missing sections in doc
Jakub Tyszkowski [Wed, 5 Mar 2014 14:43:58 +0000 (15:43 +0100)]
android/hal-ipc-api: Add missing sections in doc

10 years agoandroid/hal-ipc-api: Fix documentation structure and notation
Jakub Tyszkowski [Wed, 5 Mar 2014 14:43:57 +0000 (15:43 +0100)]
android/hal-ipc-api: Fix documentation structure and notation

Clean up the documentation by using 'Element # ...' notation for
variable length arrays of structs, fixing whitespaces and reordering
some parts.

10 years agoandroid/hal-gatt-api: Rename Service ID to GATT Service ID
Jakub Tyszkowski [Wed, 5 Mar 2014 14:43:56 +0000 (15:43 +0100)]
android/hal-gatt-api: Rename Service ID to GATT Service ID

Use "GATT Service ID" instead "Service ID" inside ipc documentation
which is used to describe Core services like HAL_SERVICE_ID_GATT
himself.

10 years agoandroid/handsfree: Support volume control in HSP
Szymon Janc [Wed, 5 Mar 2014 16:36:38 +0000 (17:36 +0100)]
android/handsfree: Support volume control in HSP

10 years agoandroid/handsfree: Add support for volume synchronization
Szymon Janc [Wed, 5 Mar 2014 15:49:38 +0000 (16:49 +0100)]
android/handsfree: Add support for volume synchronization

10 years agoandroid/handsfree: Add support for AT+COPS command
Szymon Janc [Wed, 5 Mar 2014 15:07:25 +0000 (16:07 +0100)]
android/handsfree: Add support for AT+COPS command

10 years agoandroid/handsfree: Add support for handling device status notification
Szymon Janc [Tue, 4 Mar 2014 22:26:57 +0000 (23:26 +0100)]
android/handsfree: Add support for handling device status notification

This allows to send unsolicited CIEV codes with service, roam, signal
and battchg indicators values.

10 years agoandroid/handsfree: Make connection state constants name shorter
Szymon Janc [Tue, 4 Mar 2014 15:32:10 +0000 (16:32 +0100)]
android/handsfree: Make connection state constants name shorter

10 years agoandroid/handsfree: Add support for AT+BIA command
Szymon Janc [Tue, 4 Mar 2014 15:32:09 +0000 (16:32 +0100)]
android/handsfree: Add support for AT+BIA command

10 years agoandroid/handsfree: Distinguish between HSP and HFP connection
Szymon Janc [Tue, 4 Mar 2014 15:32:06 +0000 (16:32 +0100)]
android/handsfree: Distinguish between HSP and HFP connection

10 years agoandroid/handsfree: Add support for AT+CMER command
Szymon Janc [Tue, 4 Mar 2014 15:32:05 +0000 (16:32 +0100)]
android/handsfree: Add support for AT+CMER command

When this command is received SLC is connected.

10 years agoandroid/handsfree: Add support for AT+CIND command
Szymon Janc [Tue, 4 Mar 2014 15:32:04 +0000 (16:32 +0100)]
android/handsfree: Add support for AT+CIND command

10 years agoandroid/handsfree: Add support for AT+BRSF command
Szymon Janc [Tue, 4 Mar 2014 15:32:03 +0000 (16:32 +0100)]
android/handsfree: Add support for AT+BRSF command

10 years agoshared/hfp: Add hfp_gw_result_get_number_default function
Szymon Janc [Tue, 4 Mar 2014 15:32:08 +0000 (16:32 +0100)]
shared/hfp: Add hfp_gw_result_get_number_default function

10 years agoshared/hfp: Add function to check if reach end of command
Szymon Janc [Tue, 4 Mar 2014 15:32:07 +0000 (16:32 +0100)]
shared/hfp: Add function to check if reach end of command

10 years agoandroid/avdtp: Fix crash when DISCOVER failed
Andrzej Kaczmarek [Wed, 5 Mar 2014 14:02:30 +0000 (15:02 +0100)]
android/avdtp: Fix crash when DISCOVER failed

Discover callback is only set when avdtp_discover was successful so we
need to check if it's set before calling.

10 years agoandroid/hal-gatt-api: Use proper type for length
Jakub Tyszkowski [Wed, 5 Mar 2014 08:59:50 +0000 (09:59 +0100)]
android/hal-gatt-api: Use proper type for length

Length can be up to 600 thus 16bit value should be used.

10 years agoandroid/hal-gatt-api: Simplify GATT Service ID struct
Jakub Tyszkowski [Wed, 5 Mar 2014 08:59:49 +0000 (09:59 +0100)]
android/hal-gatt-api: Simplify GATT Service ID struct

Make nested struct open coded for simplicity.

10 years agoandroid/hal-gatt-api: Simplify GATT Read Char. event
Jakub Tyszkowski [Wed, 5 Mar 2014 08:59:48 +0000 (09:59 +0100)]
android/hal-gatt-api: Simplify GATT Read Char. event

Make nested struct open coded for simplicity.

10 years agoandroid/hal-gatt-api: Simplify GATT Notify ev struct
Jakub Tyszkowski [Wed, 5 Mar 2014 08:59:47 +0000 (09:59 +0100)]
android/hal-gatt-api: Simplify GATT Notify ev struct

Make nested struct open coded for simplicity.

10 years agoandroid/hal-gatt-api: Simplify GATT Test cmd struct
Jakub Tyszkowski [Wed, 5 Mar 2014 08:59:46 +0000 (09:59 +0100)]
android/hal-gatt-api: Simplify GATT Test cmd struct

Make nested struct open coded for simplicity.

10 years agoshared: Add timeout handling with mainloop support
Lukasz Rymanowski [Wed, 5 Mar 2014 09:22:41 +0000 (10:22 +0100)]
shared: Add timeout handling with mainloop support

10 years agoshared: Add timeout handling with Glib support
Lukasz Rymanowski [Wed, 5 Mar 2014 09:22:40 +0000 (10:22 +0100)]
shared: Add timeout handling with Glib support

10 years agoshared: Add header for timeout abstraction
Lukasz Rymanowski [Wed, 5 Mar 2014 09:22:39 +0000 (10:22 +0100)]
shared: Add header for timeout abstraction

10 years agomonitor: Use miliseconds instead of seconds in the timeout
Lukasz Rymanowski [Wed, 5 Mar 2014 09:22:38 +0000 (10:22 +0100)]
monitor: Use miliseconds instead of seconds in the timeout

10 years agomonitor: Allow to modify epoll even events are the same
Lukasz Rymanowski [Wed, 5 Mar 2014 09:22:37 +0000 (10:22 +0100)]
monitor: Allow to modify epoll even events are the same

This is epsecially needed when we want to modify timer.

10 years agotools/sco-tester: Remove not used function argument
Marcin Kraglak [Wed, 5 Mar 2014 07:15:47 +0000 (08:15 +0100)]
tools/sco-tester: Remove not used function argument

10 years agoandroid/hal-avrcp: Remove unused code
Andrzej Kaczmarek [Tue, 4 Mar 2014 20:43:24 +0000 (21:43 +0100)]
android/hal-avrcp: Remove unused code

10 years agoandroid/avrcp: Fix PDU length calculation
Andrzej Kaczmarek [Tue, 4 Mar 2014 20:43:23 +0000 (21:43 +0100)]
android/avrcp: Fix PDU length calculation

10 years agoandroid/avrcp: Fix RegisterNotification response handling
Andrzej Kaczmarek [Tue, 4 Mar 2014 20:43:22 +0000 (21:43 +0100)]
android/avrcp: Fix RegisterNotification response handling

For INTERIM RegisterNotification response we should keep request on
list since it will be needed for CHANGED response.

Requests on lists shall be matched by both pdu_id and event_id since we
can have multiple queued RegisterNotification requests and will need to
reply with proper transaction label.

10 years agoandroid/avrcp: Fix response for RegisterNotification
Andrzej Kaczmarek [Tue, 4 Mar 2014 20:43:21 +0000 (21:43 +0100)]
android/avrcp: Fix response for RegisterNotification

10 years agoandroid/avrcp-lib: Move command functions together
Luiz Augusto von Dentz [Wed, 5 Mar 2014 08:16:42 +0000 (10:16 +0200)]
android/avrcp-lib: Move command functions together

10 years agodoc: Update test coverage document
Andrei Emeltchenko [Tue, 4 Mar 2014 14:02:15 +0000 (16:02 +0200)]
doc: Update test coverage document

Update AVRCP test numbers.

10 years agounit/avrcp: Add /TP/PAS/BI-01-C test
Andrei Emeltchenko [Tue, 4 Mar 2014 14:02:14 +0000 (16:02 +0200)]
unit/avrcp: Add /TP/PAS/BI-01-C test

Test verifies that Get player app setting attribute text returns error
given invalid attribute id.

10 years agounit/avrcp: Add /TP/PAS/BV-11-C test
Andrei Emeltchenko [Tue, 4 Mar 2014 14:02:13 +0000 (16:02 +0200)]
unit/avrcp: Add /TP/PAS/BV-11-C test

Test verifies that the set player application setting value command
issued from the Controller.

10 years agoandroid/avrcp: Add avrcp_set_player_value() function
Andrei Emeltchenko [Tue, 4 Mar 2014 14:02:12 +0000 (16:02 +0200)]
android/avrcp: Add avrcp_set_player_value() function

10 years agounit/avrcp: Add /TP/PAS/BV-10-C test
Andrei Emeltchenko [Tue, 4 Mar 2014 14:02:11 +0000 (16:02 +0200)]
unit/avrcp: Add /TP/PAS/BV-10-C test

Test verifies that the get current player application setting value
response issued from the Target.

10 years agounit/avrcp: Add /TP/PAS/BV-09-C test
Andrei Emeltchenko [Tue, 4 Mar 2014 14:02:10 +0000 (16:02 +0200)]
unit/avrcp: Add /TP/PAS/BV-09-C test

Test verifies that get current player application setting value command
issued from the Controller.

10 years agoandroid/avrcp: Add avrcp_get_current_player_value() function
Andrei Emeltchenko [Tue, 4 Mar 2014 14:02:09 +0000 (16:02 +0200)]
android/avrcp: Add avrcp_get_current_player_value() function

10 years agounit/avrcp: Add /TP/PAS/BV-08-C test
Andrei Emeltchenko [Tue, 4 Mar 2014 14:02:08 +0000 (16:02 +0200)]
unit/avrcp: Add /TP/PAS/BV-08-C test

Test verifies that the get player application setting values response
issued from the Target.

10 years agounit/avrcp: Add /TP/PAS/BV-06-C test
Andrei Emeltchenko [Tue, 4 Mar 2014 14:02:07 +0000 (16:02 +0200)]
unit/avrcp: Add /TP/PAS/BV-06-C test

Test verifies that the list player application setting values response
issued from the Target.

10 years agoandroid/avrcp: Search for AVRCP CT record before connecting
Luiz Augusto von Dentz [Tue, 4 Mar 2014 15:34:34 +0000 (17:34 +0200)]
android/avrcp: Search for AVRCP CT record before connecting

This is required in order to retrieve version and features which are
used by remote features notification.

10 years agoandroid/hal-msg: Add possible AVRCP features
Luiz Augusto von Dentz [Tue, 4 Mar 2014 14:49:40 +0000 (16:49 +0200)]
android/hal-msg: Add possible AVRCP features

This adds possible AVRCP features which can be passed to Remote Features
notification.

10 years agoAVCTP: Fix sending wrong response format
Luiz Augusto von Dentz [Tue, 4 Mar 2014 13:08:17 +0000 (15:08 +0200)]
AVCTP: Fix sending wrong response format

Reject and Not Implemented responses of PASS THROUGH commands shall
contain the data of the previous frame accourding to AVC Panel Subunit
specification page 87.

10 years agoandroid/client: Add AVRCP register_notification_cb support
Luiz Augusto von Dentz [Mon, 3 Mar 2014 16:20:34 +0000 (18:20 +0200)]
android/client: Add AVRCP register_notification_cb support