OSDN Git Service

Load gatt_database if it is empty in bta_gattc_process_indicate
authorweichinweng <weichinweng@google.com>
Tue, 11 Jun 2019 14:02:46 +0000 (22:02 +0800)
committerJakub Pawlowski <jpawlowski@google.com>
Wed, 12 Jun 2019 07:23:41 +0000 (07:23 +0000)
commit9a169893a89ee494dd01ada6ab129a46016aed7b
treeb01626cdc6d01fbdc9a951e48f6d1a09a9612db3
parent103addf9f77961f47f0384556f17566bf3749472
Load gatt_database if it is empty in bta_gattc_process_indicate

If Service Changed indication is received but gatt_database is empty,
will try to load database from storage.

Bug: 131814072
Bug: 134994428
Test: 1.CTS Bluetooth LE Secure Test. 2.Unit test.
3. Pair BLE device via APP. 4. Pair device via Bluetooth Setting

Change-Id: Id3f3f0f33d5e0469a6f2ac6612fa9f5ea0b24142
bta/gatt/bta_gattc_act.cc
bta/gatt/bta_gattc_cache.cc
bta/gatt/bta_gattc_int.h