OSDN Git Service

Add to receive BTHF_CALL_STATE_DISCONNECTED at HFP
authorYasuyoshi Terui <yasuyoshi.x.terui@sonymobile.com>
Fri, 14 Feb 2014 06:07:35 +0000 (15:07 +0900)
committerMyles Watson <mylesgw@google.com>
Fri, 5 Jan 2018 00:18:42 +0000 (16:18 -0800)
commitc8da011a74a720ccf82caadf43fa8d68ab8cbef0
treeab1cfc43b67c88c0aed10284f4b9fcc34fc480e0
parent12a576dc5f3e37ddba44a51994f613c11d88aaa8
Add to receive BTHF_CALL_STATE_DISCONNECTED at HFP

When the call is disconnected, the BTHF state is changed to IDLE and
SCO connection is disconnected before playing disconnect tone. So the
disconnect tone can't be sound from BTHS.

Add DISCONNECTED state for HFP and keep the state until disconnect tone
sounds from BT.

Test: manual - Checked whether the disconnect tone is sound from the BTHS
Bug: 69645337

Change-Id: Id96385e4ce35cfe7d0d4e14b74a2fc1a63165f82
btif/src/btif_hf.cc
include/hardware/bt_hf.h