• 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:23
20  */
21 
22 #include <map>
23 #include <string>
24 
25 #include "bt_target.h"
26 #include "bta/av/bta_av_int.h"
27 #include "osi/include/allocator.h"
28 #include "osi/include/compat.h"
29 #include "osi/include/log.h"
30 #include "stack/include/bt_hdr.h"
31 #include "test/common/mock_functions.h"
32 #include "types/raw_address.h"
33 
34 #ifndef UNUSED_ATTR
35 #define UNUSED_ATTR
36 #endif
37 
BTA_AvEnable(tBTA_AV_FEAT features,tBTA_AV_CBACK * p_cback)38 void BTA_AvEnable(tBTA_AV_FEAT features, tBTA_AV_CBACK* p_cback) {
39   inc_func_call_count(__func__);
40 }
BTA_AvClose(tBTA_AV_HNDL handle)41 void BTA_AvClose(tBTA_AV_HNDL handle) { inc_func_call_count(__func__); }
BTA_AvCloseRc(uint8_t rc_handle)42 void BTA_AvCloseRc(uint8_t rc_handle) { inc_func_call_count(__func__); }
BTA_AvDeregister(tBTA_AV_HNDL hndl)43 void BTA_AvDeregister(tBTA_AV_HNDL hndl) { inc_func_call_count(__func__); }
BTA_AvDisable(void)44 void BTA_AvDisable(void) { inc_func_call_count(__func__); }
BTA_AvDisconnect(const RawAddress & bd_addr)45 void BTA_AvDisconnect(const RawAddress& bd_addr) {
46   inc_func_call_count(__func__);
47 }
BTA_AvMetaCmd(uint8_t rc_handle,uint8_t label,tBTA_AV_CMD cmd_code,BT_HDR * p_pkt)48 void BTA_AvMetaCmd(uint8_t rc_handle, uint8_t label, tBTA_AV_CMD cmd_code,
49                    BT_HDR* p_pkt) {
50   inc_func_call_count(__func__);
51 }
BTA_AvMetaRsp(uint8_t rc_handle,uint8_t label,tBTA_AV_CODE rsp_code,BT_HDR * p_pkt)52 void BTA_AvMetaRsp(uint8_t rc_handle, uint8_t label, tBTA_AV_CODE rsp_code,
53                    BT_HDR* p_pkt) {
54   inc_func_call_count(__func__);
55 }
BTA_AvOffloadStart(tBTA_AV_HNDL hndl)56 void BTA_AvOffloadStart(tBTA_AV_HNDL hndl) { inc_func_call_count(__func__); }
BTA_AvOffloadStartRsp(tBTA_AV_HNDL hndl,tBTA_AV_STATUS status)57 void BTA_AvOffloadStartRsp(tBTA_AV_HNDL hndl, tBTA_AV_STATUS status) {
58   inc_func_call_count(__func__);
59 }
BTA_AvOpen(const RawAddress & bd_addr,tBTA_AV_HNDL handle,bool use_rc,uint16_t uuid)60 void BTA_AvOpen(const RawAddress& bd_addr, tBTA_AV_HNDL handle, bool use_rc,
61                 uint16_t uuid) {
62   inc_func_call_count(__func__);
63 }
BTA_AvOpenRc(tBTA_AV_HNDL handle)64 void BTA_AvOpenRc(tBTA_AV_HNDL handle) { inc_func_call_count(__func__); }
BTA_AvProtectReq(tBTA_AV_HNDL hndl,uint8_t * p_data,uint16_t len)65 void BTA_AvProtectReq(tBTA_AV_HNDL hndl, uint8_t* p_data, uint16_t len) {
66   inc_func_call_count(__func__);
67 }
BTA_AvProtectRsp(tBTA_AV_HNDL hndl,uint8_t error_code,uint8_t * p_data,uint16_t len)68 void BTA_AvProtectRsp(tBTA_AV_HNDL hndl, uint8_t error_code, uint8_t* p_data,
69                       uint16_t len) {
70   inc_func_call_count(__func__);
71 }
BTA_AvReconfig(tBTA_AV_HNDL hndl,bool suspend,uint8_t sep_info_idx,uint8_t * p_codec_info,uint8_t num_protect,const uint8_t * p_protect_info)72 void BTA_AvReconfig(tBTA_AV_HNDL hndl, bool suspend, uint8_t sep_info_idx,
73                     uint8_t* p_codec_info, uint8_t num_protect,
74                     const uint8_t* p_protect_info) {
75   inc_func_call_count(__func__);
76 }
BTA_AvRegister(tBTA_AV_CHNL chnl,const char * p_service_name,uint8_t app_id,tBTA_AV_SINK_DATA_CBACK * p_sink_data_cback,uint16_t service_uuid)77 void BTA_AvRegister(tBTA_AV_CHNL chnl, const char* p_service_name,
78                     uint8_t app_id, tBTA_AV_SINK_DATA_CBACK* p_sink_data_cback,
79                     uint16_t service_uuid) {
80   inc_func_call_count(__func__);
81 }
BTA_AvRemoteCmd(uint8_t rc_handle,uint8_t label,tBTA_AV_RC rc_id,tBTA_AV_STATE key_state)82 void BTA_AvRemoteCmd(uint8_t rc_handle, uint8_t label, tBTA_AV_RC rc_id,
83                      tBTA_AV_STATE key_state) {
84   inc_func_call_count(__func__);
85 }
BTA_AvRemoteVendorUniqueCmd(uint8_t rc_handle,uint8_t label,tBTA_AV_STATE key_state,uint8_t * p_msg,uint8_t buf_len)86 void BTA_AvRemoteVendorUniqueCmd(uint8_t rc_handle, uint8_t label,
87                                  tBTA_AV_STATE key_state, uint8_t* p_msg,
88                                  uint8_t buf_len) {
89   inc_func_call_count(__func__);
90 }
BTA_AvStart(tBTA_AV_HNDL handle,bool use_latency_mode)91 void BTA_AvStart(tBTA_AV_HNDL handle, bool use_latency_mode) {
92   inc_func_call_count(__func__);
93 }
BTA_AvStop(tBTA_AV_HNDL handle,bool suspend)94 void BTA_AvStop(tBTA_AV_HNDL handle, bool suspend) {
95   inc_func_call_count(__func__);
96 }
BTA_AvVendorCmd(uint8_t rc_handle,uint8_t label,tBTA_AV_CODE cmd_code,uint8_t * p_data,uint16_t len)97 void BTA_AvVendorCmd(uint8_t rc_handle, uint8_t label, tBTA_AV_CODE cmd_code,
98                      uint8_t* p_data, uint16_t len) {
99   inc_func_call_count(__func__);
100 }
BTA_AvVendorRsp(uint8_t rc_handle,uint8_t label,tBTA_AV_CODE rsp_code,uint8_t * p_data,uint16_t len,uint32_t company_id)101 void BTA_AvVendorRsp(uint8_t rc_handle, uint8_t label, tBTA_AV_CODE rsp_code,
102                      uint8_t* p_data, uint16_t len, uint32_t company_id) {
103   inc_func_call_count(__func__);
104 }
BTA_AvSetLatency(tBTA_AV_HNDL handle,bool is_low_latency)105 void BTA_AvSetLatency(tBTA_AV_HNDL handle, bool is_low_latency) {
106   inc_func_call_count(__func__);
107 }
108