- Mar 28, 2018
-
-
Hansong Zhang authored
This reverts commit 87b96013. Reason for revert: Connected HID keyboard won't unpair Bug: 76907578 Test: SL4A Change-Id: I7d289183ac05b5f926c145799418461377228569 (cherry picked from commit 25694ec900e61d5235ee65461d46495b5ae4cdcf)
-
- Mar 26, 2018
-
-
TreeHugger Robot authored
-
Ajay Panicker authored
-
Jakub Pawlowski authored
-
Jakub Pawlowski authored
Bug: 76217773 Change-Id: I50188e9c69dbcd42286097cb6fbc1aa715877c80 (cherry picked from 60911bea640978984fffb925248e630ea9590a61)
-
Ajay Panicker authored
You can now use the new AVRCP Profile by setting persist.bluetooth.enablenewavrcp to true. Also fix a misundestanding with connection_handler.cc. AVRCP Control callbacks return a null address when disconnecting. Bug: 68854188 Test: Check to see that the profile is used when property is true and is not used when property is false. Change-Id: I4aa285c6bf009716cc80a80b813ba0acd3d8f9d8 (cherry picked from commit ce1a2b3f8d44a017c13a55b5e53abb51886297ad) Merged-In: I4aa285c6bf009716cc80a80b813ba0acd3d8f9d8
-
Ajay Panicker authored
Allows the AVRCP Service Interface to be retrieved via bt_interface_t. Bug: 68854188 Test: Compile Change-Id: I0d9464ea19d3bd382d07134bff057a5515501b95 (cherry picked from commit 66401790c29f13b30c15f035933366f36637df21) Merged-In: I0d9464ea19d3bd382d07134bff057a5515501b95
-
- Mar 24, 2018
-
-
Jakub Pawlowski authored
There is no functional change, just making the code pretty, and updating names to match 5.0 specification. Test: sl4a AdvertisingSetTest:test_reenabling Bug: 74198564 Change-Id: I1811e19bd18470adda55f7af7cfee23bcc4d1871 (cherry picked from commit 8e6b9a9760efa5aba116355b4216610e75a54a49)
-
Jakub Pawlowski authored
Fail on calls to ACPF when it's not supported in controller. Right now we sent such commands when starting/stopping the regular scan. Bug: 69116550 Test: Enable bluetooth on platform without ACPF, start/stop scan Change-Id: I334114d36a8af8c8f58d230f75ab3a00f009c4c5 (cherry picked from commit cf811d66915a6d2c76a7ada2b7f64f0c4014e671)
-
Nitin Shivpure authored
Usecase: 1) Connect to HOGP device. (Because of some condition encryption fails with Connection Timeout, remote device turned off when connection was initiated) 2) Try to connect again to HoGP device Expected Result: Connection should be successful Observed Result: UI stuck in connecting state and connection never succeeds. Root cause: When encryption fails in previous iteration, encryption happens before HoGP Server starts security procedure, leading to Encryption Complete event being received with wrong status. Fix: Update the status to success when sending encryption complete event if link is already encrypted Test: Issue is not seen after above steps Fixes: 76133015 Change-Id: Ib404cf157289170ea300eae40f51393606c35105 (cherry picked from commit 17d692578102d73bcf30b00442cdd456e92a7912)
-
- Mar 23, 2018
-
-
Jakub Pawlowski authored
Bug: 75311714 Test: Test scenario described in bug Change-Id: Ib2da24134205277ae03cf28394db74758de17e5d (cherry picked from commit 61dfe5ccf014aa17cbe800b1195afdb7e474a376)
-
Jakub Pawlowski authored
Reject invalid data length for advertisement data. Also, don't attempt to resolve anonymous advertising addresses. Test: LE scanning tests Bug: 73193883 Change-Id: I1cb330bc30fdcaebc86527cd2656c9dd7932b318 (cherry picked from commit 47efa5b569e8dfa6c4397f0a9598d8137f71a05f)
-
Pavlin Radoslavov authored
Test: Code compilation Bug: 74952724 Change-Id: I022e16940c73181f991d528b9c96e2d26151369f (cherry picked from commit e445b5b8b9225a882136a1c941cf77055540a554)
-
TreeHugger Robot authored
-
Pavlin Radoslavov authored
* Added explicit btif_a2dp_audio_interface_start_session() and btif_a2dp_audio_interface_end_session() and call them as appropriate. * Removed unnecessary btif_a2dp_audio_interface_deinit() calls. Bug: 74952724 Test: Manual: audio streaming without A2DP offload Change-Id: I74b8c340ee258b09b9e1acbcb1cc75906ddc03fc Merged-In: I74b8c340ee258b09b9e1acbcb1cc75906ddc03fc (cherry picked from commit 9d73f984efd16d894bd0bcc2bb3a3871778ab898)
-
Pavlin Radoslavov authored
If the A2DP codec is changed for the active device, then the current session is restarted by calling End/Start Session. Also: * Updated btav_a2dp_codec_config_t string representation to include the codec priority. * Fixed A2dpCodecConfig::setCodecPriority() and setDefaultCodecPriority() so the codec priority for the current codec_config_ is updated. * Fixed A2dpCodecs::setCodecUserConfig() so the restart_input flag is set as appropriate. * Use btav_a2dp_codec_config_t::ToString() as appropritate to print the codec config instead of explicitly printing each field. Bug: 74988739 Test: Manual: Connect two headsets, change codecs, switch active device. Change-Id: I6652168f3c48e5b431e00aa8f554929afbdcdbcf Merged-In: I6652168f3c48e5b431e00aa8f554929afbdcdbcf (cherry picked from commit 42c88d1a55ac98b46c757f18c8cb518fd442e649)
-
TreeHugger Robot authored
-
TreeHugger Robot authored
-
- Mar 22, 2018
-
-
TreeHugger Robot authored
-
Ajay Panicker authored
This class provides a management interface for the AVRCP Target Service. Bug: 68854188 Test: Compiles Change-Id: Id639ca6530ea986b5d67203f448ae7a0eecc6f8a (cherry picked from commit 84a282706dd36559012af5f00641133725c57776) Merged-In: If86210bf3e600dfd641291917c137a0d0764d057
-
TreeHugger Robot authored
-
Fukai Wang authored
Test: Run AdapterRepeatedEnableDisable in system/bt/test with kTestRepeatCount set to 1000. Bug: 76161326 Merged-In: I3445a725d66e73e8bcffc7bfabe594f49a6fc863 Change-Id: I3445a725d66e73e8bcffc7bfabe594f49a6fc863 (cherry picked from commit 8a9013350fdf5c5724af6cc93b41b1cc1432ee83)
-
Pavlin Radoslavov authored
Start/End session is called when setting/changing the Active (remote) device. Also: * For A2DP Source, btif_a2dp_source_setup_codec() is called only for Start session. All other calls to btif_a2dp_source_setup_codec are removed. * Updated the btif_a2dp_source_setup_codec() implementation to call btif_a2dp_source_audio_tx_flush_req() and flush the incoming audio data. This removes 2 seconds hold-up delay when switching the active device and streaming audio. * Removed unnecessary lock inside btif/src/btif_a2dp_sink.cc Bug: 74952724 Test: Manual - Connect two headsets, switch active device, connect/disconnect. Change-Id: I43702e1ddc108628de93161905465647471f554c Merged-In: I43702e1ddc108628de93161905465647471f554c (cherry picked from commit 03adb3f7ba37d637329d3c13aa4a3bb1ec28f143)
-
Ajay Panicker authored
Bug: 76027180 Test: Compile and connect to remote device and see in SDP that the version reported is 1.5 Change-Id: I9ec88ca2127c3be055d7f64ccb8b3848cfed3fdf (cherry picked from commit c90de7ada786f8e53b8d0b256ac3ac5ba81768c8)
-
Ajay Panicker authored
This class handles connecting and disconnecting AVRCP Devices as well as SDP lookups and feature selection. Bug: 68854188 Test: run_host_unit_tests.py && run_unit_tests.sh net_test_avrcp Change-Id: I950587123d2875c4333b415c379c7c1fb0c29ca5 (cherry picked from commit 8e521034ded85c26152a18dd591192df3b80d958) Merged-In: I43720566bc7b96a4796a1f571757f2a8c198be17
-
Jakub Pawlowski authored
According to logs some devices are stuck when in BLE_CONN_CANCEL state. That is they sent "LE Create Connection Cancel" request, and are awaiting "LE Connection Complete" event with invalid handle forever. But they wait and wait, and the event never arrive. That's because "LE Create Connection Cancel" was sent, when connection attempt is not pending. In such case, we should act upon command complete status, and decide to leave BLE_CONN_CANCEL state. To properly fix this issue, one would have to implement a proper queue for managing LE connection attempt state, preferably for scratch. This fix just give option of graceful recovery. Test: sl4a GattConnectTest Bug: 75290221 Change-Id: I7e7a377c789ac0a587390320fbf504267cca8727 (cherry picked from commit b0a9f9f23f7405bc088695e1d91763aced70b9fd)
-
Ajay Panicker authored
Bug: 68854188 Test: ./run_host_unit_tests.py && ./run_unit_test.sh net_test_btpackets Change-Id: I62d864e2c27d809944f160dc45906b90cbb84f3d (cherry picked from commit 142763fa10b721c0d51d7585fc01bf127f5b9e32)
-
TreeHugger Robot authored
-
Hansong Zhang authored
Add setActiveDevice() and isActiveDevice() as it will be used in Settings Bug: 69623109 Test: compilation and instrumentation Change-Id: Ifc92bab2306ed78cb6d203c5e1b0a5887730d24f (cherry picked from commit a68d747b4e0c0b47c755a86fd9dd94b390205333)
-
Jakub Pawlowski authored
Bug: 69623109 Test: connect both hearing aid, change volume, reconnect, verify volume level Change-Id: Ia728ee25993f1bd7ecaae2aa0c1cb78926583a9b (cherry picked from commit 2107aedcf20ba461f3e3289a2d33559413809b1d)
-
- Mar 19, 2018
-
-
TreeHugger Robot authored
-
Pavlin Radoslavov authored
This fixes an issue where the default AVDT_VERSION could be incorrectly assigned to a remote device. Bug: 74002223 Test: Manual: connect to Kinivo BTC450; power off/on the device to reconnect Change-Id: I53817e942638d6e962aa5b8b87b7b31998270857 (cherry picked from commit 243661fe202b00b56a34dbdd2d80d9eff4951485)
-
Pavlin Radoslavov authored
Also: * Added missing assert to check when local codecs are not initialized * Removed unnecessary local copy: BtifAvSource::codec_priorities_ Bug: 74079615 Test: Manual: Enable A2DP Sink profile and initiate the connection from Remote A2DP Source Change-Id: I40ea1aa2164612bbe108ac06be7f6cae8be30a72 (cherry picked from commit b27aa7ebbf373fe2ddc4d75a19d02c7b3ea5359e)
-
- Mar 16, 2018
-
-
TreeHugger Robot authored
-
Joseph Pirozzo authored
There is a setting that controls which AVRCP Target version is enabled, use the same setting for both source and sink devices. Bug: 62397951 Test: Observe SDP record on sink device. Change-Id: I65b307d011048ec88b3af8c542ce70601294cca8 (cherry picked from commit a39e5bfe6eec9571105ec8ce90c705f4281de7fd)
-
- Mar 15, 2018
-
-
Jakub Pawlowski authored
It is causing race conditions. Weak pointer is already taking care of making sure the instance is valid, even if it was not yet initialized. Bug: 74863151 Test: compilation Change-Id: Iddb69f8a38d80044d1bdd7699fad020f710914be (cherry picked from commit 68ef745a3af2fcdee03db4441016e5b5e0039c74)
-
Jakub Pawlowski authored
Bug: 69623109 Test: compile, connect to hearing aid Change-Id: I8751be8b92d2a902407726b6ec7fc1c8ecbcaebb (cherry picked from commit c454fe706457048777bb4eb36089e3989964fe5a)
-
Jakub Pawlowski authored
Test: connect to Hearing Aid, play some music, make phone call Bug: 69623109 Change-Id: I924ce288f1aa28c0d59edffa7a00f90271a808ab (cherry picked from commit 2c2c78944081b7bedd9fdd06f0dc7e8b4b86bf5e)
-
Nitin Shivpure authored
Usecase: 1) Install the same system version and CtsVerifier.apk on 2 DUT's 2) Pair both DUT's using BT Settings Menu. 3) On DUT execute Bluetooth Test -> Bluetooth LE Secure Server Test -> Bluetooth LE Sever Test. 4) On remote device execute Bluetooth Test-> Bluetooth LE Secure Client Test -> Bluetooth LE Client Test Expected Result: All test cases can be passed. Observed Result: All test cases cannot be passed. Root Cause: DUT supports secure connection & LE privacy and during BR/EDR pairing LTK is derived from LK, but device type is not updated and is still BR/EDR instead of LE. Later when Gatt server starts advertisement with random address so while creating LE connection from gatt client to gatt server, gatt client is not able to resolve random address due to incorrect device type, It re-initiate LE paring with gatt server. Fix: Updating device type as BLE while deriving LTK from LK. Test: CTS test case can pass with above steps. Fixes: 74728232 Change-Id: I1f2c5b54d17a58615f7c2ceb954e54619b165489
-
Jakub Pawlowski authored
Bug: 74858307 Change-Id: If975a5d76d42e6142534e87fd63b30f9ce8894d8 (cherry-picked from 9ed8697aaf24891b27951a7cb260ca3aceea2db8)
-