• 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:62
20  *
21  *  mockcify.pl ver 0.3.0
22  */
23 
24 #include <cstdint>
25 #include <functional>
26 #include <map>
27 #include <string>
28 
29 extern std::map<std::string, int> mock_function_count_map;
30 
31 // Mock include file to share data between tests and mock
32 #include "test/mock/mock_bta_dm_act.h"
33 #include "types/raw_address.h"
34 
35 // Mocked internal structures, if any
36 
37 namespace test {
38 namespace mock {
39 namespace bta_dm_act {
40 
41 // Function state capture and return values, if needed
42 struct BTA_DmSetVisibility BTA_DmSetVisibility;
43 struct BTA_dm_acl_down BTA_dm_acl_down;
44 struct BTA_dm_acl_up BTA_dm_acl_up;
45 struct BTA_dm_notify_remote_features_complete
46     BTA_dm_notify_remote_features_complete;
47 struct BTA_dm_on_hw_off BTA_dm_on_hw_off;
48 struct BTA_dm_on_hw_on BTA_dm_on_hw_on;
49 struct BTA_dm_report_role_change BTA_dm_report_role_change;
50 struct bta_dm_acl_up bta_dm_acl_up;
51 struct bta_dm_add_ble_device bta_dm_add_ble_device;
52 struct bta_dm_add_blekey bta_dm_add_blekey;
53 struct bta_dm_add_device bta_dm_add_device;
54 struct bta_dm_ble_config_local_privacy bta_dm_ble_config_local_privacy;
55 struct bta_dm_ble_confirm_reply bta_dm_ble_confirm_reply;
56 struct bta_dm_ble_csis_observe bta_dm_ble_csis_observe;
57 struct bta_dm_ble_get_energy_info bta_dm_ble_get_energy_info;
58 struct bta_dm_ble_observe bta_dm_ble_observe;
59 struct bta_dm_ble_passkey_reply bta_dm_ble_passkey_reply;
60 struct bta_dm_ble_scan bta_dm_ble_scan;
61 struct bta_dm_ble_set_conn_params bta_dm_ble_set_conn_params;
62 struct bta_dm_ble_set_data_length bta_dm_ble_set_data_length;
63 struct bta_dm_ble_update_conn_params bta_dm_ble_update_conn_params;
64 struct bta_dm_bond bta_dm_bond;
65 struct bta_dm_bond_cancel bta_dm_bond_cancel;
66 struct bta_dm_check_if_only_hd_connected bta_dm_check_if_only_hd_connected;
67 struct bta_dm_ci_rmt_oob_act bta_dm_ci_rmt_oob_act;
68 struct bta_dm_close_acl bta_dm_close_acl;
69 struct bta_dm_close_gatt_conn bta_dm_close_gatt_conn;
70 struct bta_dm_confirm bta_dm_confirm;
71 struct bta_dm_deinit_cb bta_dm_deinit_cb;
72 struct bta_dm_disable bta_dm_disable;
73 struct bta_dm_disc_result bta_dm_disc_result;
74 struct bta_dm_disc_rmt_name bta_dm_disc_rmt_name;
75 struct bta_dm_discover bta_dm_discover;
76 struct bta_dm_eir_update_cust_uuid bta_dm_eir_update_cust_uuid;
77 struct bta_dm_eir_update_uuid bta_dm_eir_update_uuid;
78 struct bta_dm_enable bta_dm_enable;
79 struct bta_dm_encrypt_cback bta_dm_encrypt_cback;
80 struct bta_dm_execute_queued_request bta_dm_execute_queued_request;
81 struct bta_dm_free_sdp_db bta_dm_free_sdp_db;
82 struct bta_dm_init_cb bta_dm_init_cb;
83 struct bta_dm_inq_cmpl bta_dm_inq_cmpl;
84 struct bta_dm_is_search_request_queued bta_dm_is_search_request_queued;
85 struct bta_dm_pin_reply bta_dm_pin_reply;
86 struct bta_dm_proc_open_evt bta_dm_proc_open_evt;
87 struct bta_dm_process_remove_device bta_dm_process_remove_device;
88 struct bta_dm_queue_disc bta_dm_queue_disc;
89 struct bta_dm_queue_search bta_dm_queue_search;
90 struct bta_dm_remove_device bta_dm_remove_device;
91 struct bta_dm_rm_cback bta_dm_rm_cback;
92 struct bta_dm_rmt_name bta_dm_rmt_name;
93 struct bta_dm_sdp_result bta_dm_sdp_result;
94 struct bta_dm_search_cancel bta_dm_search_cancel;
95 struct bta_dm_search_cancel_notify bta_dm_search_cancel_notify;
96 struct bta_dm_search_clear_queue bta_dm_search_clear_queue;
97 struct bta_dm_search_cmpl bta_dm_search_cmpl;
98 struct bta_dm_search_result bta_dm_search_result;
99 struct bta_dm_search_start bta_dm_search_start;
100 struct bta_dm_set_dev_name bta_dm_set_dev_name;
101 struct bta_dm_set_encryption bta_dm_set_encryption;
102 struct btm_dm_start_gatt_discovery btm_dm_start_gatt_discovery;
103 struct handle_remote_features_complete handle_remote_features_complete;
104 
105 }  // namespace bta_dm_act
106 }  // namespace mock
107 }  // namespace test
108 
109 // Mocked functions, if any
BTA_DmSetVisibility(bt_scan_mode_t mode)110 bool BTA_DmSetVisibility(bt_scan_mode_t mode) {
111   mock_function_count_map[__func__]++;
112   return test::mock::bta_dm_act::BTA_DmSetVisibility(mode);
113 }
BTA_dm_acl_down(const RawAddress bd_addr,tBT_TRANSPORT transport)114 void BTA_dm_acl_down(const RawAddress bd_addr, tBT_TRANSPORT transport) {
115   mock_function_count_map[__func__]++;
116   test::mock::bta_dm_act::BTA_dm_acl_down(bd_addr, transport);
117 }
BTA_dm_acl_up(const RawAddress bd_addr,tBT_TRANSPORT transport)118 void BTA_dm_acl_up(const RawAddress bd_addr, tBT_TRANSPORT transport) {
119   mock_function_count_map[__func__]++;
120   test::mock::bta_dm_act::BTA_dm_acl_up(bd_addr, transport);
121 }
BTA_dm_notify_remote_features_complete(const RawAddress bd_addr)122 void BTA_dm_notify_remote_features_complete(const RawAddress bd_addr) {
123   mock_function_count_map[__func__]++;
124   test::mock::bta_dm_act::BTA_dm_notify_remote_features_complete(bd_addr);
125 }
BTA_dm_on_hw_off()126 void BTA_dm_on_hw_off() {
127   mock_function_count_map[__func__]++;
128   test::mock::bta_dm_act::BTA_dm_on_hw_off();
129 }
BTA_dm_on_hw_on()130 void BTA_dm_on_hw_on() {
131   mock_function_count_map[__func__]++;
132   test::mock::bta_dm_act::BTA_dm_on_hw_on();
133 }
BTA_dm_report_role_change(const RawAddress bd_addr,tHCI_ROLE new_role,tHCI_STATUS hci_status)134 void BTA_dm_report_role_change(const RawAddress bd_addr, tHCI_ROLE new_role,
135                                tHCI_STATUS hci_status) {
136   mock_function_count_map[__func__]++;
137   test::mock::bta_dm_act::BTA_dm_report_role_change(bd_addr, new_role,
138                                                     hci_status);
139 }
bta_dm_acl_up(const RawAddress & bd_addr,tBT_TRANSPORT transport)140 void bta_dm_acl_up(const RawAddress& bd_addr, tBT_TRANSPORT transport) {
141   mock_function_count_map[__func__]++;
142   test::mock::bta_dm_act::bta_dm_acl_up(bd_addr, transport);
143 }
bta_dm_add_ble_device(const RawAddress & bd_addr,tBLE_ADDR_TYPE addr_type,tBT_DEVICE_TYPE dev_type)144 void bta_dm_add_ble_device(const RawAddress& bd_addr, tBLE_ADDR_TYPE addr_type,
145                            tBT_DEVICE_TYPE dev_type) {
146   mock_function_count_map[__func__]++;
147   test::mock::bta_dm_act::bta_dm_add_ble_device(bd_addr, addr_type, dev_type);
148 }
bta_dm_add_blekey(const RawAddress & bd_addr,tBTA_LE_KEY_VALUE blekey,tBTM_LE_KEY_TYPE key_type)149 void bta_dm_add_blekey(const RawAddress& bd_addr, tBTA_LE_KEY_VALUE blekey,
150                        tBTM_LE_KEY_TYPE key_type) {
151   mock_function_count_map[__func__]++;
152   test::mock::bta_dm_act::bta_dm_add_blekey(bd_addr, blekey, key_type);
153 }
bta_dm_add_device(std::unique_ptr<tBTA_DM_API_ADD_DEVICE> msg)154 void bta_dm_add_device(std::unique_ptr<tBTA_DM_API_ADD_DEVICE> msg) {
155   mock_function_count_map[__func__]++;
156   test::mock::bta_dm_act::bta_dm_add_device(std::move(msg));
157 }
bta_dm_ble_config_local_privacy(bool privacy_enable)158 void bta_dm_ble_config_local_privacy(bool privacy_enable) {
159   mock_function_count_map[__func__]++;
160   test::mock::bta_dm_act::bta_dm_ble_config_local_privacy(privacy_enable);
161 }
bta_dm_ble_confirm_reply(const RawAddress & bd_addr,bool accept)162 void bta_dm_ble_confirm_reply(const RawAddress& bd_addr, bool accept) {
163   mock_function_count_map[__func__]++;
164   test::mock::bta_dm_act::bta_dm_ble_confirm_reply(bd_addr, accept);
165 }
bta_dm_ble_csis_observe(bool observe,tBTA_DM_SEARCH_CBACK * p_cback)166 void bta_dm_ble_csis_observe(bool observe, tBTA_DM_SEARCH_CBACK* p_cback) {
167   mock_function_count_map[__func__]++;
168   test::mock::bta_dm_act::bta_dm_ble_csis_observe(observe, p_cback);
169 }
bta_dm_ble_get_energy_info(tBTA_BLE_ENERGY_INFO_CBACK * p_energy_info_cback)170 void bta_dm_ble_get_energy_info(
171     tBTA_BLE_ENERGY_INFO_CBACK* p_energy_info_cback) {
172   mock_function_count_map[__func__]++;
173   test::mock::bta_dm_act::bta_dm_ble_get_energy_info(p_energy_info_cback);
174 }
bta_dm_ble_observe(bool start,uint8_t duration,tBTA_DM_SEARCH_CBACK * p_cback)175 void bta_dm_ble_observe(bool start, uint8_t duration,
176                         tBTA_DM_SEARCH_CBACK* p_cback) {
177   mock_function_count_map[__func__]++;
178   test::mock::bta_dm_act::bta_dm_ble_observe(start, duration, p_cback);
179 }
bta_dm_ble_passkey_reply(const RawAddress & bd_addr,bool accept,uint32_t passkey)180 void bta_dm_ble_passkey_reply(const RawAddress& bd_addr, bool accept,
181                               uint32_t passkey) {
182   mock_function_count_map[__func__]++;
183   test::mock::bta_dm_act::bta_dm_ble_passkey_reply(bd_addr, accept, passkey);
184 }
bta_dm_ble_scan(bool start,uint8_t duration_sec)185 void bta_dm_ble_scan(bool start, uint8_t duration_sec) {
186   mock_function_count_map[__func__]++;
187   test::mock::bta_dm_act::bta_dm_ble_scan(start, duration_sec);
188 }
bta_dm_ble_set_conn_params(const RawAddress & bd_addr,uint16_t conn_int_min,uint16_t conn_int_max,uint16_t peripheral_latency,uint16_t supervision_tout)189 void bta_dm_ble_set_conn_params(const RawAddress& bd_addr,
190                                 uint16_t conn_int_min, uint16_t conn_int_max,
191                                 uint16_t peripheral_latency,
192                                 uint16_t supervision_tout) {
193   mock_function_count_map[__func__]++;
194   test::mock::bta_dm_act::bta_dm_ble_set_conn_params(
195       bd_addr, conn_int_min, conn_int_max, peripheral_latency,
196       supervision_tout);
197 }
bta_dm_ble_set_data_length(const RawAddress & bd_addr)198 void bta_dm_ble_set_data_length(const RawAddress& bd_addr) {
199   mock_function_count_map[__func__]++;
200   test::mock::bta_dm_act::bta_dm_ble_set_data_length(bd_addr);
201 }
bta_dm_ble_update_conn_params(const RawAddress & bd_addr,uint16_t min_int,uint16_t max_int,uint16_t latency,uint16_t timeout,uint16_t min_ce_len,uint16_t max_ce_len)202 void bta_dm_ble_update_conn_params(const RawAddress& bd_addr, uint16_t min_int,
203                                    uint16_t max_int, uint16_t latency,
204                                    uint16_t timeout, uint16_t min_ce_len,
205                                    uint16_t max_ce_len) {
206   mock_function_count_map[__func__]++;
207   test::mock::bta_dm_act::bta_dm_ble_update_conn_params(
208       bd_addr, min_int, max_int, latency, timeout, min_ce_len, max_ce_len);
209 }
bta_dm_bond(const RawAddress & bd_addr,tBLE_ADDR_TYPE addr_type,tBT_TRANSPORT transport,tBT_DEVICE_TYPE device_type)210 void bta_dm_bond(const RawAddress& bd_addr, tBLE_ADDR_TYPE addr_type,
211                  tBT_TRANSPORT transport, tBT_DEVICE_TYPE device_type) {
212   mock_function_count_map[__func__]++;
213   test::mock::bta_dm_act::bta_dm_bond(bd_addr, addr_type, transport,
214                                       device_type);
215 }
bta_dm_bond_cancel(const RawAddress & bd_addr)216 void bta_dm_bond_cancel(const RawAddress& bd_addr) {
217   mock_function_count_map[__func__]++;
218   test::mock::bta_dm_act::bta_dm_bond_cancel(bd_addr);
219 }
bta_dm_check_if_only_hd_connected(const RawAddress & peer_addr)220 bool bta_dm_check_if_only_hd_connected(const RawAddress& peer_addr) {
221   mock_function_count_map[__func__]++;
222   return test::mock::bta_dm_act::bta_dm_check_if_only_hd_connected(peer_addr);
223 }
bta_dm_ci_rmt_oob_act(std::unique_ptr<tBTA_DM_CI_RMT_OOB> msg)224 void bta_dm_ci_rmt_oob_act(std::unique_ptr<tBTA_DM_CI_RMT_OOB> msg) {
225   mock_function_count_map[__func__]++;
226   test::mock::bta_dm_act::bta_dm_ci_rmt_oob_act(std::move(msg));
227 }
bta_dm_close_acl(const RawAddress & bd_addr,bool remove_dev,tBT_TRANSPORT transport)228 void bta_dm_close_acl(const RawAddress& bd_addr, bool remove_dev,
229                       tBT_TRANSPORT transport) {
230   mock_function_count_map[__func__]++;
231   test::mock::bta_dm_act::bta_dm_close_acl(bd_addr, remove_dev, transport);
232 }
bta_dm_close_gatt_conn(tBTA_DM_MSG * p_data)233 void bta_dm_close_gatt_conn(tBTA_DM_MSG* p_data) {
234   mock_function_count_map[__func__]++;
235   test::mock::bta_dm_act::bta_dm_close_gatt_conn(p_data);
236 }
bta_dm_confirm(const RawAddress & bd_addr,bool accept)237 void bta_dm_confirm(const RawAddress& bd_addr, bool accept) {
238   mock_function_count_map[__func__]++;
239   test::mock::bta_dm_act::bta_dm_confirm(bd_addr, accept);
240 }
bta_dm_deinit_cb(void)241 void bta_dm_deinit_cb(void) {
242   mock_function_count_map[__func__]++;
243   test::mock::bta_dm_act::bta_dm_deinit_cb();
244 }
bta_dm_disable()245 void bta_dm_disable() {
246   mock_function_count_map[__func__]++;
247   test::mock::bta_dm_act::bta_dm_disable();
248 }
bta_dm_disc_result(tBTA_DM_MSG * p_data)249 void bta_dm_disc_result(tBTA_DM_MSG* p_data) {
250   mock_function_count_map[__func__]++;
251   test::mock::bta_dm_act::bta_dm_disc_result(p_data);
252 }
bta_dm_disc_rmt_name(tBTA_DM_MSG * p_data)253 void bta_dm_disc_rmt_name(tBTA_DM_MSG* p_data) {
254   mock_function_count_map[__func__]++;
255   test::mock::bta_dm_act::bta_dm_disc_rmt_name(p_data);
256 }
bta_dm_discover(tBTA_DM_MSG * p_data)257 void bta_dm_discover(tBTA_DM_MSG* p_data) {
258   mock_function_count_map[__func__]++;
259   test::mock::bta_dm_act::bta_dm_discover(p_data);
260 }
bta_dm_eir_update_cust_uuid(const tBTA_CUSTOM_UUID & curr,bool adding)261 void bta_dm_eir_update_cust_uuid(const tBTA_CUSTOM_UUID& curr, bool adding) {
262   mock_function_count_map[__func__]++;
263   test::mock::bta_dm_act::bta_dm_eir_update_cust_uuid(curr, adding);
264 }
bta_dm_eir_update_uuid(uint16_t uuid16,bool adding)265 void bta_dm_eir_update_uuid(uint16_t uuid16, bool adding) {
266   mock_function_count_map[__func__]++;
267   test::mock::bta_dm_act::bta_dm_eir_update_uuid(uuid16, adding);
268 }
bta_dm_enable(tBTA_DM_SEC_CBACK * p_sec_cback)269 void bta_dm_enable(tBTA_DM_SEC_CBACK* p_sec_cback) {
270   mock_function_count_map[__func__]++;
271   test::mock::bta_dm_act::bta_dm_enable(p_sec_cback);
272 }
bta_dm_encrypt_cback(const RawAddress * bd_addr,tBT_TRANSPORT transport,void * p_ref_data,tBTM_STATUS result)273 void bta_dm_encrypt_cback(const RawAddress* bd_addr, tBT_TRANSPORT transport,
274                           void* p_ref_data, tBTM_STATUS result) {
275   mock_function_count_map[__func__]++;
276   test::mock::bta_dm_act::bta_dm_encrypt_cback(bd_addr, transport, p_ref_data,
277                                                result);
278 }
bta_dm_execute_queued_request()279 void bta_dm_execute_queued_request() {
280   mock_function_count_map[__func__]++;
281   test::mock::bta_dm_act::bta_dm_execute_queued_request();
282 }
bta_dm_free_sdp_db()283 void bta_dm_free_sdp_db() {
284   mock_function_count_map[__func__]++;
285   test::mock::bta_dm_act::bta_dm_free_sdp_db();
286 }
bta_dm_init_cb(void)287 void bta_dm_init_cb(void) {
288   mock_function_count_map[__func__]++;
289   test::mock::bta_dm_act::bta_dm_init_cb();
290 }
bta_dm_inq_cmpl(uint8_t num)291 void bta_dm_inq_cmpl(uint8_t num) {
292   mock_function_count_map[__func__]++;
293   test::mock::bta_dm_act::bta_dm_inq_cmpl(num);
294 }
bta_dm_is_search_request_queued()295 bool bta_dm_is_search_request_queued() {
296   mock_function_count_map[__func__]++;
297   return test::mock::bta_dm_act::bta_dm_is_search_request_queued();
298 }
bta_dm_pin_reply(std::unique_ptr<tBTA_DM_API_PIN_REPLY> msg)299 void bta_dm_pin_reply(std::unique_ptr<tBTA_DM_API_PIN_REPLY> msg) {
300   mock_function_count_map[__func__]++;
301   test::mock::bta_dm_act::bta_dm_pin_reply(std::move(msg));
302 }
bta_dm_proc_open_evt(tBTA_GATTC_OPEN * p_data)303 void bta_dm_proc_open_evt(tBTA_GATTC_OPEN* p_data) {
304   mock_function_count_map[__func__]++;
305   test::mock::bta_dm_act::bta_dm_proc_open_evt(p_data);
306 }
bta_dm_process_remove_device(const RawAddress & bd_addr)307 void bta_dm_process_remove_device(const RawAddress& bd_addr) {
308   mock_function_count_map[__func__]++;
309   test::mock::bta_dm_act::bta_dm_process_remove_device(bd_addr);
310 }
bta_dm_queue_disc(tBTA_DM_MSG * p_data)311 void bta_dm_queue_disc(tBTA_DM_MSG* p_data) {
312   mock_function_count_map[__func__]++;
313   test::mock::bta_dm_act::bta_dm_queue_disc(p_data);
314 }
bta_dm_queue_search(tBTA_DM_MSG * p_data)315 void bta_dm_queue_search(tBTA_DM_MSG* p_data) {
316   mock_function_count_map[__func__]++;
317   test::mock::bta_dm_act::bta_dm_queue_search(p_data);
318 }
bta_dm_remove_device(const RawAddress & bd_addr)319 void bta_dm_remove_device(const RawAddress& bd_addr) {
320   mock_function_count_map[__func__]++;
321   test::mock::bta_dm_act::bta_dm_remove_device(bd_addr);
322 }
bta_dm_rm_cback(tBTA_SYS_CONN_STATUS status,uint8_t id,uint8_t app_id,const RawAddress & peer_addr)323 void bta_dm_rm_cback(tBTA_SYS_CONN_STATUS status, uint8_t id, uint8_t app_id,
324                      const RawAddress& peer_addr) {
325   mock_function_count_map[__func__]++;
326   test::mock::bta_dm_act::bta_dm_rm_cback(status, id, app_id, peer_addr);
327 }
bta_dm_rmt_name(tBTA_DM_MSG * p_data)328 void bta_dm_rmt_name(tBTA_DM_MSG* p_data) {
329   mock_function_count_map[__func__]++;
330   test::mock::bta_dm_act::bta_dm_rmt_name(p_data);
331 }
bta_dm_sdp_result(tBTA_DM_MSG * p_data)332 void bta_dm_sdp_result(tBTA_DM_MSG* p_data) {
333   mock_function_count_map[__func__]++;
334   test::mock::bta_dm_act::bta_dm_sdp_result(p_data);
335 }
bta_dm_search_cancel()336 void bta_dm_search_cancel() {
337   mock_function_count_map[__func__]++;
338   test::mock::bta_dm_act::bta_dm_search_cancel();
339 }
bta_dm_search_cancel_notify()340 void bta_dm_search_cancel_notify() {
341   mock_function_count_map[__func__]++;
342   test::mock::bta_dm_act::bta_dm_search_cancel_notify();
343 }
bta_dm_search_clear_queue()344 void bta_dm_search_clear_queue() {
345   mock_function_count_map[__func__]++;
346   test::mock::bta_dm_act::bta_dm_search_clear_queue();
347 }
bta_dm_search_cmpl()348 void bta_dm_search_cmpl() {
349   mock_function_count_map[__func__]++;
350   test::mock::bta_dm_act::bta_dm_search_cmpl();
351 }
bta_dm_search_result(tBTA_DM_MSG * p_data)352 void bta_dm_search_result(tBTA_DM_MSG* p_data) {
353   mock_function_count_map[__func__]++;
354   test::mock::bta_dm_act::bta_dm_search_result(p_data);
355 }
bta_dm_search_start(tBTA_DM_MSG * p_data)356 void bta_dm_search_start(tBTA_DM_MSG* p_data) {
357   mock_function_count_map[__func__]++;
358   test::mock::bta_dm_act::bta_dm_search_start(p_data);
359 }
bta_dm_set_dev_name(const std::vector<uint8_t> & name)360 void bta_dm_set_dev_name(const std::vector<uint8_t>& name) {
361   mock_function_count_map[__func__]++;
362   test::mock::bta_dm_act::bta_dm_set_dev_name(name);
363 }
bta_dm_set_encryption(const RawAddress & bd_addr,tBT_TRANSPORT transport,tBTA_DM_ENCRYPT_CBACK * p_callback,tBTM_BLE_SEC_ACT sec_act)364 void bta_dm_set_encryption(const RawAddress& bd_addr, tBT_TRANSPORT transport,
365                            tBTA_DM_ENCRYPT_CBACK* p_callback,
366                            tBTM_BLE_SEC_ACT sec_act) {
367   mock_function_count_map[__func__]++;
368   test::mock::bta_dm_act::bta_dm_set_encryption(bd_addr, transport, p_callback,
369                                                 sec_act);
370 }
btm_dm_start_gatt_discovery(const RawAddress & bd_addr)371 void btm_dm_start_gatt_discovery(const RawAddress& bd_addr) {
372   mock_function_count_map[__func__]++;
373   test::mock::bta_dm_act::btm_dm_start_gatt_discovery(bd_addr);
374 }
handle_remote_features_complete(const RawAddress & bd_addr)375 void handle_remote_features_complete(const RawAddress& bd_addr) {
376   mock_function_count_map[__func__]++;
377   test::mock::bta_dm_act::handle_remote_features_complete(bd_addr);
378 }
379 
380 // END mockcify generation
381