floss: Refactor le reconnection during suspend
During system suspend, we need to use a separate set of LE scan window and intervals that are specifically tuned for this purpose. In order to do this only when suspended, we add |SetSystemSuspendState| to indicate when we're entering and existing suspend. We set the suspend state via |AllowWakeByHid| and remove the suspend state via |RestoreFilterAcceptList|. Currently, we only restore LE hid devices on resume to the accept list but we should also restore non-direct gatt connections in the future. Bug: 271159571 Tag: #floss Test: Manual test, ChromeOS Autotest and unit tests Change-Id: I3e67f06f7667dec69379468cc51b8405cf10de10
Showing
- system/bta/dm/bta_dm_act.cc 3 additions, 2 deletionssystem/bta/dm/bta_dm_act.cc
- system/bta/dm/bta_dm_api.cc 4 additions, 2 deletionssystem/bta/dm/bta_dm_api.cc
- system/bta/dm/bta_dm_int.h 2 additions, 1 deletionsystem/bta/dm/bta_dm_int.h
- system/bta/include/bta_api.h 2 additions, 1 deletionsystem/bta/include/bta_api.h
- system/btif/include/btif_dm.h 2 additions, 1 deletionsystem/btif/include/btif_dm.h
- system/btif/src/bluetooth.cc 8 additions, 1 deletionsystem/btif/src/bluetooth.cc
- system/btif/src/btif_dm.cc 3 additions, 2 deletionssystem/btif/src/btif_dm.cc
- system/gd/hci/acl_manager.cc 4 additions, 0 deletionssystem/gd/hci/acl_manager.cc
- system/gd/hci/acl_manager.h 1 addition, 0 deletionssystem/gd/hci/acl_manager.h
- system/gd/hci/acl_manager/le_impl.h 14 additions, 0 deletionssystem/gd/hci/acl_manager/le_impl.h
- system/gd/rust/linux/stack/src/suspend.rs 3 additions, 4 deletionssystem/gd/rust/linux/stack/src/suspend.rs
- system/main/shim/acl.cc 8 additions, 0 deletionssystem/main/shim/acl.cc
- system/main/shim/acl.h 4 additions, 6 deletionssystem/main/shim/acl.h
- system/main/shim/btm_api.cc 22 additions, 3 deletionssystem/main/shim/btm_api.cc
- system/main/shim/btm_api.h 2 additions, 1 deletionsystem/main/shim/btm_api.h
- system/test/mock/mock_main_shim_btm_api.cc 2 additions, 1 deletionsystem/test/mock/mock_main_shim_btm_api.cc
Loading
Please register or sign in to comment