- Apr 17, 2018
-
-
Pavlin Radoslavov authored
If the remote device is proactive and sends AVDTP SetConfig after re-connection before the local device gets the chance to do it, the internal codec setup state might be inconsistent. * Fix the internal logic when the local device is Acceptor inside file bta_av_co.cc, and simplify some of the code. * Fix the handling of p_scb->sep_info_idx inside bta_av_save_caps() when receiving capabilities from the remote device. * Add new A2dpCodecConfig::setPeerCodecCapabilities() method that is implemented by each codec. Bug: 77525584 Test: Manual - initiate connection by Momentum 2.0 Wireless Headset. Connect/disconnect/reconnect multiple headsets. Change-Id: I456df7c8a2fa0758c0908a4628c4dfae3259dbdb
-
Jakub Pawlowski authored
ESR06 (errata 4065) added sentence: "The End Group Handle of the last service in a device can be 0xFFFF." It talks about last service, not last primary service. Right now, secondary service added after last primary service will result in in last primary service being corrupted - descriptor added to last characteristic, and some characteristics added. Bug: 78107486 Change-Id: I6a146fce2c946cdff176ff79f147830e29d3b807
-
- Apr 16, 2018
-
-
Satish kumar sugasi authored
Bug: 77289942 Test: Manual Change-Id: I5b7ca6e485788d69f574bb74d2ef423507b183ff
-
- Apr 13, 2018
-
-
Ajay Panicker authored
Before, the upper layers would be informed when a device connected that supported absolute volume. Now even devices that don't support absolute volume get reported. Bug: 33962015 Test: Run host native test net-test-avrcp Change-Id: If083ccbb9ba9a170c5bca359e632585d826c6fa5
-
- Apr 12, 2018
-
-
Sunny Kapdi authored
Use LDAC ABR as default option in A2DP Offload mode. Bug: 77879487 Test: Manual Change-Id: Iec76691f8a83cd47aa7bf38efc6554139a59bb89
-
Joseph Pirozzo authored
-
Stanley Tng authored
-
- Apr 11, 2018
-
-
Stanley Tng authored
Add new test connection event (ce) parameters, min_ce and max_ce, to the SL4A tests for LE Connection-oriented Channel (CoC) feature. Test: Run cmd: act.py -c $MY_SL4A_CONFIG -tc BleCoc2ConnTest Bug: 77528723 Change-Id: Ifea040f0eb105f89539e6b74f5c2edc76147a065
-
Joseph Pirozzo authored
AVRCP browsing was unstable on the sink side due to bytes being used instead of integers for get_folder_items_cmd and a lack of deep copy in the data buffers. This patch allows both browse and vendor commands to work correctly. Bug: 72496280 Test: stream music and browse at the same time. Change-Id: Id4d34101c918947450923b68e087e6851ce99130
-
Jack He authored
Item A: Add messages to log profile connections * Add ProfileUsageStats message in bluetooth.proto * Add BluetoothProfileId enum to represent each profile * Add num_times_connected item to log how many times a profile is connected Item B: Add messages to log headset profile connections for HSP and HFP * Add HeadsetProfileConnectionStats message in bluetooth.proto * Add HeadsetProfileType enum to represent each headset profile type * Add num_times_connected item to log how many times each headset profile is connected * Add unit tests in metrics_tests * Remove "clear" flag in various metrics dumping methods to make sure that we clean up metrics every time we dump Bug: 77476285 Test: make, net_test_osi, BtFunhausMetricsTest, adb shell dumpsys bluetooth_manager --proto-bin Change-Id: Ib18948c50ddb98ab7472f7b51a9bb98d153071c7 Merged-In: Ib18948c50ddb98ab7472f7b51a9bb98d153071c7
-
Treehugger Robot authored
-
Treehugger Robot authored
-
Treehugger Robot authored
-
Jack He authored
Bug: 72817086 Test: make, no functional change Change-Id: I0df4efa62de00956eea1b5b5d244f4821bcaf6fc
-
Ajay Panicker authored
AVRC_Close needs to be called whenever a connection is closed otherwise the AVCT control block is never cleaned up. Bug: 77633048 Test: Run host native test net_test_avrcp and connect/disconnect from a device multiple times. Change-Id: Ia6a1b2606a87803316aad41ae27db858bf922548
-
- Apr 10, 2018
-
-
Pavlin Radoslavov authored
Rename A2DP_DumpCodecInfo() to A2DP_CodecInfoString() and change the usage. Previously, A2DP_DumpCodecInfo() would print the the codec information only if LOG_VERBOSE() was enabled in compile time. The new A2DP_CodecInfoString() now returns human-readable std::string with the codec information. That string can be used in debug log messages that can be enabled in run-time. Bug: 77525584 Test: Manual - Examine log messages when A2DP streaming with and without debug log messages enabled. Change-Id: Idd440d6c9e908520132feeeb5388d3e6aefa26db
-
Ajay Panicker authored
Bug: 77874113 Test: Check snoop logs to see that the broadcasted AVRCP version is 1.4 Change-Id: If36bccc58d04dffe46286ee8d18785b680b9de8a
-
- Apr 09, 2018
-
-
Zach Johnson authored
It is already possible to set server connection sniff timeouts. Bug: 70309445 Test: inspect timeouts via logs Change-Id: Ibc19dd4f77aa28388169b2ce70d12200020e6a4d
-
- Apr 06, 2018
-
-
Jack He authored
* Report AT+BIA command, AG indicator activation command, to upper layer so that upper layer can decide on whether or not to subscribe to these indicators Bug: 77655992 Test: make Change-Id: Ic330d6784c5edf20683cbfedda3fa54525878ce8
-
Treehugger Robot authored
-
Ajay Panicker authored
Bug: 76456293 Test: Listen to music on a device that supports delay reporting Change-Id: I4ca1c31819594750a7beb1d11ca5b8d64a7f836c
-
- Apr 05, 2018
-
-
Treehugger Robot authored
-
Treehugger Robot authored
-
Dmitry Shmidt authored
Bug: 75290651 Test: Manual Change-Id: I30bda23667ac911bf21da5705d248833f919f8bf Signed-off-by:
Dmitry Shmidt <dimitrysh@google.com>
-
Ajay Panicker authored
Instead of trying to re-register for a rejected volume changed notification, disable absolute volume. This prevents spinning if a remote device continuously rejects all attempts to register. A volume level of -2 will be used to represent that the volume notification was rejected. Bug: 77238060 Test: Run host native test net_test_avrcp Change-Id: I228524fb30348ca691d0792f0c7bcc4653d1fcef
-
Treehugger Robot authored
-
- Apr 04, 2018
-
-
Hansong Zhang authored
Remove the "HidDeviceCabled" flag from the config when the remote device is not currently being usec Bug: 77549256 Test: manual Change-Id: I2c88e972457608699c3f0344357828324a419b90
-
Treehugger Robot authored
-
- Apr 03, 2018
-
-
Ajay Panicker authored
Some carkits don't honor the fact that VFS ID's only are consistent to the folder they are currently browsing. Now a UID will remain valid until the connection ends. Bug: 68812037 Test: Run net_test_avrcp Change-Id: I67898277327b54eaeca2121b9ff173b22bd4ba71
-
Hansong Zhang authored
Bug: 69136526 Test: test with apps using HID Device profile Change-Id: I6c6df052fac508499c42fc7ab493010e327d6003
-
- Apr 02, 2018
-
-
Ajay Panicker authored
The Now Playing List ID's could be invalid if the now playing list changes but there is not track change, like when adding a song to the queue on the device. Bug: 68812037 Test: Run host native test net_test_avrcp Change-Id: I3c2c11aa87b64241f378819c38ae5cc21ffdb5ac
-
Ajay Panicker authored
Bug: 77241554 Test: Run host native tests net_test_avrcp and net_test_btpacket Change-Id: If32aa506dc8f99220ef35efeb4d77a1023767afe
-
- Mar 30, 2018
-
-
Jack He authored
* Log every instance of RFCOMM unexpected disconnection * Log every time when RFCOMM channel (DLCI) is changed * Refactor some RFCOMM code to be more readable and easier for logging * Remove excessive logging in power manager * Assign HSP default version more appropriate location * Replace some usage of NULL with nullptr Bug: 77224743 Test: make, no functional changes Change-Id: I5e62dd6d338f7e92a8b8d39c1fe155b71396034c
-
Treehugger Robot authored
-
Treehugger Robot authored
* changes: AVRCP play status change updates AVRCP register for addressed player changed
-
Pavlin Radoslavov authored
For every periodic aptX / aptX HD data packet, use a single read operation for all PCM data that needs to be encoded, instead of using multiple reads of smaller blocks of data. Bug: 70899260 Test: Manual: stream to aptX/aptX HD headset, change the sample rate Change-Id: Ifcb8302589f24f5d7ab89c645c50d6905197fb7f
-
- Mar 29, 2018
-
-
Hansong Zhang authored
* setActiveDevice() returns false in error case, e.g. when the device is not connected * add getActiveDevices() instead of isActiveDevice(), which returns a list that must have two elements: left and right, or empty list on error Test: manual Bug: 69623109 Change-Id: I6f872dd88422e9d7e5187603d3ad33628726e1ca
-
Jakub Pawlowski authored
Test: compilation Change-Id: I66040a4f3d339ac0473052d916b9a0b4e3045e8e
-
Jakub Pawlowski authored
In bta_dm_remove_device, if the device is not connected, and we don't know the transport for given address, we make two calls to BTM_ReadConnectedTransportAddress, to determine the device address on the other transport. If the address provided is LE, first call will fill the other_address variable with the Classic address, and the second call will fill it back with LE addres. This mean we never try to remove Classic entry, instead we remove LE entry twice. Bug: 67907612 Test: establish LE connnection between two phones, trigger Bonding. After bonding complete, try to remove bond using LE address. Verify config file is cleaned of both LE and classic entry. Change-Id: Ia5dd53f96b95478a07009cecc5b4a3c79f15c59b
-
Treehugger Robot authored
* changes: Use proper media ID when changing path Add missing AVRCP Set Addressed Player Response
-