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