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:127
20 */
21
22 #include <cstdint>
23 #include <map>
24 #include <string>
25
26 extern std::map<std::string, int> mock_function_count_map;
27
28 #include "stack/acl/acl.h"
29 #include "stack/include/acl_api.h"
30 #include "stack/include/hci_error_code.h"
31 #include "types/bt_transport.h"
32 #include "types/hci_role.h"
33 #include "types/raw_address.h"
34
35 #ifndef UNUSED_ATTR
36 #define UNUSED_ATTR
37 #endif
38
IsEprAvailable(const tACL_CONN & p_acl)39 bool IsEprAvailable(const tACL_CONN& p_acl) {
40 mock_function_count_map[__func__]++;
41 return false;
42 }
ACL_SupportTransparentSynchronousData(const RawAddress & bd_addr)43 bool ACL_SupportTransparentSynchronousData(const RawAddress& bd_addr) {
44 mock_function_count_map[__func__]++;
45 return false;
46 }
BTM_BLE_IS_RESOLVE_BDA(const RawAddress & x)47 bool BTM_BLE_IS_RESOLVE_BDA(const RawAddress& x) {
48 mock_function_count_map[__func__]++;
49 return false;
50 }
BTM_IsAclConnectionUp(const RawAddress & remote_bda,tBT_TRANSPORT transport)51 bool BTM_IsAclConnectionUp(const RawAddress& remote_bda,
52 tBT_TRANSPORT transport) {
53 mock_function_count_map[__func__]++;
54 return false;
55 }
BTM_IsAclConnectionUpAndHandleValid(const RawAddress & remote_bda,tBT_TRANSPORT transport)56 bool BTM_IsAclConnectionUpAndHandleValid(const RawAddress& remote_bda,
57 tBT_TRANSPORT transport) {
58 mock_function_count_map[__func__]++;
59 return false;
60 }
BTM_IsAclConnectionUpFromHandle(uint16_t hci_handle)61 bool BTM_IsAclConnectionUpFromHandle(uint16_t hci_handle) {
62 mock_function_count_map[__func__]++;
63 return false;
64 }
BTM_IsBleConnection(uint16_t hci_handle)65 bool BTM_IsBleConnection(uint16_t hci_handle) {
66 mock_function_count_map[__func__]++;
67 return false;
68 }
BTM_IsPhy2mSupported(const RawAddress & remote_bda,tBT_TRANSPORT transport)69 bool BTM_IsPhy2mSupported(const RawAddress& remote_bda,
70 tBT_TRANSPORT transport) {
71 mock_function_count_map[__func__]++;
72 return false;
73 }
BTM_ReadRemoteConnectionAddr(const RawAddress & pseudo_addr,RawAddress & conn_addr,tBLE_ADDR_TYPE * p_addr_type)74 bool BTM_ReadRemoteConnectionAddr(const RawAddress& pseudo_addr,
75 RawAddress& conn_addr,
76 tBLE_ADDR_TYPE* p_addr_type) {
77 mock_function_count_map[__func__]++;
78 return false;
79 }
BTM_ReadRemoteVersion(const RawAddress & addr,uint8_t * lmp_version,uint16_t * manufacturer,uint16_t * lmp_sub_version)80 bool BTM_ReadRemoteVersion(const RawAddress& addr, uint8_t* lmp_version,
81 uint16_t* manufacturer, uint16_t* lmp_sub_version) {
82 mock_function_count_map[__func__]++;
83 return false;
84 }
acl_create_le_connection(const RawAddress & bd_addr)85 bool acl_create_le_connection(const RawAddress& bd_addr) {
86 mock_function_count_map[__func__]++;
87 return false;
88 }
acl_create_le_connection_with_id(uint8_t id,const RawAddress & bd_addr)89 bool acl_create_le_connection_with_id(uint8_t id, const RawAddress& bd_addr) {
90 mock_function_count_map[__func__]++;
91 return false;
92 }
acl_is_role_switch_allowed()93 bool acl_is_role_switch_allowed() {
94 mock_function_count_map[__func__]++;
95 return false;
96 }
acl_is_switch_role_idle(const RawAddress & bd_addr,tBT_TRANSPORT transport)97 bool acl_is_switch_role_idle(const RawAddress& bd_addr,
98 tBT_TRANSPORT transport) {
99 mock_function_count_map[__func__]++;
100 return false;
101 }
acl_peer_supports_ble_2m_phy(uint16_t hci_handle)102 bool acl_peer_supports_ble_2m_phy(uint16_t hci_handle) {
103 mock_function_count_map[__func__]++;
104 return false;
105 }
acl_peer_supports_ble_coded_phy(uint16_t hci_handle)106 bool acl_peer_supports_ble_coded_phy(uint16_t hci_handle) {
107 mock_function_count_map[__func__]++;
108 return false;
109 }
acl_peer_supports_ble_connection_parameters_request(const RawAddress & remote_bda)110 bool acl_peer_supports_ble_connection_parameters_request(
111 const RawAddress& remote_bda) {
112 mock_function_count_map[__func__]++;
113 return false;
114 }
acl_peer_supports_ble_packet_extension(uint16_t hci_handle)115 bool acl_peer_supports_ble_packet_extension(uint16_t hci_handle) {
116 mock_function_count_map[__func__]++;
117 return false;
118 }
acl_peer_supports_sniff_subrating(const RawAddress & remote_bda)119 bool acl_peer_supports_sniff_subrating(const RawAddress& remote_bda) {
120 mock_function_count_map[__func__]++;
121 return false;
122 }
acl_refresh_remote_address(const RawAddress & identity_address,tBLE_ADDR_TYPE identity_address_type,const RawAddress & bda,tBLE_ADDR_TYPE rra_type,const RawAddress & rpa)123 bool acl_refresh_remote_address(const RawAddress& identity_address,
124 tBLE_ADDR_TYPE identity_address_type,
125 const RawAddress& bda, tBLE_ADDR_TYPE rra_type,
126 const RawAddress& rpa) {
127 mock_function_count_map[__func__]++;
128 return false;
129 }
acl_set_peer_le_features_from_handle(uint16_t hci_handle,const uint8_t * p)130 bool acl_set_peer_le_features_from_handle(uint16_t hci_handle,
131 const uint8_t* p) {
132 mock_function_count_map[__func__]++;
133 return false;
134 }
sco_peer_supports_esco_2m_phy(const RawAddress & remote_bda)135 bool sco_peer_supports_esco_2m_phy(const RawAddress& remote_bda) {
136 mock_function_count_map[__func__]++;
137 return false;
138 }
sco_peer_supports_esco_3m_phy(const RawAddress & remote_bda)139 bool sco_peer_supports_esco_3m_phy(const RawAddress& remote_bda) {
140 mock_function_count_map[__func__]++;
141 return false;
142 }
acl_address_from_handle(uint16_t handle)143 const RawAddress acl_address_from_handle(uint16_t handle) {
144 mock_function_count_map[__func__]++;
145 return RawAddress::kEmpty;
146 }
acl_send_data_packet_br_edr(const RawAddress & bd_addr,BT_HDR * p_buf)147 void acl_send_data_packet_br_edr([[maybe_unused]] const RawAddress& bd_addr,
148 BT_HDR* p_buf) {
149 mock_function_count_map[__func__]++;
150 }
acl_create_classic_connection(const RawAddress & bd_addr,bool there_are_high_priority_channels,bool is_bonding)151 void acl_create_classic_connection(const RawAddress& bd_addr,
152 bool there_are_high_priority_channels,
153 bool is_bonding) {
154 mock_function_count_map[__func__]++;
155 }
acl_get_connection_from_address(const RawAddress & bd_addr,tBT_TRANSPORT transport)156 tACL_CONN* acl_get_connection_from_address(const RawAddress& bd_addr,
157 tBT_TRANSPORT transport) {
158 mock_function_count_map[__func__]++;
159 return nullptr;
160 }
acl_get_connection_from_handle(uint16_t handle)161 tACL_CONN* acl_get_connection_from_handle(uint16_t handle) {
162 mock_function_count_map[__func__]++;
163 return nullptr;
164 }
BTM_GetLinkSuperTout(const RawAddress & remote_bda,uint16_t * p_timeout)165 tBTM_STATUS BTM_GetLinkSuperTout(const RawAddress& remote_bda,
166 uint16_t* p_timeout) {
167 mock_function_count_map[__func__]++;
168 return BTM_SUCCESS;
169 }
BTM_GetRole(const RawAddress & remote_bd_addr,tHCI_ROLE * p_role)170 tBTM_STATUS BTM_GetRole(const RawAddress& remote_bd_addr, tHCI_ROLE* p_role) {
171 mock_function_count_map[__func__]++;
172 return BTM_SUCCESS;
173 }
BTM_ReadFailedContactCounter(const RawAddress & remote_bda,tBTM_CMPL_CB * p_cb)174 tBTM_STATUS BTM_ReadFailedContactCounter(const RawAddress& remote_bda,
175 tBTM_CMPL_CB* p_cb) {
176 mock_function_count_map[__func__]++;
177 return BTM_SUCCESS;
178 }
BTM_ReadRSSI(const RawAddress & remote_bda,tBTM_CMPL_CB * p_cb)179 tBTM_STATUS BTM_ReadRSSI(const RawAddress& remote_bda, tBTM_CMPL_CB* p_cb) {
180 mock_function_count_map[__func__]++;
181 return BTM_SUCCESS;
182 }
BTM_ReadTxPower(const RawAddress & remote_bda,tBT_TRANSPORT transport,tBTM_CMPL_CB * p_cb)183 tBTM_STATUS BTM_ReadTxPower(const RawAddress& remote_bda,
184 tBT_TRANSPORT transport, tBTM_CMPL_CB* p_cb) {
185 mock_function_count_map[__func__]++;
186 return BTM_SUCCESS;
187 }
BTM_SetLinkSuperTout(const RawAddress & remote_bda,uint16_t timeout)188 tBTM_STATUS BTM_SetLinkSuperTout(const RawAddress& remote_bda,
189 uint16_t timeout) {
190 mock_function_count_map[__func__]++;
191 return BTM_SUCCESS;
192 }
BTM_SwitchRoleToCentral(const RawAddress & remote_bd_addr)193 tBTM_STATUS BTM_SwitchRoleToCentral(const RawAddress& remote_bd_addr) {
194 mock_function_count_map[__func__]++;
195 return BTM_SUCCESS;
196 }
btm_remove_acl(const RawAddress & bd_addr,tBT_TRANSPORT transport)197 tBTM_STATUS btm_remove_acl(const RawAddress& bd_addr, tBT_TRANSPORT transport) {
198 mock_function_count_map[__func__]++;
199 return BTM_SUCCESS;
200 }
BTM_GetHCIConnHandle(const RawAddress & remote_bda,tBT_TRANSPORT transport)201 uint16_t BTM_GetHCIConnHandle(const RawAddress& remote_bda,
202 tBT_TRANSPORT transport) {
203 mock_function_count_map[__func__]++;
204 return 0;
205 }
BTM_GetMaxPacketSize(const RawAddress & addr)206 uint16_t BTM_GetMaxPacketSize(const RawAddress& addr) {
207 mock_function_count_map[__func__]++;
208 return 0;
209 }
210 uint16_t mock_stack_acl_num_links = 0;
BTM_GetNumAclLinks(void)211 uint16_t BTM_GetNumAclLinks(void) {
212 mock_function_count_map[__func__]++;
213 return mock_stack_acl_num_links;
214 }
acl_get_supported_packet_types()215 uint16_t acl_get_supported_packet_types() {
216 mock_function_count_map[__func__]++;
217 return 0;
218 }
btm_get_acl_disc_reason_code(void)219 tHCI_REASON btm_get_acl_disc_reason_code(void) {
220 mock_function_count_map[__func__]++;
221 return HCI_SUCCESS;
222 }
BTM_GetPeerSCA(const RawAddress & remote_bda,tBT_TRANSPORT transport)223 uint8_t BTM_GetPeerSCA(const RawAddress& remote_bda, tBT_TRANSPORT transport) {
224 mock_function_count_map[__func__]++;
225 return 0;
226 }
BTM_SetTraceLevel(uint8_t new_level)227 uint8_t BTM_SetTraceLevel(uint8_t new_level) {
228 mock_function_count_map[__func__]++;
229 return 0;
230 }
acl_link_role_from_handle(uint16_t handle)231 uint8_t acl_link_role_from_handle(uint16_t handle) {
232 mock_function_count_map[__func__]++;
233 return 0;
234 }
btm_handle_to_acl_index(uint16_t hci_handle)235 uint8_t btm_handle_to_acl_index(uint16_t hci_handle) {
236 mock_function_count_map[__func__]++;
237 return 0;
238 }
BTM_ReadRemoteFeatures(const RawAddress & addr)239 uint8_t* BTM_ReadRemoteFeatures(const RawAddress& addr) {
240 mock_function_count_map[__func__]++;
241 return nullptr;
242 }
ACL_RegisterClient(struct acl_client_callback_s * callbacks)243 void ACL_RegisterClient(struct acl_client_callback_s* callbacks) {
244 mock_function_count_map[__func__]++;
245 }
ACL_UnregisterClient(struct acl_client_callback_s * callbacks)246 void ACL_UnregisterClient(struct acl_client_callback_s* callbacks) {
247 mock_function_count_map[__func__]++;
248 }
BTM_ReadConnectionAddr(const RawAddress & remote_bda,RawAddress & local_conn_addr,tBLE_ADDR_TYPE * p_addr_type)249 void BTM_ReadConnectionAddr(const RawAddress& remote_bda,
250 RawAddress& local_conn_addr,
251 tBLE_ADDR_TYPE* p_addr_type) {
252 mock_function_count_map[__func__]++;
253 }
BTM_RequestPeerSCA(const RawAddress & remote_bda,tBT_TRANSPORT transport)254 void BTM_RequestPeerSCA(const RawAddress& remote_bda, tBT_TRANSPORT transport) {
255 mock_function_count_map[__func__]++;
256 }
BTM_acl_after_controller_started(const controller_t * controller)257 void BTM_acl_after_controller_started(const controller_t* controller) {
258 mock_function_count_map[__func__]++;
259 }
BTM_block_role_switch_for(const RawAddress & peer_addr)260 void BTM_block_role_switch_for(const RawAddress& peer_addr) {
261 mock_function_count_map[__func__]++;
262 }
BTM_block_sniff_mode_for(const RawAddress & peer_addr)263 void BTM_block_sniff_mode_for(const RawAddress& peer_addr) {
264 mock_function_count_map[__func__]++;
265 }
BTM_default_block_role_switch()266 void BTM_default_block_role_switch() { mock_function_count_map[__func__]++; }
BTM_default_unblock_role_switch()267 void BTM_default_unblock_role_switch() { mock_function_count_map[__func__]++; }
BTM_unblock_role_switch_for(const RawAddress & peer_addr)268 void BTM_unblock_role_switch_for(const RawAddress& peer_addr) {
269 mock_function_count_map[__func__]++;
270 }
BTM_unblock_sniff_mode_for(const RawAddress & peer_addr)271 void BTM_unblock_sniff_mode_for(const RawAddress& peer_addr) {
272 mock_function_count_map[__func__]++;
273 }
acl_accept_connection_request(const RawAddress & bd_addr,uint8_t role)274 void acl_accept_connection_request(const RawAddress& bd_addr, uint8_t role) {
275 mock_function_count_map[__func__]++;
276 }
acl_disconnect_after_role_switch(uint16_t conn_handle,tHCI_STATUS reason)277 void acl_disconnect_after_role_switch(uint16_t conn_handle,
278 tHCI_STATUS reason) {
279 mock_function_count_map[__func__]++;
280 }
acl_disconnect_from_handle(uint16_t handle,tHCI_STATUS reason)281 void acl_disconnect_from_handle(uint16_t handle, tHCI_STATUS reason) {
282 mock_function_count_map[__func__]++;
283 }
acl_link_segments_xmitted(BT_HDR * p_msg)284 void acl_link_segments_xmitted(BT_HDR* p_msg) {
285 mock_function_count_map[__func__]++;
286 }
acl_packets_completed(uint16_t handle,uint16_t credits)287 void acl_packets_completed(uint16_t handle, uint16_t credits) {
288 mock_function_count_map[__func__]++;
289 }
acl_process_supported_features(uint16_t handle,uint64_t features)290 void acl_process_supported_features(uint16_t handle, uint64_t features) {
291 mock_function_count_map[__func__]++;
292 }
acl_process_extended_features(uint16_t handle,uint8_t current_page_number,uint8_t max_page_number,uint64_t features)293 void acl_process_extended_features(uint16_t handle, uint8_t current_page_number,
294 uint8_t max_page_number, uint64_t features) {
295 mock_function_count_map[__func__]++;
296 }
acl_process_num_completed_pkts(uint8_t * p,uint8_t evt_len)297 void acl_process_num_completed_pkts(uint8_t* p, uint8_t evt_len) {
298 mock_function_count_map[__func__]++;
299 }
acl_rcv_acl_data(BT_HDR * p_msg)300 void acl_rcv_acl_data(BT_HDR* p_msg) { mock_function_count_map[__func__]++; }
acl_reject_connection_request(const RawAddress & bd_addr,uint8_t reason)301 void acl_reject_connection_request(const RawAddress& bd_addr, uint8_t reason) {
302 mock_function_count_map[__func__]++;
303 }
acl_send_data_packet_ble(const RawAddress & bd_addr,BT_HDR * p_buf)304 void acl_send_data_packet_ble(const RawAddress& bd_addr, BT_HDR* p_buf) {
305 mock_function_count_map[__func__]++;
306 }
acl_set_disconnect_reason(tHCI_STATUS acl_disc_reason)307 void acl_set_disconnect_reason(tHCI_STATUS acl_disc_reason) {
308 mock_function_count_map[__func__]++;
309 }
acl_write_automatic_flush_timeout(const RawAddress & bd_addr,uint16_t flush_timeout_in_ticks)310 void acl_write_automatic_flush_timeout(const RawAddress& bd_addr,
311 uint16_t flush_timeout_in_ticks) {
312 mock_function_count_map[__func__]++;
313 }
btm_acl_connected(const RawAddress & bda,uint16_t handle,tHCI_STATUS status,uint8_t enc_mode)314 void btm_acl_connected(const RawAddress& bda, uint16_t handle,
315 tHCI_STATUS status, uint8_t enc_mode) {
316 mock_function_count_map[__func__]++;
317 }
btm_acl_connection_request(const RawAddress & bda,uint8_t * dc)318 void btm_acl_connection_request(const RawAddress& bda, uint8_t* dc) {
319 mock_function_count_map[__func__]++;
320 }
btm_acl_created(const RawAddress & bda,uint16_t hci_handle,tHCI_ROLE link_role,tBT_TRANSPORT transport)321 void btm_acl_created(const RawAddress& bda, uint16_t hci_handle,
322 tHCI_ROLE link_role, tBT_TRANSPORT transport) {
323 mock_function_count_map[__func__]++;
324 }
btm_acl_device_down(void)325 void btm_acl_device_down(void) { mock_function_count_map[__func__]++; }
btm_acl_disconnected(tHCI_STATUS status,uint16_t handle,tHCI_REASON reason)326 void btm_acl_disconnected(tHCI_STATUS status, uint16_t handle,
327 tHCI_REASON reason) {
328 mock_function_count_map[__func__]++;
329 }
btm_acl_encrypt_change(uint16_t handle,uint8_t status,uint8_t encr_enable)330 void btm_acl_encrypt_change(uint16_t handle, uint8_t status,
331 uint8_t encr_enable) {
332 mock_function_count_map[__func__]++;
333 }
btm_acl_notif_conn_collision(const RawAddress & bda)334 void btm_acl_notif_conn_collision(const RawAddress& bda) {
335 mock_function_count_map[__func__]++;
336 }
btm_acl_paging(BT_HDR * p,const RawAddress & bda)337 void btm_acl_paging(BT_HDR* p, const RawAddress& bda) {
338 mock_function_count_map[__func__]++;
339 }
btm_acl_process_sca_cmpl_pkt(uint8_t len,uint8_t * data)340 void btm_acl_process_sca_cmpl_pkt(uint8_t len, uint8_t* data) {
341 mock_function_count_map[__func__]++;
342 }
btm_acl_removed(uint16_t handle)343 void btm_acl_removed(uint16_t handle) { mock_function_count_map[__func__]++; }
btm_acl_reset_paging(void)344 void btm_acl_reset_paging(void) { mock_function_count_map[__func__]++; }
btm_acl_resubmit_page(void)345 void btm_acl_resubmit_page(void) { mock_function_count_map[__func__]++; }
btm_acl_role_changed(tHCI_STATUS hci_status,const RawAddress & bd_addr,tHCI_ROLE new_role)346 void btm_acl_role_changed(tHCI_STATUS hci_status, const RawAddress& bd_addr,
347 tHCI_ROLE new_role) {
348 mock_function_count_map[__func__]++;
349 }
btm_acl_set_paging(bool value)350 void btm_acl_set_paging(bool value) { mock_function_count_map[__func__]++; }
btm_acl_update_conn_addr(uint16_t handle,const RawAddress & address)351 void btm_acl_update_conn_addr(uint16_t handle, const RawAddress& address) {
352 mock_function_count_map[__func__]++;
353 }
btm_acl_update_inquiry_status(uint8_t status)354 void btm_acl_update_inquiry_status(uint8_t status) {
355 mock_function_count_map[__func__]++;
356 }
btm_ble_refresh_local_resolvable_private_addr(const RawAddress & pseudo_addr,const RawAddress & local_rpa)357 void btm_ble_refresh_local_resolvable_private_addr(
358 const RawAddress& pseudo_addr, const RawAddress& local_rpa) {
359 mock_function_count_map[__func__]++;
360 }
btm_cont_rswitch_from_handle(uint16_t hci_handle)361 void btm_cont_rswitch_from_handle(uint16_t hci_handle) {
362 mock_function_count_map[__func__]++;
363 }
btm_establish_continue_from_address(const RawAddress & bda,tBT_TRANSPORT transport)364 void btm_establish_continue_from_address(const RawAddress& bda,
365 tBT_TRANSPORT transport) {
366 mock_function_count_map[__func__]++;
367 }
btm_process_remote_ext_features(tACL_CONN * p_acl_cb,uint8_t max_page_number)368 void btm_process_remote_ext_features(tACL_CONN* p_acl_cb,
369 uint8_t max_page_number) {
370 mock_function_count_map[__func__]++;
371 }
btm_process_remote_version_complete(uint8_t status,uint16_t handle,uint8_t lmp_version,uint16_t manufacturer,uint16_t lmp_subversion)372 void btm_process_remote_version_complete(uint8_t status, uint16_t handle,
373 uint8_t lmp_version,
374 uint16_t manufacturer,
375 uint16_t lmp_subversion) {
376 mock_function_count_map[__func__]++;
377 }
btm_read_automatic_flush_timeout_complete(uint8_t * p)378 void btm_read_automatic_flush_timeout_complete(uint8_t* p) {
379 mock_function_count_map[__func__]++;
380 }
btm_read_failed_contact_counter_complete(uint8_t * p)381 void btm_read_failed_contact_counter_complete(uint8_t* p) {
382 mock_function_count_map[__func__]++;
383 }
btm_read_failed_contact_counter_timeout(UNUSED_ATTR void * data)384 void btm_read_failed_contact_counter_timeout(UNUSED_ATTR void* data) {
385 mock_function_count_map[__func__]++;
386 }
btm_read_link_quality_complete(uint8_t * p)387 void btm_read_link_quality_complete(uint8_t* p) {
388 mock_function_count_map[__func__]++;
389 }
btm_read_link_quality_timeout(UNUSED_ATTR void * data)390 void btm_read_link_quality_timeout(UNUSED_ATTR void* data) {
391 mock_function_count_map[__func__]++;
392 }
btm_read_remote_ext_features(uint16_t handle,uint8_t page_number)393 void btm_read_remote_ext_features(uint16_t handle, uint8_t page_number) {
394 mock_function_count_map[__func__]++;
395 }
btm_read_remote_ext_features_complete(uint16_t handle,uint8_t page_num,uint8_t max_page,uint8_t * features)396 void btm_read_remote_ext_features_complete(uint16_t handle, uint8_t page_num,
397 uint8_t max_page,
398 uint8_t* features) {
399 mock_function_count_map[__func__]++;
400 }
btm_read_remote_ext_features_complete_raw(uint8_t * p,uint8_t evt_len)401 void btm_read_remote_ext_features_complete_raw(uint8_t* p, uint8_t evt_len) {
402 mock_function_count_map[__func__]++;
403 }
btm_read_remote_ext_features_failed(uint8_t status,uint16_t handle)404 void btm_read_remote_ext_features_failed(uint8_t status, uint16_t handle) {
405 mock_function_count_map[__func__]++;
406 }
btm_read_remote_features_complete(uint16_t handle,uint8_t * features)407 void btm_read_remote_features_complete(uint16_t handle, uint8_t* features) {
408 mock_function_count_map[__func__]++;
409 }
btm_read_remote_features_complete_raw(uint8_t * p)410 void btm_read_remote_features_complete_raw(uint8_t* p) {
411 mock_function_count_map[__func__]++;
412 }
btm_read_remote_version_complete(tHCI_STATUS status,uint16_t handle,uint8_t lmp_version,uint16_t manufacturer,uint16_t lmp_subversion)413 void btm_read_remote_version_complete(tHCI_STATUS status, uint16_t handle,
414 uint8_t lmp_version,
415 uint16_t manufacturer,
416 uint16_t lmp_subversion) {
417 mock_function_count_map[__func__]++;
418 }
btm_read_remote_version_complete_raw(uint8_t * p)419 void btm_read_remote_version_complete_raw(uint8_t* p) {
420 mock_function_count_map[__func__]++;
421 }
btm_read_rssi_complete(uint8_t * p)422 void btm_read_rssi_complete(uint8_t* p) { mock_function_count_map[__func__]++; }
btm_read_rssi_timeout(UNUSED_ATTR void * data)423 void btm_read_rssi_timeout(UNUSED_ATTR void* data) {
424 mock_function_count_map[__func__]++;
425 }
btm_read_tx_power_complete(uint8_t * p,bool is_ble)426 void btm_read_tx_power_complete(uint8_t* p, bool is_ble) {
427 mock_function_count_map[__func__]++;
428 }
btm_read_tx_power_timeout(UNUSED_ATTR void * data)429 void btm_read_tx_power_timeout(UNUSED_ATTR void* data) {
430 mock_function_count_map[__func__]++;
431 }
btm_rejectlist_role_change_device(const RawAddress & bd_addr,uint8_t hci_status)432 void btm_rejectlist_role_change_device(const RawAddress& bd_addr,
433 uint8_t hci_status) {
434 mock_function_count_map[__func__]++;
435 }
btm_set_link_policy(tACL_CONN * conn,tLINK_POLICY policy)436 void btm_set_link_policy(tACL_CONN* conn, tLINK_POLICY policy) {
437 mock_function_count_map[__func__]++;
438 }
btm_set_packet_types_from_address(const RawAddress & bd_addr,uint16_t pkt_types)439 void btm_set_packet_types_from_address(const RawAddress& bd_addr,
440 uint16_t pkt_types) {
441 mock_function_count_map[__func__]++;
442 }
hci_btm_set_link_supervision_timeout(tACL_CONN & link,uint16_t timeout)443 void hci_btm_set_link_supervision_timeout(tACL_CONN& link, uint16_t timeout) {
444 mock_function_count_map[__func__]++;
445 }
on_acl_br_edr_connected(const RawAddress & bda,uint16_t handle,uint8_t enc_mode)446 void on_acl_br_edr_connected(const RawAddress& bda, uint16_t handle,
447 uint8_t enc_mode) {
448 mock_function_count_map[__func__]++;
449 }
on_acl_br_edr_failed(const RawAddress & bda,tHCI_STATUS status)450 void on_acl_br_edr_failed(const RawAddress& bda, tHCI_STATUS status) {
451 mock_function_count_map[__func__]++;
452 }
acl_add_to_ignore_auto_connect_after_disconnect(const RawAddress & bd_addr)453 void acl_add_to_ignore_auto_connect_after_disconnect(
454 const RawAddress& bd_addr) {
455 mock_function_count_map[__func__]++;
456 }
457