• 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 <stdlib.h>
23 
24 #include "stack/include/hidd_api.h"
25 #include "stack/include/hiddefs.h"
26 #include "test/common/mock_functions.h"
27 #include "types/raw_address.h"
28 
HID_DevAddRecord(uint32_t,char *,char *,char *,uint16_t,uint16_t,uint8_t *)29 tHID_STATUS HID_DevAddRecord(uint32_t /* handle */, char* /* p_name */,
30                              char* /* p_description */, char* /* p_provider */,
31                              uint16_t /* subclass */, uint16_t /* desc_len */,
32                              uint8_t* /* p_desc_data */) {
33   inc_func_call_count(__func__);
34   return HID_SUCCESS;
35 }
HID_DevConnect(void)36 tHID_STATUS HID_DevConnect(void) {
37   inc_func_call_count(__func__);
38   return HID_SUCCESS;
39 }
HID_DevDeregister(void)40 tHID_STATUS HID_DevDeregister(void) {
41   inc_func_call_count(__func__);
42   return HID_SUCCESS;
43 }
HID_DevDisconnect(void)44 tHID_STATUS HID_DevDisconnect(void) {
45   inc_func_call_count(__func__);
46   return HID_SUCCESS;
47 }
HID_DevGetDevice(RawAddress *)48 tHID_STATUS HID_DevGetDevice(RawAddress* /* addr */) {
49   inc_func_call_count(__func__);
50   return HID_SUCCESS;
51 }
HID_DevPlugDevice(const RawAddress &)52 tHID_STATUS HID_DevPlugDevice(const RawAddress& /* addr */) {
53   inc_func_call_count(__func__);
54   return HID_SUCCESS;
55 }
HID_DevRegister(tHID_DEV_HOST_CALLBACK *)56 tHID_STATUS HID_DevRegister(tHID_DEV_HOST_CALLBACK* /* host_cback */) {
57   inc_func_call_count(__func__);
58   return HID_SUCCESS;
59 }
HID_DevReportError(uint8_t)60 tHID_STATUS HID_DevReportError(uint8_t /* error */) {
61   inc_func_call_count(__func__);
62   return HID_SUCCESS;
63 }
HID_DevSendReport(uint8_t,uint8_t,uint8_t,uint16_t,uint8_t *)64 tHID_STATUS HID_DevSendReport(uint8_t /* channel */, uint8_t /* type */,
65                               uint8_t /* id */, uint16_t /* len */,
66                               uint8_t* /* p_data */) {
67   inc_func_call_count(__func__);
68   return HID_SUCCESS;
69 }
HID_DevSetIncomingPolicy(bool)70 tHID_STATUS HID_DevSetIncomingPolicy(bool /* allow */) {
71   inc_func_call_count(__func__);
72   return HID_SUCCESS;
73 }
HID_DevSetIncomingQos(uint8_t,uint32_t,uint32_t,uint32_t,uint32_t,uint32_t)74 tHID_STATUS HID_DevSetIncomingQos(uint8_t /* service_type */,
75                                   uint32_t /* token_rate */,
76                                   uint32_t /* token_bucket_size */,
77                                   uint32_t /* peak_bandwidth */,
78                                   uint32_t /* latency */,
79                                   uint32_t /* delay_variation */) {
80   inc_func_call_count(__func__);
81   return HID_SUCCESS;
82 }
HID_DevSetOutgoingQos(uint8_t,uint32_t,uint32_t,uint32_t,uint32_t,uint32_t)83 tHID_STATUS HID_DevSetOutgoingQos(uint8_t /* service_type */,
84                                   uint32_t /* token_rate */,
85                                   uint32_t /* token_bucket_size */,
86                                   uint32_t /* peak_bandwidth */,
87                                   uint32_t /* latency */,
88                                   uint32_t /* delay_variation */) {
89   inc_func_call_count(__func__);
90   return HID_SUCCESS;
91 }
HID_DevUnplugDevice(const RawAddress &)92 tHID_STATUS HID_DevUnplugDevice(const RawAddress& /* addr */) {
93   inc_func_call_count(__func__);
94   return HID_SUCCESS;
95 }
HID_DevVirtualCableUnplug(void)96 tHID_STATUS HID_DevVirtualCableUnplug(void) {
97   inc_func_call_count(__func__);
98   return HID_SUCCESS;
99 }
HID_DevInit(void)100 void HID_DevInit(void) { inc_func_call_count(__func__); }
101