OSDN Git Service

Don't remove bonding device from cached device list during inquiry
authorVenkata Jagadeesh <vgaraga@codeaurora.org>
Fri, 20 May 2016 07:38:35 +0000 (13:08 +0530)
committerLinux Build Service Account <lnxbuild@localhost>
Wed, 24 Aug 2016 14:15:03 +0000 (08:15 -0600)
commitaf0b39b0cdcd94544781155fb6ccf68a6b2a8275
tree49c394e6d3b6bd06350f5334a7bb3a2db4c3a43c
parent1e5c3b5a5dbf900e5b48ecfe62d00a7ea445a2d1
Don't remove bonding device from cached device list during inquiry

Use case: DUT unable to start auto connect after pairing to remote devices

Steps:
1. pair with remote device
2. unpair remote device.
3. Pair again to same remote from available devices list and initate inquiry same time

Failure: DUT unable to start auto connect after pairing to remote device

Root Cause: As bonding device is removed from cached device list,a new cached device
entry is created after bonding with auto connection variable reset.

Fix: This issue fixed by deleting only non bonded and non bonding devices during inquiry.

Change-Id: I9d1c399292420fa2e321a4f6410e672a2abcc423
CRs-Fixed: 1033953
packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDeviceManager.java