OSDN Git Service
Szymon Janc [Thu, 20 Mar 2014 11:04:46 +0000 (12:04 +0100)]
android/README: Update Known Android issues section
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
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.
Lukasz Rymanowski [Thu, 20 Mar 2014 11:25:13 +0000 (12:25 +0100)]
shared: Fix missing destroy callback in timeout_add
Lukasz Rymanowski [Thu, 20 Mar 2014 11:25:11 +0000 (12:25 +0100)]
tools/mgmt-tester: Remove not used condition
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
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
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.
Johan Hedberg [Thu, 20 Mar 2014 12:15:31 +0000 (14:15 +0200)]
emulator: Minor coding style fix
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
Lukasz Rymanowski [Thu, 20 Mar 2014 11:25:06 +0000 (12:25 +0100)]
emulator: Add handling inquiry number of responses
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
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
Johan Hedberg [Thu, 20 Mar 2014 09:19:46 +0000 (11:19 +0200)]
core: Treat NOT_CONNECTED response as disconnection success
Johan Hedberg [Thu, 20 Mar 2014 09:00:30 +0000 (11:00 +0200)]
attrib: Fix gatt_primary leaks when a failure occurs
Johan Hedberg [Thu, 20 Mar 2014 07:36:29 +0000 (09:36 +0200)]
tools/ibeacon: 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
Johan Hedberg [Thu, 20 Mar 2014 07:35:56 +0000 (09:35 +0200)]
tools/3dsp: Convert to using shared/timeout.h
Marcel Holtmann [Thu, 20 Mar 2014 06:35:41 +0000 (23:35 -0700)]
shared: Fix mainloop timeout return value check
Marcel Holtmann [Thu, 20 Mar 2014 05:30:40 +0000 (22:30 -0700)]
shared: Use unsigned int for timeout identifier
Marcel Holtmann [Thu, 20 Mar 2014 05:30:04 +0000 (22:30 -0700)]
build: Add timeout abstraction to Bluetooth emulation
Marcel Holtmann [Thu, 20 Mar 2014 05:29:23 +0000 (22:29 -0700)]
build: Add timeout abstraction to main Bluetooth daemon
Johan Hedberg [Wed, 19 Mar 2014 17:28:19 +0000 (19:28 +0200)]
attrib: Use destroy notify for included query
Johan Hedberg [Wed, 19 Mar 2014 17:18:36 +0000 (19:18 +0200)]
attrib: Fix potential leaks with primary discovery context
Johan Hedberg [Wed, 19 Mar 2014 17:06:18 +0000 (19:06 +0200)]
core: Don't try to continue ATT discovery after a failure
Johan Hedberg [Wed, 19 Mar 2014 17:05:43 +0000 (19:05 +0200)]
core: Add debug logs to track ATT discover progress
Johan Hedberg [Wed, 19 Mar 2014 17:04:26 +0000 (19:04 +0200)]
gattrib: Fix pending command handling when getting disconnected
Johan Hedberg [Wed, 19 Mar 2014 16:15:06 +0000 (18:15 +0200)]
core: Fix replying to Pair() if disconnected during included discovery
Johan Hedberg [Wed, 19 Mar 2014 15:58:14 +0000 (17:58 +0200)]
core: Fix completing ATT service discovery when no services are discovered
Johan Hedberg [Wed, 19 Mar 2014 14:45:40 +0000 (16:45 +0200)]
core: Fix memory leaks with struct discover_char
Szymon Janc [Wed, 19 Mar 2014 14:48:19 +0000 (15:48 +0100)]
android/health: Move unregister app command definition to proper place
Johan Hedberg [Wed, 19 Mar 2014 14:26:16 +0000 (16:26 +0200)]
core: Fix agent ref leak when freeing auth request
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.
Johan Hedberg [Wed, 19 Mar 2014 14:10:48 +0000 (16:10 +0200)]
core: Fix missing agent_unref call when cancelling authorization
Andrzej Kaczmarek [Wed, 19 Mar 2014 11:34:33 +0000 (12:34 +0100)]
test: Fix cyclingspeed manager interface name
Andrzej Kaczmarek [Wed, 19 Mar 2014 11:34:32 +0000 (12:34 +0100)]
test: Add missing import in cyclingspeed
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.
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.
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[].
Ravi kumar Veeramally [Tue, 18 Mar 2014 13:29:59 +0000 (15:29 +0200)]
android/client: Add AVRCP list_player_app_attr_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
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
Ravi kumar Veeramally [Tue, 18 Mar 2014 13:29:56 +0000 (15:29 +0200)]
android/client: Add AVRCP get_player_app_value_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
Ravi kumar Veeramally [Tue, 18 Mar 2014 13:29:54 +0000 (15:29 +0200)]
android/client: Add AVRCP set_player_app_value_cb support
Ravi kumar Veeramally [Tue, 18 Mar 2014 13:29:53 +0000 (15:29 +0200)]
android/client: Add AVRCP passthrough_cmd_cb 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
Szymon Janc [Tue, 18 Mar 2014 14:41:28 +0000 (15:41 +0100)]
android/pts: Update AVCTP version and test results
Szymon Janc [Tue, 18 Mar 2014 14:40:04 +0000 (15:40 +0100)]
android/avrcp: Bump AVCTP version to 1.4
Andrei Emeltchenko [Tue, 18 Mar 2014 12:24:07 +0000 (14:24 +0200)]
android/avrcp: Fix possible buffer overflow
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.
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.
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.
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.
Luiz Augusto von Dentz [Sun, 16 Mar 2014 17:45:50 +0000 (19:45 +0200)]
android/avrcp-lib: Make unused public function private
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.
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.
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
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.
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.
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
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.
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.
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.
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.
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.
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.
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.
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.
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.
Luiz Augusto von Dentz [Fri, 14 Mar 2014 14:28:48 +0000 (16:28 +0200)]
unit/test-avrcp: Use avrcp_register_player
This replaces the use of avrcp_set_control_handlers which is now
deprecated in favor of avrcp_register_player.
Johan Hedberg [Mon, 17 Mar 2014 20:46:40 +0000 (22:46 +0200)]
tools/l2cap-tester: Fix setting connectable for LE server tests
Johan Hedberg [Mon, 17 Mar 2014 20:10:26 +0000 (22:10 +0200)]
tools/smp-tester: Use consistent name for test data variable
Johan Hedberg [Mon, 17 Mar 2014 20:07:11 +0000 (22:07 +0200)]
tools/smp-tester: Remove redundant smp_ prefix from variables
Johan Hedberg [Mon, 17 Mar 2014 17:01:35 +0000 (19:01 +0200)]
tools/smp-tester: Convert to using shared/crypto.c
Ravi kumar Veeramally [Fri, 14 Mar 2014 13:30:58 +0000 (15:30 +0200)]
android/hal-health: Add HDP .destroy_channel method
Ravi kumar Veeramally [Fri, 14 Mar 2014 13:30:57 +0000 (15:30 +0200)]
android/hal-health: Add HDP .connect_channel method
Ravi kumar Veeramally [Fri, 14 Mar 2014 13:30:56 +0000 (15:30 +0200)]
android/hal-health: Add HDP .unregister_application method
Luiz Augusto von Dentz [Fri, 14 Mar 2014 13:33:32 +0000 (15:33 +0200)]
android/avrcp-lib: Add support for parsing SetAddressedPlayer PDU
Luiz Augusto von Dentz [Fri, 14 Mar 2014 13:24:51 +0000 (15:24 +0200)]
android/avrcp-lib: Add support for parsing RegisterNotification PDU
Luiz Augusto von Dentz [Fri, 14 Mar 2014 13:23:52 +0000 (15:23 +0200)]
android/avrcp-lib: Add support for parsing GetElementAttributes PDU
Luiz Augusto von Dentz [Fri, 14 Mar 2014 12:53:34 +0000 (14:53 +0200)]
android/avrcp-lib: Add support for parsing GetPlayStatus PDU
Luiz Augusto von Dentz [Fri, 14 Mar 2014 12:48:37 +0000 (14:48 +0200)]
android/avrcp-lib: Add support for parsing SetPlayerValue PDU
Luiz Augusto von Dentz [Fri, 14 Mar 2014 12:40:17 +0000 (14:40 +0200)]
android/avrcp-lib: Add support for parsing GetCurrentPlayerValue PDU
Luiz Augusto von Dentz [Fri, 14 Mar 2014 12:28:36 +0000 (14:28 +0200)]
android/avrcp-lib: Add support for parsing GetPlayerValueText PDU
Luiz Augusto von Dentz [Fri, 14 Mar 2014 12:27:09 +0000 (14:27 +0200)]
android/avrcp-lib: Add support for parsing ListPlayerValues PDU
Luiz Augusto von Dentz [Fri, 14 Mar 2014 09:33:22 +0000 (11:33 +0200)]
android/avrcp-lib: Add support for parsing GetPlayerAttributeText PDU
Luiz Augusto von Dentz [Fri, 14 Mar 2014 08:53:30 +0000 (10:53 +0200)]
android/avrcp-lib: Add support for parsing ListPlayerAttributes PDU
Luiz Augusto von Dentz [Thu, 13 Mar 2014 12:55:23 +0000 (14:55 +0200)]
android/avrcp-lib: Add support for parsing GetCapabilities PDU
Luiz Augusto von Dentz [Wed, 12 Mar 2014 12:59:19 +0000 (14:59 +0200)]
android/avrcp-lib: Change API to register callbacks instead of PDU handlers
This adds avrcp_register_player function to register callbacks for
requests and responses, the fundamental difference is that the
callbacks are called after the original PDU is parsed and the parameter
are converted to host byte order making us able to unit test the
parsing itself.
Lukasz Rymanowski [Mon, 17 Mar 2014 10:07:07 +0000 (11:07 +0100)]
android/gatt: Find primary services
With this patch it is possible to search all primary services.
Jakub Tyszkowski [Mon, 17 Mar 2014 08:20:42 +0000 (09:20 +0100)]
android/hal-ipc: Make opcode debug print more readable
Jakub Tyszkowski [Mon, 17 Mar 2014 08:20:41 +0000 (09:20 +0100)]
android/hal-gatt: Fix wrong pointer usage
Lukasz Rymanowski [Mon, 17 Mar 2014 00:01:12 +0000 (01:01 +0100)]
android/gatt: Add disconnect GATT device
Disconnect scenarios:
1. If there is more then one client for a given gatt_device then
client id is removed from dev->clients, success response is sent
together with success disconnect event.
2. If there is only one client for a given remote device then we
do what is decribed above plus clean of gattrib stuff
3. In case client_if or conn_id is incorrect, response failed is sent
Lukasz Rymanowski [Mon, 17 Mar 2014 00:01:11 +0000 (01:01 +0100)]
android/gatt: Add GATT Connect
This patch introduce connect LE device functionality.
There is gatt_device representing remote le device. Each gatt device
has a list own list of clients as it is possible that more apps
would like to use same remote device.
Possible connect scenarios:
1. There is no ACL connection to device:
Then new dev is put on conn_wait_queue and le scan is enabled.
Once device is found we do connect it.
Once device is connected then device is moved form conn_wait_queue to
conn_list and success event is sent to client(s) with conn_id
2. Device is already connected:
Then we update client list, reply with success and do send connect event.
3. For unregisterd clients or uknown conn_id, failed response is sent.
Jakub Tyszkowski [Mon, 17 Mar 2014 00:01:10 +0000 (01:01 +0100)]
android/gatt: Use Core profile for LE scan
This makes gatt capable of triggering LE scan using functionality
exposed by Core API. GATT registers its own callbacks for discovering
events.
Jakub Tyszkowski [Mon, 17 Mar 2014 00:01:09 +0000 (01:01 +0100)]
android/bluetooth: Add GATT notifications on LE discovery
This patch introduce API which GATT can use to start/stop discovery
and register for required events.
This is because GATT needs to get from GAP notifications about
founded devices and also notification when discovery has been stopped.
GATT will need it explicity when GATT client calls scan, and also in
case of connect device, as before le connect is sent we do scan first
to make sure that device is available.
For now on adapter have two variables tracing discovery.
1. cur_discovery_type which show type of ongoing discovery type.
2. exp_discovery_type which shows type of next discovery session.
We need this because of scenarion when GATT is interesting in scan and
in the same time HAL wants to do scanning.
Szymon Janc [Mon, 17 Mar 2014 08:10:01 +0000 (09:10 +0100)]
android/handsfree: Fix connecting audio when call is active on connect
Szymon Janc [Sun, 16 Mar 2014 22:46:00 +0000 (23:46 +0100)]
android/handsfree: Fix not initializing call state to idle
Szymon Janc [Sun, 16 Mar 2014 15:31:04 +0000 (16:31 +0100)]
android/pts: Update HFP results