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:51
20 */
21
22 #include <cstdint>
23
24 #include "bta/include/bta_api.h"
25 #include "bta/include/bta_sec_api.h"
26 #include "include/hardware/bluetooth.h"
27 #include "internal_include/bte_appl.h"
28 #include "stack/include/acl_api_types.h"
29 #include "stack/include/bt_dev_class.h"
30 #include "test/common/mock_functions.h"
31 #include "types/bt_transport.h"
32 #include "types/raw_address.h"
33
34 struct uid_set_t;
35
btif_dm_pairing_is_busy()36 bool btif_dm_pairing_is_busy() {
37 inc_func_call_count(__func__);
38 return false;
39 }
check_cod(const RawAddress *,uint32_t)40 bool check_cod(const RawAddress* /* remote_bdaddr */, uint32_t /* cod */) {
41 inc_func_call_count(__func__);
42 return false;
43 }
check_cod_hid(const RawAddress *)44 bool check_cod_hid(const RawAddress* /* remote_bdaddr */) {
45 inc_func_call_count(__func__);
46 return false;
47 }
check_cod_hid(const RawAddress &)48 bool check_cod_hid(const RawAddress& /* remote_bdaddr */) {
49 inc_func_call_count(__func__);
50 return false;
51 }
is_device_le_audio_capable(const RawAddress)52 bool is_device_le_audio_capable(const RawAddress /* bd_addr */) {
53 inc_func_call_count(__func__);
54 return false;
55 }
is_le_audio_capable_during_service_discovery(const RawAddress &)56 bool is_le_audio_capable_during_service_discovery(
57 const RawAddress& /* bd_addr */) {
58 inc_func_call_count(__func__);
59 return false;
60 }
btif_dm_get_connection_state(const RawAddress &)61 uint16_t btif_dm_get_connection_state(const RawAddress& /* bd_addr */) {
62 inc_func_call_count(__func__);
63 return 0;
64 }
BTIF_dm_disable()65 void BTIF_dm_disable() { inc_func_call_count(__func__); }
BTIF_dm_enable()66 void BTIF_dm_enable() { inc_func_call_count(__func__); }
BTIF_dm_report_inquiry_status_change(tBTM_INQUIRY_STATE)67 void BTIF_dm_report_inquiry_status_change(tBTM_INQUIRY_STATE /* state */) {
68 inc_func_call_count(__func__);
69 }
btif_dm_sec_evt(tBTA_DM_SEC_EVT,tBTA_DM_SEC *)70 void btif_dm_sec_evt(tBTA_DM_SEC_EVT /* event */, tBTA_DM_SEC* /* p_data */) {
71 inc_func_call_count(__func__);
72 }
btif_ble_receiver_test(uint8_t)73 void btif_ble_receiver_test(uint8_t /* rx_freq */) {
74 inc_func_call_count(__func__);
75 }
btif_ble_test_end()76 void btif_ble_test_end() { inc_func_call_count(__func__); }
btif_ble_transmitter_test(uint8_t,uint8_t,uint8_t)77 void btif_ble_transmitter_test(uint8_t /* tx_freq */,
78 uint8_t /* test_data_len */,
79 uint8_t /* packet_payload */) {
80 inc_func_call_count(__func__);
81 }
btif_debug_bond_event_dump(int)82 void btif_debug_bond_event_dump(int /* fd */) { inc_func_call_count(__func__); }
btif_dm_ble_sec_req_evt(tBTA_DM_BLE_SEC_REQ *,bool)83 void btif_dm_ble_sec_req_evt(tBTA_DM_BLE_SEC_REQ* /* p_ble_req */,
84 bool /* is_consent */) {
85 inc_func_call_count(__func__);
86 }
btif_dm_cancel_bond(const RawAddress)87 void btif_dm_cancel_bond(const RawAddress /* bd_addr */) {
88 inc_func_call_count(__func__);
89 }
btif_dm_cancel_discovery(void)90 void btif_dm_cancel_discovery(void) { inc_func_call_count(__func__); }
btif_dm_cleanup(void)91 void btif_dm_cleanup(void) { inc_func_call_count(__func__); }
btif_dm_create_bond(const RawAddress,int)92 void btif_dm_create_bond(const RawAddress /* bd_addr */, int /* transport */) {
93 inc_func_call_count(__func__);
94 }
btif_dm_create_bond_le(const RawAddress,tBLE_ADDR_TYPE)95 void btif_dm_create_bond_le(const RawAddress /* bd_addr */,
96 tBLE_ADDR_TYPE /* addr_type */) {
97 inc_func_call_count(__func__);
98 }
btif_dm_create_bond_out_of_band(const RawAddress,int,const bt_oob_data_t,const bt_oob_data_t)99 void btif_dm_create_bond_out_of_band(const RawAddress /* bd_addr */,
100 int /* transport */,
101 const bt_oob_data_t /* p192_data */,
102 const bt_oob_data_t /* p256_data */) {
103 inc_func_call_count(__func__);
104 }
btif_dm_enable_service(tBTA_SERVICE_ID,bool)105 void btif_dm_enable_service(tBTA_SERVICE_ID /* service_id */,
106 bool /* enable */) {
107 inc_func_call_count(__func__);
108 }
btif_dm_get_ble_local_keys(tBTA_DM_BLE_LOCAL_KEY_MASK *,Octet16 *,tBTA_BLE_LOCAL_ID_KEYS *)109 void btif_dm_get_ble_local_keys(tBTA_DM_BLE_LOCAL_KEY_MASK* /* p_key_mask */,
110 Octet16* /* p_er */,
111 tBTA_BLE_LOCAL_ID_KEYS* /* p_id_keys */) {
112 inc_func_call_count(__func__);
113 }
btif_dm_get_remote_services(RawAddress,const int)114 void btif_dm_get_remote_services(RawAddress /* remote_addr */,
115 const int /* transport */) {
116 inc_func_call_count(__func__);
117 }
btif_dm_hh_open_failed(RawAddress *)118 void btif_dm_hh_open_failed(RawAddress* /* bdaddr */) {
119 inc_func_call_count(__func__);
120 }
btif_dm_init(uid_set_t *)121 void btif_dm_init(uid_set_t* /* set */) { inc_func_call_count(__func__); }
btif_dm_get_local_class_of_device()122 DEV_CLASS btif_dm_get_local_class_of_device() {
123 inc_func_call_count(__func__);
124 return kDevClassUnclassified;
125 }
btif_dm_load_ble_local_keys(void)126 void btif_dm_load_ble_local_keys(void) { inc_func_call_count(__func__); }
btif_dm_on_disable()127 void btif_dm_on_disable() { inc_func_call_count(__func__); }
btif_dm_pin_reply(const RawAddress,uint8_t,uint8_t,bt_pin_code_t)128 void btif_dm_pin_reply(const RawAddress /* bd_addr */, uint8_t /* accept */,
129 uint8_t /* pin_len */, bt_pin_code_t /* pin_code */) {
130 inc_func_call_count(__func__);
131 }
btif_dm_proc_io_req(tBTM_AUTH_REQ *,bool)132 void btif_dm_proc_io_req(tBTM_AUTH_REQ* /* p_auth_req */, bool /* is_orig */) {
133 inc_func_call_count(__func__);
134 }
btif_dm_proc_io_rsp(const RawAddress &,tBTM_IO_CAP,tBTM_OOB_DATA,tBTM_AUTH_REQ)135 void btif_dm_proc_io_rsp(const RawAddress& /* bd_addr */,
136 tBTM_IO_CAP /* io_cap */, tBTM_OOB_DATA /* oob_data */,
137 tBTM_AUTH_REQ /* auth_req */) {
138 inc_func_call_count(__func__);
139 }
btif_dm_read_energy_info()140 void btif_dm_read_energy_info() { inc_func_call_count(__func__); }
btif_dm_remove_ble_bonding_keys(void)141 void btif_dm_remove_ble_bonding_keys(void) { inc_func_call_count(__func__); }
btif_dm_remove_bond(const RawAddress)142 void btif_dm_remove_bond(const RawAddress /* bd_addr */) {
143 inc_func_call_count(__func__);
144 }
btif_dm_set_oob_for_io_req(tBTM_OOB_DATA *)145 void btif_dm_set_oob_for_io_req(tBTM_OOB_DATA* /* p_has_oob_data */) {
146 inc_func_call_count(__func__);
147 }
btif_dm_set_oob_for_le_io_req(const RawAddress &,tBTM_OOB_DATA *,tBTM_LE_AUTH_REQ *)148 void btif_dm_set_oob_for_le_io_req(const RawAddress& /* bd_addr */,
149 tBTM_OOB_DATA* /* p_has_oob_data */,
150 tBTM_LE_AUTH_REQ* /* p_auth_req */) {
151 inc_func_call_count(__func__);
152 }
btif_dm_ssp_reply(const RawAddress,bt_ssp_variant_t,uint8_t)153 void btif_dm_ssp_reply(const RawAddress /* bd_addr */,
154 bt_ssp_variant_t /* variant */, uint8_t /* accept */) {
155 inc_func_call_count(__func__);
156 }
btif_dm_start_discovery(void)157 void btif_dm_start_discovery(void) { inc_func_call_count(__func__); }
btif_dm_update_ble_remote_properties(const RawAddress &,BD_NAME,DEV_CLASS,tBT_DEVICE_TYPE)158 void btif_dm_update_ble_remote_properties(const RawAddress& /* bd_addr */,
159 BD_NAME /* bd_name */,
160 DEV_CLASS /* dev_class */,
161 tBT_DEVICE_TYPE /* dev_type */) {
162 inc_func_call_count(__func__);
163 }
164
btif_dm_get_smp_config(tBTE_APPL_CFG *)165 bool btif_dm_get_smp_config(tBTE_APPL_CFG* /* p_cfg */) {
166 inc_func_call_count(__func__);
167 return true;
168 }
169
btif_dm_proc_rmt_oob(const RawAddress &,Octet16 *,Octet16 *)170 bool btif_dm_proc_rmt_oob(const RawAddress& /* bd_addr */, Octet16* /* p_c */,
171 Octet16* /* p_r */) {
172 inc_func_call_count(__func__);
173 return false;
174 }
175
btif_dm_proc_loc_oob(tBT_TRANSPORT,bool,const Octet16 &,const Octet16 &)176 void btif_dm_proc_loc_oob(tBT_TRANSPORT /* transport */, bool /* is_valid */,
177 const Octet16& /* c */, const Octet16& /* r */) {
178 inc_func_call_count(__func__);
179 }
btif_get_device_type(const RawAddress &,int *)180 bool btif_get_device_type(const RawAddress& /* bda */,
181 int* /* p_device_type */) {
182 inc_func_call_count(__func__);
183 return false;
184 }
btif_get_address_type(const RawAddress &,tBLE_ADDR_TYPE *)185 bool btif_get_address_type(const RawAddress& /* bda */,
186 tBLE_ADDR_TYPE* /* p_addr_type */) {
187 inc_func_call_count(__func__);
188 return false;
189 }
190