OSDN Git Service

Don't read HearingAid properties if already have properties value.
authorweichinweng <weichinweng@google.com>
Thu, 2 May 2019 07:31:33 +0000 (15:31 +0800)
committerweichinweng <weichinweng@google.com>
Fri, 3 May 2019 01:11:13 +0000 (09:11 +0800)
commit90429bc7481872e2616d4a2d9cf0027c2d143b80
treefd82e040a7e22ea7bb2aff4fe528d43cb21e70e0
parent1bff698b4ea099f8af4ce926e3972158419119f6
Don't read HearingAid properties if already have properties value.

When read HearingAid properties, don't read it if already have the
HearingAid properties in config file. Will use these values in config
file since these values should never change.

Bug: 128464408
Test: 1.Forget/Repair HearingAid device from Bluetooth UI.
2.Disconnect/Reconnect HearingAid device from Bluetooth UI.
3.HearingAid device power off/on, check them can reconnect.

Change-Id: Id4c30947c75f0615514075ec36c50afb58fc3f14
Merged-In: Id4c30947c75f0615514075ec36c50afb58fc3f14
bta/hearing_aid/hearing_aid.cc
bta/include/bta_hearing_aid_api.h
btif/include/btif_storage.h
btif/src/btif_storage.cc