OSDN Git Service

android-x86/external-bluetooth-bluez.git
10 years agoReplace bt_get_le32() by get_le32()
Claudio Takahasi [Thu, 20 Mar 2014 14:42:37 +0000 (11:42 -0300)]
Replace bt_get_le32() by get_le32()

10 years agoReplace bt_get_le16() by get_le16()
Claudio Takahasi [Thu, 20 Mar 2014 14:42:36 +0000 (11:42 -0300)]
Replace bt_get_le16() by get_le16()

10 years agoshared: Fix incorrect "const" in 32/64 bit put functions
Johan Hedberg [Fri, 21 Mar 2014 08:39:27 +0000 (10:39 +0200)]
shared: Fix incorrect "const" in 32/64 bit put functions

10 years agoshared: Add put_be64()
Claudio Takahasi [Thu, 20 Mar 2014 14:42:35 +0000 (11:42 -0300)]
shared: Add put_be64()

Add helper to avoid possible unaligned memory access when handling
uint64 value using big-endian representation.

10 years agoshared: Add put_be32()
Claudio Takahasi [Thu, 20 Mar 2014 14:42:34 +0000 (11:42 -0300)]
shared: Add put_be32()

Add helper to avoid possible unaligned memory access when handling
uint32 value using big-endian representation.

10 years agoshared: Add put_be16()
Claudio Takahasi [Thu, 20 Mar 2014 14:42:33 +0000 (11:42 -0300)]
shared: Add put_be16()

Add helper to avoid possible unaligned memory access when handling
uint16 value using big-endian representation.

10 years agoshared: Add get_be64()
Claudio Takahasi [Thu, 20 Mar 2014 14:42:32 +0000 (11:42 -0300)]
shared: Add get_be64()

Add helper to avoid possible unaligned memory access when handling
uint64 value using big-endian representation.

10 years agoshared: Add get_be32()
Claudio Takahasi [Thu, 20 Mar 2014 14:42:31 +0000 (11:42 -0300)]
shared: Add get_be32()

Add helper to avoid possible unaligned memory access when handling
uint32 value using big-endian representation.

10 years agoshared: Add get_be16()
Claudio Takahasi [Thu, 20 Mar 2014 14:42:30 +0000 (11:42 -0300)]
shared: Add get_be16()

Add helper to avoid possible unaligned memory access when handling
uint16 value using big-endian representation.

10 years agoshared: Add get_le64()
Claudio Takahasi [Thu, 20 Mar 2014 14:42:29 +0000 (11:42 -0300)]
shared: Add get_le64()

Add helper to avoid possible unaligned memory access when handling
uint64 value using little-endian representation.

10 years agoshared: Add get_le32()
Claudio Takahasi [Thu, 20 Mar 2014 14:42:28 +0000 (11:42 -0300)]
shared: Add get_le32()

Add helper to avoid possible unaligned memory access when handling
uint32 value using little-endian representation.

10 years agoshared: Add get_le16()
Claudio Takahasi [Thu, 20 Mar 2014 14:42:27 +0000 (11:42 -0300)]
shared: Add get_le16()

Add helper to avoid possible unaligned memory access when handling
uint16 value using little-endian representation.

10 years agoshared: Add put_le64()
Claudio Takahasi [Thu, 20 Mar 2014 14:42:26 +0000 (11:42 -0300)]
shared: Add put_le64()

Add helper to avoid possible unaligned memory access when handling
uint64 value using little-endian representation.

10 years agounit: Add test for g_dbus_client_set_ready_watch()
Claudio Takahasi [Fri, 7 Mar 2014 13:14:32 +0000 (10:14 -0300)]
unit: Add test for g_dbus_client_set_ready_watch()

10 years agogatt: Add read callback to btd_gatt_add_char helper
Claudio Takahasi [Tue, 18 Mar 2014 20:26:21 +0000 (17:26 -0300)]
gatt: Add read callback to btd_gatt_add_char helper

This patch adds a function callback for read operations. When a remote
device wants to reads a given attribute, the core calls the specified
read callback to get the value from the external services.

10 years agogatt: Add hash table of GDBusProxy objects
Claudio Takahasi [Tue, 18 Mar 2014 20:26:20 +0000 (17:26 -0300)]
gatt: Add hash table of GDBusProxy objects

This commits adds a hash table to map attributes into GDBusProxy,
allowing to call remote objects for reading and writing values.

10 years agogatt: Add characteristic to the database
Claudio Takahasi [Tue, 18 Mar 2014 20:26:19 +0000 (17:26 -0300)]
gatt: Add characteristic to the database

Initial support for GATT characteristics. This patch adds the
characteristic declaration attribute to the GATT local database based
on the fetched GDBusProxy objects.

10 years agogatt: Add helper for creating GATT characteristics
Andre Guedes [Tue, 18 Mar 2014 20:26:18 +0000 (17:26 -0300)]
gatt: Add helper for creating GATT characteristics

This patch adds btd_gatt_add_char() helper. It creates and adds the
Characteristic declaration, and Characteristic value attributes to the
local attribute database.

10 years agogatt: Add function to create constant attributes
Andre Guedes [Tue, 18 Mar 2014 20:26:17 +0000 (17:26 -0300)]
gatt: Add function to create constant attributes

This patch adds a helper function to create attribute with static
values. It is intended to be used to create GATT services, and
characteristic declarations.

10 years agoshared: Add bswap_128()
Claudio Takahasi [Tue, 18 Mar 2014 20:26:16 +0000 (17:26 -0300)]
shared: Add bswap_128()

Adds a new helper to swap 128-bit values. It is intended to be used for
GATT 128-bit UUID handling, converting 128-bit UUID from big-endian to
little-endian (or the opposite).

No matter the system, bt_uuid_t should always store 128-bit UUID value
using big-endian format (similar to human-readable format).

10 years agoandroid: Fix some random code style issues
Szymon Janc [Thu, 20 Mar 2014 13:27:07 +0000 (14:27 +0100)]
android: Fix some random code style issues

Fix whitespace problems and not needed empty lines.

10 years agoobexd/client: Fix not being able cancel GET requests
Luiz Augusto von Dentz [Thu, 20 Mar 2014 13:50:50 +0000 (15:50 +0200)]
obexd/client: Fix not being able cancel GET requests

In case of GET operation the code does not use g_obex_get_req_pkt since
the beggining to be able to read the header from the first response, this
means that the request should be cancel with g_obex_cancel_req not with
g_obex_cancel_transfer.

10 years agocore/profile: Remove code for waiting services to be resolved
Luiz Augusto von Dentz [Thu, 20 Mar 2014 13:50:51 +0000 (15:50 +0200)]
core/profile: Remove code for waiting services to be resolved

This remove code related to waiting service to be resolved as it is now
part of btd_request_authorization.

10 years agocore: Wait for services to be resolved before doing authorization
Luiz Augusto von Dentz [Thu, 20 Mar 2014 13:50:49 +0000 (15:50 +0200)]
core: Wait for services to be resolved before doing authorization

This makes btd_request_authorization to wait until services are resolved
before proceeding with authorization, if the services could not be
resolved it still proceeds with authorization since some profile may not
have a record to be resolved.

10 years agotools/mgmt-tester: Remove dead code
Lukasz Rymanowski [Thu, 20 Mar 2014 13:25:09 +0000 (14:25 +0100)]
tools/mgmt-tester: Remove dead code

10 years agotools/mgmt-tester: Minor fix in Stop discovery Success 1 test
Lukasz Rymanowski [Thu, 20 Mar 2014 13:25:08 +0000 (14:25 +0100)]
tools/mgmt-tester: Minor fix in Stop discovery Success 1 test

Set directly setup_send params for start discovery. It will be easier to
follow the test.

10 years agocore: Ignore ATT errors when considering Pair() success
Johan Hedberg [Thu, 20 Mar 2014 14:08:36 +0000 (16:08 +0200)]
core: Ignore ATT errors when considering Pair() success

Occasionally there may be errors in completing the service discovery
process over ATT when pairing with an LE device. Since we will any way
pick up from where we left off the next time we get connected it should
be safe to return success for the Pair() method call as long as the
actual pairing part was successful.

10 years agocore: Fix Paired property notification for multiple bearers
Johan Hedberg [Thu, 20 Mar 2014 14:06:21 +0000 (16:06 +0200)]
core: Fix Paired property notification for multiple bearers

The code in device_set_paired wasn't quite right previously. We should
not be sending Paired=true if we've already done that once due to the
other supported bearer.

10 years agotools/mgmt-tester: Refactor setup_start_discovery function
Lukasz Rymanowski [Thu, 20 Mar 2014 12:59:29 +0000 (13:59 +0100)]
tools/mgmt-tester: Refactor setup_start_discovery function

This patch removes handling hook register from this
function and its callback as this is no longer necessary for any stop
discovery tests.

This patch also adds setup_send_param and setup_send_len  parameters to
test data so it is easy to control start discovery command parameters.
It is useful for tests:
Stop Discovery - Invalid parameters 1
Stop Discovery - BR/EDR (Inquiry) Success 1

10 years agoandroid/README: Add "Customization" section
Szymon Janc [Thu, 20 Mar 2014 12:31:48 +0000 (13:31 +0100)]
android/README: Add "Customization" section

10 years agoandroid/README: Update Known Android issues section
Szymon Janc [Thu, 20 Mar 2014 11:04:46 +0000 (12:04 +0100)]
android/README: Update Known Android issues section

10 years agoandroid/handsfree: Fix not sending callheld=2 when single call was held
Szymon Janc [Wed, 19 Mar 2014 07:25:26 +0000 (08:25 +0100)]
android/handsfree: Fix not sending callheld=2 when single call was held

10 years agoandroid/handsfree: Improve audio connection handling
Szymon Janc [Wed, 19 Mar 2014 07:25:25 +0000 (08:25 +0100)]
android/handsfree: Improve audio connection handling

This add disconnecting SCO if last call was dropped (required by
Java 'virtual voice call'). Also make sure that SCO is connected
only there were no calls present before phone state change. This
makes sure SCO won't be re-connected in three way calling scenarios
when user choose to not use audio on BT headset.

10 years agoshared: Fix missing destroy callback in timeout_add
Lukasz Rymanowski [Thu, 20 Mar 2014 11:25:13 +0000 (12:25 +0100)]
shared: Fix missing destroy callback in timeout_add

10 years agotools/mgmt-tester: Remove not used condition
Lukasz Rymanowski [Thu, 20 Mar 2014 11:25:11 +0000 (12:25 +0100)]
tools/mgmt-tester: Remove not used condition

10 years agotools/mgmt-tester: Update Stop Discovery-BR/EDR (Inquiry) Success 1
Lukasz Rymanowski [Thu, 20 Mar 2014 11:25:10 +0000 (12:25 +0100)]
tools/mgmt-tester: Update Stop Discovery-BR/EDR (Inquiry) Success 1

With new way of handling inquiry in btdev there is no need to register
inquiry event hook

10 years agotools/mgmt-tester: Fix for Stop discovery test
Lukasz Rymanowski [Thu, 20 Mar 2014 11:25:09 +0000 (12:25 +0100)]
tools/mgmt-tester: Fix for Stop discovery test

Test "Stop Discovery - BR/EDR (Inquiry) Success 1" uses hciemu_type
BREDR but uses power settings to enable LE and tries to set LE:

  mgmt: [0x0002] command 0x000d
  mgmt: < 0d 00 02 00 01 00 01                             .......
  mgmt: > 02 00 02 00 03 00 0d 00 0c                       .........
  mgmt: [0x0002] command 0x0d status: 0x0c

This patch fixes this minor issue

10 years agoandroid/tester: Fix handling inquiry by android tester
Lukasz Rymanowski [Thu, 20 Mar 2014 11:25:08 +0000 (12:25 +0100)]
android/tester: Fix handling inquiry by android tester

Previously btdev sent inquiry_complete in one mainloop iteration. Due to
new way of handling it we need to make sure cancel_discovery is called
if start_discovery has been used.
There is also no need to hook before inquiry_complete_event in case of
test for cancel_discovery.

10 years agoemulator: Minor coding style fix
Johan Hedberg [Thu, 20 Mar 2014 12:15:31 +0000 (14:15 +0200)]
emulator: Minor coding style fix

10 years agoemulator: Add handling inquiry_lenght from inquiry command
Lukasz Rymanowski [Thu, 20 Mar 2014 11:25:07 +0000 (12:25 +0100)]
emulator: Add handling inquiry_lenght from inquiry command

With this patch, btdev is taking into accoung inquiry_lenght from hci
inquiry command.
Inquiry session will last that long unless number of devices parameter
has been provided different then 0

10 years agoemulator: Add handling inquiry number of responses
Lukasz Rymanowski [Thu, 20 Mar 2014 11:25:06 +0000 (12:25 +0100)]
emulator: Add handling inquiry number of responses

10 years agoemulator: Add inquiry cancel
Lukasz Rymanowski [Thu, 20 Mar 2014 11:25:05 +0000 (12:25 +0100)]
emulator: Add inquiry cancel

With this patch, scheduled inquiry session in btdev can be canceled

10 years agoemulator: Use timeout for sending inquiry results
Lukasz Rymanowski [Thu, 20 Mar 2014 11:25:04 +0000 (12:25 +0100)]
emulator: Use timeout for sending inquiry results

With this patch btdev uses timeout to schedule inquiry results
It also allows btdev to receive hci commands during inquiry.
Previously btdev was blocked since all the inquiry result were sent in
single loop

10 years agocore: Treat NOT_CONNECTED response as disconnection success
Johan Hedberg [Thu, 20 Mar 2014 09:19:46 +0000 (11:19 +0200)]
core: Treat NOT_CONNECTED response as disconnection success

10 years agoattrib: Fix gatt_primary leaks when a failure occurs
Johan Hedberg [Thu, 20 Mar 2014 09:00:30 +0000 (11:00 +0200)]
attrib: Fix gatt_primary leaks when a failure occurs

10 years agotools/ibeacon: Convert to using shared/timeout.h
Johan Hedberg [Thu, 20 Mar 2014 07:36:29 +0000 (09:36 +0200)]
tools/ibeacon: Convert to using shared/timeout.h

10 years agotools/btinfo: Convert to using shared/timeout.h
Johan Hedberg [Thu, 20 Mar 2014 07:36:14 +0000 (09:36 +0200)]
tools/btinfo: Convert to using shared/timeout.h

10 years agotools/3dsp: Convert to using shared/timeout.h
Johan Hedberg [Thu, 20 Mar 2014 07:35:56 +0000 (09:35 +0200)]
tools/3dsp: Convert to using shared/timeout.h

10 years agoshared: Fix mainloop timeout return value check
Marcel Holtmann [Thu, 20 Mar 2014 06:35:41 +0000 (23:35 -0700)]
shared: Fix mainloop timeout return value check

10 years agoshared: Use unsigned int for timeout identifier
Marcel Holtmann [Thu, 20 Mar 2014 05:30:40 +0000 (22:30 -0700)]
shared: Use unsigned int for timeout identifier

10 years agobuild: Add timeout abstraction to Bluetooth emulation
Marcel Holtmann [Thu, 20 Mar 2014 05:30:04 +0000 (22:30 -0700)]
build: Add timeout abstraction to Bluetooth emulation

10 years agobuild: Add timeout abstraction to main Bluetooth daemon
Marcel Holtmann [Thu, 20 Mar 2014 05:29:23 +0000 (22:29 -0700)]
build: Add timeout abstraction to main Bluetooth daemon

10 years agoattrib: Use destroy notify for included query
Johan Hedberg [Wed, 19 Mar 2014 17:28:19 +0000 (19:28 +0200)]
attrib: Use destroy notify for included query

10 years agoattrib: Fix potential leaks with primary discovery context
Johan Hedberg [Wed, 19 Mar 2014 17:18:36 +0000 (19:18 +0200)]
attrib: Fix potential leaks with primary discovery context

10 years agocore: Don't try to continue ATT discovery after a failure
Johan Hedberg [Wed, 19 Mar 2014 17:06:18 +0000 (19:06 +0200)]
core: Don't try to continue ATT discovery after a failure

10 years agocore: Add debug logs to track ATT discover progress
Johan Hedberg [Wed, 19 Mar 2014 17:05:43 +0000 (19:05 +0200)]
core: Add debug logs to track ATT discover progress

10 years agogattrib: Fix pending command handling when getting disconnected
Johan Hedberg [Wed, 19 Mar 2014 17:04:26 +0000 (19:04 +0200)]
gattrib: Fix pending command handling when getting disconnected

10 years agocore: Fix replying to Pair() if disconnected during included discovery
Johan Hedberg [Wed, 19 Mar 2014 16:15:06 +0000 (18:15 +0200)]
core: Fix replying to Pair() if disconnected during included discovery

10 years agocore: Fix completing ATT service discovery when no services are discovered
Johan Hedberg [Wed, 19 Mar 2014 15:58:14 +0000 (17:58 +0200)]
core: Fix completing ATT service discovery when no services are discovered

10 years agocore: Fix memory leaks with struct discover_char
Johan Hedberg [Wed, 19 Mar 2014 14:45:40 +0000 (16:45 +0200)]
core: Fix memory leaks with struct discover_char

10 years agoandroid/health: Move unregister app command definition to proper place
Szymon Janc [Wed, 19 Mar 2014 14:48:19 +0000 (15:48 +0100)]
android/health: Move unregister app command definition to proper place

10 years agocore: Fix agent ref leak when freeing auth request
Johan Hedberg [Wed, 19 Mar 2014 14:26:16 +0000 (16:26 +0200)]
core: Fix agent ref leak when freeing auth request

10 years agocore: Fix unnecessary calls to agent_cancel()
Johan Hedberg [Wed, 19 Mar 2014 14:14:01 +0000 (16:14 +0200)]
core: Fix unnecessary calls to agent_cancel()

The agent_unref() function already takes care of agent_cancel() so
there's no need to call both functions in sequence.

10 years agocore: Fix missing agent_unref call when cancelling authorization
Johan Hedberg [Wed, 19 Mar 2014 14:10:48 +0000 (16:10 +0200)]
core: Fix missing agent_unref call when cancelling authorization

10 years agotest: Fix cyclingspeed manager interface name
Andrzej Kaczmarek [Wed, 19 Mar 2014 11:34:33 +0000 (12:34 +0100)]
test: Fix cyclingspeed manager interface name

10 years agotest: Add missing import in cyclingspeed
Andrzej Kaczmarek [Wed, 19 Mar 2014 11:34:32 +0000 (12:34 +0100)]
test: Add missing import in cyclingspeed

10 years agoandroid/handsfree: Add support for WBS mode
Szymon Janc [Fri, 14 Mar 2014 16:43:23 +0000 (17:43 +0100)]
android/handsfree: Add support for WBS mode

This patch adds support for WBS mode in handsfree HAl as well as
redefining current modes.

"persist.sys.bluetooth.handsfree" property can be used to tune
handsfree HAL. Setting it to "hfp" or "hfp_wbs" values enables HFP
profile with narrowband only or with both narrowband and wideband
speech support. Any other value or lack of property defaults to
HSP only mode.

10 years agoandroid: Add WBS mode to handsfree HAL
Szymon Janc [Fri, 14 Mar 2014 16:02:16 +0000 (17:02 +0100)]
android: Add WBS mode to handsfree HAL

This adds additional modes for Handsfree HAL:
  0x00 = Headset Profile only mode (default)
  0x01 = Handsfree Profile (narrowband speech)
  0x02 = Handsfree Profile (narrowband and wideband speech)

Currently wideband mode requires chip to assume that eSCO transparent
data is mSBC.

10 years agounit/avrcp: Fix possible buffer overflow
Andrei Emeltchenko [Tue, 18 Mar 2014 13:31:19 +0000 (15:31 +0200)]
unit/avrcp: Fix possible buffer overflow

values[] should be the same size as attr[].

10 years agoandroid/client: Add AVRCP list_player_app_attr_cb support
Ravi kumar Veeramally [Tue, 18 Mar 2014 13:29:59 +0000 (15:29 +0200)]
android/client: Add AVRCP list_player_app_attr_cb support

10 years agoandroid/client: Add AVRCP list_player_app_values_cb support
Ravi kumar Veeramally [Tue, 18 Mar 2014 13:29:58 +0000 (15:29 +0200)]
android/client: Add AVRCP list_player_app_values_cb support

10 years agoandroid/client: Add AVRCP get_player_app_attrs_text_cb support
Ravi kumar Veeramally [Tue, 18 Mar 2014 13:29:57 +0000 (15:29 +0200)]
android/client: Add AVRCP get_player_app_attrs_text_cb support

10 years agoandroid/client: Add AVRCP get_player_app_value_cb support
Ravi kumar Veeramally [Tue, 18 Mar 2014 13:29:56 +0000 (15:29 +0200)]
android/client: Add AVRCP get_player_app_value_cb support

10 years agoandroid/client: Add AVRCP get_player_app_values_text_cb support
Ravi kumar Veeramally [Tue, 18 Mar 2014 13:29:55 +0000 (15:29 +0200)]
android/client: Add AVRCP get_player_app_values_text_cb support

10 years agoandroid/client: Add AVRCP set_player_app_value_cb support
Ravi kumar Veeramally [Tue, 18 Mar 2014 13:29:54 +0000 (15:29 +0200)]
android/client: Add AVRCP set_player_app_value_cb support

10 years agoandroid/client: Add AVRCP passthrough_cmd_cb support
Ravi kumar Veeramally [Tue, 18 Mar 2014 13:29:53 +0000 (15:29 +0200)]
android/client: Add AVRCP passthrough_cmd_cb support

10 years agoandroid/client: Add AVRCP set_player_app_value_rsp support
Ravi kumar Veeramally [Tue, 18 Mar 2014 13:29:52 +0000 (15:29 +0200)]
android/client: Add AVRCP set_player_app_value_rsp support

10 years agoandroid/pts: Update AVCTP version and test results
Szymon Janc [Tue, 18 Mar 2014 14:41:28 +0000 (15:41 +0100)]
android/pts: Update AVCTP version and test results

10 years agoandroid/avrcp: Bump AVCTP version to 1.4
Szymon Janc [Tue, 18 Mar 2014 14:40:04 +0000 (15:40 +0100)]
android/avrcp: Bump AVCTP version to 1.4

10 years agoandroid/avrcp: Fix possible buffer overflow
Andrei Emeltchenko [Tue, 18 Mar 2014 12:24:07 +0000 (14:24 +0200)]
android/avrcp: Fix possible buffer overflow

10 years agoandroid/avrcp-lib: Fix avrcp_get_player_attribute_text_rsp
Luiz Augusto von Dentz [Tue, 18 Mar 2014 11:57:34 +0000 (13:57 +0200)]
android/avrcp-lib: Fix avrcp_get_player_attribute_text_rsp

avrcp_get_player_attribute_text_rsp was generating invalid responses as
it fills the string data in the wrong field.

10 years agounit/test-avrcp: Fix using empty response to /TP/PAS/BV-04-C
Luiz Augusto von Dentz [Tue, 18 Mar 2014 11:56:40 +0000 (13:56 +0200)]
unit/test-avrcp: Fix using empty response to /TP/PAS/BV-04-C

The purpose of unit tests is to exercise the code as much as possible so
make the test request a valid number of attributes and return them when
testing avrcp_get_player_attribute_text_rsp.

10 years agounit/test-avrcp: Fix using empty response to /TP/PAS/BV-08-C
Luiz Augusto von Dentz [Tue, 18 Mar 2014 09:19:52 +0000 (11:19 +0200)]
unit/test-avrcp: Fix using empty response to /TP/PAS/BV-08-C

The purpose of unit tests is to exercise the code as much as possible so
return non-empty when testing avrcp_get_player_values_text_rsp.

10 years agoshared/crypto: Fix bt_crypto_s1 byte order handling
Johan Hedberg [Tue, 18 Mar 2014 10:59:35 +0000 (12:59 +0200)]
shared/crypto: Fix bt_crypto_s1 byte order handling

The assumption is that this function takes little endian data, i.e. the
most significant 64-bits to be discarded are found at the end of r1 and
r2 instead of the beginning.

10 years agoandroid/avrcp-lib: Make unused public function private
Luiz Augusto von Dentz [Sun, 16 Mar 2014 17:45:50 +0000 (19:45 +0200)]
android/avrcp-lib: Make unused public function private

10 years agoandroid/avrcp: Switch to use avrcp_register_player
Luiz Augusto von Dentz [Sun, 16 Mar 2014 17:39:46 +0000 (19:39 +0200)]
android/avrcp: Switch to use avrcp_register_player

This makes android daemon to start using avrcp_register_player instead
of now deprecated avrcp_set_control_handlers.

10 years agoandroid/avrcp-lib: Add avrcp_get_capabilities_rsp function
Luiz Augusto von Dentz [Sun, 16 Mar 2014 17:38:42 +0000 (19:38 +0200)]
android/avrcp-lib: Add avrcp_get_capabilities_rsp function

This function can be used to generate GetCapabilities response PDUs.

10 years agounit/test-avrcp: Use avrcp_get_current_player_value_rsp
Luiz Augusto von Dentz [Sun, 16 Mar 2014 16:55:23 +0000 (18:55 +0200)]
unit/test-avrcp: Use avrcp_get_current_player_value_rsp

This makes get_value callback to use avrcp_get_current_player_value_rsp

10 years agoandroid/avrcp-lib: Add avrcp_get_current_player_value_rsp function
Luiz Augusto von Dentz [Sun, 16 Mar 2014 16:47:10 +0000 (18:47 +0200)]
android/avrcp-lib: Add avrcp_get_current_player_value_rsp function

This function can be used to generate GetCurrentPlayerValue response
PDUs.

10 years agounit/test-avrcp: Fix invalid PDU for test /TP/PAS/BV-04-C
Luiz Augusto von Dentz [Sun, 16 Mar 2014 13:44:54 +0000 (15:44 +0200)]
unit/test-avrcp: Fix invalid PDU for test /TP/PAS/BV-04-C

GetPlayerAttributeText needs at least one parameter otherwise it can be
considered invalid.

10 years agounit/test-avrcp: Use avrcp_get_player_values_text_rsp
Luiz Augusto von Dentz [Sun, 16 Mar 2014 12:57:26 +0000 (14:57 +0200)]
unit/test-avrcp: Use avrcp_get_player_values_text_rsp

This makes get_values_text callback to use
avrcp_get_player_values_text_rsp

10 years agoandroid/avrcp-lib: Add avrcp_get_player_values_text_rsp function
Luiz Augusto von Dentz [Sun, 16 Mar 2014 12:52:07 +0000 (14:52 +0200)]
android/avrcp-lib: Add avrcp_get_player_values_text_rsp function

This function can be used to generate GetPlayerValuesText response PDUs.

10 years agounit/test-avrcp: Use avrcp_list_player_values_rsp
Luiz Augusto von Dentz [Sun, 16 Mar 2014 12:43:18 +0000 (14:43 +0200)]
unit/test-avrcp: Use avrcp_list_player_values_rsp

This makes list_values callback to use avrcp_list_player_values_rsp.

10 years agoandroid/avrcp-lib: Add avrcp_list_player_values_rsp function
Luiz Augusto von Dentz [Sun, 16 Mar 2014 12:40:59 +0000 (14:40 +0200)]
android/avrcp-lib: Add avrcp_list_player_values_rsp function

This function can be used to generate ListPlayerValues response PDUs.

10 years agounit/test-avrcp: Use avrcp_get_player_attribute_text_rsp
Luiz Augusto von Dentz [Fri, 14 Mar 2014 16:00:24 +0000 (18:00 +0200)]
unit/test-avrcp: Use avrcp_get_player_attribute_text_rsp

This makes list_attributes callback to use
avrcp_get_player_attribute_text_rsp.

10 years agoandroid/avrcp-lib: Add avrcp_get_player_attribute_text_rsp function
Luiz Augusto von Dentz [Fri, 14 Mar 2014 15:58:16 +0000 (17:58 +0200)]
android/avrcp-lib: Add avrcp_get_player_attribute_text_rsp function

This function can be used to generate GetPlayerAttributeText response
PDUs.

10 years agounit/test-avrcp: Use avrcp_list_player_attributes_rsp
Luiz Augusto von Dentz [Fri, 14 Mar 2014 15:20:54 +0000 (17:20 +0200)]
unit/test-avrcp: Use avrcp_list_player_attributes_rsp

This makes list_attributes callback to use
avrcp_list_player_attributes_rsp.

10 years agoandroid/avrcp-lib: Add avrcp_list_player_attributes_rsp function
Luiz Augusto von Dentz [Fri, 14 Mar 2014 15:09:55 +0000 (17:09 +0200)]
android/avrcp-lib: Add avrcp_list_player_attributes_rsp function

This function can be used to generate ListPlayerAttributes response PDUs.

10 years agounit/test-avrcp: Fix test /TP/MPS/BV-02-C
Luiz Augusto von Dentz [Fri, 14 Mar 2014 15:00:00 +0000 (17:00 +0200)]
unit/test-avrcp: Fix test /TP/MPS/BV-02-C

The correct status should 0x04 not 0x00.

10 years agoandroid/avrcp-lib: Add avrcp_set_addressed_player_rsp function
Luiz Augusto von Dentz [Fri, 14 Mar 2014 14:55:46 +0000 (16:55 +0200)]
android/avrcp-lib: Add avrcp_set_addressed_player_rsp function

This function can be used to generate SetAddressedPlayer response PDUs.