floss: Refactor allow_wake_by_hid for classic
Currently, allow_wake_by_hid tries to configure set event filter to allow all classic devices that are HID major class to attempt connection and wake us from suspend. This is insufficient to keep us from being woken by unbonded devices (which we don't want). The refactor does the following: * Gets a list of classic hid devices (where DevClass matches either keyboard or pointing device). * Program event filter using BD_ADDR instead of Class of Device filtering. Only bonded devices will be able to reconnect until we clear the Event Filter on resume. Bug: 269835025 Tag: #floss Test: Manual suspend test + autotest Change-Id: I392bd63a8ebe0e8b7d53524dd24777b599ca8e41
Showing
- system/bta/dm/bta_dm_act.cc 4 additions, 3 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 1 addition, 0 deletionssystem/bta/dm/bta_dm_int.h
- system/bta/include/bta_api.h 1 addition, 0 deletionssystem/bta/include/bta_api.h
- system/btif/include/btif_dm.h 21 additions, 1 deletionsystem/btif/include/btif_dm.h
- system/btif/include/btif_profile_storage.h 8 additions, 11 deletionssystem/btif/include/btif_profile_storage.h
- system/btif/include/btif_storage.h 0 additions, 12 deletionssystem/btif/include/btif_storage.h
- system/btif/src/bluetooth.cc 5 additions, 2 deletionssystem/btif/src/bluetooth.cc
- system/btif/src/btif_dm.cc 3 additions, 20 deletionssystem/btif/src/btif_dm.cc
- system/btif/src/btif_profile_storage.cc 70 additions, 11 deletionssystem/btif/src/btif_profile_storage.cc
- system/device/include/controller.h 3 additions, 1 deletionsystem/device/include/controller.h
- system/gd/hci/controller.cc 0 additions, 11 deletionssystem/gd/hci/controller.cc
- system/gd/hci/controller.h 0 additions, 16 deletionssystem/gd/hci/controller.h
- system/gd/hci/controller_test.cc 0 additions, 4 deletionssystem/gd/hci/controller_test.cc
- system/main/shim/btm_api.cc 5 additions, 2 deletionssystem/main/shim/btm_api.cc
- system/main/shim/btm_api.h 1 addition, 0 deletionssystem/main/shim/btm_api.h
- system/main/shim/controller.cc 10 additions, 3 deletionssystem/main/shim/controller.cc
- system/test/mock/mock_device_controller.cc 5 additions, 2 deletionssystem/test/mock/mock_device_controller.cc
- system/test/mock/mock_main_shim_btm_api.cc 1 addition, 0 deletionssystem/test/mock/mock_main_shim_btm_api.cc
Loading
Please register or sign in to comment