OSDN Git Service

increase the bluetooth task priority when start a2dp.
authorZhihai Xu <zhihaixu@google.com>
Wed, 8 Jan 2014 19:45:17 +0000 (11:45 -0800)
committerZhihai Xu <zhihaixu@google.com>
Wed, 16 Apr 2014 18:20:54 +0000 (11:20 -0700)
commitc0d87309085094feb49c9dd51c3d4ac3e4aeab2d
tree5e3f46ae93f843e59894059b38500901d804d017
parente96ce0e945e210b22bbf6a3869809852c7e1d35e
increase the bluetooth task priority when start a2dp.

change the BT task priority based on audio play state.
increase the BT task priority to ANDROID_PRIORITY_URGENT_AUDIO
,when start ad2p audio playing.
to better prevent CPU premption by other process/task(UI).
restore the BT task priority when stop a2dp audio playing.

bug:12082841
Change-Id: I34e8344cffea87f68987149c820cd3e84a4196d1

Conflicts:
utils/include/bt_utils.h
utils/include/bt_utils.h