• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2021 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 /*
18  * Generated mock file from original source file
19  *   Functions generated:125
20  *
21  *  mockcify.pl ver 0.2.1
22  */
23 
24 #include <cstdint>
25 #include <functional>
26 #include <map>
27 #include <string>
28 
29 // Mock include file to share data between tests and mock
30 #include "stack/include/bt_hdr.h"
31 #include "test/mock/mock_stack_acl.h"
32 #include "types/class_of_device.h"
33 #include "types/raw_address.h"
34 
35 // Mocked compile conditionals, if any
36 #ifndef UNUSED_ATTR
37 #define UNUSED_ATTR
38 #endif
39 
40 // Mocked internal structures, if any
41 
42 namespace test {
43 namespace mock {
44 namespace stack_acl {
45 
46 // Function state capture and return values, if needed
47 struct ACL_SupportTransparentSynchronousData
48     ACL_SupportTransparentSynchronousData;
49 struct BTM_BLE_IS_RESOLVE_BDA BTM_BLE_IS_RESOLVE_BDA;
50 struct BTM_IsAclConnectionUp BTM_IsAclConnectionUp;
51 struct BTM_IsAclConnectionUpAndHandleValid BTM_IsAclConnectionUpAndHandleValid;
52 struct BTM_IsAclConnectionUpFromHandle BTM_IsAclConnectionUpFromHandle;
53 struct BTM_IsBleConnection BTM_IsBleConnection;
54 struct BTM_IsPhy2mSupported BTM_IsPhy2mSupported;
55 struct BTM_ReadRemoteConnectionAddr BTM_ReadRemoteConnectionAddr;
56 struct BTM_ReadRemoteVersion BTM_ReadRemoteVersion;
57 struct BTM_is_sniff_allowed_for BTM_is_sniff_allowed_for;
58 struct acl_create_le_connection acl_create_le_connection;
59 struct acl_create_le_connection_with_id acl_create_le_connection_with_id;
60 struct acl_is_role_switch_allowed acl_is_role_switch_allowed;
61 struct acl_is_switch_role_idle acl_is_switch_role_idle;
62 struct acl_peer_supports_ble_2m_phy acl_peer_supports_ble_2m_phy;
63 struct acl_peer_supports_ble_coded_phy acl_peer_supports_ble_coded_phy;
64 struct acl_send_data_packet_br_edr acl_send_data_packet_br_edr;
65 struct acl_peer_supports_ble_connection_parameters_request
66     acl_peer_supports_ble_connection_parameters_request;
67 struct acl_peer_supports_ble_packet_extension
68     acl_peer_supports_ble_packet_extension;
69 struct acl_peer_supports_sniff_subrating acl_peer_supports_sniff_subrating;
70 struct acl_peer_supports_ble_connection_subrating
71     acl_peer_supports_ble_connection_subrating;
72 struct acl_peer_supports_ble_connection_subrating_host
73     acl_peer_supports_ble_connection_subrating_host;
74 struct acl_refresh_remote_address acl_refresh_remote_address;
75 struct acl_set_peer_le_features_from_handle
76     acl_set_peer_le_features_from_handle;
77 struct sco_peer_supports_esco_2m_phy sco_peer_supports_esco_2m_phy;
78 struct sco_peer_supports_esco_3m_phy sco_peer_supports_esco_3m_phy;
79 struct acl_create_classic_connection acl_create_classic_connection;
80 struct IsEprAvailable IsEprAvailable;
81 struct acl_get_connection_from_address acl_get_connection_from_address;
82 struct btm_acl_for_bda btm_acl_for_bda;
83 struct acl_get_connection_from_handle acl_get_connection_from_handle;
84 struct BTM_GetLinkSuperTout BTM_GetLinkSuperTout;
85 struct BTM_GetRole BTM_GetRole;
86 struct BTM_ReadFailedContactCounter BTM_ReadFailedContactCounter;
87 struct BTM_ReadRSSI BTM_ReadRSSI;
88 struct BTM_ReadTxPower BTM_ReadTxPower;
89 struct BTM_SetLinkSuperTout BTM_SetLinkSuperTout;
90 struct BTM_SwitchRoleToCentral BTM_SwitchRoleToCentral;
91 struct btm_remove_acl btm_remove_acl;
92 struct btm_get_acl_disc_reason_code btm_get_acl_disc_reason_code;
93 struct btm_is_acl_locally_initiated btm_is_acl_locally_initiated;
94 struct BTM_GetHCIConnHandle BTM_GetHCIConnHandle;
95 struct BTM_GetMaxPacketSize BTM_GetMaxPacketSize;
96 struct BTM_GetNumAclLinks BTM_GetNumAclLinks;
97 struct acl_get_supported_packet_types acl_get_supported_packet_types;
98 struct BTM_GetPeerSCA BTM_GetPeerSCA;
99 struct BTM_SetTraceLevel BTM_SetTraceLevel;
100 struct acl_link_role_from_handle acl_link_role_from_handle;
101 struct btm_handle_to_acl_index btm_handle_to_acl_index;
102 struct BTM_ReadRemoteFeatures BTM_ReadRemoteFeatures;
103 struct ACL_RegisterClient ACL_RegisterClient;
104 struct ACL_UnregisterClient ACL_UnregisterClient;
105 struct BTM_ReadConnectionAddr BTM_ReadConnectionAddr;
106 struct BTM_RequestPeerSCA BTM_RequestPeerSCA;
107 struct BTM_acl_after_controller_started BTM_acl_after_controller_started;
108 struct BTM_block_role_switch_for BTM_block_role_switch_for;
109 struct BTM_block_sniff_mode_for BTM_block_sniff_mode_for;
110 struct btm_connection_request btm_connection_request;
111 struct BTM_default_block_role_switch BTM_default_block_role_switch;
112 struct BTM_default_unblock_role_switch BTM_default_unblock_role_switch;
113 struct BTM_unblock_role_switch_for BTM_unblock_role_switch_for;
114 struct BTM_unblock_sniff_mode_for BTM_unblock_sniff_mode_for;
115 struct HACK_acl_check_sm4 HACK_acl_check_sm4;
116 struct acl_accept_connection_request acl_accept_connection_request;
117 struct acl_disconnect_after_role_switch acl_disconnect_after_role_switch;
118 struct acl_disconnect_from_handle acl_disconnect_from_handle;
119 struct acl_link_segments_xmitted acl_link_segments_xmitted;
120 struct acl_packets_completed acl_packets_completed;
121 struct acl_process_extended_features acl_process_extended_features;
122 struct acl_process_supported_features acl_process_supported_features;
123 struct acl_rcv_acl_data acl_rcv_acl_data;
124 struct acl_reject_connection_request acl_reject_connection_request;
125 struct acl_send_data_packet_ble acl_send_data_packet_ble;
126 struct acl_set_disconnect_reason acl_set_disconnect_reason;
127 struct acl_write_automatic_flush_timeout acl_write_automatic_flush_timeout;
128 struct btm_acl_connected btm_acl_connected;
129 struct btm_acl_connection_request btm_acl_connection_request;
130 struct btm_acl_created btm_acl_created;
131 struct btm_acl_device_down btm_acl_device_down;
132 struct btm_acl_disconnected btm_acl_disconnected;
133 struct btm_acl_iso_disconnected btm_acl_iso_disconnected;
134 struct btm_acl_encrypt_change btm_acl_encrypt_change;
135 struct btm_acl_notif_conn_collision btm_acl_notif_conn_collision;
136 struct btm_acl_paging btm_acl_paging;
137 struct btm_acl_process_sca_cmpl_pkt btm_acl_process_sca_cmpl_pkt;
138 struct btm_acl_removed btm_acl_removed;
139 struct btm_acl_reset_paging btm_acl_reset_paging;
140 struct btm_acl_resubmit_page btm_acl_resubmit_page;
141 struct btm_acl_role_changed btm_acl_role_changed;
142 struct btm_acl_set_paging btm_acl_set_paging;
143 struct btm_acl_update_conn_addr btm_acl_update_conn_addr;
144 struct btm_configure_data_path btm_configure_data_path;
145 struct btm_acl_update_inquiry_status btm_acl_update_inquiry_status;
146 struct btm_ble_refresh_local_resolvable_private_addr
147     btm_ble_refresh_local_resolvable_private_addr;
148 struct btm_cont_rswitch_from_handle btm_cont_rswitch_from_handle;
149 struct btm_establish_continue_from_address btm_establish_continue_from_address;
150 struct btm_process_remote_ext_features btm_process_remote_ext_features;
151 struct btm_process_remote_version_complete btm_process_remote_version_complete;
152 struct btm_read_automatic_flush_timeout_complete
153     btm_read_automatic_flush_timeout_complete;
154 struct btm_read_failed_contact_counter_complete
155     btm_read_failed_contact_counter_complete;
156 struct btm_read_failed_contact_counter_timeout
157     btm_read_failed_contact_counter_timeout;
158 struct btm_read_link_quality_complete btm_read_link_quality_complete;
159 struct btm_read_link_quality_timeout btm_read_link_quality_timeout;
160 struct btm_read_remote_ext_features btm_read_remote_ext_features;
161 struct btm_read_remote_ext_features_complete
162     btm_read_remote_ext_features_complete;
163 struct btm_read_remote_ext_features_complete_raw
164     btm_read_remote_ext_features_complete_raw;
165 struct btm_read_remote_ext_features_failed btm_read_remote_ext_features_failed;
166 struct btm_read_remote_features_complete btm_read_remote_features_complete;
167 struct btm_read_remote_version_complete btm_read_remote_version_complete;
168 struct btm_read_rssi_complete btm_read_rssi_complete;
169 struct btm_read_rssi_timeout btm_read_rssi_timeout;
170 struct btm_read_tx_power_complete btm_read_tx_power_complete;
171 struct btm_read_tx_power_timeout btm_read_tx_power_timeout;
172 struct btm_rejectlist_role_change_device btm_rejectlist_role_change_device;
173 struct btm_set_link_policy btm_set_link_policy;
174 struct btm_set_packet_types_from_address btm_set_packet_types_from_address;
175 struct hci_btm_set_link_supervision_timeout
176     hci_btm_set_link_supervision_timeout;
177 struct on_acl_br_edr_connected on_acl_br_edr_connected;
178 struct on_acl_br_edr_failed on_acl_br_edr_failed;
179 struct BTM_unblock_role_switch_and_sniff_mode_for
180     BTM_unblock_role_switch_and_sniff_mode_for;
181 
182 }  // namespace stack_acl
183 }  // namespace mock
184 }  // namespace test
185 
186 // Mocked functions, if any
ACL_SupportTransparentSynchronousData(const RawAddress & bd_addr)187 bool ACL_SupportTransparentSynchronousData(const RawAddress& bd_addr) {
188   inc_func_call_count(__func__);
189   return test::mock::stack_acl::ACL_SupportTransparentSynchronousData(bd_addr);
190 }
BTM_BLE_IS_RESOLVE_BDA(const RawAddress & x)191 bool BTM_BLE_IS_RESOLVE_BDA(const RawAddress& x) {
192   inc_func_call_count(__func__);
193   return test::mock::stack_acl::BTM_BLE_IS_RESOLVE_BDA(x);
194 }
BTM_IsAclConnectionUp(const RawAddress & remote_bda,tBT_TRANSPORT transport)195 bool BTM_IsAclConnectionUp(const RawAddress& remote_bda,
196                            tBT_TRANSPORT transport) {
197   inc_func_call_count(__func__);
198   return test::mock::stack_acl::BTM_IsAclConnectionUp(remote_bda, transport);
199 }
BTM_IsAclConnectionUpAndHandleValid(const RawAddress & remote_bda,tBT_TRANSPORT transport)200 bool BTM_IsAclConnectionUpAndHandleValid(const RawAddress& remote_bda,
201                                          tBT_TRANSPORT transport) {
202   inc_func_call_count(__func__);
203   return test::mock::stack_acl::BTM_IsAclConnectionUpAndHandleValid(remote_bda,
204                                                                     transport);
205 }
BTM_IsAclConnectionUpFromHandle(uint16_t hci_handle)206 bool BTM_IsAclConnectionUpFromHandle(uint16_t hci_handle) {
207   inc_func_call_count(__func__);
208   return test::mock::stack_acl::BTM_IsAclConnectionUpFromHandle(hci_handle);
209 }
BTM_IsBleConnection(uint16_t hci_handle)210 bool BTM_IsBleConnection(uint16_t hci_handle) {
211   inc_func_call_count(__func__);
212   return test::mock::stack_acl::BTM_IsBleConnection(hci_handle);
213 }
BTM_IsPhy2mSupported(const RawAddress & remote_bda,tBT_TRANSPORT transport)214 bool BTM_IsPhy2mSupported(const RawAddress& remote_bda,
215                           tBT_TRANSPORT transport) {
216   inc_func_call_count(__func__);
217   return test::mock::stack_acl::BTM_IsPhy2mSupported(remote_bda, transport);
218 }
BTM_ReadRemoteConnectionAddr(const RawAddress & pseudo_addr,RawAddress & conn_addr,tBLE_ADDR_TYPE * p_addr_type)219 bool BTM_ReadRemoteConnectionAddr(const RawAddress& pseudo_addr,
220                                   RawAddress& conn_addr,
221                                   tBLE_ADDR_TYPE* p_addr_type) {
222   inc_func_call_count(__func__);
223   return test::mock::stack_acl::BTM_ReadRemoteConnectionAddr(
224       pseudo_addr, conn_addr, p_addr_type);
225 }
BTM_ReadRemoteVersion(const RawAddress & addr,uint8_t * lmp_version,uint16_t * manufacturer,uint16_t * lmp_sub_version)226 bool BTM_ReadRemoteVersion(const RawAddress& addr, uint8_t* lmp_version,
227                            uint16_t* manufacturer, uint16_t* lmp_sub_version) {
228   inc_func_call_count(__func__);
229   return test::mock::stack_acl::BTM_ReadRemoteVersion(
230       addr, lmp_version, manufacturer, lmp_sub_version);
231 }
BTM_is_sniff_allowed_for(const RawAddress & peer_addr)232 bool BTM_is_sniff_allowed_for(const RawAddress& peer_addr) {
233   inc_func_call_count(__func__);
234   return test::mock::stack_acl::BTM_is_sniff_allowed_for(peer_addr);
235 }
acl_create_le_connection(const RawAddress & bd_addr)236 bool acl_create_le_connection(const RawAddress& bd_addr) {
237   inc_func_call_count(__func__);
238   return test::mock::stack_acl::acl_create_le_connection(bd_addr);
239 }
acl_create_le_connection_with_id(uint8_t id,const RawAddress & bd_addr,tBLE_ADDR_TYPE addr_type)240 bool acl_create_le_connection_with_id(uint8_t id, const RawAddress& bd_addr,
241                                       tBLE_ADDR_TYPE addr_type) {
242   inc_func_call_count(__func__);
243   return test::mock::stack_acl::acl_create_le_connection_with_id(id, bd_addr,
244                                                                  addr_type);
245 }
acl_is_role_switch_allowed()246 bool acl_is_role_switch_allowed() {
247   inc_func_call_count(__func__);
248   return test::mock::stack_acl::acl_is_role_switch_allowed();
249 }
acl_is_switch_role_idle(const RawAddress & bd_addr,tBT_TRANSPORT transport)250 bool acl_is_switch_role_idle(const RawAddress& bd_addr,
251                              tBT_TRANSPORT transport) {
252   inc_func_call_count(__func__);
253   return test::mock::stack_acl::acl_is_switch_role_idle(bd_addr, transport);
254 }
acl_peer_supports_ble_2m_phy(uint16_t hci_handle)255 bool acl_peer_supports_ble_2m_phy(uint16_t hci_handle) {
256   inc_func_call_count(__func__);
257   return test::mock::stack_acl::acl_peer_supports_ble_2m_phy(hci_handle);
258 }
acl_peer_supports_ble_coded_phy(uint16_t hci_handle)259 bool acl_peer_supports_ble_coded_phy(uint16_t hci_handle) {
260   inc_func_call_count(__func__);
261   return test::mock::stack_acl::acl_peer_supports_ble_coded_phy(hci_handle);
262 }
acl_peer_supports_ble_connection_parameters_request(const RawAddress & remote_bda)263 bool acl_peer_supports_ble_connection_parameters_request(
264     const RawAddress& remote_bda) {
265   inc_func_call_count(__func__);
266   return test::mock::stack_acl::
267       acl_peer_supports_ble_connection_parameters_request(remote_bda);
268 }
acl_peer_supports_ble_packet_extension(uint16_t hci_handle)269 bool acl_peer_supports_ble_packet_extension(uint16_t hci_handle) {
270   inc_func_call_count(__func__);
271   return test::mock::stack_acl::acl_peer_supports_ble_packet_extension(
272       hci_handle);
273 }
acl_peer_supports_sniff_subrating(const RawAddress & remote_bda)274 bool acl_peer_supports_sniff_subrating(const RawAddress& remote_bda) {
275   inc_func_call_count(__func__);
276   return test::mock::stack_acl::acl_peer_supports_sniff_subrating(remote_bda);
277 }
acl_peer_supports_ble_connection_subrating(const RawAddress & remote_bda)278 bool acl_peer_supports_ble_connection_subrating(const RawAddress& remote_bda) {
279   inc_func_call_count(__func__);
280   return test::mock::stack_acl::acl_peer_supports_ble_connection_subrating(
281       remote_bda);
282 }
acl_peer_supports_ble_connection_subrating_host(const RawAddress & remote_bda)283 bool acl_peer_supports_ble_connection_subrating_host(
284     const RawAddress& remote_bda) {
285   inc_func_call_count(__func__);
286   return test::mock::stack_acl::acl_peer_supports_ble_connection_subrating_host(
287       remote_bda);
288 }
acl_refresh_remote_address(const RawAddress & identity_address,tBLE_ADDR_TYPE identity_address_type,const RawAddress & bda,tBTM_SEC_BLE::tADDRESS_TYPE rra_type,const RawAddress & rpa)289 bool acl_refresh_remote_address(const RawAddress& identity_address,
290                                 tBLE_ADDR_TYPE identity_address_type,
291                                 const RawAddress& bda,
292                                 tBTM_SEC_BLE::tADDRESS_TYPE rra_type,
293                                 const RawAddress& rpa) {
294   inc_func_call_count(__func__);
295   return test::mock::stack_acl::acl_refresh_remote_address(
296       identity_address, identity_address_type, bda, rra_type, rpa);
297 }
acl_set_peer_le_features_from_handle(uint16_t hci_handle,const uint8_t * p)298 bool acl_set_peer_le_features_from_handle(uint16_t hci_handle,
299                                           const uint8_t* p) {
300   inc_func_call_count(__func__);
301   return test::mock::stack_acl::acl_set_peer_le_features_from_handle(hci_handle,
302                                                                      p);
303 }
sco_peer_supports_esco_2m_phy(const RawAddress & remote_bda)304 bool sco_peer_supports_esco_2m_phy(const RawAddress& remote_bda) {
305   inc_func_call_count(__func__);
306   return test::mock::stack_acl::sco_peer_supports_esco_2m_phy(remote_bda);
307 }
sco_peer_supports_esco_3m_phy(const RawAddress & remote_bda)308 bool sco_peer_supports_esco_3m_phy(const RawAddress& remote_bda) {
309   inc_func_call_count(__func__);
310   return test::mock::stack_acl::sco_peer_supports_esco_3m_phy(remote_bda);
311 }
acl_send_data_packet_br_edr(const RawAddress & bd_addr,BT_HDR * p_buf)312 void acl_send_data_packet_br_edr(const RawAddress& bd_addr, BT_HDR* p_buf) {
313   inc_func_call_count(__func__);
314   test::mock::stack_acl::acl_send_data_packet_br_edr(bd_addr, p_buf);
315 }
acl_create_classic_connection(const RawAddress & bd_addr,bool there_are_high_priority_channels,bool is_bonding)316 void acl_create_classic_connection(const RawAddress& bd_addr,
317                                    bool there_are_high_priority_channels,
318                                    bool is_bonding) {
319   inc_func_call_count(__func__);
320   return test::mock::stack_acl::acl_create_classic_connection(
321       bd_addr, there_are_high_priority_channels, is_bonding);
322 }
IsEprAvailable(const tACL_CONN & p_acl)323 bool IsEprAvailable(const tACL_CONN& p_acl) {
324   inc_func_call_count(__func__);
325   return test::mock::stack_acl::IsEprAvailable(p_acl);
326 }
acl_get_connection_from_address(const RawAddress & bd_addr,tBT_TRANSPORT transport)327 tACL_CONN* acl_get_connection_from_address(const RawAddress& bd_addr,
328                                            tBT_TRANSPORT transport) {
329   inc_func_call_count(__func__);
330   return test::mock::stack_acl::acl_get_connection_from_address(bd_addr,
331                                                                 transport);
332 }
btm_acl_for_bda(const RawAddress & bd_addr,tBT_TRANSPORT transport)333 tACL_CONN* btm_acl_for_bda(const RawAddress& bd_addr, tBT_TRANSPORT transport) {
334   inc_func_call_count(__func__);
335   return test::mock::stack_acl::btm_acl_for_bda(bd_addr, transport);
336 }
acl_get_connection_from_handle(uint16_t handle)337 tACL_CONN* acl_get_connection_from_handle(uint16_t handle) {
338   inc_func_call_count(__func__);
339   return test::mock::stack_acl::acl_get_connection_from_handle(handle);
340 }
BTM_GetLinkSuperTout(const RawAddress & remote_bda,uint16_t * p_timeout)341 tBTM_STATUS BTM_GetLinkSuperTout(const RawAddress& remote_bda,
342                                  uint16_t* p_timeout) {
343   inc_func_call_count(__func__);
344   return test::mock::stack_acl::BTM_GetLinkSuperTout(remote_bda, p_timeout);
345 }
BTM_GetRole(const RawAddress & remote_bd_addr,tHCI_ROLE * p_role)346 tBTM_STATUS BTM_GetRole(const RawAddress& remote_bd_addr, tHCI_ROLE* p_role) {
347   inc_func_call_count(__func__);
348   return test::mock::stack_acl::BTM_GetRole(remote_bd_addr, p_role);
349 }
BTM_ReadFailedContactCounter(const RawAddress & remote_bda,tBTM_CMPL_CB * p_cb)350 tBTM_STATUS BTM_ReadFailedContactCounter(const RawAddress& remote_bda,
351                                          tBTM_CMPL_CB* p_cb) {
352   inc_func_call_count(__func__);
353   return test::mock::stack_acl::BTM_ReadFailedContactCounter(remote_bda, p_cb);
354 }
BTM_ReadRSSI(const RawAddress & remote_bda,tBTM_CMPL_CB * p_cb)355 tBTM_STATUS BTM_ReadRSSI(const RawAddress& remote_bda, tBTM_CMPL_CB* p_cb) {
356   inc_func_call_count(__func__);
357   return test::mock::stack_acl::BTM_ReadRSSI(remote_bda, p_cb);
358 }
BTM_ReadTxPower(const RawAddress & remote_bda,tBT_TRANSPORT transport,tBTM_CMPL_CB * p_cb)359 tBTM_STATUS BTM_ReadTxPower(const RawAddress& remote_bda,
360                             tBT_TRANSPORT transport, tBTM_CMPL_CB* p_cb) {
361   inc_func_call_count(__func__);
362   return test::mock::stack_acl::BTM_ReadTxPower(remote_bda, transport, p_cb);
363 }
BTM_SetLinkSuperTout(const RawAddress & remote_bda,uint16_t timeout)364 tBTM_STATUS BTM_SetLinkSuperTout(const RawAddress& remote_bda,
365                                  uint16_t timeout) {
366   inc_func_call_count(__func__);
367   return test::mock::stack_acl::BTM_SetLinkSuperTout(remote_bda, timeout);
368 }
BTM_SwitchRoleToCentral(const RawAddress & remote_bd_addr)369 tBTM_STATUS BTM_SwitchRoleToCentral(const RawAddress& remote_bd_addr) {
370   inc_func_call_count(__func__);
371   return test::mock::stack_acl::BTM_SwitchRoleToCentral(remote_bd_addr);
372 }
btm_remove_acl(const RawAddress & bd_addr,tBT_TRANSPORT transport)373 tBTM_STATUS btm_remove_acl(const RawAddress& bd_addr, tBT_TRANSPORT transport) {
374   inc_func_call_count(__func__);
375   return test::mock::stack_acl::btm_remove_acl(bd_addr, transport);
376 }
btm_get_acl_disc_reason_code(void)377 tHCI_REASON btm_get_acl_disc_reason_code(void) {
378   inc_func_call_count(__func__);
379   return test::mock::stack_acl::btm_get_acl_disc_reason_code();
380 }
btm_is_acl_locally_initiated(void)381 bool btm_is_acl_locally_initiated(void) {
382   inc_func_call_count(__func__);
383   return test::mock::stack_acl::btm_is_acl_locally_initiated();
384 }
BTM_GetHCIConnHandle(const RawAddress & remote_bda,tBT_TRANSPORT transport)385 uint16_t BTM_GetHCIConnHandle(const RawAddress& remote_bda,
386                               tBT_TRANSPORT transport) {
387   inc_func_call_count(__func__);
388   return test::mock::stack_acl::BTM_GetHCIConnHandle(remote_bda, transport);
389 }
BTM_GetMaxPacketSize(const RawAddress & addr)390 uint16_t BTM_GetMaxPacketSize(const RawAddress& addr) {
391   inc_func_call_count(__func__);
392   return test::mock::stack_acl::BTM_GetMaxPacketSize(addr);
393 }
BTM_GetNumAclLinks(void)394 uint16_t BTM_GetNumAclLinks(void) {
395   inc_func_call_count(__func__);
396   return test::mock::stack_acl::BTM_GetNumAclLinks();
397 }
acl_get_supported_packet_types()398 uint16_t acl_get_supported_packet_types() {
399   inc_func_call_count(__func__);
400   return test::mock::stack_acl::acl_get_supported_packet_types();
401 }
BTM_GetPeerSCA(const RawAddress & remote_bda,tBT_TRANSPORT transport)402 uint8_t BTM_GetPeerSCA(const RawAddress& remote_bda, tBT_TRANSPORT transport) {
403   inc_func_call_count(__func__);
404   return test::mock::stack_acl::BTM_GetPeerSCA(remote_bda, transport);
405 }
BTM_SetTraceLevel(uint8_t new_level)406 uint8_t BTM_SetTraceLevel(uint8_t new_level) {
407   inc_func_call_count(__func__);
408   return test::mock::stack_acl::BTM_SetTraceLevel(new_level);
409 }
acl_link_role_from_handle(uint16_t handle)410 uint8_t acl_link_role_from_handle(uint16_t handle) {
411   inc_func_call_count(__func__);
412   return test::mock::stack_acl::acl_link_role_from_handle(handle);
413 }
btm_handle_to_acl_index(uint16_t hci_handle)414 uint8_t btm_handle_to_acl_index(uint16_t hci_handle) {
415   inc_func_call_count(__func__);
416   return test::mock::stack_acl::btm_handle_to_acl_index(hci_handle);
417 }
BTM_ReadRemoteFeatures(const RawAddress & addr)418 uint8_t* BTM_ReadRemoteFeatures(const RawAddress& addr) {
419   inc_func_call_count(__func__);
420   return test::mock::stack_acl::BTM_ReadRemoteFeatures(addr);
421 }
ACL_RegisterClient(struct acl_client_callback_s * callbacks)422 void ACL_RegisterClient(struct acl_client_callback_s* callbacks) {
423   inc_func_call_count(__func__);
424   test::mock::stack_acl::ACL_RegisterClient(callbacks);
425 }
ACL_UnregisterClient(struct acl_client_callback_s * callbacks)426 void ACL_UnregisterClient(struct acl_client_callback_s* callbacks) {
427   inc_func_call_count(__func__);
428   test::mock::stack_acl::ACL_UnregisterClient(callbacks);
429 }
BTM_ReadConnectionAddr(const RawAddress & remote_bda,RawAddress & local_conn_addr,tBLE_ADDR_TYPE * p_addr_type)430 void BTM_ReadConnectionAddr(const RawAddress& remote_bda,
431                             RawAddress& local_conn_addr,
432                             tBLE_ADDR_TYPE* p_addr_type) {
433   inc_func_call_count(__func__);
434   test::mock::stack_acl::BTM_ReadConnectionAddr(remote_bda, local_conn_addr,
435                                                 p_addr_type);
436 }
BTM_RequestPeerSCA(const RawAddress & remote_bda,tBT_TRANSPORT transport)437 void BTM_RequestPeerSCA(const RawAddress& remote_bda, tBT_TRANSPORT transport) {
438   inc_func_call_count(__func__);
439   test::mock::stack_acl::BTM_RequestPeerSCA(remote_bda, transport);
440 }
BTM_acl_after_controller_started(const controller_t * controller)441 void BTM_acl_after_controller_started(const controller_t* controller) {
442   inc_func_call_count(__func__);
443   test::mock::stack_acl::BTM_acl_after_controller_started(controller);
444 }
BTM_block_role_switch_for(const RawAddress & peer_addr)445 void BTM_block_role_switch_for(const RawAddress& peer_addr) {
446   inc_func_call_count(__func__);
447   test::mock::stack_acl::BTM_block_role_switch_for(peer_addr);
448 }
BTM_block_sniff_mode_for(const RawAddress & peer_addr)449 void BTM_block_sniff_mode_for(const RawAddress& peer_addr) {
450   inc_func_call_count(__func__);
451   test::mock::stack_acl::BTM_block_sniff_mode_for(peer_addr);
452 }
BTM_default_block_role_switch()453 void BTM_default_block_role_switch() {
454   inc_func_call_count(__func__);
455   test::mock::stack_acl::BTM_default_block_role_switch();
456 }
BTM_default_unblock_role_switch()457 void BTM_default_unblock_role_switch() {
458   inc_func_call_count(__func__);
459   test::mock::stack_acl::BTM_default_unblock_role_switch();
460 }
BTM_unblock_role_switch_for(const RawAddress & peer_addr)461 void BTM_unblock_role_switch_for(const RawAddress& peer_addr) {
462   inc_func_call_count(__func__);
463   test::mock::stack_acl::BTM_unblock_role_switch_for(peer_addr);
464 }
BTM_unblock_sniff_mode_for(const RawAddress & peer_addr)465 void BTM_unblock_sniff_mode_for(const RawAddress& peer_addr) {
466   inc_func_call_count(__func__);
467   test::mock::stack_acl::BTM_unblock_sniff_mode_for(peer_addr);
468 }
HACK_acl_check_sm4(tBTM_SEC_DEV_REC & record)469 void HACK_acl_check_sm4(tBTM_SEC_DEV_REC& record) {
470   inc_func_call_count(__func__);
471   test::mock::stack_acl::HACK_acl_check_sm4(record);
472 }
acl_accept_connection_request(const RawAddress & bd_addr,uint8_t role)473 void acl_accept_connection_request(const RawAddress& bd_addr, uint8_t role) {
474   inc_func_call_count(__func__);
475   test::mock::stack_acl::acl_accept_connection_request(bd_addr, role);
476 }
acl_disconnect_after_role_switch(uint16_t conn_handle,tHCI_STATUS reason,std::string comment)477 void acl_disconnect_after_role_switch(uint16_t conn_handle, tHCI_STATUS reason,
478                                       std::string comment) {
479   inc_func_call_count(__func__);
480   test::mock::stack_acl::acl_disconnect_after_role_switch(conn_handle, reason,
481                                                           comment);
482 }
acl_disconnect_from_handle(uint16_t handle,tHCI_STATUS reason,std::string comment)483 void acl_disconnect_from_handle(uint16_t handle, tHCI_STATUS reason,
484                                 std::string comment) {
485   inc_func_call_count(__func__);
486   test::mock::stack_acl::acl_disconnect_from_handle(handle, reason, comment);
487 }
acl_link_segments_xmitted(BT_HDR * p_msg)488 void acl_link_segments_xmitted(BT_HDR* p_msg) {
489   inc_func_call_count(__func__);
490   test::mock::stack_acl::acl_link_segments_xmitted(p_msg);
491 }
acl_packets_completed(uint16_t handle,uint16_t credits)492 void acl_packets_completed(uint16_t handle, uint16_t credits) {
493   inc_func_call_count(__func__);
494   test::mock::stack_acl::acl_packets_completed(handle, credits);
495 }
acl_process_extended_features(uint16_t handle,uint8_t current_page_number,uint8_t max_page_number,uint64_t features)496 void acl_process_extended_features(uint16_t handle, uint8_t current_page_number,
497                                    uint8_t max_page_number, uint64_t features) {
498   inc_func_call_count(__func__);
499   test::mock::stack_acl::acl_process_extended_features(
500       handle, current_page_number, max_page_number, features);
501 }
acl_process_supported_features(uint16_t handle,uint64_t features)502 void acl_process_supported_features(uint16_t handle, uint64_t features) {
503   inc_func_call_count(__func__);
504   test::mock::stack_acl::acl_process_supported_features(handle, features);
505 }
acl_rcv_acl_data(BT_HDR * p_msg)506 void acl_rcv_acl_data(BT_HDR* p_msg) {
507   inc_func_call_count(__func__);
508   test::mock::stack_acl::acl_rcv_acl_data(p_msg);
509 }
acl_reject_connection_request(const RawAddress & bd_addr,uint8_t reason)510 void acl_reject_connection_request(const RawAddress& bd_addr, uint8_t reason) {
511   inc_func_call_count(__func__);
512   test::mock::stack_acl::acl_reject_connection_request(bd_addr, reason);
513 }
acl_send_data_packet_ble(const RawAddress & bd_addr,BT_HDR * p_buf)514 void acl_send_data_packet_ble(const RawAddress& bd_addr, BT_HDR* p_buf) {
515   inc_func_call_count(__func__);
516   test::mock::stack_acl::acl_send_data_packet_ble(bd_addr, p_buf);
517 }
acl_set_disconnect_reason(tHCI_STATUS acl_disc_reason)518 void acl_set_disconnect_reason(tHCI_STATUS acl_disc_reason) {
519   inc_func_call_count(__func__);
520   test::mock::stack_acl::acl_set_disconnect_reason(acl_disc_reason);
521 }
acl_write_automatic_flush_timeout(const RawAddress & bd_addr,uint16_t flush_timeout_in_ticks)522 void acl_write_automatic_flush_timeout(const RawAddress& bd_addr,
523                                        uint16_t flush_timeout_in_ticks) {
524   inc_func_call_count(__func__);
525   test::mock::stack_acl::acl_write_automatic_flush_timeout(
526       bd_addr, flush_timeout_in_ticks);
527 }
btm_acl_connected(const RawAddress & bda,uint16_t handle,tHCI_STATUS status,uint8_t enc_mode)528 void btm_acl_connected(const RawAddress& bda, uint16_t handle,
529                        tHCI_STATUS status, uint8_t enc_mode) {
530   inc_func_call_count(__func__);
531   test::mock::stack_acl::btm_acl_connected(bda, handle, status, enc_mode);
532 }
btm_acl_connection_request(const RawAddress & bda,uint8_t * dc)533 void btm_acl_connection_request(const RawAddress& bda, uint8_t* dc) {
534   inc_func_call_count(__func__);
535   test::mock::stack_acl::btm_acl_connection_request(bda, dc);
536 }
btm_acl_created(const RawAddress & bda,uint16_t hci_handle,tHCI_ROLE link_role,tBT_TRANSPORT transport)537 void btm_acl_created(const RawAddress& bda, uint16_t hci_handle,
538                      tHCI_ROLE link_role, tBT_TRANSPORT transport) {
539   inc_func_call_count(__func__);
540   test::mock::stack_acl::btm_acl_created(bda, hci_handle, link_role, transport);
541 }
btm_acl_device_down(void)542 void btm_acl_device_down(void) {
543   inc_func_call_count(__func__);
544   test::mock::stack_acl::btm_acl_device_down();
545 }
btm_acl_disconnected(tHCI_STATUS status,uint16_t handle,tHCI_REASON reason)546 void btm_acl_disconnected(tHCI_STATUS status, uint16_t handle,
547                           tHCI_REASON reason) {
548   inc_func_call_count(__func__);
549   test::mock::stack_acl::btm_acl_disconnected(status, handle, reason);
550 }
btm_acl_iso_disconnected(uint16_t handle,tHCI_REASON reason)551 void btm_acl_iso_disconnected(uint16_t handle, tHCI_REASON reason) {
552   inc_func_call_count(__func__);
553   test::mock::stack_acl::btm_acl_iso_disconnected(handle, reason);
554 }
btm_acl_encrypt_change(uint16_t handle,uint8_t status,uint8_t encr_enable)555 void btm_acl_encrypt_change(uint16_t handle, uint8_t status,
556                             uint8_t encr_enable) {
557   inc_func_call_count(__func__);
558   test::mock::stack_acl::btm_acl_encrypt_change(handle, status, encr_enable);
559 }
btm_acl_notif_conn_collision(const RawAddress & bda)560 void btm_acl_notif_conn_collision(const RawAddress& bda) {
561   inc_func_call_count(__func__);
562   test::mock::stack_acl::btm_acl_notif_conn_collision(bda);
563 }
btm_acl_paging(BT_HDR * p,const RawAddress & bda)564 void btm_acl_paging(BT_HDR* p, const RawAddress& bda) {
565   inc_func_call_count(__func__);
566   test::mock::stack_acl::btm_acl_paging(p, bda);
567 }
btm_acl_process_sca_cmpl_pkt(uint8_t len,uint8_t * data)568 void btm_acl_process_sca_cmpl_pkt(uint8_t len, uint8_t* data) {
569   inc_func_call_count(__func__);
570   test::mock::stack_acl::btm_acl_process_sca_cmpl_pkt(len, data);
571 }
btm_acl_removed(uint16_t handle)572 void btm_acl_removed(uint16_t handle) {
573   inc_func_call_count(__func__);
574   test::mock::stack_acl::btm_acl_removed(handle);
575 }
btm_acl_reset_paging(void)576 void btm_acl_reset_paging(void) {
577   inc_func_call_count(__func__);
578   test::mock::stack_acl::btm_acl_reset_paging();
579 }
btm_acl_resubmit_page(void)580 void btm_acl_resubmit_page(void) {
581   inc_func_call_count(__func__);
582   test::mock::stack_acl::btm_acl_resubmit_page();
583 }
btm_acl_role_changed(tHCI_STATUS hci_status,const RawAddress & bd_addr,tHCI_ROLE new_role)584 void btm_acl_role_changed(tHCI_STATUS hci_status, const RawAddress& bd_addr,
585                           tHCI_ROLE new_role) {
586   inc_func_call_count(__func__);
587   test::mock::stack_acl::btm_acl_role_changed(hci_status, bd_addr, new_role);
588 }
btm_acl_set_paging(bool value)589 void btm_acl_set_paging(bool value) {
590   inc_func_call_count(__func__);
591   test::mock::stack_acl::btm_acl_set_paging(value);
592 }
btm_acl_update_conn_addr(uint16_t handle,const RawAddress & address)593 void btm_acl_update_conn_addr(uint16_t handle, const RawAddress& address) {
594   inc_func_call_count(__func__);
595   test::mock::stack_acl::btm_acl_update_conn_addr(handle, address);
596 }
btm_configure_data_path(uint8_t direction,uint8_t path_id,std::vector<uint8_t> vendor_config)597 void btm_configure_data_path(uint8_t direction, uint8_t path_id,
598                              std::vector<uint8_t> vendor_config) {
599   inc_func_call_count(__func__);
600   test::mock::stack_acl::btm_configure_data_path(direction, path_id,
601                                                  vendor_config);
602 }
btm_acl_update_inquiry_status(uint8_t status)603 void btm_acl_update_inquiry_status(uint8_t status) {
604   inc_func_call_count(__func__);
605   test::mock::stack_acl::btm_acl_update_inquiry_status(status);
606 }
btm_ble_refresh_local_resolvable_private_addr(const RawAddress & pseudo_addr,const RawAddress & local_rpa)607 void btm_ble_refresh_local_resolvable_private_addr(
608     const RawAddress& pseudo_addr, const RawAddress& local_rpa) {
609   inc_func_call_count(__func__);
610   test::mock::stack_acl::btm_ble_refresh_local_resolvable_private_addr(
611       pseudo_addr, local_rpa);
612 }
btm_cont_rswitch_from_handle(uint16_t hci_handle)613 void btm_cont_rswitch_from_handle(uint16_t hci_handle) {
614   inc_func_call_count(__func__);
615   test::mock::stack_acl::btm_cont_rswitch_from_handle(hci_handle);
616 }
btm_establish_continue_from_address(const RawAddress & bda,tBT_TRANSPORT transport)617 void btm_establish_continue_from_address(const RawAddress& bda,
618                                          tBT_TRANSPORT transport) {
619   inc_func_call_count(__func__);
620   test::mock::stack_acl::btm_establish_continue_from_address(bda, transport);
621 }
btm_process_remote_ext_features(tACL_CONN * p_acl_cb,uint8_t max_page_number)622 void btm_process_remote_ext_features(tACL_CONN* p_acl_cb,
623                                      uint8_t max_page_number) {
624   inc_func_call_count(__func__);
625   test::mock::stack_acl::btm_process_remote_ext_features(p_acl_cb,
626                                                          max_page_number);
627 }
btm_process_remote_version_complete(uint8_t status,uint16_t handle,uint8_t lmp_version,uint16_t manufacturer,uint16_t lmp_subversion)628 void btm_process_remote_version_complete(uint8_t status, uint16_t handle,
629                                          uint8_t lmp_version,
630                                          uint16_t manufacturer,
631                                          uint16_t lmp_subversion) {
632   inc_func_call_count(__func__);
633   test::mock::stack_acl::btm_process_remote_version_complete(
634       status, handle, lmp_version, manufacturer, lmp_subversion);
635 }
btm_read_automatic_flush_timeout_complete(uint8_t * p)636 void btm_read_automatic_flush_timeout_complete(uint8_t* p) {
637   inc_func_call_count(__func__);
638   test::mock::stack_acl::btm_read_automatic_flush_timeout_complete(p);
639 }
btm_read_failed_contact_counter_complete(uint8_t * p)640 void btm_read_failed_contact_counter_complete(uint8_t* p) {
641   inc_func_call_count(__func__);
642   test::mock::stack_acl::btm_read_failed_contact_counter_complete(p);
643 }
btm_read_failed_contact_counter_timeout(UNUSED_ATTR void * data)644 void btm_read_failed_contact_counter_timeout(UNUSED_ATTR void* data) {
645   inc_func_call_count(__func__);
646   test::mock::stack_acl::btm_read_failed_contact_counter_timeout(data);
647 }
btm_read_link_quality_complete(uint8_t * p,uint16_t evt_len)648 void btm_read_link_quality_complete(uint8_t* p, uint16_t evt_len) {
649   inc_func_call_count(__func__);
650   test::mock::stack_acl::btm_read_link_quality_complete(p, evt_len);
651 }
btm_read_link_quality_timeout(UNUSED_ATTR void * data)652 void btm_read_link_quality_timeout(UNUSED_ATTR void* data) {
653   inc_func_call_count(__func__);
654   test::mock::stack_acl::btm_read_link_quality_timeout(data);
655 }
btm_read_remote_ext_features(uint16_t handle,uint8_t page_number)656 void btm_read_remote_ext_features(uint16_t handle, uint8_t page_number) {
657   inc_func_call_count(__func__);
658   test::mock::stack_acl::btm_read_remote_ext_features(handle, page_number);
659 }
btm_read_remote_ext_features_complete(uint16_t handle,uint8_t page_num,uint8_t max_page,uint8_t * features)660 void btm_read_remote_ext_features_complete(uint16_t handle, uint8_t page_num,
661                                            uint8_t max_page,
662                                            uint8_t* features) {
663   inc_func_call_count(__func__);
664   test::mock::stack_acl::btm_read_remote_ext_features_complete(
665       handle, page_num, max_page, features);
666 }
btm_read_remote_ext_features_complete_raw(uint8_t * p,uint8_t evt_len)667 void btm_read_remote_ext_features_complete_raw(uint8_t* p, uint8_t evt_len) {
668   inc_func_call_count(__func__);
669   test::mock::stack_acl::btm_read_remote_ext_features_complete_raw(p, evt_len);
670 }
btm_read_remote_ext_features_failed(uint8_t status,uint16_t handle)671 void btm_read_remote_ext_features_failed(uint8_t status, uint16_t handle) {
672   inc_func_call_count(__func__);
673   test::mock::stack_acl::btm_read_remote_ext_features_failed(status, handle);
674 }
btm_read_remote_features_complete(uint16_t handle,uint8_t * features)675 void btm_read_remote_features_complete(uint16_t handle, uint8_t* features) {
676   inc_func_call_count(__func__);
677   test::mock::stack_acl::btm_read_remote_features_complete(handle, features);
678 }
btm_read_remote_version_complete(tHCI_STATUS status,uint16_t handle,uint8_t lmp_version,uint16_t manufacturer,uint16_t lmp_subversion)679 void btm_read_remote_version_complete(tHCI_STATUS status, uint16_t handle,
680                                       uint8_t lmp_version,
681                                       uint16_t manufacturer,
682                                       uint16_t lmp_subversion) {
683   inc_func_call_count(__func__);
684   test::mock::stack_acl::btm_read_remote_version_complete(
685       status, handle, lmp_version, manufacturer, lmp_subversion);
686 }
btm_read_rssi_complete(uint8_t * p,uint16_t evt_len)687 void btm_read_rssi_complete(uint8_t* p, uint16_t evt_len) {
688   inc_func_call_count(__func__);
689   test::mock::stack_acl::btm_read_rssi_complete(p, evt_len);
690 }
btm_read_rssi_timeout(UNUSED_ATTR void * data)691 void btm_read_rssi_timeout(UNUSED_ATTR void* data) {
692   inc_func_call_count(__func__);
693   test::mock::stack_acl::btm_read_rssi_timeout(data);
694 }
btm_read_tx_power_complete(uint8_t * p,uint16_t evt_len,bool is_ble)695 void btm_read_tx_power_complete(uint8_t* p, uint16_t evt_len, bool is_ble) {
696   inc_func_call_count(__func__);
697   test::mock::stack_acl::btm_read_tx_power_complete(p, evt_len, is_ble);
698 }
btm_read_tx_power_timeout(UNUSED_ATTR void * data)699 void btm_read_tx_power_timeout(UNUSED_ATTR void* data) {
700   inc_func_call_count(__func__);
701   test::mock::stack_acl::btm_read_tx_power_timeout(data);
702 }
btm_rejectlist_role_change_device(const RawAddress & bd_addr,uint8_t hci_status)703 void btm_rejectlist_role_change_device(const RawAddress& bd_addr,
704                                        uint8_t hci_status) {
705   inc_func_call_count(__func__);
706   test::mock::stack_acl::btm_rejectlist_role_change_device(bd_addr, hci_status);
707 }
btm_set_link_policy(tACL_CONN * conn,tLINK_POLICY policy)708 void btm_set_link_policy(tACL_CONN* conn, tLINK_POLICY policy) {
709   inc_func_call_count(__func__);
710   test::mock::stack_acl::btm_set_link_policy(conn, policy);
711 }
btm_set_packet_types_from_address(const RawAddress & bd_addr,uint16_t pkt_types)712 void btm_set_packet_types_from_address(const RawAddress& bd_addr,
713                                        uint16_t pkt_types) {
714   inc_func_call_count(__func__);
715   test::mock::stack_acl::btm_set_packet_types_from_address(bd_addr, pkt_types);
716 }
hci_btm_set_link_supervision_timeout(tACL_CONN & link,uint16_t timeout)717 void hci_btm_set_link_supervision_timeout(tACL_CONN& link, uint16_t timeout) {
718   inc_func_call_count(__func__);
719   test::mock::stack_acl::hci_btm_set_link_supervision_timeout(link, timeout);
720 }
btm_connection_request(const RawAddress & bda,const bluetooth::types::ClassOfDevice & cod)721 void btm_connection_request(const RawAddress& bda,
722                             const bluetooth::types::ClassOfDevice& cod) {
723   test::mock::stack_acl::btm_connection_request(bda, cod);
724 }
on_acl_br_edr_connected(const RawAddress & bda,uint16_t handle,uint8_t enc_mode,bool locally_initiated)725 void on_acl_br_edr_connected(const RawAddress& bda, uint16_t handle,
726                              uint8_t enc_mode, bool locally_initiated) {
727   inc_func_call_count(__func__);
728   test::mock::stack_acl::on_acl_br_edr_connected(bda, handle, enc_mode,
729                                                  locally_initiated);
730 }
on_acl_br_edr_failed(const RawAddress & bda,tHCI_STATUS status,bool locally_initiated)731 void on_acl_br_edr_failed(const RawAddress& bda, tHCI_STATUS status,
732                           bool locally_initiated) {
733   inc_func_call_count(__func__);
734   test::mock::stack_acl::on_acl_br_edr_failed(bda, status, locally_initiated);
735 }
736 
BTM_unblock_role_switch_and_sniff_mode_for(const RawAddress & peer_addr)737 void BTM_unblock_role_switch_and_sniff_mode_for(const RawAddress& peer_addr) {
738   inc_func_call_count(__func__);
739   test::mock::stack_acl::BTM_unblock_role_switch_and_sniff_mode_for(peer_addr);
740 }
741 
742 // END mockcify generation
743