1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
|
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* Generated mock file from original source file
* Functions generated:62
*
* mockcify.pl ver 0.3.0
*/
#include <cstdint>
#include <functional>
#include <map>
#include <string>
extern std::map<std::string, int> mock_function_count_map;
// Original included files, if any
// NOTE: Since this is a mock file with mock definitions some number of
// include files may not be required. The include-what-you-use
// still applies, but crafting proper inclusion is out of scope
// for this effort. This compilation unit may compile as-is, or
// may need attention to prune from (or add to ) the inclusion set.
#include <cstdint>
#include "bta/dm/bta_dm_int.h"
#include "bta/gatt/bta_gattc_int.h"
#include "bta/include/bta_dm_ci.h"
#include "btif/include/btif_dm.h"
#include "btif/include/btif_storage.h"
#include "btif/include/stack_manager.h"
#include "gap_api.h"
#include "main/shim/acl_api.h"
#include "main/shim/btm_api.h"
#include "main/shim/dumpsys.h"
#include "main/shim/shim.h"
#include "osi/include/fixed_queue.h"
#include "osi/include/log.h"
#include "osi/include/osi.h"
#include "stack/btm/btm_sec.h"
#include "stack/btm/neighbor_inquiry.h"
#include "stack/gatt/connection_manager.h"
#include "stack/include/acl_api.h"
#include "stack/include/btm_client_interface.h"
#include "types/raw_address.h"
// Mocked compile conditionals, if any
namespace test {
namespace mock {
namespace bta_dm_act {
// Shared state between mocked functions and tests
// Name: BTA_DmSetVisibility
// Params: bt_scan_mode_t mode
// Return: bool
struct BTA_DmSetVisibility {
bool return_value{false};
std::function<bool(bt_scan_mode_t mode)> body{
[this](bt_scan_mode_t mode) { return return_value; }};
bool operator()(bt_scan_mode_t mode) { return body(mode); };
};
extern struct BTA_DmSetVisibility BTA_DmSetVisibility;
// Name: BTA_dm_acl_down
// Params: const RawAddress bd_addr, tBT_TRANSPORT transport
// Return: void
struct BTA_dm_acl_down {
std::function<void(const RawAddress bd_addr, tBT_TRANSPORT transport)> body{
[](const RawAddress bd_addr, tBT_TRANSPORT transport) {}};
void operator()(const RawAddress bd_addr, tBT_TRANSPORT transport) {
body(bd_addr, transport);
};
};
extern struct BTA_dm_acl_down BTA_dm_acl_down;
// Name: BTA_dm_acl_up
// Params: const RawAddress bd_addr, tBT_TRANSPORT transport
// Return: void
struct BTA_dm_acl_up {
std::function<void(const RawAddress bd_addr, tBT_TRANSPORT transport)> body{
[](const RawAddress bd_addr, tBT_TRANSPORT transport) {}};
void operator()(const RawAddress bd_addr, tBT_TRANSPORT transport) {
body(bd_addr, transport);
};
};
extern struct BTA_dm_acl_up BTA_dm_acl_up;
// Name: BTA_dm_notify_remote_features_complete
// Params: const RawAddress bd_addr
// Return: void
struct BTA_dm_notify_remote_features_complete {
std::function<void(const RawAddress bd_addr)> body{
[](const RawAddress bd_addr) {}};
void operator()(const RawAddress bd_addr) { body(bd_addr); };
};
extern struct BTA_dm_notify_remote_features_complete
BTA_dm_notify_remote_features_complete;
// Name: BTA_dm_on_hw_off
// Params:
// Return: void
struct BTA_dm_on_hw_off {
std::function<void()> body{[]() {}};
void operator()() { body(); };
};
extern struct BTA_dm_on_hw_off BTA_dm_on_hw_off;
// Name: BTA_dm_on_hw_on
// Params:
// Return: void
struct BTA_dm_on_hw_on {
std::function<void()> body{[]() {}};
void operator()() { body(); };
};
extern struct BTA_dm_on_hw_on BTA_dm_on_hw_on;
// Name: BTA_dm_report_role_change
// Params: const RawAddress bd_addr, tHCI_ROLE new_role, tHCI_STATUS hci_status
// Return: void
struct BTA_dm_report_role_change {
std::function<void(const RawAddress bd_addr, tHCI_ROLE new_role,
tHCI_STATUS hci_status)>
body{[](const RawAddress bd_addr, tHCI_ROLE new_role,
tHCI_STATUS hci_status) {}};
void operator()(const RawAddress bd_addr, tHCI_ROLE new_role,
tHCI_STATUS hci_status) {
body(bd_addr, new_role, hci_status);
};
};
extern struct BTA_dm_report_role_change BTA_dm_report_role_change;
// Name: bta_dm_acl_up
// Params: const RawAddress& bd_addr, tBT_TRANSPORT transport
// Return: void
struct bta_dm_acl_up {
std::function<void(const RawAddress& bd_addr, tBT_TRANSPORT transport)> body{
[](const RawAddress& bd_addr, tBT_TRANSPORT transport) {}};
void operator()(const RawAddress& bd_addr, tBT_TRANSPORT transport) {
body(bd_addr, transport);
};
};
extern struct bta_dm_acl_up bta_dm_acl_up;
// Name: bta_dm_add_ble_device
// Params: const RawAddress& bd_addr, tBLE_ADDR_TYPE addr_type, tBT_DEVICE_TYPE
// dev_type Return: void
struct bta_dm_add_ble_device {
std::function<void(const RawAddress& bd_addr, tBLE_ADDR_TYPE addr_type,
tBT_DEVICE_TYPE dev_type)>
body{[](const RawAddress& bd_addr, tBLE_ADDR_TYPE addr_type,
tBT_DEVICE_TYPE dev_type) {}};
void operator()(const RawAddress& bd_addr, tBLE_ADDR_TYPE addr_type,
tBT_DEVICE_TYPE dev_type) {
body(bd_addr, addr_type, dev_type);
};
};
extern struct bta_dm_add_ble_device bta_dm_add_ble_device;
// Name: bta_dm_add_blekey
// Params: const RawAddress& bd_addr, tBTA_LE_KEY_VALUE blekey, tBTM_LE_KEY_TYPE
// key_type Return: void
struct bta_dm_add_blekey {
std::function<void(const RawAddress& bd_addr, tBTA_LE_KEY_VALUE blekey,
tBTM_LE_KEY_TYPE key_type)>
body{[](const RawAddress& bd_addr, tBTA_LE_KEY_VALUE blekey,
tBTM_LE_KEY_TYPE key_type) {}};
void operator()(const RawAddress& bd_addr, tBTA_LE_KEY_VALUE blekey,
tBTM_LE_KEY_TYPE key_type) {
body(bd_addr, blekey, key_type);
};
};
extern struct bta_dm_add_blekey bta_dm_add_blekey;
// Name: bta_dm_add_device
// Params: std::unique_ptr<tBTA_DM_API_ADD_DEVICE> msg
// Return: void
struct bta_dm_add_device {
std::function<void(std::unique_ptr<tBTA_DM_API_ADD_DEVICE> msg)> body{
[](std::unique_ptr<tBTA_DM_API_ADD_DEVICE> msg) {}};
void operator()(std::unique_ptr<tBTA_DM_API_ADD_DEVICE> msg) {
body(std::move(msg));
};
};
extern struct bta_dm_add_device bta_dm_add_device;
// Name: bta_dm_ble_config_local_privacy
// Params: bool privacy_enable
// Return: void
struct bta_dm_ble_config_local_privacy {
std::function<void(bool privacy_enable)> body{[](bool privacy_enable) {}};
void operator()(bool privacy_enable) { body(privacy_enable); };
};
extern struct bta_dm_ble_config_local_privacy bta_dm_ble_config_local_privacy;
// Name: bta_dm_ble_confirm_reply
// Params: const RawAddress& bd_addr, bool accept
// Return: void
struct bta_dm_ble_confirm_reply {
std::function<void(const RawAddress& bd_addr, bool accept)> body{
[](const RawAddress& bd_addr, bool accept) {}};
void operator()(const RawAddress& bd_addr, bool accept) {
body(bd_addr, accept);
};
};
extern struct bta_dm_ble_confirm_reply bta_dm_ble_confirm_reply;
// Name: bta_dm_ble_csis_observe
// Params: bool observe, tBTA_DM_SEARCH_CBACK* p_cback
// Return: void
struct bta_dm_ble_csis_observe {
std::function<void(bool observe, tBTA_DM_SEARCH_CBACK* p_cback)> body{
[](bool observe, tBTA_DM_SEARCH_CBACK* p_cback) {}};
void operator()(bool observe, tBTA_DM_SEARCH_CBACK* p_cback) {
body(observe, p_cback);
};
};
extern struct bta_dm_ble_csis_observe bta_dm_ble_csis_observe;
// Name: bta_dm_ble_get_energy_info
// Params: tBTA_BLE_ENERGY_INFO_CBACK* p_energy_info_cback
// Return: void
struct bta_dm_ble_get_energy_info {
std::function<void(tBTA_BLE_ENERGY_INFO_CBACK* p_energy_info_cback)> body{
[](tBTA_BLE_ENERGY_INFO_CBACK* p_energy_info_cback) {}};
void operator()(tBTA_BLE_ENERGY_INFO_CBACK* p_energy_info_cback) {
body(p_energy_info_cback);
};
};
extern struct bta_dm_ble_get_energy_info bta_dm_ble_get_energy_info;
// Name: bta_dm_ble_observe
// Params: bool start, uint8_t duration, tBTA_DM_SEARCH_CBACK* p_cback
// Return: void
struct bta_dm_ble_observe {
std::function<void(bool start, uint8_t duration,
tBTA_DM_SEARCH_CBACK* p_cback)>
body{[](bool start, uint8_t duration, tBTA_DM_SEARCH_CBACK* p_cback) {}};
void operator()(bool start, uint8_t duration, tBTA_DM_SEARCH_CBACK* p_cback) {
body(start, duration, p_cback);
};
};
extern struct bta_dm_ble_observe bta_dm_ble_observe;
// Name: bta_dm_clear_event_filter
// Params: None
// Return: void
struct bta_dm_clear_event_filter {
std::function<void()> body{[]() {}};
void operator()() { body(); };
};
extern struct bta_dm_clear_event_filter bta_dm_clear_event_filter;
// Name: bta_dm_ble_passkey_reply
// Params: const RawAddress& bd_addr, bool accept, uint32_t passkey
// Return: void
struct bta_dm_ble_passkey_reply {
std::function<void(const RawAddress& bd_addr, bool accept, uint32_t passkey)>
body{[](const RawAddress& bd_addr, bool accept, uint32_t passkey) {}};
void operator()(const RawAddress& bd_addr, bool accept, uint32_t passkey) {
body(bd_addr, accept, passkey);
};
};
extern struct bta_dm_ble_passkey_reply bta_dm_ble_passkey_reply;
// Name: bta_dm_ble_scan
// Params: bool start, uint8_t duration_sec
// Return: void
struct bta_dm_ble_scan {
std::function<void(bool start, uint8_t duration_sec)> body{
[](bool start, uint8_t duration_sec) {}};
void operator()(bool start, uint8_t duration_sec) {
body(start, duration_sec);
};
};
extern struct bta_dm_ble_scan bta_dm_ble_scan;
// Name: bta_dm_ble_set_conn_params
// Params: const RawAddress& bd_addr, uint16_t conn_int_min, uint16_t
// conn_int_max, uint16_t peripheral_latency, uint16_t supervision_tout Return:
// void
struct bta_dm_ble_set_conn_params {
std::function<void(const RawAddress& bd_addr, uint16_t conn_int_min,
uint16_t conn_int_max, uint16_t peripheral_latency,
uint16_t supervision_tout)>
body{[](const RawAddress& bd_addr, uint16_t conn_int_min,
uint16_t conn_int_max, uint16_t peripheral_latency,
uint16_t supervision_tout) {}};
void operator()(const RawAddress& bd_addr, uint16_t conn_int_min,
uint16_t conn_int_max, uint16_t peripheral_latency,
uint16_t supervision_tout) {
body(bd_addr, conn_int_min, conn_int_max, peripheral_latency,
supervision_tout);
};
};
extern struct bta_dm_ble_set_conn_params bta_dm_ble_set_conn_params;
// Name: bta_dm_ble_set_data_length
// Params: const RawAddress& bd_addr
// Return: void
struct bta_dm_ble_set_data_length {
std::function<void(const RawAddress& bd_addr)> body{
[](const RawAddress& bd_addr) {}};
void operator()(const RawAddress& bd_addr) { body(bd_addr); };
};
extern struct bta_dm_ble_set_data_length bta_dm_ble_set_data_length;
// Name: bta_dm_ble_update_conn_params
// 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
// Return: void
struct bta_dm_ble_update_conn_params {
std::function<void(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)>
body{[](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) {}};
void operator()(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) {
body(bd_addr, min_int, max_int, latency, timeout, min_ce_len, max_ce_len);
};
};
extern struct bta_dm_ble_update_conn_params bta_dm_ble_update_conn_params;
// Name: bta_dm_bond
// Params: const RawAddress& bd_addr, tBLE_ADDR_TYPE addr_type, tBT_TRANSPORT
// transport, tBT_DEVICE_TYPE device_type Return: void
struct bta_dm_bond {
std::function<void(const RawAddress& bd_addr, tBLE_ADDR_TYPE addr_type,
tBT_TRANSPORT transport, tBT_DEVICE_TYPE device_type)>
body{[](const RawAddress& bd_addr, tBLE_ADDR_TYPE addr_type,
tBT_TRANSPORT transport, tBT_DEVICE_TYPE device_type) {}};
void operator()(const RawAddress& bd_addr, tBLE_ADDR_TYPE addr_type,
tBT_TRANSPORT transport, tBT_DEVICE_TYPE device_type) {
body(bd_addr, addr_type, transport, device_type);
};
};
extern struct bta_dm_bond bta_dm_bond;
// Name: bta_dm_bond_cancel
// Params: const RawAddress& bd_addr
// Return: void
struct bta_dm_bond_cancel {
std::function<void(const RawAddress& bd_addr)> body{
[](const RawAddress& bd_addr) {}};
void operator()(const RawAddress& bd_addr) { body(bd_addr); };
};
extern struct bta_dm_bond_cancel bta_dm_bond_cancel;
// Name: bta_dm_check_if_only_hd_connected
// Params: const RawAddress& peer_addr
// Return: bool
struct bta_dm_check_if_only_hd_connected {
bool return_value{false};
std::function<bool(const RawAddress& peer_addr)> body{
[this](const RawAddress& peer_addr) { return return_value; }};
bool operator()(const RawAddress& peer_addr) { return body(peer_addr); };
};
extern struct bta_dm_check_if_only_hd_connected
bta_dm_check_if_only_hd_connected;
// Name: bta_dm_ci_rmt_oob_act
// Params: std::unique_ptr<tBTA_DM_CI_RMT_OOB> msg
// Return: void
struct bta_dm_ci_rmt_oob_act {
std::function<void(std::unique_ptr<tBTA_DM_CI_RMT_OOB> msg)> body{
[](std::unique_ptr<tBTA_DM_CI_RMT_OOB> msg) {}};
void operator()(std::unique_ptr<tBTA_DM_CI_RMT_OOB> msg) {
body(std::move(msg));
};
};
extern struct bta_dm_ci_rmt_oob_act bta_dm_ci_rmt_oob_act;
// Name: bta_dm_close_acl
// Params: const RawAddress& bd_addr, bool remove_dev, tBT_TRANSPORT transport
// Return: void
struct bta_dm_close_acl {
std::function<void(const RawAddress& bd_addr, bool remove_dev,
tBT_TRANSPORT transport)>
body{[](const RawAddress& bd_addr, bool remove_dev,
tBT_TRANSPORT transport) {}};
void operator()(const RawAddress& bd_addr, bool remove_dev,
tBT_TRANSPORT transport) {
body(bd_addr, remove_dev, transport);
};
};
extern struct bta_dm_close_acl bta_dm_close_acl;
// Name: bta_dm_close_gatt_conn
// Params: tBTA_DM_MSG* p_data
// Return: void
struct bta_dm_close_gatt_conn {
std::function<void(tBTA_DM_MSG* p_data)> body{[](tBTA_DM_MSG* p_data) {}};
void operator()(tBTA_DM_MSG* p_data) { body(p_data); };
};
extern struct bta_dm_close_gatt_conn bta_dm_close_gatt_conn;
// Name: bta_dm_confirm
// Params: const RawAddress& bd_addr, bool accept
// Return: void
struct bta_dm_confirm {
std::function<void(const RawAddress& bd_addr, bool accept)> body{
[](const RawAddress& bd_addr, bool accept) {}};
void operator()(const RawAddress& bd_addr, bool accept) {
body(bd_addr, accept);
};
};
extern struct bta_dm_confirm bta_dm_confirm;
// Name: bta_dm_deinit_cb
// Params: void
// Return: void
struct bta_dm_deinit_cb {
std::function<void(void)> body{[](void) {}};
void operator()(void) { body(); };
};
extern struct bta_dm_deinit_cb bta_dm_deinit_cb;
// Name: bta_dm_disable
// Params:
// Return: void
struct bta_dm_disable {
std::function<void()> body{[]() {}};
void operator()() { body(); };
};
extern struct bta_dm_disable bta_dm_disable;
// Name: bta_dm_disc_result
// Params: tBTA_DM_MSG* p_data
// Return: void
struct bta_dm_disc_result {
std::function<void(tBTA_DM_MSG* p_data)> body{[](tBTA_DM_MSG* p_data) {}};
void operator()(tBTA_DM_MSG* p_data) { body(p_data); };
};
extern struct bta_dm_disc_result bta_dm_disc_result;
// Name: bta_dm_disc_rmt_name
// Params: tBTA_DM_MSG* p_data
// Return: void
struct bta_dm_disc_rmt_name {
std::function<void(tBTA_DM_MSG* p_data)> body{[](tBTA_DM_MSG* p_data) {}};
void operator()(tBTA_DM_MSG* p_data) { body(p_data); };
};
extern struct bta_dm_disc_rmt_name bta_dm_disc_rmt_name;
// Name: bta_dm_discover
// Params: tBTA_DM_MSG* p_data
// Return: void
struct bta_dm_discover {
std::function<void(tBTA_DM_MSG* p_data)> body{[](tBTA_DM_MSG* p_data) {}};
void operator()(tBTA_DM_MSG* p_data) { body(p_data); };
};
extern struct bta_dm_discover bta_dm_discover;
// Name: bta_dm_eir_update_cust_uuid
// Params: const tBTA_CUSTOM_UUID& curr, bool adding
// Return: void
struct bta_dm_eir_update_cust_uuid {
std::function<void(const tBTA_CUSTOM_UUID& curr, bool adding)> body{
[](const tBTA_CUSTOM_UUID& curr, bool adding) {}};
void operator()(const tBTA_CUSTOM_UUID& curr, bool adding) {
body(curr, adding);
};
};
extern struct bta_dm_eir_update_cust_uuid bta_dm_eir_update_cust_uuid;
// Name: bta_dm_eir_update_uuid
// Params: uint16_t uuid16, bool adding
// Return: void
struct bta_dm_eir_update_uuid {
std::function<void(uint16_t uuid16, bool adding)> body{
[](uint16_t uuid16, bool adding) {}};
void operator()(uint16_t uuid16, bool adding) { body(uuid16, adding); };
};
extern struct bta_dm_eir_update_uuid bta_dm_eir_update_uuid;
// Name: bta_dm_enable
// Params: tBTA_DM_SEC_CBACK* p_sec_cback
// Return: void
struct bta_dm_enable {
std::function<void(tBTA_DM_SEC_CBACK* p_sec_cback)> body{
[](tBTA_DM_SEC_CBACK* p_sec_cback) {}};
void operator()(tBTA_DM_SEC_CBACK* p_sec_cback) { body(p_sec_cback); };
};
extern struct bta_dm_enable bta_dm_enable;
// Name: bta_dm_encrypt_cback
// Params: const RawAddress* bd_addr, tBT_TRANSPORT transport, void* p_ref_data,
// tBTM_STATUS result Return: void
struct bta_dm_encrypt_cback {
std::function<void(const RawAddress* bd_addr, tBT_TRANSPORT transport,
void* p_ref_data, tBTM_STATUS result)>
body{[](const RawAddress* bd_addr, tBT_TRANSPORT transport,
void* p_ref_data, tBTM_STATUS result) {}};
void operator()(const RawAddress* bd_addr, tBT_TRANSPORT transport,
void* p_ref_data, tBTM_STATUS result) {
body(bd_addr, transport, p_ref_data, result);
};
};
extern struct bta_dm_encrypt_cback bta_dm_encrypt_cback;
// Name: bta_dm_execute_queued_request
// Params:
// Return: void
struct bta_dm_execute_queued_request {
std::function<void()> body{[]() {}};
void operator()() { body(); };
};
extern struct bta_dm_execute_queued_request bta_dm_execute_queued_request;
// Name: bta_dm_free_sdp_db
// Params:
// Return: void
struct bta_dm_free_sdp_db {
std::function<void()> body{[]() {}};
void operator()() { body(); };
};
extern struct bta_dm_free_sdp_db bta_dm_free_sdp_db;
// Name: bta_dm_init_cb
// Params: void
// Return: void
struct bta_dm_init_cb {
std::function<void(void)> body{[](void) {}};
void operator()(void) { body(); };
};
extern struct bta_dm_init_cb bta_dm_init_cb;
// Name: bta_dm_inq_cmpl
// Params: uint8_t num
// Return: void
struct bta_dm_inq_cmpl {
std::function<void(uint8_t num)> body{[](uint8_t num) {}};
void operator()(uint8_t num) { body(num); };
};
extern struct bta_dm_inq_cmpl bta_dm_inq_cmpl;
// Name: bta_dm_is_search_request_queued
// Params:
// Return: bool
struct bta_dm_is_search_request_queued {
bool return_value{false};
std::function<bool()> body{[this]() { return return_value; }};
bool operator()() { return body(); };
};
extern struct bta_dm_is_search_request_queued bta_dm_is_search_request_queued;
// Name: bta_dm_pin_reply
// Params: std::unique_ptr<tBTA_DM_API_PIN_REPLY> msg
// Return: void
struct bta_dm_pin_reply {
std::function<void(std::unique_ptr<tBTA_DM_API_PIN_REPLY> msg)> body{
[](std::unique_ptr<tBTA_DM_API_PIN_REPLY> msg) {}};
void operator()(std::unique_ptr<tBTA_DM_API_PIN_REPLY> msg) {
body(std::move(msg));
};
};
extern struct bta_dm_pin_reply bta_dm_pin_reply;
// Name: bta_dm_proc_open_evt
// Params: tBTA_GATTC_OPEN* p_data
// Return: void
struct bta_dm_proc_open_evt {
std::function<void(tBTA_GATTC_OPEN* p_data)> body{
[](tBTA_GATTC_OPEN* p_data) {}};
void operator()(tBTA_GATTC_OPEN* p_data) { body(p_data); };
};
extern struct bta_dm_proc_open_evt bta_dm_proc_open_evt;
// Name: bta_dm_process_remove_device
// Params: const RawAddress& bd_addr
// Return: void
struct bta_dm_process_remove_device {
std::function<void(const RawAddress& bd_addr)> body{
[](const RawAddress& bd_addr) {}};
void operator()(const RawAddress& bd_addr) { body(bd_addr); };
};
extern struct bta_dm_process_remove_device bta_dm_process_remove_device;
// Name: bta_dm_queue_disc
// Params: tBTA_DM_MSG* p_data
// Return: void
struct bta_dm_queue_disc {
std::function<void(tBTA_DM_MSG* p_data)> body{[](tBTA_DM_MSG* p_data) {}};
void operator()(tBTA_DM_MSG* p_data) { body(p_data); };
};
extern struct bta_dm_queue_disc bta_dm_queue_disc;
// Name: bta_dm_queue_search
// Params: tBTA_DM_MSG* p_data
// Return: void
struct bta_dm_queue_search {
std::function<void(tBTA_DM_MSG* p_data)> body{[](tBTA_DM_MSG* p_data) {}};
void operator()(tBTA_DM_MSG* p_data) { body(p_data); };
};
extern struct bta_dm_queue_search bta_dm_queue_search;
// Name: bta_dm_remove_device
// Params: const RawAddress& bd_addr
// Return: void
struct bta_dm_remove_device {
std::function<void(const RawAddress& bd_addr)> body{
[](const RawAddress& bd_addr) {}};
void operator()(const RawAddress& bd_addr) { body(bd_addr); };
};
extern struct bta_dm_remove_device bta_dm_remove_device;
// Name: bta_dm_rm_cback
// Params: tBTA_SYS_CONN_STATUS status, uint8_t id, uint8_t app_id, const
// RawAddress& peer_addr Return: void
struct bta_dm_rm_cback {
std::function<void(tBTA_SYS_CONN_STATUS status, uint8_t id, uint8_t app_id,
const RawAddress& peer_addr)>
body{[](tBTA_SYS_CONN_STATUS status, uint8_t id, uint8_t app_id,
const RawAddress& peer_addr) {}};
void operator()(tBTA_SYS_CONN_STATUS status, uint8_t id, uint8_t app_id,
const RawAddress& peer_addr) {
body(status, id, app_id, peer_addr);
};
};
extern struct bta_dm_rm_cback bta_dm_rm_cback;
// Name: bta_dm_rmt_name
// Params: tBTA_DM_MSG* p_data
// Return: void
struct bta_dm_rmt_name {
std::function<void(tBTA_DM_MSG* p_data)> body{[](tBTA_DM_MSG* p_data) {}};
void operator()(tBTA_DM_MSG* p_data) { body(p_data); };
};
extern struct bta_dm_rmt_name bta_dm_rmt_name;
// Name: bta_dm_sdp_result
// Params: tBTA_DM_MSG* p_data
// Return: void
struct bta_dm_sdp_result {
std::function<void(tBTA_DM_MSG* p_data)> body{[](tBTA_DM_MSG* p_data) {}};
void operator()(tBTA_DM_MSG* p_data) { body(p_data); };
};
extern struct bta_dm_sdp_result bta_dm_sdp_result;
// Name: bta_dm_search_cancel
// Params:
// Return: void
struct bta_dm_search_cancel {
std::function<void()> body{[]() {}};
void operator()() { body(); };
};
extern struct bta_dm_search_cancel bta_dm_search_cancel;
// Name: bta_dm_search_cancel_cmpl
// Params:
// Return: void
struct bta_dm_search_cancel_cmpl {
std::function<void()> body{[]() {}};
void operator()() { body(); };
};
extern struct bta_dm_search_cancel_cmpl bta_dm_search_cancel_cmpl;
// Name: bta_dm_search_cancel_notify
// Params:
// Return: void
struct bta_dm_search_cancel_notify {
std::function<void()> body{[]() {}};
void operator()() { body(); };
};
extern struct bta_dm_search_cancel_notify bta_dm_search_cancel_notify;
// Name: bta_dm_search_clear_queue
// Params:
// Return: void
struct bta_dm_search_clear_queue {
std::function<void()> body{[]() {}};
void operator()() { body(); };
};
extern struct bta_dm_search_clear_queue bta_dm_search_clear_queue;
// Name: bta_dm_search_cmpl
// Params:
// Return: void
struct bta_dm_search_cmpl {
std::function<void()> body{[]() {}};
void operator()() { body(); };
};
extern struct bta_dm_search_cmpl bta_dm_search_cmpl;
// Name: bta_dm_search_result
// Params: tBTA_DM_MSG* p_data
// Return: void
struct bta_dm_search_result {
std::function<void(tBTA_DM_MSG* p_data)> body{[](tBTA_DM_MSG* p_data) {}};
void operator()(tBTA_DM_MSG* p_data) { body(p_data); };
};
extern struct bta_dm_search_result bta_dm_search_result;
// Name: bta_dm_search_start
// Params: tBTA_DM_MSG* p_data
// Return: void
struct bta_dm_search_start {
std::function<void(tBTA_DM_MSG* p_data)> body{[](tBTA_DM_MSG* p_data) {}};
void operator()(tBTA_DM_MSG* p_data) { body(p_data); };
};
extern struct bta_dm_search_start bta_dm_search_start;
// Name: bta_dm_set_dev_name
// Params: const std::vector<uint8_t>& name
// Return: void
struct bta_dm_set_dev_name {
std::function<void(const std::vector<uint8_t>& name)> body{
[](const std::vector<uint8_t>& name) {}};
void operator()(const std::vector<uint8_t>& name) { body(name); };
};
extern struct bta_dm_set_dev_name bta_dm_set_dev_name;
// Name: bta_dm_set_encryption
// Params: const RawAddress& bd_addr, tBT_TRANSPORT transport,
// tBTA_DM_ENCRYPT_CBACK* p_callback, tBTM_BLE_SEC_ACT sec_act Return: void
struct bta_dm_set_encryption {
std::function<void(const RawAddress& bd_addr, tBT_TRANSPORT transport,
tBTA_DM_ENCRYPT_CBACK* p_callback,
tBTM_BLE_SEC_ACT sec_act)>
body{[](const RawAddress& bd_addr, tBT_TRANSPORT transport,
tBTA_DM_ENCRYPT_CBACK* p_callback, tBTM_BLE_SEC_ACT sec_act) {}};
void operator()(const RawAddress& bd_addr, tBT_TRANSPORT transport,
tBTA_DM_ENCRYPT_CBACK* p_callback, tBTM_BLE_SEC_ACT sec_act) {
body(bd_addr, transport, p_callback, sec_act);
};
};
extern struct bta_dm_set_encryption bta_dm_set_encryption;
// Name: btm_dm_start_gatt_discovery
// Params: const RawAddress& bd_addr
// Return: void
struct btm_dm_start_gatt_discovery {
std::function<void(const RawAddress& bd_addr)> body{
[](const RawAddress& bd_addr) {}};
void operator()(const RawAddress& bd_addr) { body(bd_addr); };
};
extern struct btm_dm_start_gatt_discovery btm_dm_start_gatt_discovery;
// Name: handle_remote_features_complete
// Params: const RawAddress& bd_addr
// Return: void
struct handle_remote_features_complete {
std::function<void(const RawAddress& bd_addr)> body{
[](const RawAddress& bd_addr) {}};
void operator()(const RawAddress& bd_addr) { body(bd_addr); };
};
extern struct handle_remote_features_complete handle_remote_features_complete;
} // namespace bta_dm_act
} // namespace mock
} // namespace test
// END mockcify generation
|