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 #pragma once 18 19 /* 20 * Generated mock file from original source file 21 * Functions generated:75 22 * 23 * mockcify.pl ver 0.3.0 24 */ 25 26 #include <cstdint> 27 #include <functional> 28 #include <map> 29 #include <string> 30 31 // Original included files, if any 32 // NOTE: Since this is a mock file with mock definitions some number of 33 // include files may not be required. The include-what-you-use 34 // still applies, but crafting proper inclusion is out of scope 35 // for this effort. This compilation unit may compile as-is, or 36 // may need attention to prune from (or add to ) the inclusion set. 37 #include <base/functional/callback_forward.h> 38 #include <stddef.h> 39 #include <string.h> 40 41 #include "bt_target.h" 42 #include "btu.h" 43 #include "device/include/esco_parameters.h" 44 #include "hcidefs.h" 45 #include "hcimsgs.h" 46 #include "osi/include/allocator.h" 47 #include "stack/include/acl_hci_link_interface.h" 48 #include "stack/include/bt_hdr.h" 49 #include "stack/include/bt_octets.h" 50 #include "test/common/mock_functions.h" 51 #include "types/raw_address.h" 52 53 // Mocked compile conditionals, if any 54 55 namespace test { 56 namespace mock { 57 namespace stack_hcic_hcicmds { 58 59 // Name: btsnd_hcic_accept_conn 60 // Params: const RawAddress& dest, uint8_t role 61 // Return: void 62 struct btsnd_hcic_accept_conn { 63 std::function<void(const RawAddress& dest, uint8_t role)> body{ 64 [](const RawAddress& dest, uint8_t role) {}}; operatorbtsnd_hcic_accept_conn65 void operator()(const RawAddress& dest, uint8_t role) { body(dest, role); }; 66 }; 67 extern struct btsnd_hcic_accept_conn btsnd_hcic_accept_conn; 68 69 // Name: btsnd_hcic_accept_esco_conn 70 // Params: const RawAddress& bd_addr, uint32_t transmit_bandwidth, uint32_t 71 // receive_bandwidth, uint16_t max_latency, uint16_t content_fmt, uint8_t 72 // retrans_effort, uint16_t packet_types Return: void 73 struct btsnd_hcic_accept_esco_conn { 74 std::function<void(const RawAddress& bd_addr, uint32_t transmit_bandwidth, 75 uint32_t receive_bandwidth, uint16_t max_latency, 76 uint16_t content_fmt, uint8_t retrans_effort, 77 uint16_t packet_types)> 78 body{[](const RawAddress& bd_addr, uint32_t transmit_bandwidth, 79 uint32_t receive_bandwidth, uint16_t max_latency, 80 uint16_t content_fmt, uint8_t retrans_effort, 81 uint16_t packet_types) {}}; operatorbtsnd_hcic_accept_esco_conn82 void operator()(const RawAddress& bd_addr, uint32_t transmit_bandwidth, 83 uint32_t receive_bandwidth, uint16_t max_latency, 84 uint16_t content_fmt, uint8_t retrans_effort, 85 uint16_t packet_types) { 86 body(bd_addr, transmit_bandwidth, receive_bandwidth, max_latency, 87 content_fmt, retrans_effort, packet_types); 88 }; 89 }; 90 extern struct btsnd_hcic_accept_esco_conn btsnd_hcic_accept_esco_conn; 91 92 // Name: btsnd_hcic_add_SCO_conn 93 // Params: uint16_t handle, uint16_t packet_types 94 // Return: void 95 struct btsnd_hcic_add_SCO_conn { 96 std::function<void(uint16_t handle, uint16_t packet_types)> body{ 97 [](uint16_t handle, uint16_t packet_types) {}}; operatorbtsnd_hcic_add_SCO_conn98 void operator()(uint16_t handle, uint16_t packet_types) { 99 body(handle, packet_types); 100 }; 101 }; 102 extern struct btsnd_hcic_add_SCO_conn btsnd_hcic_add_SCO_conn; 103 104 // Name: btsnd_hcic_auth_request 105 // Params: uint16_t handle 106 // Return: void 107 struct btsnd_hcic_auth_request { 108 std::function<void(uint16_t handle)> body{[](uint16_t handle) {}}; operatorbtsnd_hcic_auth_request109 void operator()(uint16_t handle) { body(handle); }; 110 }; 111 extern struct btsnd_hcic_auth_request btsnd_hcic_auth_request; 112 113 // Name: btsnd_hcic_change_conn_type 114 // Params: uint16_t handle, uint16_t packet_types 115 // Return: void 116 struct btsnd_hcic_change_conn_type { 117 std::function<void(uint16_t handle, uint16_t packet_types)> body{ 118 [](uint16_t handle, uint16_t packet_types) {}}; operatorbtsnd_hcic_change_conn_type119 void operator()(uint16_t handle, uint16_t packet_types) { 120 body(handle, packet_types); 121 }; 122 }; 123 extern struct btsnd_hcic_change_conn_type btsnd_hcic_change_conn_type; 124 125 // Name: btsnd_hcic_change_name 126 // Params: BD_NAME name 127 // Return: void 128 struct btsnd_hcic_change_name { 129 std::function<void(BD_NAME name)> body{[](BD_NAME name) {}}; operatorbtsnd_hcic_change_name130 void operator()(BD_NAME name) { body(name); }; 131 }; 132 extern struct btsnd_hcic_change_name btsnd_hcic_change_name; 133 134 // Name: btsnd_hcic_create_conn_cancel 135 // Params: const RawAddress& dest 136 // Return: void 137 struct btsnd_hcic_create_conn_cancel { 138 std::function<void(const RawAddress& dest)> body{ 139 [](const RawAddress& dest) {}}; operatorbtsnd_hcic_create_conn_cancel140 void operator()(const RawAddress& dest) { body(dest); }; 141 }; 142 extern struct btsnd_hcic_create_conn_cancel btsnd_hcic_create_conn_cancel; 143 144 // Name: btsnd_hcic_delete_stored_key 145 // Params: const RawAddress& bd_addr, bool delete_all_flag 146 // Return: void 147 struct btsnd_hcic_delete_stored_key { 148 std::function<void(const RawAddress& bd_addr, bool delete_all_flag)> body{ 149 [](const RawAddress& bd_addr, bool delete_all_flag) {}}; operatorbtsnd_hcic_delete_stored_key150 void operator()(const RawAddress& bd_addr, bool delete_all_flag) { 151 body(bd_addr, delete_all_flag); 152 }; 153 }; 154 extern struct btsnd_hcic_delete_stored_key btsnd_hcic_delete_stored_key; 155 156 // Name: btsnd_hcic_enhanced_accept_synchronous_connection 157 // Params: const RawAddress& bd_addr, enh_esco_params_t* p_params 158 // Return: void 159 struct btsnd_hcic_enhanced_accept_synchronous_connection { 160 std::function<void(const RawAddress& bd_addr, enh_esco_params_t* p_params)> 161 body{[](const RawAddress& bd_addr, enh_esco_params_t* p_params) {}}; operatorbtsnd_hcic_enhanced_accept_synchronous_connection162 void operator()(const RawAddress& bd_addr, enh_esco_params_t* p_params) { 163 body(bd_addr, p_params); 164 }; 165 }; 166 extern struct btsnd_hcic_enhanced_accept_synchronous_connection 167 btsnd_hcic_enhanced_accept_synchronous_connection; 168 169 // Name: btsnd_hcic_enhanced_flush 170 // Params: uint16_t handle, uint8_t packet_type 171 // Return: void 172 struct btsnd_hcic_enhanced_flush { 173 std::function<void(uint16_t handle, uint8_t packet_type)> body{ 174 [](uint16_t handle, uint8_t packet_type) {}}; operatorbtsnd_hcic_enhanced_flush175 void operator()(uint16_t handle, uint8_t packet_type) { 176 body(handle, packet_type); 177 }; 178 }; 179 extern struct btsnd_hcic_enhanced_flush btsnd_hcic_enhanced_flush; 180 181 // Name: btsnd_hcic_enhanced_set_up_synchronous_connection 182 // Params: uint16_t conn_handle, enh_esco_params_t* p_params 183 // Return: void 184 struct btsnd_hcic_enhanced_set_up_synchronous_connection { 185 std::function<void(uint16_t conn_handle, enh_esco_params_t* p_params)> body{ 186 [](uint16_t conn_handle, enh_esco_params_t* p_params) {}}; operatorbtsnd_hcic_enhanced_set_up_synchronous_connection187 void operator()(uint16_t conn_handle, enh_esco_params_t* p_params) { 188 body(conn_handle, p_params); 189 }; 190 }; 191 extern struct btsnd_hcic_enhanced_set_up_synchronous_connection 192 btsnd_hcic_enhanced_set_up_synchronous_connection; 193 194 // Name: btsnd_hcic_exit_park_mode 195 // Params: uint16_t handle 196 // Return: void 197 struct btsnd_hcic_exit_park_mode { 198 std::function<void(uint16_t handle)> body{[](uint16_t handle) {}}; operatorbtsnd_hcic_exit_park_mode199 void operator()(uint16_t handle) { body(handle); }; 200 }; 201 extern struct btsnd_hcic_exit_park_mode btsnd_hcic_exit_park_mode; 202 203 // Name: btsnd_hcic_exit_sniff_mode 204 // Params: uint16_t handle 205 // Return: void 206 struct btsnd_hcic_exit_sniff_mode { 207 std::function<void(uint16_t handle)> body{[](uint16_t handle) {}}; operatorbtsnd_hcic_exit_sniff_mode208 void operator()(uint16_t handle) { body(handle); }; 209 }; 210 extern struct btsnd_hcic_exit_sniff_mode btsnd_hcic_exit_sniff_mode; 211 212 // Name: btsnd_hcic_hold_mode 213 // Params: uint16_t handle, uint16_t max_hold_period, uint16_t min_hold_period 214 // Return: void 215 struct btsnd_hcic_hold_mode { 216 std::function<void(uint16_t handle, uint16_t max_hold_period, 217 uint16_t min_hold_period)> 218 body{[](uint16_t handle, uint16_t max_hold_period, 219 uint16_t min_hold_period) {}}; operatorbtsnd_hcic_hold_mode220 void operator()(uint16_t handle, uint16_t max_hold_period, 221 uint16_t min_hold_period) { 222 body(handle, max_hold_period, min_hold_period); 223 }; 224 }; 225 extern struct btsnd_hcic_hold_mode btsnd_hcic_hold_mode; 226 227 // Name: btsnd_hcic_io_cap_req_neg_reply 228 // Params: const RawAddress& bd_addr, uint8_t err_code 229 // Return: void 230 struct btsnd_hcic_io_cap_req_neg_reply { 231 std::function<void(const RawAddress& bd_addr, uint8_t err_code)> body{ 232 [](const RawAddress& bd_addr, uint8_t err_code) {}}; operatorbtsnd_hcic_io_cap_req_neg_reply233 void operator()(const RawAddress& bd_addr, uint8_t err_code) { 234 body(bd_addr, err_code); 235 }; 236 }; 237 extern struct btsnd_hcic_io_cap_req_neg_reply btsnd_hcic_io_cap_req_neg_reply; 238 239 // Name: btsnd_hcic_io_cap_req_reply 240 // Params: const RawAddress& bd_addr, uint8_t capability, uint8_t oob_present, 241 // uint8_t auth_req Return: void 242 struct btsnd_hcic_io_cap_req_reply { 243 std::function<void(const RawAddress& bd_addr, uint8_t capability, 244 uint8_t oob_present, uint8_t auth_req)> 245 body{[](const RawAddress& bd_addr, uint8_t capability, 246 uint8_t oob_present, uint8_t auth_req) {}}; operatorbtsnd_hcic_io_cap_req_reply247 void operator()(const RawAddress& bd_addr, uint8_t capability, 248 uint8_t oob_present, uint8_t auth_req) { 249 body(bd_addr, capability, oob_present, auth_req); 250 }; 251 }; 252 extern struct btsnd_hcic_io_cap_req_reply btsnd_hcic_io_cap_req_reply; 253 254 // Name: btsnd_hcic_link_key_neg_reply 255 // Params: const RawAddress& bd_addr 256 // Return: void 257 struct btsnd_hcic_link_key_neg_reply { 258 std::function<void(const RawAddress& bd_addr)> body{ 259 [](const RawAddress& bd_addr) {}}; operatorbtsnd_hcic_link_key_neg_reply260 void operator()(const RawAddress& bd_addr) { body(bd_addr); }; 261 }; 262 extern struct btsnd_hcic_link_key_neg_reply btsnd_hcic_link_key_neg_reply; 263 264 // Name: btsnd_hcic_link_key_req_reply 265 // Params: const RawAddress& bd_addr, const LinkKey& link_key 266 // Return: void 267 struct btsnd_hcic_link_key_req_reply { 268 std::function<void(const RawAddress& bd_addr, const LinkKey& link_key)> body{ 269 [](const RawAddress& bd_addr, const LinkKey& link_key) {}}; operatorbtsnd_hcic_link_key_req_reply270 void operator()(const RawAddress& bd_addr, const LinkKey& link_key) { 271 body(bd_addr, link_key); 272 }; 273 }; 274 extern struct btsnd_hcic_link_key_req_reply btsnd_hcic_link_key_req_reply; 275 276 // Name: btsnd_hcic_park_mode 277 // Params: uint16_t handle, uint16_t beacon_max_interval, uint16_t 278 // beacon_min_interval Return: void 279 struct btsnd_hcic_park_mode { 280 std::function<void(uint16_t handle, uint16_t beacon_max_interval, 281 uint16_t beacon_min_interval)> 282 body{[](uint16_t handle, uint16_t beacon_max_interval, 283 uint16_t beacon_min_interval) {}}; operatorbtsnd_hcic_park_mode284 void operator()(uint16_t handle, uint16_t beacon_max_interval, 285 uint16_t beacon_min_interval) { 286 body(handle, beacon_max_interval, beacon_min_interval); 287 }; 288 }; 289 extern struct btsnd_hcic_park_mode btsnd_hcic_park_mode; 290 291 // Name: btsnd_hcic_pin_code_neg_reply 292 // Params: const RawAddress& bd_addr 293 // Return: void 294 struct btsnd_hcic_pin_code_neg_reply { 295 std::function<void(const RawAddress& bd_addr)> body{ 296 [](const RawAddress& bd_addr) {}}; operatorbtsnd_hcic_pin_code_neg_reply297 void operator()(const RawAddress& bd_addr) { body(bd_addr); }; 298 }; 299 extern struct btsnd_hcic_pin_code_neg_reply btsnd_hcic_pin_code_neg_reply; 300 301 // Name: btsnd_hcic_pin_code_req_reply 302 // Params: const RawAddress& bd_addr, uint8_t pin_code_len, PIN_CODE pin_code 303 // Return: void 304 struct btsnd_hcic_pin_code_req_reply { 305 std::function<void(const RawAddress& bd_addr, uint8_t pin_code_len, 306 PIN_CODE pin_code)> 307 body{[](const RawAddress& bd_addr, uint8_t pin_code_len, 308 PIN_CODE pin_code) {}}; operatorbtsnd_hcic_pin_code_req_reply309 void operator()(const RawAddress& bd_addr, uint8_t pin_code_len, 310 PIN_CODE pin_code) { 311 body(bd_addr, pin_code_len, pin_code); 312 }; 313 }; 314 extern struct btsnd_hcic_pin_code_req_reply btsnd_hcic_pin_code_req_reply; 315 316 // Name: btsnd_hcic_read_encryption_key_size 317 // Params: uint16_t handle, ReadEncKeySizeCb cb 318 // Return: void 319 struct btsnd_hcic_read_encryption_key_size { 320 std::function<void(uint16_t handle, ReadEncKeySizeCb cb)> body{ 321 [](uint16_t handle, ReadEncKeySizeCb cb) {}}; operatorbtsnd_hcic_read_encryption_key_size322 void operator()(uint16_t handle, ReadEncKeySizeCb cb) { 323 body(handle, std::move(cb)); 324 }; 325 }; 326 extern struct btsnd_hcic_read_encryption_key_size 327 btsnd_hcic_read_encryption_key_size; 328 329 // Name: btsnd_hcic_read_failed_contact_counter 330 // Params: uint16_t handle 331 // Return: void 332 struct btsnd_hcic_read_failed_contact_counter { 333 std::function<void(uint16_t handle)> body{[](uint16_t handle) {}}; operatorbtsnd_hcic_read_failed_contact_counter334 void operator()(uint16_t handle) { body(handle); }; 335 }; 336 extern struct btsnd_hcic_read_failed_contact_counter 337 btsnd_hcic_read_failed_contact_counter; 338 339 // Name: btsnd_hcic_read_local_oob_data 340 // Params: void 341 // Return: void 342 struct btsnd_hcic_read_local_oob_data { 343 std::function<void(void)> body{[](void) {}}; operatorbtsnd_hcic_read_local_oob_data344 void operator()(void) { body(); }; 345 }; 346 extern struct btsnd_hcic_read_local_oob_data btsnd_hcic_read_local_oob_data; 347 348 // Name: btsnd_hcic_read_name 349 // Params: void 350 // Return: void 351 struct btsnd_hcic_read_name { 352 std::function<void(void)> body{[](void) {}}; operatorbtsnd_hcic_read_name353 void operator()(void) { body(); }; 354 }; 355 extern struct btsnd_hcic_read_name btsnd_hcic_read_name; 356 357 // Name: btsnd_hcic_read_rmt_clk_offset 358 // Params: uint16_t handle 359 // Return: void 360 struct btsnd_hcic_read_rmt_clk_offset { 361 std::function<void(uint16_t handle)> body{[](uint16_t handle) {}}; operatorbtsnd_hcic_read_rmt_clk_offset362 void operator()(uint16_t handle) { body(handle); }; 363 }; 364 extern struct btsnd_hcic_read_rmt_clk_offset btsnd_hcic_read_rmt_clk_offset; 365 366 // Name: btsnd_hcic_read_rssi 367 // Params: uint16_t handle 368 // Return: void 369 struct btsnd_hcic_read_rssi { 370 std::function<void(uint16_t handle)> body{[](uint16_t handle) {}}; operatorbtsnd_hcic_read_rssi371 void operator()(uint16_t handle) { body(handle); }; 372 }; 373 extern struct btsnd_hcic_read_rssi btsnd_hcic_read_rssi; 374 375 // Name: btsnd_hcic_read_tx_power 376 // Params: uint16_t handle, uint8_t type 377 // Return: void 378 struct btsnd_hcic_read_tx_power { 379 std::function<void(uint16_t handle, uint8_t type)> body{ 380 [](uint16_t handle, uint8_t type) {}}; operatorbtsnd_hcic_read_tx_power381 void operator()(uint16_t handle, uint8_t type) { body(handle, type); }; 382 }; 383 extern struct btsnd_hcic_read_tx_power btsnd_hcic_read_tx_power; 384 385 // Name: btsnd_hcic_reject_conn 386 // Params: const RawAddress& dest, uint8_t reason 387 // Return: void 388 struct btsnd_hcic_reject_conn { 389 std::function<void(const RawAddress& dest, uint8_t reason)> body{ 390 [](const RawAddress& dest, uint8_t reason) {}}; operatorbtsnd_hcic_reject_conn391 void operator()(const RawAddress& dest, uint8_t reason) { 392 body(dest, reason); 393 }; 394 }; 395 extern struct btsnd_hcic_reject_conn btsnd_hcic_reject_conn; 396 397 // Name: btsnd_hcic_reject_esco_conn 398 // Params: const RawAddress& bd_addr, uint8_t reason 399 // Return: void 400 struct btsnd_hcic_reject_esco_conn { 401 std::function<void(const RawAddress& bd_addr, uint8_t reason)> body{ 402 [](const RawAddress& bd_addr, uint8_t reason) {}}; operatorbtsnd_hcic_reject_esco_conn403 void operator()(const RawAddress& bd_addr, uint8_t reason) { 404 body(bd_addr, reason); 405 }; 406 }; 407 extern struct btsnd_hcic_reject_esco_conn btsnd_hcic_reject_esco_conn; 408 409 // Name: btsnd_hcic_rem_oob_neg_reply 410 // Params: const RawAddress& bd_addr 411 // Return: void 412 struct btsnd_hcic_rem_oob_neg_reply { 413 std::function<void(const RawAddress& bd_addr)> body{ 414 [](const RawAddress& bd_addr) {}}; operatorbtsnd_hcic_rem_oob_neg_reply415 void operator()(const RawAddress& bd_addr) { body(bd_addr); }; 416 }; 417 extern struct btsnd_hcic_rem_oob_neg_reply btsnd_hcic_rem_oob_neg_reply; 418 419 // Name: btsnd_hcic_rem_oob_reply 420 // Params: const RawAddress& bd_addr, const Octet16& c, const Octet16& r 421 // Return: void 422 struct btsnd_hcic_rem_oob_reply { 423 std::function<void(const RawAddress& bd_addr, const Octet16& c, 424 const Octet16& r)> 425 body{ 426 [](const RawAddress& bd_addr, const Octet16& c, const Octet16& r) {}}; operatorbtsnd_hcic_rem_oob_reply427 void operator()(const RawAddress& bd_addr, const Octet16& c, 428 const Octet16& r) { 429 body(bd_addr, c, r); 430 }; 431 }; 432 extern struct btsnd_hcic_rem_oob_reply btsnd_hcic_rem_oob_reply; 433 434 // Name: btsnd_hcic_rmt_ext_features 435 // Params: uint16_t handle, uint8_t page_num 436 // Return: void 437 struct btsnd_hcic_rmt_ext_features { 438 std::function<void(uint16_t handle, uint8_t page_num)> body{ 439 [](uint16_t handle, uint8_t page_num) {}}; operatorbtsnd_hcic_rmt_ext_features440 void operator()(uint16_t handle, uint8_t page_num) { 441 body(handle, page_num); 442 }; 443 }; 444 extern struct btsnd_hcic_rmt_ext_features btsnd_hcic_rmt_ext_features; 445 446 // Name: btsnd_hcic_rmt_name_req 447 // Params: const RawAddress& bd_addr, uint8_t page_scan_rep_mode, uint8_t 448 // page_scan_mode, uint16_t clock_offset Return: void 449 struct btsnd_hcic_rmt_name_req { 450 std::function<void(const RawAddress& bd_addr, uint8_t page_scan_rep_mode, 451 uint8_t page_scan_mode, uint16_t clock_offset)> 452 body{[](const RawAddress& bd_addr, uint8_t page_scan_rep_mode, 453 uint8_t page_scan_mode, uint16_t clock_offset) {}}; operatorbtsnd_hcic_rmt_name_req454 void operator()(const RawAddress& bd_addr, uint8_t page_scan_rep_mode, 455 uint8_t page_scan_mode, uint16_t clock_offset) { 456 body(bd_addr, page_scan_rep_mode, page_scan_mode, clock_offset); 457 }; 458 }; 459 extern struct btsnd_hcic_rmt_name_req btsnd_hcic_rmt_name_req; 460 461 // Name: btsnd_hcic_rmt_name_req_cancel 462 // Params: const RawAddress& bd_addr 463 // Return: void 464 struct btsnd_hcic_rmt_name_req_cancel { 465 std::function<void(const RawAddress& bd_addr)> body{ 466 [](const RawAddress& bd_addr) {}}; operatorbtsnd_hcic_rmt_name_req_cancel467 void operator()(const RawAddress& bd_addr) { body(bd_addr); }; 468 }; 469 extern struct btsnd_hcic_rmt_name_req_cancel btsnd_hcic_rmt_name_req_cancel; 470 471 // Name: btsnd_hcic_rmt_ver_req 472 // Params: uint16_t handle 473 // Return: void 474 struct btsnd_hcic_rmt_ver_req { 475 std::function<void(uint16_t handle)> body{[](uint16_t handle) {}}; operatorbtsnd_hcic_rmt_ver_req476 void operator()(uint16_t handle) { body(handle); }; 477 }; 478 extern struct btsnd_hcic_rmt_ver_req btsnd_hcic_rmt_ver_req; 479 480 // Name: btsnd_hcic_set_conn_encrypt 481 // Params: uint16_t handle, bool enable 482 // Return: void 483 struct btsnd_hcic_set_conn_encrypt { 484 std::function<void(uint16_t handle, bool enable)> body{ 485 [](uint16_t handle, bool enable) {}}; operatorbtsnd_hcic_set_conn_encrypt486 void operator()(uint16_t handle, bool enable) { body(handle, enable); }; 487 }; 488 extern struct btsnd_hcic_set_conn_encrypt btsnd_hcic_set_conn_encrypt; 489 490 // Name: btsnd_hcic_setup_esco_conn 491 // Params: uint16_t handle, uint32_t transmit_bandwidth, uint32_t 492 // receive_bandwidth, uint16_t max_latency, uint16_t voice, uint8_t 493 // retrans_effort, uint16_t packet_types Return: void 494 struct btsnd_hcic_setup_esco_conn { 495 std::function<void(uint16_t handle, uint32_t transmit_bandwidth, 496 uint32_t receive_bandwidth, uint16_t max_latency, 497 uint16_t voice, uint8_t retrans_effort, 498 uint16_t packet_types)> 499 body{[](uint16_t handle, uint32_t transmit_bandwidth, 500 uint32_t receive_bandwidth, uint16_t max_latency, uint16_t voice, 501 uint8_t retrans_effort, uint16_t packet_types) {}}; operatorbtsnd_hcic_setup_esco_conn502 void operator()(uint16_t handle, uint32_t transmit_bandwidth, 503 uint32_t receive_bandwidth, uint16_t max_latency, 504 uint16_t voice, uint8_t retrans_effort, 505 uint16_t packet_types) { 506 body(handle, transmit_bandwidth, receive_bandwidth, max_latency, voice, 507 retrans_effort, packet_types); 508 }; 509 }; 510 extern struct btsnd_hcic_setup_esco_conn btsnd_hcic_setup_esco_conn; 511 512 // Name: btsnd_hcic_sniff_mode 513 // Params: uint16_t handle, uint16_t max_sniff_period, uint16_t 514 // min_sniff_period, uint16_t sniff_attempt, uint16_t sniff_timeout Return: void 515 struct btsnd_hcic_sniff_mode { 516 std::function<void(uint16_t handle, uint16_t max_sniff_period, 517 uint16_t min_sniff_period, uint16_t sniff_attempt, 518 uint16_t sniff_timeout)> 519 body{[](uint16_t handle, uint16_t max_sniff_period, 520 uint16_t min_sniff_period, uint16_t sniff_attempt, 521 uint16_t sniff_timeout) {}}; operatorbtsnd_hcic_sniff_mode522 void operator()(uint16_t handle, uint16_t max_sniff_period, 523 uint16_t min_sniff_period, uint16_t sniff_attempt, 524 uint16_t sniff_timeout) { 525 body(handle, max_sniff_period, min_sniff_period, sniff_attempt, 526 sniff_timeout); 527 }; 528 }; 529 extern struct btsnd_hcic_sniff_mode btsnd_hcic_sniff_mode; 530 531 // Name: btsnd_hcic_sniff_sub_rate 532 // Params: uint16_t handle, uint16_t max_lat, uint16_t min_remote_lat, uint16_t 533 // min_local_lat Return: void 534 struct btsnd_hcic_sniff_sub_rate { 535 std::function<void(uint16_t handle, uint16_t max_lat, uint16_t min_remote_lat, 536 uint16_t min_local_lat)> 537 body{[](uint16_t handle, uint16_t max_lat, uint16_t min_remote_lat, 538 uint16_t min_local_lat) {}}; operatorbtsnd_hcic_sniff_sub_rate539 void operator()(uint16_t handle, uint16_t max_lat, uint16_t min_remote_lat, 540 uint16_t min_local_lat) { 541 body(handle, max_lat, min_remote_lat, min_local_lat); 542 }; 543 }; 544 extern struct btsnd_hcic_sniff_sub_rate btsnd_hcic_sniff_sub_rate; 545 546 // Name: btsnd_hcic_user_conf_reply 547 // Params: const RawAddress& bd_addr, bool is_yes 548 // Return: void 549 struct btsnd_hcic_user_conf_reply { 550 std::function<void(const RawAddress& bd_addr, bool is_yes)> body{ 551 [](const RawAddress& bd_addr, bool is_yes) {}}; operatorbtsnd_hcic_user_conf_reply552 void operator()(const RawAddress& bd_addr, bool is_yes) { 553 body(bd_addr, is_yes); 554 }; 555 }; 556 extern struct btsnd_hcic_user_conf_reply btsnd_hcic_user_conf_reply; 557 558 // Name: btsnd_hcic_user_passkey_neg_reply 559 // Params: const RawAddress& bd_addr 560 // Return: void 561 struct btsnd_hcic_user_passkey_neg_reply { 562 std::function<void(const RawAddress& bd_addr)> body{ 563 [](const RawAddress& bd_addr) {}}; operatorbtsnd_hcic_user_passkey_neg_reply564 void operator()(const RawAddress& bd_addr) { body(bd_addr); }; 565 }; 566 extern struct btsnd_hcic_user_passkey_neg_reply 567 btsnd_hcic_user_passkey_neg_reply; 568 569 // Name: btsnd_hcic_user_passkey_reply 570 // Params: const RawAddress& bd_addr, uint32_t value 571 // Return: void 572 struct btsnd_hcic_user_passkey_reply { 573 std::function<void(const RawAddress& bd_addr, uint32_t value)> body{ 574 [](const RawAddress& bd_addr, uint32_t value) {}}; operatorbtsnd_hcic_user_passkey_reply575 void operator()(const RawAddress& bd_addr, uint32_t value) { 576 body(bd_addr, value); 577 }; 578 }; 579 extern struct btsnd_hcic_user_passkey_reply btsnd_hcic_user_passkey_reply; 580 581 // Name: btsnd_hcic_vendor_spec_cmd 582 // Params: void* buffer, uint16_t opcode, uint8_t len, uint8_t* p_data, void* 583 // p_cmd_cplt_cback Return: void 584 struct btsnd_hcic_vendor_spec_cmd { 585 std::function<void(void* buffer, uint16_t opcode, uint8_t len, 586 uint8_t* p_data, void* p_cmd_cplt_cback)> 587 body{[](void* buffer, uint16_t opcode, uint8_t len, uint8_t* p_data, 588 void* p_cmd_cplt_cback) {}}; operatorbtsnd_hcic_vendor_spec_cmd589 void operator()(void* buffer, uint16_t opcode, uint8_t len, uint8_t* p_data, 590 void* p_cmd_cplt_cback) { 591 body(buffer, opcode, len, p_data, p_cmd_cplt_cback); 592 }; 593 }; 594 extern struct btsnd_hcic_vendor_spec_cmd btsnd_hcic_vendor_spec_cmd; 595 596 // Name: btsnd_hcic_write_auth_enable 597 // Params: uint8_t flag 598 // Return: void 599 struct btsnd_hcic_write_auth_enable { 600 std::function<void(uint8_t flag)> body{[](uint8_t flag) {}}; operatorbtsnd_hcic_write_auth_enable601 void operator()(uint8_t flag) { body(flag); }; 602 }; 603 extern struct btsnd_hcic_write_auth_enable btsnd_hcic_write_auth_enable; 604 605 // Name: btsnd_hcic_write_auto_flush_tout 606 // Params: uint16_t handle, uint16_t tout 607 // Return: void 608 struct btsnd_hcic_write_auto_flush_tout { 609 std::function<void(uint16_t handle, uint16_t tout)> body{ 610 [](uint16_t handle, uint16_t tout) {}}; operatorbtsnd_hcic_write_auto_flush_tout611 void operator()(uint16_t handle, uint16_t tout) { body(handle, tout); }; 612 }; 613 extern struct btsnd_hcic_write_auto_flush_tout btsnd_hcic_write_auto_flush_tout; 614 615 // Name: btsnd_hcic_write_cur_iac_lap 616 // Params: uint8_t num_cur_iac, LAP* const iac_lap 617 // Return: void 618 struct btsnd_hcic_write_cur_iac_lap { 619 std::function<void(uint8_t num_cur_iac, LAP* const iac_lap)> body{ 620 [](uint8_t num_cur_iac, LAP* const iac_lap) {}}; operatorbtsnd_hcic_write_cur_iac_lap621 void operator()(uint8_t num_cur_iac, LAP* const iac_lap) { 622 body(num_cur_iac, iac_lap); 623 }; 624 }; 625 extern struct btsnd_hcic_write_cur_iac_lap btsnd_hcic_write_cur_iac_lap; 626 627 // Name: btsnd_hcic_write_def_policy_set 628 // Params: uint16_t settings 629 // Return: void 630 struct btsnd_hcic_write_def_policy_set { 631 std::function<void(uint16_t settings)> body{[](uint16_t settings) {}}; operatorbtsnd_hcic_write_def_policy_set632 void operator()(uint16_t settings) { body(settings); }; 633 }; 634 extern struct btsnd_hcic_write_def_policy_set btsnd_hcic_write_def_policy_set; 635 636 // Name: btsnd_hcic_write_dev_class 637 // Params: DEV_CLASS dev_class 638 // Return: void 639 struct btsnd_hcic_write_dev_class { 640 std::function<void(DEV_CLASS dev_class)> body{[](DEV_CLASS dev_class) {}}; operatorbtsnd_hcic_write_dev_class641 void operator()(DEV_CLASS dev_class) { body(dev_class); }; 642 }; 643 extern struct btsnd_hcic_write_dev_class btsnd_hcic_write_dev_class; 644 645 // Name: btsnd_hcic_write_ext_inquiry_response 646 // Params: void* buffer, uint8_t fec_req 647 // Return: void 648 struct btsnd_hcic_write_ext_inquiry_response { 649 std::function<void(void* buffer, uint8_t fec_req)> body{ 650 [](void* buffer, uint8_t fec_req) {}}; operatorbtsnd_hcic_write_ext_inquiry_response651 void operator()(void* buffer, uint8_t fec_req) { body(buffer, fec_req); }; 652 }; 653 extern struct btsnd_hcic_write_ext_inquiry_response 654 btsnd_hcic_write_ext_inquiry_response; 655 656 // Name: btsnd_hcic_write_inqscan_cfg 657 // Params: uint16_t interval, uint16_t window 658 // Return: void 659 struct btsnd_hcic_write_inqscan_cfg { 660 std::function<void(uint16_t interval, uint16_t window)> body{ 661 [](uint16_t interval, uint16_t window) {}}; operatorbtsnd_hcic_write_inqscan_cfg662 void operator()(uint16_t interval, uint16_t window) { 663 body(interval, window); 664 }; 665 }; 666 extern struct btsnd_hcic_write_inqscan_cfg btsnd_hcic_write_inqscan_cfg; 667 668 // Name: btsnd_hcic_write_inqscan_type 669 // Params: uint8_t type 670 // Return: void 671 struct btsnd_hcic_write_inqscan_type { 672 std::function<void(uint8_t type)> body{[](uint8_t type) {}}; operatorbtsnd_hcic_write_inqscan_type673 void operator()(uint8_t type) { body(type); }; 674 }; 675 extern struct btsnd_hcic_write_inqscan_type btsnd_hcic_write_inqscan_type; 676 677 // Name: btsnd_hcic_write_inquiry_mode 678 // Params: uint8_t mode 679 // Return: void 680 struct btsnd_hcic_write_inquiry_mode { 681 std::function<void(uint8_t mode)> body{[](uint8_t mode) {}}; operatorbtsnd_hcic_write_inquiry_mode682 void operator()(uint8_t mode) { body(mode); }; 683 }; 684 extern struct btsnd_hcic_write_inquiry_mode btsnd_hcic_write_inquiry_mode; 685 686 // Name: btsnd_hcic_write_link_super_tout 687 // Params: uint16_t handle, uint16_t timeout 688 // Return: void 689 struct btsnd_hcic_write_link_super_tout { 690 std::function<void(uint16_t handle, uint16_t timeout)> body{ 691 [](uint16_t handle, uint16_t timeout) {}}; operatorbtsnd_hcic_write_link_super_tout692 void operator()(uint16_t handle, uint16_t timeout) { body(handle, timeout); }; 693 }; 694 extern struct btsnd_hcic_write_link_super_tout btsnd_hcic_write_link_super_tout; 695 696 // Name: btsnd_hcic_write_page_tout 697 // Params: uint16_t timeout 698 // Return: void 699 struct btsnd_hcic_write_page_tout { 700 std::function<void(uint16_t timeout)> body{[](uint16_t timeout) {}}; operatorbtsnd_hcic_write_page_tout701 void operator()(uint16_t timeout) { body(timeout); }; 702 }; 703 extern struct btsnd_hcic_write_page_tout btsnd_hcic_write_page_tout; 704 705 // Name: btsnd_hcic_write_pagescan_cfg 706 // Params: uint16_t interval, uint16_t window 707 // Return: void 708 struct btsnd_hcic_write_pagescan_cfg { 709 std::function<void(uint16_t interval, uint16_t window)> body{ 710 [](uint16_t interval, uint16_t window) {}}; operatorbtsnd_hcic_write_pagescan_cfg711 void operator()(uint16_t interval, uint16_t window) { 712 body(interval, window); 713 }; 714 }; 715 extern struct btsnd_hcic_write_pagescan_cfg btsnd_hcic_write_pagescan_cfg; 716 717 // Name: btsnd_hcic_write_pagescan_type 718 // Params: uint8_t type 719 // Return: void 720 struct btsnd_hcic_write_pagescan_type { 721 std::function<void(uint8_t type)> body{[](uint8_t type) {}}; operatorbtsnd_hcic_write_pagescan_type722 void operator()(uint8_t type) { body(type); }; 723 }; 724 extern struct btsnd_hcic_write_pagescan_type btsnd_hcic_write_pagescan_type; 725 726 // Name: btsnd_hcic_write_pin_type 727 // Params: uint8_t type 728 // Return: void 729 struct btsnd_hcic_write_pin_type { 730 std::function<void(uint8_t type)> body{[](uint8_t type) {}}; operatorbtsnd_hcic_write_pin_type731 void operator()(uint8_t type) { body(type); }; 732 }; 733 extern struct btsnd_hcic_write_pin_type btsnd_hcic_write_pin_type; 734 735 // Name: btsnd_hcic_write_policy_set 736 // Params: uint16_t handle, uint16_t settings 737 // Return: void 738 struct btsnd_hcic_write_policy_set { 739 std::function<void(uint16_t handle, uint16_t settings)> body{ 740 [](uint16_t handle, uint16_t settings) {}}; operatorbtsnd_hcic_write_policy_set741 void operator()(uint16_t handle, uint16_t settings) { 742 body(handle, settings); 743 }; 744 }; 745 extern struct btsnd_hcic_write_policy_set btsnd_hcic_write_policy_set; 746 747 // Name: btsnd_hcic_write_scan_enable 748 // Params: uint8_t flag 749 // Return: void 750 struct btsnd_hcic_write_scan_enable { 751 std::function<void(uint8_t flag)> body{[](uint8_t flag) {}}; operatorbtsnd_hcic_write_scan_enable752 void operator()(uint8_t flag) { body(flag); }; 753 }; 754 extern struct btsnd_hcic_write_scan_enable btsnd_hcic_write_scan_enable; 755 756 // Name: btsnd_hcic_write_voice_settings 757 // Params: uint16_t flags 758 // Return: void 759 struct btsnd_hcic_write_voice_settings { 760 std::function<void(uint16_t flags)> body{[](uint16_t flags) {}}; operatorbtsnd_hcic_write_voice_settings761 void operator()(uint16_t flags) { body(flags); }; 762 }; 763 extern struct btsnd_hcic_write_voice_settings btsnd_hcic_write_voice_settings; 764 765 // Name: btsnd_hcic_configure_data_path 766 // Params: uint8_t data_path_direction, uint8_t data_path_id, 767 // std::vector<uint8_t> vendor_config Return: void 768 struct btsnd_hcic_configure_data_path { 769 std::function<void(uint8_t data_path_direction, uint8_t data_path_id, 770 std::vector<uint8_t> vendor_config)> 771 body{[](uint8_t data_path_direction, uint8_t data_path_id, 772 std::vector<uint8_t> vendor_config) {}}; operatorbtsnd_hcic_configure_data_path773 void operator()(uint8_t data_path_direction, uint8_t data_path_id, 774 std::vector<uint8_t> vendor_config) { 775 body(data_path_direction, data_path_id, vendor_config); 776 }; 777 }; 778 extern struct btsnd_hcic_configure_data_path btsnd_hcic_configure_data_path; 779 780 } // namespace stack_hcic_hcicmds 781 } // namespace mock 782 } // namespace test 783 784 // END mockcify generation 785