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