OSDN Git Service

GD: Hold wakelock when starting and stopping the Bluetooth stack
authorJack He <siyuanh@google.com>
Thu, 20 May 2021 05:14:19 +0000 (22:14 -0700)
committerJack He <siyuanh@google.com>
Fri, 21 May 2021 21:20:16 +0000 (14:20 -0700)
commit9d88eb9ac498ac28ebf95c33517cb730be6cb42f
tree57c429a5229a742b36dac25fc83afd931ef0a83e
parent234f5eeaad4b7635b22226f6e70a2c8125d8f16f
GD: Hold wakelock when starting and stopping the Bluetooth stack

* Hold wakelock when starting and stopping the Bluetooth stack so that it
  can meet the timing requirement
* Rename GD wakelock to bluetooth_gd_timer for easier debugging
* Use native HAL based wakelock in GD

Bug: 184608842
Tag: #gd-refactor
Test: atest bluetooth_test_gd_unit
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines
Ignore-AOSP-First: Cherry-pick to release branch

Change-Id: Ib4679782061b82a70a240a2a614f7ee587e5c7c7
(cherry picked from commit 3ea82dbbb74beeb94a2ae15c6d9d1748a14c43ae)
gd/dumpsys_data.fbs
gd/module.cc
gd/os/linux_generic/wakelock_manager.cc
gd/os/linux_generic/wakelock_manager_unittest.cc
gd/os/wakelock_manager.h
gd/stack_manager.cc
main/Android.bp
test/headless/Android.bp