OSDN Git Service

android-x86/external-bluetooth-bluez.git
10 years agoemulator/btdev: Add helper for selecting advertising address
Johan Hedberg [Fri, 14 Mar 2014 07:35:06 +0000 (09:35 +0200)]
emulator/btdev: Add helper for selecting advertising address

10 years agoemulator/btdev: Track direct advertising address
Johan Hedberg [Fri, 14 Mar 2014 07:34:29 +0000 (09:34 +0200)]
emulator/btdev: Track direct advertising address

10 years agoemulator/btdev: Track LE scanning own address type
Johan Hedberg [Fri, 14 Mar 2014 07:32:58 +0000 (09:32 +0200)]
emulator/btdev: Track LE scanning own address type

10 years agoandroid/bluetooth: Move start discovery function up in the file
Jakub Tyszkowski [Thu, 13 Mar 2014 18:46:11 +0000 (19:46 +0100)]
android/bluetooth: Move start discovery function up in the file

This is to avoid unneeded code move in further paatches.

10 years agoandroid/bluetooth: Refactor start/stop discovery
Jakub Tyszkowski [Thu, 13 Mar 2014 18:46:10 +0000 (19:46 +0100)]
android/bluetooth: Refactor start/stop discovery

Pass discovery type to discovery stop/start routine so it can be used
also for LE only scan.

10 years agoandroid/gatt: Change name of match functions
Jakub Tyszkowski [Thu, 13 Mar 2014 18:46:09 +0000 (19:46 +0100)]
android/gatt: Change name of match functions

10 years agoandroid/gatt: Use queue and stdlib instead of GLib where possible
Grzegorz Kolodziejczyk [Thu, 13 Mar 2014 18:46:08 +0000 (19:46 +0100)]
android/gatt: Use queue and stdlib instead of GLib where possible

This patch changes using GLib to queues and stdlib operators.

10 years agoandroid/handsfree: Cleanup info and error messages
Szymon Janc [Thu, 13 Mar 2014 22:24:51 +0000 (23:24 +0100)]
android/handsfree: Cleanup info and error messages

10 years agoandroid/handsfree: Simplify condition in connect_audio
Szymon Janc [Thu, 13 Mar 2014 22:24:13 +0000 (23:24 +0100)]
android/handsfree: Simplify condition in connect_audio

10 years agoandroid/handsfree: Fix some style issues
Szymon Janc [Thu, 13 Mar 2014 22:06:07 +0000 (23:06 +0100)]
android/handsfree: Fix some style issues

10 years agoandroid/handsfree: Split members in device for better readability
Szymon Janc [Thu, 13 Mar 2014 22:02:48 +0000 (23:02 +0100)]
android/handsfree: Split members in device for better readability

10 years agoandroid/handsfree: Add handling of AT+BCS and AT+BCC
Marcin Kraglak [Thu, 13 Mar 2014 14:04:37 +0000 (15:04 +0100)]
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.

10 years agoandroid/handsfree: Move connect_sco() to more appropriate place
Marcin Kraglak [Thu, 13 Mar 2014 14:04:36 +0000 (15:04 +0100)]
android/handsfree: Move connect_sco() to more appropriate place

Move connect_sco as it will be used in at_cmd_bcc()

10 years agoandroid/handsfree: Add initial implementation of Codec Negotiation feature
Marcin Kraglak [Thu, 13 Mar 2014 14:04:35 +0000 (15:04 +0100)]
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.

10 years agoandroid: Adjust uinput permissions
Andrzej Kaczmarek [Thu, 13 Mar 2014 10:05:15 +0000 (11:05 +0100)]
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'.

10 years agoandroid/handsfree: Fix code comment
Szymon Janc [Wed, 12 Mar 2014 09:35:45 +0000 (10:35 +0100)]
android/handsfree: Fix code comment

Tt is RING, not +RING.

10 years agodoc/media-api: Include possible errors
Luiz Augusto von Dentz [Thu, 13 Mar 2014 13:28:29 +0000 (15:28 +0200)]
doc/media-api: Include possible errors

10 years agoaudio/player: Use proper errors instead of using .Failed
Luiz Augusto von Dentz [Thu, 13 Mar 2014 13:26:24 +0000 (15:26 +0200)]
audio/player: Use proper errors instead of using .Failed

10 years agocore: Use device_attach_attrib for attrib-server
Johan Hedberg [Thu, 13 Mar 2014 15:00:19 +0000 (17:00 +0200)]
core: Use device_attach_attrib for attrib-server

10 years agocore: Refactor calls to attrib_channel_attach
Johan Hedberg [Thu, 13 Mar 2014 14:58:51 +0000 (16:58 +0200)]
core: Refactor calls to attrib_channel_attach

This patch creates a new public device_attach_attrib function to deal
with attrib_channel_attach. This is needed so we get a central place
which can also be used by attrib-server.c (which the next patch deals
with).

10 years agocore: Fix storing device info in peripheral mode
Johan Hedberg [Thu, 13 Mar 2014 14:57:07 +0000 (16:57 +0200)]
core: Fix storing device info in peripheral mode

In peripheral mode the only proper trigger we have is the completion of
(reverse) service discovery. This was already covered for the BR/EDR
discovery completion so this patch moves the call to a common place used
by both LE and BR/EDR.

10 years agocore: Fix bonding complete detection in peripheral mode
Johan Hedberg [Thu, 13 Mar 2014 14:55:30 +0000 (16:55 +0200)]
core: Fix bonding complete detection in peripheral mode

When we're in peripheral mode we're not guaranteed to get a master LTK,
so use any LTK as a trigger to call bonding_complete. Multiple calls (in
case of both slave and master LTK) are safely handled by the function.

10 years agocore: Fix adding BR/EDR devices to auto connect list
Luiz Augusto von Dentz [Thu, 13 Mar 2014 14:17:42 +0000 (16:17 +0200)]
core: Fix adding BR/EDR devices to auto connect list

This can happen with devices that export ATT profiles as SDP records
such BlackBerry phones causing drivers to get probed which then call
btd_device_add_attio_callback to get notified once connected.

10 years agoandroid: Send confirm name request with mgmt_send
Lukasz Rymanowski [Sun, 9 Mar 2014 23:06:37 +0000 (00:06 +0100)]
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.

10 years agoandroid: Cancel all pending confirm name before stop discovery
Lukasz Rymanowski [Sun, 9 Mar 2014 23:06:36 +0000 (00:06 +0100)]
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.

10 years agoandroid: Add tracking for pending confirm name command
Lukasz Rymanowski [Sun, 9 Mar 2014 23:06:35 +0000 (00:06 +0100)]
android: Add tracking for pending confirm name command

10 years agoandroid/pts: Add HFP PTS tests results
Sebastian Chlad [Wed, 12 Mar 2014 13:12:29 +0000 (14:12 +0100)]
android/pts: Add HFP PTS tests results

Adding PTS test results for HFP 1.6

10 years agoandroid/pixit: Set phone number type
Sebastian Chlad [Wed, 12 Mar 2014 13:12:28 +0000 (14:12 +0100)]
android/pixit: Set phone number type

Phone number type should be set accordingly.

10 years agounit/avrcp: Add /TP/MPS/BV-02-C test
Andrei Emeltchenko [Wed, 12 Mar 2014 14:40:32 +0000 (16:40 +0200)]
unit/avrcp: Add /TP/MPS/BV-02-C test

Test verifies that SetAddressedPlayer response issued by the Target.

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

Test verifies that SetAddressedPlayer command issued by Controller.

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

10 years agounit/avrcp: Add /TP/BGN/BV-02-I TG test
Andrei Emeltchenko [Wed, 12 Mar 2014 14:40:29 +0000 (16:40 +0200)]
unit/avrcp: Add /TP/BGN/BV-02-I TG test

Test verifies that the Target responds to Prev Group command.

10 years agounit/avrcp: Add /TP/BGN/BV-01-I TG test
Andrei Emeltchenko [Wed, 12 Mar 2014 14:40:28 +0000 (16:40 +0200)]
unit/avrcp: Add /TP/BGN/BV-01-I TG test

Test verifies that the Target responds to Next Group command.

10 years agounit/avrcp: Add /TP/BGN/BV-02-I test
Andrei Emeltchenko [Wed, 12 Mar 2014 14:40:27 +0000 (16:40 +0200)]
unit/avrcp: Add /TP/BGN/BV-02-I test

Test verifies that the Controller can send Prev Group command to the
Target.

10 years agounit/avrcp: Add /TP/BGN/BV-01-I test
Andrei Emeltchenko [Wed, 12 Mar 2014 14:40:26 +0000 (16:40 +0200)]
unit/avrcp: Add /TP/BGN/BV-01-I test

Test verifies that the Controller can send Next Group command to the
Target.

10 years agoandroid/avrcp: Add avrcp_send_passthrough function
Andrei Emeltchenko [Wed, 12 Mar 2014 14:40:25 +0000 (16:40 +0200)]
android/avrcp: Add avrcp_send_passthrough function

This function allows to send AVRCP vendor unique commands.

10 years agoandroid/avctp: Add parameters to avctp passthrough send
Andrei Emeltchenko [Wed, 12 Mar 2014 14:40:24 +0000 (16:40 +0200)]
android/avctp: Add parameters to avctp passthrough send

This allows to use vendor unique commands

10 years agoandroid/gatt: Handle Unregister gatt client command
Grzegorz Kolodziejczyk [Wed, 12 Mar 2014 09:27:38 +0000 (10:27 +0100)]
android/gatt: Handle Unregister gatt client command

This adds unregister gatt client app command handling.

10 years agoandroid/gatt: Handle Register gatt client command
Grzegorz Kolodziejczyk [Wed, 12 Mar 2014 09:27:37 +0000 (10:27 +0100)]
android/gatt: Handle Register gatt client command

This adds register gatt client app command handling.

10 years agoandroid/bluetooth: Set missing settings before loading linkkeys
Szymon Janc [Tue, 11 Mar 2014 21:46:24 +0000 (22:46 +0100)]
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.

10 years agoandroid/system-emulator: Enable bluetoothd debug logs
Szymon Janc [Tue, 11 Mar 2014 21:38:00 +0000 (22:38 +0100)]
android/system-emulator: Enable bluetoothd debug logs

10 years agoandroid/tester: Enable bluetoothd debug logs
Szymon Janc [Tue, 11 Mar 2014 21:36:17 +0000 (22:36 +0100)]
android/tester: Enable bluetoothd debug logs

10 years agoandroid/tester: Fix TOD test cases to support dual mode
Grzegorz Kolodziejczyk [Tue, 11 Mar 2014 14:25:04 +0000 (15:25 +0100)]
android/tester: Fix TOD test cases to support dual mode

This modifies test cases to support dual mode type of device.

10 years agoandroid: Enable LE if controller supports it
Grzegorz Kolodziejczyk [Tue, 11 Mar 2014 14:25:03 +0000 (15:25 +0100)]
android: Enable LE if controller supports it

10 years agoandroid/tester: Add support for bredr hciemu devices
Grzegorz Kolodziejczyk [Tue, 11 Mar 2014 14:25:02 +0000 (15:25 +0100)]
android/tester: Add support for bredr hciemu devices

Current test cases works on bredrle hciemu adapter types. Test cases
with device scan do LE scan first (for 5 sec - kernel specific) then
change scan to bredr devices as hciemu device is. To avoid timeout
(within 3 secs) - fail of test cases, hciemu adapter should be bredr.

10 years agodoc: Update test-hfp coverage statistics
Szymon Janc [Mon, 10 Mar 2014 23:10:00 +0000 (00:10 +0100)]
doc: Update test-hfp coverage statistics

10 years agoshared/hfp: Don't update offset if string parsing failed
Szymon Janc [Mon, 10 Mar 2014 23:05:11 +0000 (00:05 +0100)]
shared/hfp: Don't update offset if string parsing failed

10 years agoshared/hfp: Use unsigned int for offset
Szymon Janc [Mon, 10 Mar 2014 23:00:48 +0000 (00:00 +0100)]
shared/hfp: Use unsigned int for offset

10 years agoshared/hfp: Fix not NULL terminating parsed strings
Szymon Janc [Mon, 10 Mar 2014 22:57:11 +0000 (23:57 +0100)]
shared/hfp: Fix not NULL terminating parsed strings

If there were not enough space in output buffer
hfp_gw_result_get_string() and hfp_gw_result_get_unquoted_string()
wcould return true, but resulting string would not be NULL terminated.

10 years agounit/test-hfp: Add initial tests for getting quoted string
Szymon Janc [Mon, 10 Mar 2014 22:45:21 +0000 (23:45 +0100)]
unit/test-hfp: Add initial tests for getting quoted string

10 years agounit/test-hfp: Add initial tests for getting unquoted string
Szymon Janc [Mon, 10 Mar 2014 22:37:30 +0000 (23:37 +0100)]
unit/test-hfp: Add initial tests for getting unquoted string

10 years agounit/test-hfp: Add ability to pass custom result handler to test
Szymon Janc [Mon, 10 Mar 2014 21:32:42 +0000 (22:32 +0100)]
unit/test-hfp: Add ability to pass custom result handler to test

10 years agoRelease 5.16
Marcel Holtmann [Tue, 11 Mar 2014 17:00:49 +0000 (10:00 -0700)]
Release 5.16

10 years agoandroid: Disable SBC_HIGH_PRECISION for now
Marcel Holtmann [Tue, 11 Mar 2014 16:43:11 +0000 (09:43 -0700)]
android: Disable SBC_HIGH_PRECISION for now

Since the SBC_HIGH_PRECISION support in SBC library is not optimized
for any platform, disable it for now.

10 years agobuild: Update library version
Marcel Holtmann [Tue, 11 Mar 2014 16:35:31 +0000 (09:35 -0700)]
build: Update library version

10 years agolib: Update company identifiers
Marcel Holtmann [Tue, 11 Mar 2014 16:32:13 +0000 (09:32 -0700)]
lib: Update company identifiers

10 years agoandroid: Add extra empty line for new section
Marcel Holtmann [Tue, 11 Mar 2014 16:04:42 +0000 (09:04 -0700)]
android: Add extra empty line for new section

10 years agoandroid/README: Add section about recommended Android patches
Szymon Janc [Tue, 11 Mar 2014 15:54:01 +0000 (16:54 +0100)]
android/README: Add section about recommended Android patches

10 years agoandroid/handsfree: Fix sending +CLCC
Szymon Janc [Tue, 11 Mar 2014 15:11:29 +0000 (16:11 +0100)]
android/handsfree: Fix sending +CLCC

Phone number can be present for all call states in CLCC response.
Also phone number should be quoted string.

10 years agoandroid/handsfree: Verify if phone number is send as string over IPC
Szymon Janc [Tue, 11 Mar 2014 10:43:21 +0000 (11:43 +0100)]
android/handsfree: Verify if phone number is send as string over IPC

10 years agoandroid/handsfree: Add support for AT+CCWA command
Szymon Janc [Tue, 11 Mar 2014 09:25:05 +0000 (10:25 +0100)]
android/handsfree: Add support for AT+CCWA command

10 years agoandroid/handsfree: Fix sending number without terminating NULL over IPC
Szymon Janc [Tue, 11 Mar 2014 14:52:20 +0000 (15:52 +0100)]
android/handsfree: Fix sending number without terminating NULL over IPC

10 years agounit/test-avrcp: Fix code style
Luiz Augusto von Dentz [Tue, 11 Mar 2014 14:25:04 +0000 (16:25 +0200)]
unit/test-avrcp: Fix code style

10 years agounit/avrcp: Add /TP/INV/BI-01-C test
Andrei Emeltchenko [Tue, 11 Mar 2014 13:05:49 +0000 (15:05 +0200)]
unit/avrcp: Add /TP/INV/BI-01-C test

Test verifies that AVRCP_STATUS_INVALID_COMMAND returned when received
command with Invalid PDU ID.

10 years agounit/avrcp: Add /TP/NFY/BI-01-C test
Andrei Emeltchenko [Tue, 11 Mar 2014 13:05:48 +0000 (15:05 +0200)]
unit/avrcp: Add /TP/NFY/BI-01-C test

Test verifies that Target returns error on register for invalid event.

10 years agounit/avrcp: Add /TP/NFY/BV-08-C test
Andrei Emeltchenko [Tue, 11 Mar 2014 13:05:47 +0000 (15:05 +0200)]
unit/avrcp: Add /TP/NFY/BV-08-C test

Test verifies that Target issued Track Changed INTERIM response when
the track is SELECTED.

10 years agounit/avrcp: Add /TP/NFY/BV-05-C test.
Andrei Emeltchenko [Tue, 11 Mar 2014 13:05:46 +0000 (15:05 +0200)]
unit/avrcp: Add /TP/NFY/BV-05-C test.

Test verifies Register notification - Track Changed - Track Playing.

10 years agounit/avrcp: Pass context to control handlers
Andrei Emeltchenko [Tue, 11 Mar 2014 13:05:45 +0000 (15:05 +0200)]
unit/avrcp: Pass context to control handlers

10 years agoandroid/handsfree: Fix unsolicited RING alert
Szymon Janc [Tue, 11 Mar 2014 13:13:57 +0000 (14:13 +0100)]
android/handsfree: Fix unsolicited RING alert

10 years agoemulator/btdev: Fix using correct address in advertising reports
Johan Hedberg [Tue, 11 Mar 2014 12:27:42 +0000 (14:27 +0200)]
emulator/btdev: Fix using correct address in advertising reports

10 years agoemulator/btdev: Add support for sending LE Scan Response events
Johan Hedberg [Tue, 11 Mar 2014 12:25:38 +0000 (14:25 +0200)]
emulator/btdev: Add support for sending LE Scan Response events

10 years agoemulator/btdev: Fix LE adv report types to match adv parameters
Johan Hedberg [Tue, 11 Mar 2014 12:16:31 +0000 (14:16 +0200)]
emulator/btdev: Fix LE adv report types to match adv parameters

10 years agoemulator/btdev: Store LE adv params for later use
Johan Hedberg [Tue, 11 Mar 2014 12:10:49 +0000 (14:10 +0200)]
emulator/btdev: Store LE adv params for later use

10 years agoemulator/btdev: Add storing of LE Scan Response Data
Johan Hedberg [Tue, 11 Mar 2014 11:35:12 +0000 (13:35 +0200)]
emulator/btdev: Add storing of LE Scan Response Data

10 years agoemulator/btdev: Store LE Scan type for later use
Johan Hedberg [Tue, 11 Mar 2014 11:32:39 +0000 (13:32 +0200)]
emulator/btdev: Store LE Scan type for later use

10 years agoemulator/btdev: Add support for LE set scan response command
Grzegorz Kolodziejczyk [Tue, 11 Mar 2014 10:09:32 +0000 (11:09 +0100)]
emulator/btdev: Add support for LE set scan response command

This adds support for btdev LE set scan response command.

10 years agoandroid/handsfree: Fix HF features bitmasks
Marcin Kraglak [Tue, 11 Mar 2014 10:16:39 +0000 (11:16 +0100)]
android/handsfree: Fix HF features bitmasks

Add missing Remote volume control feature.

10 years agobdaddr: Remove *_CP_SIZE defines
Petri Gynther [Fri, 7 Mar 2014 22:55:45 +0000 (14:55 -0800)]
bdaddr: Remove *_CP_SIZE defines

Remove *_CP_SIZE defines and use sizeof(cp) instead.

10 years agobdaddr: Add Marvell support
Petri Gynther [Fri, 7 Mar 2014 22:28:07 +0000 (14:28 -0800)]
bdaddr: Add Marvell support

10 years agocore: Ignore unknown LTK types
Johan Hedberg [Mon, 10 Mar 2014 20:07:04 +0000 (22:07 +0200)]
core: Ignore unknown LTK types

10 years agocore: Add support for storing CSRKs
Johan Hedberg [Mon, 10 Mar 2014 11:29:00 +0000 (13:29 +0200)]
core: Add support for storing CSRKs

10 years agoandroid: Some minor markup changes for the README
Marcel Holtmann [Mon, 10 Mar 2014 18:34:35 +0000 (11:34 -0700)]
android: Some minor markup changes for the README

10 years agoandroid/pts: AVRCP PTS tests results
Sebastian Chlad [Mon, 10 Mar 2014 17:08:26 +0000 (18:08 +0100)]
android/pts: AVRCP PTS tests results

Adding PTS tests results, mainly for Volume Level Handling section.

10 years agoandroid/handsfree: Fix not removing RING timer on disconnect
Szymon Janc [Mon, 10 Mar 2014 16:37:17 +0000 (17:37 +0100)]
android/handsfree: Fix not removing RING timer on disconnect

10 years agoandroid/handsfree: Fix response for AT+CHLD=?
Szymon Janc [Mon, 10 Mar 2014 15:12:05 +0000 (16:12 +0100)]
android/handsfree: Fix response for AT+CHLD=?

10 years agoandroid/handsfree: Fix +BRSF and +CHLD responses
Szymon Janc [Mon, 10 Mar 2014 14:38:02 +0000 (15:38 +0100)]
android/handsfree: Fix +BRSF and +CHLD responses

10 years agodoc: Update test coverage document
Andrei Emeltchenko [Mon, 10 Mar 2014 09:09:53 +0000 (11:09 +0200)]
doc: Update test coverage document

10 years agounit/avrcp: Add /TP/NFY/BV-04-C test
Andrei Emeltchenko [Mon, 10 Mar 2014 09:09:52 +0000 (11:09 +0200)]
unit/avrcp: Add /TP/NFY/BV-04-C test

Test verifies that Target responds to Register notification - Track
Changed - No Selected Track.

10 years agounit/avrcp: Add /TP/NFY/BV-03-C test
Andrei Emeltchenko [Mon, 10 Mar 2014 09:09:51 +0000 (11:09 +0200)]
unit/avrcp: Add /TP/NFY/BV-03-C test

Test verifies that Target responds Register notification command with
parameter AVRCP_EVENT_SETTINGS_CHANGED.

10 years agounit/avrcp: Add /TP/NFY/BV-02-C test
Andrei Emeltchenko [Mon, 10 Mar 2014 09:09:50 +0000 (11:09 +0200)]
unit/avrcp: Add /TP/NFY/BV-02-C test

Test verifies that Target responds to Register notification command.

10 years agounit/avrcp: Add /TP/NFY/BV-01-C test
Andrei Emeltchenko [Mon, 10 Mar 2014 09:09:49 +0000 (11:09 +0200)]
unit/avrcp: Add /TP/NFY/BV-01-C test

Test verifies that Register notification command is issued by
Controller.

10 years agounit/avrcp: Add /TP/MDI/BV-05-C test
Andrei Emeltchenko [Mon, 10 Mar 2014 09:09:48 +0000 (11:09 +0200)]
unit/avrcp: Add /TP/MDI/BV-05-C test

Test verifies that Target responds to Get element attributes cmd.

10 years agounit/avrcp: Add /TP/MDI/BV-04-C test
Andrei Emeltchenko [Mon, 10 Mar 2014 09:09:47 +0000 (11:09 +0200)]
unit/avrcp: Add /TP/MDI/BV-04-C test

Test verifies Get element attributes responded by Target.

10 years agounit/avrcp: Add /TP/MDI/BV-03-C test
Andrei Emeltchenko [Mon, 10 Mar 2014 09:09:46 +0000 (11:09 +0200)]
unit/avrcp: Add /TP/MDI/BV-03-C test

Test verifies that Get element attributes issued correctly.

10 years agoandroid/avrcp: Add avrcp_get_element_attributes() function
Andrei Emeltchenko [Mon, 10 Mar 2014 09:09:45 +0000 (11:09 +0200)]
android/avrcp: Add avrcp_get_element_attributes() function

10 years agounit/avrcp: Add /TP/MDI/BV-01-C test
Andrei Emeltchenko [Mon, 10 Mar 2014 09:09:44 +0000 (11:09 +0200)]
unit/avrcp: Add /TP/MDI/BV-01-C test

Test verifies Get play status.

10 years agoandroid/avrcp: Fix setting wrong type for volume changed event
Luiz Augusto von Dentz [Mon, 10 Mar 2014 11:56:25 +0000 (13:56 +0200)]
android/avrcp: Fix setting wrong type for volume changed event

Notification for volume changed should carry the original ctype and
not translate to HAL_AVRCP_EVENT_TYPE_INTERIM or
HAL_AVRCP_EVENT_TYPE_CHANGED which are only valid for register
notification command.

10 years agoandroid/avrcp: Fix not handling SetAbsoluteVolume response
Luiz Augusto von Dentz [Sun, 9 Mar 2014 11:17:42 +0000 (13:17 +0200)]
android/avrcp: Fix not handling SetAbsoluteVolume response

This follow what is stated in AVRCP specification 1.5 page 83:

" When the volume is changed on the TG by this command the Volume Change
notification shall not be completed."

Therefore the only option is to treat the response and self generate
changed notification.

10 years agoandroid/avrcp: Fill attributes in case of empty for GetElementAttributes
Luiz Augusto von Dentz [Fri, 7 Mar 2014 22:43:38 +0000 (00:43 +0200)]
android/avrcp: Fill attributes in case of empty for GetElementAttributes

This has to be done since Android do not interpret empty list as get all
attributes as it should.

10 years agoandroid/README: Update handsfree implementation state
Szymon Janc [Mon, 10 Mar 2014 11:45:10 +0000 (12:45 +0100)]
android/README: Update handsfree implementation state