• 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:10
20  */
21 
22 #include <cstdint>
23 
24 #include "stack/include/srvc_api.h"
25 #include "stack/srvc/srvc_eng_int.h"
26 #include "test/common/mock_functions.h"
27 #include "types/raw_address.h"
28 
DIS_ReadDISInfo(const RawAddress &,tDIS_READ_CBACK *,tDIS_ATTR_MASK)29 bool DIS_ReadDISInfo(const RawAddress& /* peer_bda */,
30                      tDIS_READ_CBACK* /* p_cback */,
31                      tDIS_ATTR_MASK /* mask */) {
32   inc_func_call_count(__func__);
33   return false;
34 }
dis_gatt_c_read_dis_req(uint16_t)35 bool dis_gatt_c_read_dis_req(uint16_t /* conn_id */) {
36   inc_func_call_count(__func__);
37   return false;
38 }
dis_valid_handle_range(uint16_t)39 bool dis_valid_handle_range(uint16_t /* handle */) {
40   inc_func_call_count(__func__);
41   return false;
42 }
DIS_SrInit(tDIS_ATTR_MASK)43 tDIS_STATUS DIS_SrInit(tDIS_ATTR_MASK /* dis_attr_mask */) {
44   inc_func_call_count(__func__);
45   return 0;
46 }
DIS_SrUpdate(tDIS_ATTR_BIT,tDIS_ATTR *)47 tDIS_STATUS DIS_SrUpdate(tDIS_ATTR_BIT /* dis_attr_bit */,
48                          tDIS_ATTR* /* p_info */) {
49   inc_func_call_count(__func__);
50   return 0;
51 }
dis_read_attr_value(uint8_t,uint16_t,tGATT_VALUE *,bool,tGATT_STATUS *)52 uint8_t dis_read_attr_value(uint8_t /* clcb_idx */, uint16_t /* handle */,
53                             tGATT_VALUE* /* p_value */, bool /* is_long */,
54                             tGATT_STATUS* /* p_status */) {
55   inc_func_call_count(__func__);
56   return 0;
57 }
dis_write_attr_value(tGATT_WRITE_REQ *,tGATT_STATUS *)58 uint8_t dis_write_attr_value(tGATT_WRITE_REQ* /* p_data */,
59                              tGATT_STATUS* /* p_status */) {
60   inc_func_call_count(__func__);
61   return 0;
62 }
dis_c_cmpl_cback(tSRVC_CLCB *,tGATTC_OPTYPE,tGATT_STATUS,tGATT_CL_COMPLETE *)63 void dis_c_cmpl_cback(tSRVC_CLCB* /* p_clcb */, tGATTC_OPTYPE /* op */,
64                       tGATT_STATUS /* status */,
65                       tGATT_CL_COMPLETE* /* p_data */) {
66   inc_func_call_count(__func__);
67 }
68