• 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:22
20  */
21 
22 #include <base/functional/bind.h>
23 #include <base/location.h>
24 
25 #include <cstdint>
26 #include <memory>
27 
28 #include "bta/include/bta_jv_api.h"
29 #include "stack/include/bt_hdr.h"
30 #include "test/common/mock_functions.h"
31 #include "types/bluetooth/uuid.h"
32 #include "types/raw_address.h"
33 
BTA_JvCreateRecordByUser(uint32_t)34 tBTA_JV_STATUS BTA_JvCreateRecordByUser(uint32_t /* rfcomm_slot_id */) {
35   inc_func_call_count(__func__);
36   return tBTA_JV_STATUS::SUCCESS;
37 }
BTA_JvDeleteRecord(uint32_t)38 tBTA_JV_STATUS BTA_JvDeleteRecord(uint32_t /* handle */) {
39   inc_func_call_count(__func__);
40   return tBTA_JV_STATUS::SUCCESS;
41 }
BTA_JvEnable(tBTA_JV_DM_CBACK *)42 tBTA_JV_STATUS BTA_JvEnable(tBTA_JV_DM_CBACK* /* p_cback */) {
43   inc_func_call_count(__func__);
44   return tBTA_JV_STATUS::SUCCESS;
45 }
BTA_JvFreeChannel(uint16_t,tBTA_JV_CONN_TYPE)46 tBTA_JV_STATUS BTA_JvFreeChannel(uint16_t /* channel */, tBTA_JV_CONN_TYPE /* conn_type */) {
47   inc_func_call_count(__func__);
48   return tBTA_JV_STATUS::SUCCESS;
49 }
BTA_JvL2capClose(uint32_t)50 tBTA_JV_STATUS BTA_JvL2capClose(uint32_t /* handle */) {
51   inc_func_call_count(__func__);
52   return tBTA_JV_STATUS::SUCCESS;
53 }
BTA_JvL2capRead(uint32_t,uint32_t,uint8_t *,uint16_t)54 tBTA_JV_STATUS BTA_JvL2capRead(uint32_t /* handle */, uint32_t /* req_id */, uint8_t* /* p_data */,
55                                uint16_t /* len */) {
56   inc_func_call_count(__func__);
57   return tBTA_JV_STATUS::SUCCESS;
58 }
BTA_JvL2capReady(uint32_t,uint32_t *)59 tBTA_JV_STATUS BTA_JvL2capReady(uint32_t /* handle */, uint32_t* /* p_data_size */) {
60   inc_func_call_count(__func__);
61   return tBTA_JV_STATUS::SUCCESS;
62 }
BTA_JvL2capStopServer(uint16_t,uint32_t)63 tBTA_JV_STATUS BTA_JvL2capStopServer(uint16_t /* local_psm */, uint32_t /* l2cap_socket_id */) {
64   inc_func_call_count(__func__);
65   return tBTA_JV_STATUS::SUCCESS;
66 }
BTA_JvL2capWrite(uint32_t,uint32_t,BT_HDR *,uint32_t)67 tBTA_JV_STATUS BTA_JvL2capWrite(uint32_t /* handle */, uint32_t /* req_id */, BT_HDR* /* msg */,
68                                 uint32_t /* user_id */) {
69   inc_func_call_count(__func__);
70   return tBTA_JV_STATUS::SUCCESS;
71 }
BTA_JvRfcommClose(uint32_t,uint32_t)72 tBTA_JV_STATUS BTA_JvRfcommClose(uint32_t /* handle */, uint32_t /* rfcomm_slot_id */) {
73   inc_func_call_count(__func__);
74   return tBTA_JV_STATUS::SUCCESS;
75 }
BTA_JvRfcommConnect(tBTA_SEC,uint8_t,const RawAddress &,tBTA_JV_RFCOMM_CBACK *,uint32_t,RfcommCfgInfo,uint32_t,uint64_t)76 tBTA_JV_STATUS BTA_JvRfcommConnect(tBTA_SEC /* sec_mask */, uint8_t /* remote_scn */,
77                                    const RawAddress& /* peer_bd_addr */,
78                                    tBTA_JV_RFCOMM_CBACK* /* p_cback */,
79                                    uint32_t /* rfcomm_slot_id */, RfcommCfgInfo /* cfg */,
80                                    uint32_t /* app_uid */, uint64_t /* sdp_duration_ms */) {
81   inc_func_call_count(__func__);
82   return tBTA_JV_STATUS::SUCCESS;
83 }
BTA_JvRfcommStartServer(tBTA_SEC,uint8_t,uint8_t,tBTA_JV_RFCOMM_CBACK *,uint32_t,RfcommCfgInfo,uint32_t)84 tBTA_JV_STATUS BTA_JvRfcommStartServer(tBTA_SEC /* sec_mask */, uint8_t /* local_scn */,
85                                        uint8_t /* max_session */,
86                                        tBTA_JV_RFCOMM_CBACK* /* p_cback */,
87                                        uint32_t /* rfcomm_slot_id */, RfcommCfgInfo /* cfg */,
88                                        uint32_t /* app_uid */) {
89   inc_func_call_count(__func__);
90   return tBTA_JV_STATUS::SUCCESS;
91 }
BTA_JvRfcommStopServer(uint32_t,uint32_t)92 tBTA_JV_STATUS BTA_JvRfcommStopServer(uint32_t /* handle */, uint32_t /* rfcomm_slot_id */) {
93   inc_func_call_count(__func__);
94   return tBTA_JV_STATUS::SUCCESS;
95 }
BTA_JvRfcommWrite(uint32_t,uint32_t)96 tBTA_JV_STATUS BTA_JvRfcommWrite(uint32_t /* handle */, uint32_t /* req_id */) {
97   inc_func_call_count(__func__);
98   return tBTA_JV_STATUS::SUCCESS;
99 }
BTA_JvSetPmProfile(uint32_t,tBTA_JV_PM_ID,tBTA_JV_CONN_STATE)100 tBTA_JV_STATUS BTA_JvSetPmProfile(uint32_t /* handle */, tBTA_JV_PM_ID /* app_id */,
101                                   tBTA_JV_CONN_STATE /* init_st */) {
102   inc_func_call_count(__func__);
103   return tBTA_JV_STATUS::SUCCESS;
104 }
BTA_JvStartDiscovery(const RawAddress &,uint16_t,const bluetooth::Uuid *,uint32_t)105 tBTA_JV_STATUS BTA_JvStartDiscovery(const RawAddress& /* bd_addr */, uint16_t /* num_uuid */,
106                                     const bluetooth::Uuid* /* p_uuid_list */,
107                                     uint32_t /* rfcomm_slot_id */) {
108   inc_func_call_count(__func__);
109   return tBTA_JV_STATUS::SUCCESS;
110 }
BTA_JvCancelDiscovery(uint32_t)111 void BTA_JvCancelDiscovery(uint32_t /* rfcomm_slot_id */) { inc_func_call_count(__func__); }
BTA_JvRfcommGetPortHdl(uint32_t)112 uint16_t BTA_JvRfcommGetPortHdl(uint32_t /* handle */) {
113   inc_func_call_count(__func__);
114   return 0;
115 }
BTA_JvDisable(void)116 void BTA_JvDisable(void) { inc_func_call_count(__func__); }
BTA_JvGetChannelId(tBTA_JV_CONN_TYPE,uint32_t,int32_t)117 void BTA_JvGetChannelId(tBTA_JV_CONN_TYPE /* conn_type */, uint32_t /* id */,
118                         int32_t /* channel */) {
119   inc_func_call_count(__func__);
120 }
BTA_JvL2capConnect(tBTA_JV_CONN_TYPE,tBTA_SEC,std::unique_ptr<tL2CAP_ERTM_INFO>,uint16_t,uint16_t,std::unique_ptr<tL2CAP_CFG_INFO>,const RawAddress &,tBTA_JV_L2CAP_CBACK *,uint32_t)121 void BTA_JvL2capConnect(tBTA_JV_CONN_TYPE /* conn_type */, tBTA_SEC /* sec_mask */,
122                         std::unique_ptr<tL2CAP_ERTM_INFO> /* ertm_info */,
123                         uint16_t /* remote_psm */, uint16_t /* rx_mtu */,
124                         std::unique_ptr<tL2CAP_CFG_INFO> /* cfg */,
125                         const RawAddress& /* peer_bd_addr */, tBTA_JV_L2CAP_CBACK* /* p_cback */,
126                         uint32_t /* l2cap_socket_id */) {
127   inc_func_call_count(__func__);
128 }
BTA_JvL2capStartServer(tBTA_JV_CONN_TYPE,tBTA_SEC,std::unique_ptr<tL2CAP_ERTM_INFO>,uint16_t,uint16_t,std::unique_ptr<tL2CAP_CFG_INFO>,tBTA_JV_L2CAP_CBACK *,uint32_t)129 void BTA_JvL2capStartServer(tBTA_JV_CONN_TYPE /* conn_type */, tBTA_SEC /* sec_mask */,
130                             std::unique_ptr<tL2CAP_ERTM_INFO> /* ertm_info */,
131                             uint16_t /* local_psm */, uint16_t /* rx_mtu */,
132                             std::unique_ptr<tL2CAP_CFG_INFO> /* cfg */,
133                             tBTA_JV_L2CAP_CBACK* /* p_cback */, uint32_t /* l2cap_socket_id */) {
134   inc_func_call_count(__func__);
135 }
136