• 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:85
20  */
21 
22 #include <cstdint>
23 #include <map>
24 #include <string>
25 
26 #include <base/functional/bind.h>
27 #include <base/functional/callback.h>
28 
29 #include "main/shim/btm_api.h"
30 #include "stack/include/bt_hdr.h"
31 #include "stack/include/bt_octets.h"
32 #include "stack/include/btm_ble_api_types.h"
33 #include "test/common/mock_functions.h"
34 #include "types/bluetooth/uuid.h"
35 #include "types/bt_transport.h"
36 #include "types/raw_address.h"
37 
38 #ifndef UNUSED_ATTR
39 #define UNUSED_ATTR
40 #endif
41 
42 Octet16 octet16;
43 
BTM_BleDataSignature(const RawAddress & bd_addr,uint8_t * p_text,uint16_t len,BLE_SIGNATURE signature)44 bool bluetooth::shim::BTM_BleDataSignature(const RawAddress& bd_addr,
45                                            uint8_t* p_text, uint16_t len,
46                                            BLE_SIGNATURE signature) {
47   inc_func_call_count(__func__);
48   return false;
49 }
BTM_BleLocalPrivacyEnabled(void)50 bool bluetooth::shim::BTM_BleLocalPrivacyEnabled(void) {
51   inc_func_call_count(__func__);
52   return false;
53 }
BTM_BleSecurityProcedureIsRunning(const RawAddress & bd_addr)54 bool bluetooth::shim::BTM_BleSecurityProcedureIsRunning(
55     const RawAddress& bd_addr) {
56   inc_func_call_count(__func__);
57   return false;
58 }
BTM_BleVerifySignature(const RawAddress & bd_addr,uint8_t * p_orig,uint16_t len,uint32_t counter,uint8_t * p_comp)59 bool bluetooth::shim::BTM_BleVerifySignature(const RawAddress& bd_addr,
60                                              uint8_t* p_orig, uint16_t len,
61                                              uint32_t counter,
62                                              uint8_t* p_comp) {
63   inc_func_call_count(__func__);
64   return false;
65 }
BTM_GetLeSecurityState(const RawAddress & bd_addr,uint8_t * p_le_dev_sec_flags,uint8_t * p_le_key_size)66 bool bluetooth::shim::BTM_GetLeSecurityState(const RawAddress& bd_addr,
67                                              uint8_t* p_le_dev_sec_flags,
68                                              uint8_t* p_le_key_size) {
69   inc_func_call_count(__func__);
70   return false;
71 }
BTM_HasEirService(const uint32_t * p_eir_uuid,uint16_t uuid16)72 bool bluetooth::shim::BTM_HasEirService(const uint32_t* p_eir_uuid,
73                                         uint16_t uuid16) {
74   inc_func_call_count(__func__);
75   return false;
76 }
BTM_ReadConnectedTransportAddress(RawAddress * remote_bda,tBT_TRANSPORT transport)77 bool bluetooth::shim::BTM_ReadConnectedTransportAddress(
78     RawAddress* remote_bda, tBT_TRANSPORT transport) {
79   inc_func_call_count(__func__);
80   return false;
81 }
BTM_ReadRemoteConnectionAddr(const RawAddress & pseudo_addr,RawAddress & conn_addr,tBLE_ADDR_TYPE * p_addr_type)82 bool bluetooth::shim::BTM_ReadRemoteConnectionAddr(
83     const RawAddress& pseudo_addr, RawAddress& conn_addr,
84     tBLE_ADDR_TYPE* p_addr_type) {
85   inc_func_call_count(__func__);
86   return false;
87 }
BTM_SecAddDevice(const RawAddress & bd_addr,DEV_CLASS dev_class,const BD_NAME & bd_name,uint8_t * features,LinkKey * link_key,uint8_t key_type,uint8_t pin_length)88 bool bluetooth::shim::BTM_SecAddDevice(const RawAddress& bd_addr,
89                                        DEV_CLASS dev_class,
90                                        const BD_NAME& bd_name,
91                                        uint8_t* features, LinkKey* link_key,
92                                        uint8_t key_type, uint8_t pin_length) {
93   inc_func_call_count(__func__);
94   return false;
95 }
BTM_SecAddRmtNameNotifyCallback(tBTM_RMT_NAME_CALLBACK * p_callback)96 bool bluetooth::shim::BTM_SecAddRmtNameNotifyCallback(
97     tBTM_RMT_NAME_CALLBACK* p_callback) {
98   inc_func_call_count(__func__);
99   return false;
100 }
BTM_SecDeleteDevice(const RawAddress & bd_addr)101 bool bluetooth::shim::BTM_SecDeleteDevice(const RawAddress& bd_addr) {
102   inc_func_call_count(__func__);
103   return false;
104 }
BTM_SecDeleteRmtNameNotifyCallback(tBTM_RMT_NAME_CALLBACK * p_callback)105 bool bluetooth::shim::BTM_SecDeleteRmtNameNotifyCallback(
106     tBTM_RMT_NAME_CALLBACK* p_callback) {
107   inc_func_call_count(__func__);
108   return false;
109 }
BTM_SecRegister(const tBTM_APPL_INFO * bta_callbacks)110 bool bluetooth::shim::BTM_SecRegister(const tBTM_APPL_INFO* bta_callbacks) {
111   inc_func_call_count(__func__);
112   return false;
113 }
BTM_UseLeLink(const RawAddress & raw_address)114 bool bluetooth::shim::BTM_UseLeLink(const RawAddress& raw_address) {
115   inc_func_call_count(__func__);
116   return false;
117 }
BTM_SecReadDevName(const RawAddress & address)118 char* bluetooth::shim::BTM_SecReadDevName(const RawAddress& address) {
119   inc_func_call_count(__func__);
120   return nullptr;
121 }
BTM_GetDeviceEncRoot()122 const Octet16& bluetooth::shim::BTM_GetDeviceEncRoot() {
123   inc_func_call_count(__func__);
124   return octet16;
125 }
BTM_GetDeviceDHK()126 const Octet16& bluetooth::shim::BTM_GetDeviceDHK() {
127   inc_func_call_count(__func__);
128   return octet16;
129 }
BTM_GetDeviceIDRoot()130 const Octet16& bluetooth::shim::BTM_GetDeviceIDRoot() {
131   inc_func_call_count(__func__);
132   return octet16;
133 }
BTM_HasInquiryEirService(tBTM_INQ_RESULTS * p_results,uint16_t uuid16)134 tBTM_EIR_SEARCH_RESULT bluetooth::shim::BTM_HasInquiryEirService(
135     tBTM_INQ_RESULTS* p_results, uint16_t uuid16) {
136   inc_func_call_count(__func__);
137   return 0;
138 }
BTM_InqDbFirst(void)139 tBTM_INQ_INFO* bluetooth::shim::BTM_InqDbFirst(void) {
140   inc_func_call_count(__func__);
141   return nullptr;
142 }
BTM_InqDbNext(tBTM_INQ_INFO * p_cur)143 tBTM_INQ_INFO* bluetooth::shim::BTM_InqDbNext(tBTM_INQ_INFO* p_cur) {
144   inc_func_call_count(__func__);
145   return nullptr;
146 }
BTM_InqDbRead(const RawAddress & p_bda)147 tBTM_INQ_INFO* bluetooth::shim::BTM_InqDbRead(const RawAddress& p_bda) {
148   inc_func_call_count(__func__);
149   return nullptr;
150 }
BTM_BleObserve(bool start,uint8_t duration_sec,tBTM_INQ_RESULTS_CB * p_results_cb,tBTM_CMPL_CB * p_cmpl_cb)151 tBTM_STATUS bluetooth::shim::BTM_BleObserve(bool start, uint8_t duration_sec,
152                                             tBTM_INQ_RESULTS_CB* p_results_cb,
153                                             tBTM_CMPL_CB* p_cmpl_cb) {
154   inc_func_call_count(__func__);
155   return BTM_SUCCESS;
156 }
BTM_BleOpportunisticObserve(bool enable,tBTM_INQ_RESULTS_CB * p_results_cb)157 void bluetooth::shim::BTM_BleOpportunisticObserve(
158     bool enable, tBTM_INQ_RESULTS_CB* p_results_cb) {
159   inc_func_call_count(__func__);
160 }
BTM_BleTargetAnnouncementObserve(bool enable,tBTM_INQ_RESULTS_CB * p_results_cb)161 void bluetooth::shim::BTM_BleTargetAnnouncementObserve(
162     bool enable, tBTM_INQ_RESULTS_CB* p_results_cb) {
163   inc_func_call_count(__func__);
164 }
BTM_CancelRemoteDeviceName(void)165 tBTM_STATUS bluetooth::shim::BTM_CancelRemoteDeviceName(void) {
166   inc_func_call_count(__func__);
167   return BTM_SUCCESS;
168 }
BTM_ClearInqDb(const RawAddress * p_bda)169 tBTM_STATUS bluetooth::shim::BTM_ClearInqDb(const RawAddress* p_bda) {
170   inc_func_call_count(__func__);
171   return BTM_SUCCESS;
172 }
BTM_ReadRemoteDeviceName(const RawAddress & raw_address,tBTM_NAME_CMPL_CB * callback,tBT_TRANSPORT transport)173 tBTM_STATUS bluetooth::shim::BTM_ReadRemoteDeviceName(
174     const RawAddress& raw_address, tBTM_NAME_CMPL_CB* callback,
175     tBT_TRANSPORT transport) {
176   inc_func_call_count(__func__);
177   return BTM_SUCCESS;
178 }
BTM_SecBond(const RawAddress & bd_addr,tBLE_ADDR_TYPE addr_type,tBT_TRANSPORT transport,tBT_DEVICE_TYPE device_type)179 tBTM_STATUS bluetooth::shim::BTM_SecBond(const RawAddress& bd_addr,
180                                          tBLE_ADDR_TYPE addr_type,
181                                          tBT_TRANSPORT transport,
182                                          tBT_DEVICE_TYPE device_type) {
183   inc_func_call_count(__func__);
184   return BTM_SUCCESS;
185 }
BTM_SecBondCancel(const RawAddress & bd_addr)186 tBTM_STATUS bluetooth::shim::BTM_SecBondCancel(const RawAddress& bd_addr) {
187   inc_func_call_count(__func__);
188   return BTM_SUCCESS;
189 }
BTM_SetConnectability(uint16_t page_mode,uint16_t window,uint16_t interval)190 tBTM_STATUS bluetooth::shim::BTM_SetConnectability(uint16_t page_mode,
191                                                    uint16_t window,
192                                                    uint16_t interval) {
193   inc_func_call_count(__func__);
194   return BTM_SUCCESS;
195 }
BTM_SetDeviceClass(DEV_CLASS dev_class)196 tBTM_STATUS bluetooth::shim::BTM_SetDeviceClass(DEV_CLASS dev_class) {
197   inc_func_call_count(__func__);
198   return BTM_SUCCESS;
199 }
BTM_SetDiscoverability(uint16_t discoverable_mode,uint16_t window,uint16_t interval)200 tBTM_STATUS bluetooth::shim::BTM_SetDiscoverability(uint16_t discoverable_mode,
201                                                     uint16_t window,
202                                                     uint16_t interval) {
203   inc_func_call_count(__func__);
204   return BTM_SUCCESS;
205 }
BTM_SetEncryption(const RawAddress & bd_addr,tBT_TRANSPORT transport,tBTM_SEC_CALLBACK * p_callback,void * p_ref_data,tBTM_BLE_SEC_ACT sec_act)206 tBTM_STATUS bluetooth::shim::BTM_SetEncryption(const RawAddress& bd_addr,
207                                                tBT_TRANSPORT transport,
208                                                tBTM_SEC_CALLBACK* p_callback,
209                                                void* p_ref_data,
210                                                tBTM_BLE_SEC_ACT sec_act) {
211   inc_func_call_count(__func__);
212   return BTM_SUCCESS;
213 }
BTM_SetInquiryMode(uint8_t inquiry_mode)214 tBTM_STATUS bluetooth::shim::BTM_SetInquiryMode(uint8_t inquiry_mode) {
215   inc_func_call_count(__func__);
216   return BTM_SUCCESS;
217 }
BTM_StartInquiry(tBTM_INQ_RESULTS_CB * p_results_cb,tBTM_CMPL_CB * p_cmpl_cb)218 tBTM_STATUS bluetooth::shim::BTM_StartInquiry(tBTM_INQ_RESULTS_CB* p_results_cb,
219                                               tBTM_CMPL_CB* p_cmpl_cb) {
220   inc_func_call_count(__func__);
221   return BTM_SUCCESS;
222 }
btm_sec_mx_access_request(const RawAddress & bd_addr,bool is_originator,uint16_t security_requirement,tBTM_SEC_CALLBACK * p_callback,void * p_ref_data)223 tBTM_STATUS bluetooth::shim::btm_sec_mx_access_request(
224     const RawAddress& bd_addr, bool is_originator,
225     uint16_t security_requirement, tBTM_SEC_CALLBACK* p_callback,
226     void* p_ref_data) {
227   inc_func_call_count(__func__);
228   return BTM_SUCCESS;
229 }
BTM_GetHCIConnHandle(const RawAddress & remote_bda,tBT_TRANSPORT transport)230 uint16_t bluetooth::shim::BTM_GetHCIConnHandle(const RawAddress& remote_bda,
231                                                tBT_TRANSPORT transport) {
232   inc_func_call_count(__func__);
233   return 0;
234 }
BTM_IsInquiryActive(void)235 uint16_t bluetooth::shim::BTM_IsInquiryActive(void) {
236   inc_func_call_count(__func__);
237   return 0;
238 }
BTM_BleGetSupportedKeySize(const RawAddress & bd_addr)239 uint8_t bluetooth::shim::BTM_BleGetSupportedKeySize(const RawAddress& bd_addr) {
240   inc_func_call_count(__func__);
241   return 0;
242 }
BTM_BleMaxMultiAdvInstanceCount()243 uint8_t bluetooth::shim::BTM_BleMaxMultiAdvInstanceCount() {
244   inc_func_call_count(__func__);
245   return 0;
246 }
BTM_AddEirService(uint32_t * p_eir_uuid,uint16_t uuid16)247 void bluetooth::shim::BTM_AddEirService(uint32_t* p_eir_uuid, uint16_t uuid16) {
248   inc_func_call_count(__func__);
249 }
BTM_BleAdvFilterParamSetup(tBTM_BLE_SCAN_COND_OP action,tBTM_BLE_PF_FILT_INDEX filt_index,std::unique_ptr<btgatt_filt_param_setup_t> p_filt_params,tBTM_BLE_PF_PARAM_CB cb)250 void bluetooth::shim::BTM_BleAdvFilterParamSetup(
251     tBTM_BLE_SCAN_COND_OP action, tBTM_BLE_PF_FILT_INDEX filt_index,
252     std::unique_ptr<btgatt_filt_param_setup_t> p_filt_params,
253     tBTM_BLE_PF_PARAM_CB cb) {
254   inc_func_call_count(__func__);
255 }
BTM_BleEnableDisableFilterFeature(uint8_t enable,tBTM_BLE_PF_STATUS_CBACK p_stat_cback)256 void bluetooth::shim::BTM_BleEnableDisableFilterFeature(
257     uint8_t enable, tBTM_BLE_PF_STATUS_CBACK p_stat_cback) {
258   inc_func_call_count(__func__);
259 }
BTM_BleLoadLocalKeys(uint8_t key_type,tBTM_BLE_LOCAL_KEYS * p_key)260 void bluetooth::shim::BTM_BleLoadLocalKeys(uint8_t key_type,
261                                            tBTM_BLE_LOCAL_KEYS* p_key) {
262   inc_func_call_count(__func__);
263 }
BTM_BleOobDataReply(const RawAddress & bd_addr,uint8_t res,uint8_t len,uint8_t * p_data)264 void bluetooth::shim::BTM_BleOobDataReply(const RawAddress& bd_addr,
265                                           uint8_t res, uint8_t len,
266                                           uint8_t* p_data) {
267   inc_func_call_count(__func__);
268 }
BTM_BleReadPhy(const RawAddress & bd_addr,base::Callback<void (uint8_t tx_phy,uint8_t rx_phy,uint8_t status)> cb)269 void bluetooth::shim::BTM_BleReadPhy(
270     const RawAddress& bd_addr,
271     base::Callback<void(uint8_t tx_phy, uint8_t rx_phy, uint8_t status)> cb) {
272   inc_func_call_count(__func__);
273 }
BTM_BleSecureConnectionOobDataReply(const RawAddress & bd_addr,uint8_t * p_c,uint8_t * p_r)274 void bluetooth::shim::BTM_BleSecureConnectionOobDataReply(
275     const RawAddress& bd_addr, uint8_t* p_c, uint8_t* p_r) {
276   inc_func_call_count(__func__);
277 }
BTM_BleSetConnScanParams(uint32_t scan_interval,uint32_t scan_window)278 void bluetooth::shim::BTM_BleSetConnScanParams(uint32_t scan_interval,
279                                                uint32_t scan_window) {
280   inc_func_call_count(__func__);
281 }
BTM_BleSetPhy(const RawAddress & bd_addr,uint8_t tx_phys,uint8_t rx_phys,uint16_t phy_options)282 void bluetooth::shim::BTM_BleSetPhy(const RawAddress& bd_addr, uint8_t tx_phys,
283                                     uint8_t rx_phys, uint16_t phy_options) {
284   inc_func_call_count(__func__);
285 }
BTM_BleSetPrefConnParams(const RawAddress & bd_addr,uint16_t min_conn_int,uint16_t max_conn_int,uint16_t peripheral_latency,uint16_t supervision_tout)286 void bluetooth::shim::BTM_BleSetPrefConnParams(const RawAddress& bd_addr,
287                                                uint16_t min_conn_int,
288                                                uint16_t max_conn_int,
289                                                uint16_t peripheral_latency,
290                                                uint16_t supervision_tout) {
291   inc_func_call_count(__func__);
292 }
BTM_BleUpdateAdvFilterPolicy(tBTM_BLE_AFP adv_policy)293 void bluetooth::shim::BTM_BleUpdateAdvFilterPolicy(tBTM_BLE_AFP adv_policy) {
294   inc_func_call_count(__func__);
295 }
BTM_CancelInquiry(void)296 void bluetooth::shim::BTM_CancelInquiry(void) { inc_func_call_count(__func__); }
BTM_ConfirmReqReply(tBTM_STATUS res,const RawAddress & bd_addr)297 void bluetooth::shim::BTM_ConfirmReqReply(tBTM_STATUS res,
298                                           const RawAddress& bd_addr) {
299   inc_func_call_count(__func__);
300 }
BTM_EnableInterlacedInquiryScan()301 void bluetooth::shim::BTM_EnableInterlacedInquiryScan() {
302   inc_func_call_count(__func__);
303 }
BTM_EnableInterlacedPageScan()304 void bluetooth::shim::BTM_EnableInterlacedPageScan() {
305   inc_func_call_count(__func__);
306 }
BTM_LE_PF_addr_filter(tBTM_BLE_SCAN_COND_OP action,tBTM_BLE_PF_FILT_INDEX filt_index,tBLE_BD_ADDR addr,tBTM_BLE_PF_CFG_CBACK cb)307 void bluetooth::shim::BTM_LE_PF_addr_filter(tBTM_BLE_SCAN_COND_OP action,
308                                             tBTM_BLE_PF_FILT_INDEX filt_index,
309                                             tBLE_BD_ADDR addr,
310                                             tBTM_BLE_PF_CFG_CBACK cb) {
311   inc_func_call_count(__func__);
312 }
BTM_LE_PF_clear(tBTM_BLE_PF_FILT_INDEX filt_index,tBTM_BLE_PF_CFG_CBACK cb)313 void bluetooth::shim::BTM_LE_PF_clear(tBTM_BLE_PF_FILT_INDEX filt_index,
314                                       tBTM_BLE_PF_CFG_CBACK cb) {
315   inc_func_call_count(__func__);
316 }
BTM_LE_PF_local_name(tBTM_BLE_SCAN_COND_OP action,tBTM_BLE_PF_FILT_INDEX filt_index,std::vector<uint8_t> name,tBTM_BLE_PF_CFG_CBACK cb)317 void bluetooth::shim::BTM_LE_PF_local_name(tBTM_BLE_SCAN_COND_OP action,
318                                            tBTM_BLE_PF_FILT_INDEX filt_index,
319                                            std::vector<uint8_t> name,
320                                            tBTM_BLE_PF_CFG_CBACK cb) {
321   inc_func_call_count(__func__);
322 }
BTM_LE_PF_manu_data(tBTM_BLE_SCAN_COND_OP action,tBTM_BLE_PF_FILT_INDEX filt_index,uint16_t company_id,uint16_t company_id_mask,std::vector<uint8_t> data,std::vector<uint8_t> data_mask,tBTM_BLE_PF_CFG_CBACK cb)323 void bluetooth::shim::BTM_LE_PF_manu_data(
324     tBTM_BLE_SCAN_COND_OP action, tBTM_BLE_PF_FILT_INDEX filt_index,
325     uint16_t company_id, uint16_t company_id_mask, std::vector<uint8_t> data,
326     std::vector<uint8_t> data_mask, tBTM_BLE_PF_CFG_CBACK cb) {
327   inc_func_call_count(__func__);
328 }
BTM_LE_PF_set(tBTM_BLE_PF_FILT_INDEX filt_index,std::vector<ApcfCommand> commands,tBTM_BLE_PF_CFG_CBACK cb)329 void bluetooth::shim::BTM_LE_PF_set(tBTM_BLE_PF_FILT_INDEX filt_index,
330                                     std::vector<ApcfCommand> commands,
331                                     tBTM_BLE_PF_CFG_CBACK cb) {
332   inc_func_call_count(__func__);
333 }
BTM_LE_PF_srvc_data(tBTM_BLE_SCAN_COND_OP action,tBTM_BLE_PF_FILT_INDEX filt_index)334 void bluetooth::shim::BTM_LE_PF_srvc_data(tBTM_BLE_SCAN_COND_OP action,
335                                           tBTM_BLE_PF_FILT_INDEX filt_index) {
336   inc_func_call_count(__func__);
337 }
BTM_LE_PF_srvc_data_pattern(tBTM_BLE_SCAN_COND_OP action,tBTM_BLE_PF_FILT_INDEX filt_index,std::vector<uint8_t> data,std::vector<uint8_t> data_mask,tBTM_BLE_PF_CFG_CBACK cb)338 void bluetooth::shim::BTM_LE_PF_srvc_data_pattern(
339     tBTM_BLE_SCAN_COND_OP action, tBTM_BLE_PF_FILT_INDEX filt_index,
340     std::vector<uint8_t> data, std::vector<uint8_t> data_mask,
341     tBTM_BLE_PF_CFG_CBACK cb) {
342   inc_func_call_count(__func__);
343 }
BTM_LE_PF_uuid_filter(tBTM_BLE_SCAN_COND_OP action,tBTM_BLE_PF_FILT_INDEX filt_index,tBTM_BLE_PF_COND_TYPE filter_type,const bluetooth::Uuid & uuid,tBTM_BLE_PF_LOGIC_TYPE cond_logic,const bluetooth::Uuid & uuid_mask,tBTM_BLE_PF_CFG_CBACK cb)344 void bluetooth::shim::BTM_LE_PF_uuid_filter(tBTM_BLE_SCAN_COND_OP action,
345                                             tBTM_BLE_PF_FILT_INDEX filt_index,
346                                             tBTM_BLE_PF_COND_TYPE filter_type,
347                                             const bluetooth::Uuid& uuid,
348                                             tBTM_BLE_PF_LOGIC_TYPE cond_logic,
349                                             const bluetooth::Uuid& uuid_mask,
350                                             tBTM_BLE_PF_CFG_CBACK cb) {
351   inc_func_call_count(__func__);
352 }
BTM_PINCodeReply(const RawAddress & bd_addr,tBTM_STATUS res,uint8_t pin_len,uint8_t * p_pin)353 void bluetooth::shim::BTM_PINCodeReply(const RawAddress& bd_addr,
354                                        tBTM_STATUS res, uint8_t pin_len,
355                                        uint8_t* p_pin) {
356   inc_func_call_count(__func__);
357 }
BTM_ReadConnectionAddr(const RawAddress & remote_bda,RawAddress & local_conn_addr,tBLE_ADDR_TYPE * p_addr_type)358 void bluetooth::shim::BTM_ReadConnectionAddr(const RawAddress& remote_bda,
359                                              RawAddress& local_conn_addr,
360                                              tBLE_ADDR_TYPE* p_addr_type) {
361   inc_func_call_count(__func__);
362 }
BTM_ReadDevInfo(const RawAddress & remote_bda,tBT_DEVICE_TYPE * p_dev_type,tBLE_ADDR_TYPE * p_addr_type)363 void bluetooth::shim::BTM_ReadDevInfo(const RawAddress& remote_bda,
364                                       tBT_DEVICE_TYPE* p_dev_type,
365                                       tBLE_ADDR_TYPE* p_addr_type) {
366   inc_func_call_count(__func__);
367 }
BTM_RemoteOobDataReply(tBTM_STATUS res,const RawAddress & bd_addr,const Octet16 & c,const Octet16 & r)368 void bluetooth::shim::BTM_RemoteOobDataReply(tBTM_STATUS res,
369                                              const RawAddress& bd_addr,
370                                              const Octet16& c,
371                                              const Octet16& r) {
372   inc_func_call_count(__func__);
373 }
BTM_SecAddBleDevice(const RawAddress & bd_addr,tBT_DEVICE_TYPE dev_type,tBLE_ADDR_TYPE addr_type)374 void bluetooth::shim::BTM_SecAddBleDevice(const RawAddress& bd_addr,
375                                           tBT_DEVICE_TYPE dev_type,
376                                           tBLE_ADDR_TYPE addr_type) {
377   inc_func_call_count(__func__);
378 }
BTM_SecAddBleKey(const RawAddress & bd_addr,tBTM_LE_KEY_VALUE * p_le_key,tBTM_LE_KEY_TYPE key_type)379 void bluetooth::shim::BTM_SecAddBleKey(const RawAddress& bd_addr,
380                                        tBTM_LE_KEY_VALUE* p_le_key,
381                                        tBTM_LE_KEY_TYPE key_type) {
382   inc_func_call_count(__func__);
383 }
BTM_SecClearSecurityFlags(const RawAddress & bd_addr)384 void bluetooth::shim::BTM_SecClearSecurityFlags(const RawAddress& bd_addr) {
385   inc_func_call_count(__func__);
386 }
BTM_SecurityGrant(const RawAddress & bd_addr,uint8_t res)387 void bluetooth::shim::BTM_SecurityGrant(const RawAddress& bd_addr,
388                                         uint8_t res) {
389   inc_func_call_count(__func__);
390 }
SendRemoteNameRequest(const RawAddress & raw_address)391 void bluetooth::shim::SendRemoteNameRequest(const RawAddress& raw_address) {
392   inc_func_call_count(__func__);
393 }
btm_api_process_extended_inquiry_result(RawAddress raw_address,uint8_t page_scan_rep_mode,DEV_CLASS device_class,uint16_t clock_offset,int8_t rssi,const uint8_t * eir_data,size_t eir_len)394 void btm_api_process_extended_inquiry_result(RawAddress raw_address,
395                                              uint8_t page_scan_rep_mode,
396                                              DEV_CLASS device_class,
397                                              uint16_t clock_offset, int8_t rssi,
398                                              const uint8_t* eir_data,
399                                              size_t eir_len) {
400   inc_func_call_count(__func__);
401 }
btm_api_process_inquiry_result(const RawAddress & raw_address,uint8_t page_scan_rep_mode,DEV_CLASS device_class,uint16_t clock_offset)402 void btm_api_process_inquiry_result(const RawAddress& raw_address,
403                                     uint8_t page_scan_rep_mode,
404                                     DEV_CLASS device_class,
405                                     uint16_t clock_offset) {
406   inc_func_call_count(__func__);
407 }
btm_api_process_inquiry_result_with_rssi(RawAddress raw_address,uint8_t page_scan_rep_mode,DEV_CLASS device_class,uint16_t clock_offset,int8_t rssi)408 void btm_api_process_inquiry_result_with_rssi(RawAddress raw_address,
409                                               uint8_t page_scan_rep_mode,
410                                               DEV_CLASS device_class,
411                                               uint16_t clock_offset,
412                                               int8_t rssi) {
413   inc_func_call_count(__func__);
414 }
415 
BTM_ClearEventFilter()416 tBTM_STATUS bluetooth::shim::BTM_ClearEventFilter() {
417   inc_func_call_count(__func__);
418   return BTM_SUCCESS;
419 }
420 
BTM_ClearEventMask()421 tBTM_STATUS bluetooth::shim::BTM_ClearEventMask() {
422   inc_func_call_count(__func__);
423   return BTM_SUCCESS;
424 }
425 
BTM_ClearFilterAcceptList()426 tBTM_STATUS bluetooth::shim::BTM_ClearFilterAcceptList() {
427   inc_func_call_count(__func__);
428   return BTM_SUCCESS;
429 }
430 
BTM_DisconnectAllAcls()431 tBTM_STATUS bluetooth::shim::BTM_DisconnectAllAcls() {
432   inc_func_call_count(__func__);
433   return BTM_SUCCESS;
434 }
435 
BTM_LeRand(LeRandCallback cb)436 tBTM_STATUS bluetooth::shim::BTM_LeRand(LeRandCallback cb) {
437   inc_func_call_count(__func__);
438   return BTM_SUCCESS;
439 }
440 
BTM_SetEventFilterConnectionSetupAllDevices()441 tBTM_STATUS bluetooth::shim::BTM_SetEventFilterConnectionSetupAllDevices() {
442   inc_func_call_count(__func__);
443   return BTM_SUCCESS;
444 }
445 
BTM_AllowWakeByHid(std::vector<RawAddress> classic_hid_devices,std::vector<std::pair<RawAddress,uint8_t>> le_hid_devices)446 tBTM_STATUS bluetooth::shim::BTM_AllowWakeByHid(
447     std::vector<RawAddress> classic_hid_devices,
448     std::vector<std::pair<RawAddress, uint8_t>> le_hid_devices) {
449   inc_func_call_count(__func__);
450   return BTM_SUCCESS;
451 }
452 
BTM_RestoreFilterAcceptList(std::vector<std::pair<RawAddress,uint8_t>> le_devices)453 tBTM_STATUS bluetooth::shim::BTM_RestoreFilterAcceptList(
454     std::vector<std::pair<RawAddress, uint8_t>> le_devices) {
455   inc_func_call_count(__func__);
456   return BTM_SUCCESS;
457 }
458 
BTM_SetDefaultEventMaskExcept(uint64_t mask,uint64_t le_mask)459 tBTM_STATUS bluetooth::shim::BTM_SetDefaultEventMaskExcept(uint64_t mask,
460                                                            uint64_t le_mask) {
461   inc_func_call_count(__func__);
462   return BTM_SUCCESS;
463 }
464 
BTM_SetEventFilterInquiryResultAllDevices()465 tBTM_STATUS bluetooth::shim::BTM_SetEventFilterInquiryResultAllDevices() {
466   inc_func_call_count(__func__);
467   return BTM_SUCCESS;
468 }
469 
BTM_BleResetId()470 tBTM_STATUS bluetooth::shim::BTM_BleResetId() {
471   inc_func_call_count(__func__);
472   return BTM_SUCCESS;
473 }
474