• 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 
24 #include "bta/include/bta_hh_api.h"
25 #include "stack/include/bt_hdr.h"
26 #include "test/common/mock_functions.h"
27 
28 using namespace bluetooth;
29 
30 const Uuid ANDROID_HEADTRACKER_SERVICE_UUID =
31         Uuid::FromString(ANDROID_HEADTRACKER_SERVICE_UUID_STRING);
32 const Uuid ANDROID_HEADTRACKER_VERSION_CHARAC_UUID =
33         Uuid::FromString(ANDROID_HEADTRACKER_VERSION_CHARAC_UUID_STRING);
34 const Uuid ANDROID_HEADTRACKER_CONTROL_CHARAC_UUID =
35         Uuid::FromString(ANDROID_HEADTRACKER_CONTROL_CHARAC_UUID_STRING);
36 const Uuid ANDROID_HEADTRACKER_REPORT_CHARAC_UUID =
37         Uuid::FromString(ANDROID_HEADTRACKER_REPORT_CHARAC_UUID_STRING);
38 
BTA_HhEnable(tBTA_HH_CBACK *,bool,bool)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 tAclLinkSpec &,tBTA_HH_ATTR_MASK,uint8_t,uint8_t,tBTA_HH_DEV_DSCP_INFO)42 void BTA_HhAddDev(const tAclLinkSpec& /* link_spec */, 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)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)49 void BTA_HhGetDscpInfo(uint8_t /* dev_handle */) { inc_func_call_count(__func__); }
BTA_HhGetIdle(uint8_t)50 void BTA_HhGetIdle(uint8_t /* dev_handle */) { inc_func_call_count(__func__); }
BTA_HhGetProtoMode(uint8_t)51 void BTA_HhGetProtoMode(uint8_t /* dev_handle */) { inc_func_call_count(__func__); }
BTA_HhGetReport(uint8_t,tBTA_HH_RPT_TYPE,uint8_t,uint16_t)52 void BTA_HhGetReport(uint8_t /* dev_handle */, tBTA_HH_RPT_TYPE /* r_type */, uint8_t /* rpt_id */,
53                      uint16_t /* buf_size */) {
54   inc_func_call_count(__func__);
55 }
BTA_HhOpen(const tAclLinkSpec &,bool)56 void BTA_HhOpen(const tAclLinkSpec& /* link_spec */, bool /* direct */) {
57   inc_func_call_count(__func__);
58 }
BTA_HhRemoveDev(uint8_t)59 void BTA_HhRemoveDev(uint8_t /* dev_handle */) { inc_func_call_count(__func__); }
BTA_HhSendCtrl(uint8_t,tBTA_HH_TRANS_CTRL_TYPE)60 void BTA_HhSendCtrl(uint8_t /* dev_handle */, tBTA_HH_TRANS_CTRL_TYPE /* c_type */) {
61   inc_func_call_count(__func__);
62 }
BTA_HhSendData(uint8_t,const tAclLinkSpec &,BT_HDR *)63 void BTA_HhSendData(uint8_t /* dev_handle */, const tAclLinkSpec& /* link_spec */,
64                     BT_HDR* /* p_data */) {
65   inc_func_call_count(__func__);
66 }
BTA_HhSetIdle(uint8_t,uint16_t)67 void BTA_HhSetIdle(uint8_t /* dev_handle */, uint16_t /* idle_rate */) {
68   inc_func_call_count(__func__);
69 }
BTA_HhSetProtoMode(uint8_t,tBTA_HH_PROTO_MODE)70 void BTA_HhSetProtoMode(uint8_t /* dev_handle */, tBTA_HH_PROTO_MODE /* p_type */) {
71   inc_func_call_count(__func__);
72 }
BTA_HhSetReport(uint8_t,tBTA_HH_RPT_TYPE,BT_HDR *)73 void BTA_HhSetReport(uint8_t /* dev_handle */, tBTA_HH_RPT_TYPE /* r_type */,
74                      BT_HDR* /* p_data */) {
75   inc_func_call_count(__func__);
76 }
BTA_HhDump(int)77 void BTA_HhDump(int /* fd */) { inc_func_call_count(__func__); }
78