summaryrefslogtreecommitdiff
path: root/tests/net/java/com/android/server/IpSecServiceTest.java
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-09 05:34:43 +0000
commit7e31e9723b640c57a3d930cfc40908c1f54c4e0c (patch)
tree45b4e90be9734675cd7f2cf418dba1dd094f9af4 /tests/net/java/com/android/server/IpSecServiceTest.java
parent20eb3d03ff71e43962e881de0ac25e076bf0b493 (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 connectWithoutResettingTimer - Hence remove redundant mProfiles empty check in onUuidChanged - Reset BondingInitiatedLocally flag while initiating connection. Change-Id: I88aa6a6cd46d264f4dd32db71e413079bbd40779 CRs-Fixed: 2630956
Diffstat (limited to 'tests/net/java/com/android/server/IpSecServiceTest.java')
0 files changed, 0 insertions, 0 deletions