floss: Change api to set_default_event_mask_except
The suspend implementation in Floss wants to mask away some events to prevent spurious wakes. This change updates the btif api |set_default_event_mask| to also accept bit masks that will be disabled from the final event mask that is sent to the controller. As part of this change, suspend will now stop calling |clear_event_mask| during suspend and instead will just disable the Disconnect and Mode change events only. Bug: 231345733 Tag: #floss Test: Manual test on ChromeOS. Change-Id: I0105085c465666e5a8c0e7890c36072234fe05e2
Showing
- system/blueberry/facade/topshim/facade.proto 6 additions, 1 deletionsystem/blueberry/facade/topshim/facade.proto
- system/blueberry/tests/topshim/lib/adapter_client.py 3 additions, 2 deletionssystem/blueberry/tests/topshim/lib/adapter_client.py
- system/blueberry/tests/topshim/lib/topshim_device.py 2 additions, 2 deletionssystem/blueberry/tests/topshim/lib/topshim_device.py
- system/blueberry/tests/topshim/power/suspend_test.py 2 additions, 2 deletionssystem/blueberry/tests/topshim/power/suspend_test.py
- system/bta/dm/bta_dm_act.cc 8 additions, 5 deletionssystem/bta/dm/bta_dm_act.cc
- system/bta/dm/bta_dm_api.cc 4 additions, 3 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 7 additions, 4 deletionssystem/bta/include/bta_api.h
- system/btif/include/btif_dm.h 1 addition, 1 deletionsystem/btif/include/btif_dm.h
- system/btif/src/bluetooth.cc 5 additions, 3 deletionssystem/btif/src/bluetooth.cc
- system/btif/src/btif_dm.cc 2 additions, 2 deletionssystem/btif/src/btif_dm.cc
- system/device/include/controller.h 1 addition, 1 deletionsystem/device/include/controller.h
- system/gd/rust/linux/stack/src/suspend.rs 12 additions, 2 deletionssystem/gd/rust/linux/stack/src/suspend.rs
- system/gd/rust/topshim/facade/src/adapter_service.rs 9 additions, 4 deletionssystem/gd/rust/topshim/facade/src/adapter_service.rs
- system/gd/rust/topshim/src/btif.rs 2 additions, 2 deletionssystem/gd/rust/topshim/src/btif.rs
- system/include/hardware/bluetooth.h 3 additions, 2 deletionssystem/include/hardware/bluetooth.h
- system/main/shim/btm_api.cc 3 additions, 2 deletionssystem/main/shim/btm_api.cc
- system/main/shim/btm_api.h 7 additions, 4 deletionssystem/main/shim/btm_api.h
- system/main/shim/controller.cc 10 additions, 6 deletionssystem/main/shim/controller.cc
- system/service/hal/fake_bluetooth_interface.cc 1 addition, 1 deletionsystem/service/hal/fake_bluetooth_interface.cc
Loading
Please register or sign in to comment