summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/AnnotationProcessor_test.cpp
diff options
context:
space:
mode:
authorVenkata Jagadeesh Garaga <vgaraga@codeaurora.org>2020-03-02 14:42:48 +0530
committerVenkata Jagadeesh Garaga <vgaraga@codeaurora.org>2020-03-12 09:56:53 +0530
commit6c10b5d4002e710515a82583f3966a3299a783ce (patch)
treeb30308f5a91234bd886624be00f9584cc8e0e699 /tools/aapt2/java/AnnotationProcessor_test.cpp
parenta13ebc1059b626bca20efb3da162ed7d0910edc2 (diff)
GAP: Handle the race condition cases in auto connect logic
Issue: Auto connection failing when onUuidChanged and onBondingStateChanged triggered in race condition. Steps: 1.Turn on BT 2.Scan the remote headset from DUT 3.Initiating pairing to remote device 4.unpair the remote from DUT UI Repeat steps from 2 to 4. Some times auto connection not getting initiated from DUT. Root Cause: if mProfiles accessed simultaneously from onUuidChanged and connectAllEnabledProfiles with two different process context. mProfiles not reflecting latest value in connectAllEnabledProfiles, Settings not able to initiate Auto connection as mProfiles list shown as empty. onBondingStateChanged getting triggered multiple times from settings with different process contexts and BondingInitiatedLocally resets in first instance when no profiles added, its leading auto connection failure FIX: - mProfiles accessed inside onUuidChanged without syncronization,also mProfiles empty check already there in connectAllEnabledProfiles - Hence remove redundant mProfiles empty check in onUuidChanged - Reset BondingInitiatedLocally flag while initiating connection. Change-Id: I88aa6a6cd46d264f4dd32db71e413079bbd40779 CRs-Fixed: 2630956
Diffstat (limited to 'tools/aapt2/java/AnnotationProcessor_test.cpp')
0 files changed, 0 insertions, 0 deletions