OSDN Git Service

Hearing aid: use new common/Timer
authorHansong Zhang <hsz@google.com>
Thu, 21 Mar 2019 18:21:31 +0000 (11:21 -0700)
committerStanley Tng <stng@google.com>
Fri, 22 Mar 2019 17:47:46 +0000 (17:47 +0000)
commit497eb0e7a3293722b049c36e42272a8a428a6a15
tree0ba52c9dcafe107bd412c5e810446d99477c87e7
parent86ef0c76dae311691e3aa123d894d0674ba71a01
Hearing aid: use new common/Timer

Previously osi/alarm cannot be cancelled or freed while in a callback.
Replace it with common/Timer. It's safe to be cancelled in a callback
and well tested.

Bug: 119533256
Test: manual
Change-Id: I73c7c98d683c85ec8f0f4256c3e4bccf3e11b56a
bta/hearing_aid/hearing_aid_audio_source.cc