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 // TODO(b/369381361) Enfore -Wmissing-prototypes
35 #pragma GCC diagnostic ignored "-Wmissing-prototypes"
36
37 struct uid_set_t;
38
btif_dm_pairing_is_busy()39 bool btif_dm_pairing_is_busy() {
40 inc_func_call_count(__func__);
41 return false;
42 }
check_cod_hid(const RawAddress &)43 bool check_cod_hid(const RawAddress& /* remote_bdaddr */) {
44 inc_func_call_count(__func__);
45 return false;
46 }
is_device_le_audio_capable(const RawAddress)47 bool is_device_le_audio_capable(const RawAddress /* bd_addr */) {
48 inc_func_call_count(__func__);
49 return false;
50 }
is_le_audio_capable_during_service_discovery(const RawAddress &)51 bool is_le_audio_capable_during_service_discovery(const RawAddress& /* bd_addr */) {
52 inc_func_call_count(__func__);
53 return false;
54 }
btif_dm_get_connection_state(const RawAddress &)55 uint16_t btif_dm_get_connection_state(const RawAddress& /* bd_addr */) {
56 inc_func_call_count(__func__);
57 return 0;
58 }
BTIF_dm_disable()59 void BTIF_dm_disable() { inc_func_call_count(__func__); }
BTIF_dm_enable()60 void BTIF_dm_enable() { inc_func_call_count(__func__); }
BTIF_dm_report_inquiry_status_change(tBTM_INQUIRY_STATE)61 void BTIF_dm_report_inquiry_status_change(tBTM_INQUIRY_STATE /* state */) {
62 inc_func_call_count(__func__);
63 }
btif_dm_sec_evt(tBTA_DM_SEC_EVT,tBTA_DM_SEC *)64 void btif_dm_sec_evt(tBTA_DM_SEC_EVT /* event */, tBTA_DM_SEC* /* p_data */) {
65 inc_func_call_count(__func__);
66 }
btif_ble_receiver_test(uint8_t)67 void btif_ble_receiver_test(uint8_t /* rx_freq */) { inc_func_call_count(__func__); }
btif_ble_test_end()68 void btif_ble_test_end() { inc_func_call_count(__func__); }
btif_ble_transmitter_test(uint8_t,uint8_t,uint8_t)69 void btif_ble_transmitter_test(uint8_t /* tx_freq */, uint8_t /* test_data_len */,
70 uint8_t /* packet_payload */) {
71 inc_func_call_count(__func__);
72 }
btif_debug_bond_event_dump(int)73 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)74 void btif_dm_ble_sec_req_evt(tBTA_DM_BLE_SEC_REQ* /* p_ble_req */, bool /* is_consent */) {
75 inc_func_call_count(__func__);
76 }
btif_dm_cancel_bond(const RawAddress)77 void btif_dm_cancel_bond(const RawAddress /* bd_addr */) { inc_func_call_count(__func__); }
btif_dm_cancel_discovery(void)78 void btif_dm_cancel_discovery(void) { inc_func_call_count(__func__); }
btif_dm_cleanup(void)79 void btif_dm_cleanup(void) { inc_func_call_count(__func__); }
btif_dm_create_bond(const RawAddress,int)80 void btif_dm_create_bond(const RawAddress /* bd_addr */, int /* transport */) {
81 inc_func_call_count(__func__);
82 }
btif_dm_create_bond_le(const RawAddress,tBLE_ADDR_TYPE)83 void btif_dm_create_bond_le(const RawAddress /* bd_addr */, tBLE_ADDR_TYPE /* addr_type */) {
84 inc_func_call_count(__func__);
85 }
btif_dm_create_bond_out_of_band(const RawAddress,int,const bt_oob_data_t,const bt_oob_data_t)86 void btif_dm_create_bond_out_of_band(const RawAddress /* bd_addr */, int /* transport */,
87 const bt_oob_data_t /* p192_data */,
88 const bt_oob_data_t /* p256_data */) {
89 inc_func_call_count(__func__);
90 }
btif_dm_enable_service(tBTA_SERVICE_ID,bool)91 void btif_dm_enable_service(tBTA_SERVICE_ID /* service_id */, bool /* enable */) {
92 inc_func_call_count(__func__);
93 }
btif_dm_get_ble_local_keys(tBTA_DM_BLE_LOCAL_KEY_MASK *,Octet16 *,tBTA_BLE_LOCAL_ID_KEYS *)94 void btif_dm_get_ble_local_keys(tBTA_DM_BLE_LOCAL_KEY_MASK* /* p_key_mask */, Octet16* /* p_er */,
95 tBTA_BLE_LOCAL_ID_KEYS* /* p_id_keys */) {
96 inc_func_call_count(__func__);
97 }
btif_dm_get_remote_services(RawAddress,const int)98 void btif_dm_get_remote_services(RawAddress /* remote_addr */, const int /* transport */) {
99 inc_func_call_count(__func__);
100 }
btif_dm_hh_open_failed(RawAddress *)101 void btif_dm_hh_open_failed(RawAddress* /* bdaddr */) { inc_func_call_count(__func__); }
btif_dm_init(uid_set_t *)102 void btif_dm_init(uid_set_t* /* set */) { inc_func_call_count(__func__); }
btif_dm_get_local_class_of_device()103 DEV_CLASS btif_dm_get_local_class_of_device() {
104 inc_func_call_count(__func__);
105 return kDevClassUnclassified;
106 }
btif_dm_load_ble_local_keys(void)107 void btif_dm_load_ble_local_keys(void) { inc_func_call_count(__func__); }
btif_dm_on_disable()108 void btif_dm_on_disable() { inc_func_call_count(__func__); }
btif_dm_pin_reply(const RawAddress,uint8_t,uint8_t,bt_pin_code_t)109 void btif_dm_pin_reply(const RawAddress /* bd_addr */, uint8_t /* accept */, uint8_t /* pin_len */,
110 bt_pin_code_t /* pin_code */) {
111 inc_func_call_count(__func__);
112 }
btif_dm_proc_io_req(tBTM_AUTH_REQ *,bool)113 void btif_dm_proc_io_req(tBTM_AUTH_REQ* /* p_auth_req */, bool /* is_orig */) {
114 inc_func_call_count(__func__);
115 }
btif_dm_proc_io_rsp(const RawAddress &,tBTM_IO_CAP,tBTM_OOB_DATA,tBTM_AUTH_REQ)116 void btif_dm_proc_io_rsp(const RawAddress& /* bd_addr */, tBTM_IO_CAP /* io_cap */,
117 tBTM_OOB_DATA /* oob_data */, tBTM_AUTH_REQ /* auth_req */) {
118 inc_func_call_count(__func__);
119 }
btif_dm_read_energy_info()120 void btif_dm_read_energy_info() { inc_func_call_count(__func__); }
btif_dm_remove_ble_bonding_keys(void)121 void btif_dm_remove_ble_bonding_keys(void) { inc_func_call_count(__func__); }
btif_dm_remove_bond(const RawAddress)122 void btif_dm_remove_bond(const RawAddress /* bd_addr */) { inc_func_call_count(__func__); }
btif_dm_set_oob_for_io_req(tBTM_OOB_DATA *)123 void btif_dm_set_oob_for_io_req(tBTM_OOB_DATA* /* p_has_oob_data */) {
124 inc_func_call_count(__func__);
125 }
btif_dm_set_oob_for_le_io_req(const RawAddress &,tBTM_OOB_DATA *,tBTM_LE_AUTH_REQ *)126 void btif_dm_set_oob_for_le_io_req(const RawAddress& /* bd_addr */,
127 tBTM_OOB_DATA* /* p_has_oob_data */,
128 tBTM_LE_AUTH_REQ* /* p_auth_req */) {
129 inc_func_call_count(__func__);
130 }
btif_dm_ssp_reply(const RawAddress,bt_ssp_variant_t,uint8_t)131 void btif_dm_ssp_reply(const RawAddress /* bd_addr */, bt_ssp_variant_t /* variant */,
132 uint8_t /* accept */) {
133 inc_func_call_count(__func__);
134 }
btif_dm_start_discovery(void)135 void btif_dm_start_discovery(void) { inc_func_call_count(__func__); }
btif_update_remote_properties(const RawAddress &,BD_NAME,DEV_CLASS,tBT_DEVICE_TYPE)136 void btif_update_remote_properties(const RawAddress& /* bd_addr */, BD_NAME /* bd_name */,
137 DEV_CLASS /* dev_class */, tBT_DEVICE_TYPE /* dev_type */) {
138 inc_func_call_count(__func__);
139 }
140
btif_dm_get_smp_config(tBTE_APPL_CFG *)141 bool btif_dm_get_smp_config(tBTE_APPL_CFG* /* p_cfg */) {
142 inc_func_call_count(__func__);
143 return true;
144 }
145
btif_dm_proc_rmt_oob(const RawAddress &,Octet16 *,Octet16 *)146 bool btif_dm_proc_rmt_oob(const RawAddress& /* bd_addr */, Octet16* /* p_c */, Octet16* /* p_r */) {
147 inc_func_call_count(__func__);
148 return false;
149 }
150
btif_dm_proc_loc_oob(tBT_TRANSPORT,bool,const Octet16 &,const Octet16 &)151 void btif_dm_proc_loc_oob(tBT_TRANSPORT /* transport */, bool /* is_valid */,
152 const Octet16& /* c */, const Octet16& /* r */) {
153 inc_func_call_count(__func__);
154 }
btif_get_device_type(const RawAddress &,int *)155 bool btif_get_device_type(const RawAddress& /* bda */, int* /* p_device_type */) {
156 inc_func_call_count(__func__);
157 return false;
158 }
btif_get_address_type(const RawAddress &,tBLE_ADDR_TYPE *)159 bool btif_get_address_type(const RawAddress& /* bda */, tBLE_ADDR_TYPE* /* p_addr_type */) {
160 inc_func_call_count(__func__);
161 return false;
162 }
163