• 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:19
20  */
21 
22 #include <map>
23 #include <string>
24 
25 extern std::map<std::string, int> mock_function_count_map;
26 
27 #include <cstdint>
28 #include "bt_target.h"
29 #include "bta/sys/bta_sys.h"
30 #include "bta/sys/bta_sys_int.h"
31 #include "main/shim/dumpsys.h"
32 #include "osi/include/log.h"
33 #include "osi/include/osi.h"
34 #include "stack/include/btm_api.h"
35 #include "types/hci_role.h"
36 #include "types/raw_address.h"
37 
38 #ifndef UNUSED_ATTR
39 #define UNUSED_ATTR
40 #endif
41 
bta_sys_app_close(uint8_t id,uint8_t app_id,const RawAddress & peer_addr)42 void bta_sys_app_close(uint8_t id, uint8_t app_id,
43                        const RawAddress& peer_addr) {
44   mock_function_count_map[__func__]++;
45 }
bta_sys_app_open(uint8_t id,uint8_t app_id,const RawAddress & peer_addr)46 void bta_sys_app_open(uint8_t id, uint8_t app_id, const RawAddress& peer_addr) {
47   mock_function_count_map[__func__]++;
48 }
bta_sys_busy(uint8_t id,uint8_t app_id,const RawAddress & peer_addr)49 void bta_sys_busy(uint8_t id, uint8_t app_id, const RawAddress& peer_addr) {
50   mock_function_count_map[__func__]++;
51 }
bta_sys_chg_ssr_config(uint8_t id,uint8_t app_id,uint16_t max_latency,uint16_t min_tout)52 void bta_sys_chg_ssr_config(uint8_t id, uint8_t app_id, uint16_t max_latency,
53                             uint16_t min_tout) {
54   mock_function_count_map[__func__]++;
55 }
bta_sys_collision_register(uint8_t bta_id,tBTA_SYS_CONN_CBACK * p_cback)56 void bta_sys_collision_register(uint8_t bta_id, tBTA_SYS_CONN_CBACK* p_cback) {
57   mock_function_count_map[__func__]++;
58 }
bta_sys_conn_close(uint8_t id,uint8_t app_id,const RawAddress & peer_addr)59 void bta_sys_conn_close(uint8_t id, uint8_t app_id,
60                         const RawAddress& peer_addr) {
61   mock_function_count_map[__func__]++;
62 }
bta_sys_conn_open(uint8_t id,uint8_t app_id,const RawAddress & peer_addr)63 void bta_sys_conn_open(uint8_t id, uint8_t app_id,
64                        const RawAddress& peer_addr) {
65   mock_function_count_map[__func__]++;
66 }
bta_sys_idle(uint8_t id,uint8_t app_id,const RawAddress & peer_addr)67 void bta_sys_idle(uint8_t id, uint8_t app_id, const RawAddress& peer_addr) {
68   mock_function_count_map[__func__]++;
69 }
bta_sys_notify_collision(const RawAddress & peer_addr)70 void bta_sys_notify_collision(const RawAddress& peer_addr) {
71   mock_function_count_map[__func__]++;
72 }
bta_sys_notify_role_chg(const RawAddress & peer_addr,tHCI_ROLE new_role,tHCI_STATUS hci_status)73 void bta_sys_notify_role_chg(const RawAddress& peer_addr, tHCI_ROLE new_role,
74                              tHCI_STATUS hci_status) {
75   mock_function_count_map[__func__]++;
76 }
bta_sys_pm_register(tBTA_SYS_CONN_CBACK * p_cback)77 void bta_sys_pm_register(tBTA_SYS_CONN_CBACK* p_cback) {
78   mock_function_count_map[__func__]++;
79 }
bta_sys_rm_register(tBTA_SYS_CONN_CBACK * p_cback)80 void bta_sys_rm_register(tBTA_SYS_CONN_CBACK* p_cback) {
81   mock_function_count_map[__func__]++;
82 }
bta_sys_role_chg_register(tBTA_SYS_CONN_CBACK * p_cback)83 void bta_sys_role_chg_register(tBTA_SYS_CONN_CBACK* p_cback) {
84   mock_function_count_map[__func__]++;
85 }
bta_sys_sco_close(uint8_t id,uint8_t app_id,const RawAddress & peer_addr)86 void bta_sys_sco_close(uint8_t id, uint8_t app_id,
87                        const RawAddress& peer_addr) {
88   mock_function_count_map[__func__]++;
89 }
bta_sys_sco_open(uint8_t id,uint8_t app_id,const RawAddress & peer_addr)90 void bta_sys_sco_open(uint8_t id, uint8_t app_id, const RawAddress& peer_addr) {
91   mock_function_count_map[__func__]++;
92 }
bta_sys_sco_register(tBTA_SYS_CONN_CBACK * p_cback)93 void bta_sys_sco_register(tBTA_SYS_CONN_CBACK* p_cback) {
94   mock_function_count_map[__func__]++;
95 }
bta_sys_sco_unuse(uint8_t id,uint8_t app_id,const RawAddress & peer_addr)96 void bta_sys_sco_unuse(uint8_t id, uint8_t app_id,
97                        const RawAddress& peer_addr) {
98   mock_function_count_map[__func__]++;
99 }
bta_sys_sco_use(UNUSED_ATTR uint8_t id,uint8_t app_id,const RawAddress & peer_addr)100 void bta_sys_sco_use(UNUSED_ATTR uint8_t id, uint8_t app_id,
101                      const RawAddress& peer_addr) {
102   mock_function_count_map[__func__]++;
103 }
bta_sys_ssr_cfg_register(tBTA_SYS_SSR_CFG_CBACK * p_cback)104 void bta_sys_ssr_cfg_register(tBTA_SYS_SSR_CFG_CBACK* p_cback) {
105   mock_function_count_map[__func__]++;
106 }
bta_sys_eir_register(tBTA_SYS_EIR_CBACK * p_cback)107 void bta_sys_eir_register(tBTA_SYS_EIR_CBACK* p_cback) {
108   mock_function_count_map[__func__]++;
109 }
bta_sys_cust_eir_register(tBTA_SYS_CUST_EIR_CBACK * p_cback)110 void bta_sys_cust_eir_register(tBTA_SYS_CUST_EIR_CBACK* p_cback) {
111   mock_function_count_map[__func__]++;
112 }
bta_sys_add_uuid(uint16_t uuid16)113 void bta_sys_add_uuid(uint16_t uuid16) { mock_function_count_map[__func__]++; }
bta_sys_remove_uuid(uint16_t uuid16)114 void bta_sys_remove_uuid(uint16_t uuid16) {
115   mock_function_count_map[__func__]++;
116 }
bta_sys_add_cust_uuid(const tBTA_CUSTOM_UUID & curr)117 void bta_sys_add_cust_uuid(const tBTA_CUSTOM_UUID& curr) {
118   mock_function_count_map[__func__]++;
119 }
bta_sys_remove_cust_uuid(const tBTA_CUSTOM_UUID & curr)120 void bta_sys_remove_cust_uuid(const tBTA_CUSTOM_UUID& curr) {
121   mock_function_count_map[__func__]++;
122 }
123