• 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:14
20  */
21 
22 #include <base/functional/bind.h>
23 #include <base/location.h>
24 
25 #include <cstdint>
26 #include <string>
27 #include <vector>
28 
29 #include "bta/include/bta_ag_api.h"
30 #include "bta/include/bta_ag_swb_aptx.h"
31 #include "test/common/mock_functions.h"
32 #include "types/raw_address.h"
33 
BTA_AgEnable(tBTA_AG_CBACK *)34 tBTA_STATUS BTA_AgEnable(tBTA_AG_CBACK* /* p_cback */) {
35   inc_func_call_count(__func__);
36   return BTA_SUCCESS;
37 }
BTA_AgAudioClose(uint16_t)38 void BTA_AgAudioClose(uint16_t /* handle */) { inc_func_call_count(__func__); }
BTA_AgAudioOpen(uint16_t,tBTA_AG_PEER_CODEC)39 void BTA_AgAudioOpen(uint16_t /* handle */, tBTA_AG_PEER_CODEC /* disabled_codecs */) {
40   inc_func_call_count(__func__);
41 }
BTA_AgClose(uint16_t)42 void BTA_AgClose(uint16_t /* handle */) { inc_func_call_count(__func__); }
BTA_AgDeregister(uint16_t)43 void BTA_AgDeregister(uint16_t /* handle */) { inc_func_call_count(__func__); }
BTA_AgDisable()44 void BTA_AgDisable() { inc_func_call_count(__func__); }
BTA_AgOpen(uint16_t,const RawAddress &)45 void BTA_AgOpen(uint16_t /* handle */, const RawAddress& /* bd_addr */) {
46   inc_func_call_count(__func__);
47 }
BTA_AgRegister(tBTA_SERVICE_MASK,tBTA_AG_FEAT,const std::vector<std::string> &,uint8_t)48 void BTA_AgRegister(tBTA_SERVICE_MASK /* services */, tBTA_AG_FEAT /* features */,
49                     const std::vector<std::string>& /* service_names */, uint8_t /* app_id */) {
50   inc_func_call_count(__func__);
51 }
BTA_AgResult(uint16_t,tBTA_AG_RES,const tBTA_AG_RES_DATA &)52 void BTA_AgResult(uint16_t /* handle */, tBTA_AG_RES /* result */,
53                   const tBTA_AG_RES_DATA& /* data */) {
54   inc_func_call_count(__func__);
55 }
BTA_AgSetActiveDevice(const RawAddress &)56 void BTA_AgSetActiveDevice(const RawAddress& /* active_device_addr */) {
57   inc_func_call_count(__func__);
58 }
BTA_AgSetCodec(uint16_t,tBTA_AG_PEER_CODEC)59 void BTA_AgSetCodec(uint16_t /* handle */, tBTA_AG_PEER_CODEC /* codec */) {
60   inc_func_call_count(__func__);
61 }
BTA_AgSetScoOffloadEnabled(bool)62 void BTA_AgSetScoOffloadEnabled(bool /* value */) { inc_func_call_count(__func__); }
BTA_AgSetScoAllowed(bool)63 void BTA_AgSetScoAllowed(bool /* value */) { inc_func_call_count(__func__); }
is_hfp_aptx_voice_enabled()64 bool is_hfp_aptx_voice_enabled() {
65   inc_func_call_count(__func__);
66   return false;
67 }
enable_aptx_swb_codec(bool,RawAddress *)68 bt_status_t enable_aptx_swb_codec(bool /* enable */, RawAddress* /* bd_addr */) {
69   inc_func_call_count(__func__);
70   return BT_STATUS_SUCCESS;
71 }
72