• 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:16
20  */
21 
22 #include <cstdint>
23 #include <map>
24 #include <string>
25 
26 #include "bt_target.h"
27 #include "bta/hh/bta_hh_int.h"
28 #include "bta/sys/bta_sys.h"
29 #include "osi/include/allocator.h"
30 #include "osi/include/osi.h"
31 #include "stack/include/bt_hdr.h"
32 #include "test/common/mock_functions.h"
33 #include "types/raw_address.h"
34 
35 #ifndef UNUSED_ATTR
36 #define UNUSED_ATTR
37 #endif
38 
BTA_HhEnable(tBTA_HH_CBACK * p_cback,bool enable_hidp,bool enable_hogp)39 void BTA_HhEnable(tBTA_HH_CBACK* p_cback, bool enable_hidp, bool enable_hogp) {
40   inc_func_call_count(__func__);
41 }
BTA_HhAddDev(const RawAddress & bda,tBTA_HH_ATTR_MASK attr_mask,uint8_t sub_class,uint8_t app_id,tBTA_HH_DEV_DSCP_INFO dscp_info)42 void BTA_HhAddDev(const RawAddress& bda, tBTA_HH_ATTR_MASK attr_mask,
43                   uint8_t sub_class, uint8_t app_id,
44                   tBTA_HH_DEV_DSCP_INFO dscp_info) {
45   inc_func_call_count(__func__);
46 }
BTA_HhClose(uint8_t dev_handle)47 void BTA_HhClose(uint8_t dev_handle) { inc_func_call_count(__func__); }
BTA_HhDisable(void)48 void BTA_HhDisable(void) { inc_func_call_count(__func__); }
BTA_HhGetDscpInfo(uint8_t dev_handle)49 void BTA_HhGetDscpInfo(uint8_t dev_handle) { inc_func_call_count(__func__); }
BTA_HhGetIdle(uint8_t dev_handle)50 void BTA_HhGetIdle(uint8_t dev_handle) { inc_func_call_count(__func__); }
BTA_HhGetProtoMode(uint8_t dev_handle)51 void BTA_HhGetProtoMode(uint8_t dev_handle) { inc_func_call_count(__func__); }
BTA_HhGetReport(uint8_t dev_handle,tBTA_HH_RPT_TYPE r_type,uint8_t rpt_id,uint16_t buf_size)52 void BTA_HhGetReport(uint8_t dev_handle, tBTA_HH_RPT_TYPE r_type,
53                      uint8_t rpt_id, uint16_t buf_size) {
54   inc_func_call_count(__func__);
55 }
BTA_HhOpen(const RawAddress & dev_bda)56 void BTA_HhOpen(const RawAddress& dev_bda) { inc_func_call_count(__func__); }
BTA_HhRemoveDev(uint8_t dev_handle)57 void BTA_HhRemoveDev(uint8_t dev_handle) { inc_func_call_count(__func__); }
BTA_HhSendCtrl(uint8_t dev_handle,tBTA_HH_TRANS_CTRL_TYPE c_type)58 void BTA_HhSendCtrl(uint8_t dev_handle, tBTA_HH_TRANS_CTRL_TYPE c_type) {
59   inc_func_call_count(__func__);
60 }
BTA_HhSendData(uint8_t dev_handle,UNUSED_ATTR const RawAddress & dev_bda,BT_HDR * p_data)61 void BTA_HhSendData(uint8_t dev_handle, UNUSED_ATTR const RawAddress& dev_bda,
62                     BT_HDR* p_data) {
63   inc_func_call_count(__func__);
64 }
BTA_HhSetIdle(uint8_t dev_handle,uint16_t idle_rate)65 void BTA_HhSetIdle(uint8_t dev_handle, uint16_t idle_rate) {
66   inc_func_call_count(__func__);
67 }
BTA_HhSetProtoMode(uint8_t dev_handle,tBTA_HH_PROTO_MODE p_type)68 void BTA_HhSetProtoMode(uint8_t dev_handle, tBTA_HH_PROTO_MODE p_type) {
69   inc_func_call_count(__func__);
70 }
BTA_HhSetReport(uint8_t dev_handle,tBTA_HH_RPT_TYPE r_type,BT_HDR * p_data)71 void BTA_HhSetReport(uint8_t dev_handle, tBTA_HH_RPT_TYPE r_type,
72                      BT_HDR* p_data) {
73   inc_func_call_count(__func__);
74 }
75