1 /*
2 * Copyright 2020 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 #include "stack/gatt/gatt_int.h"
18 #include "stack/include/bt_hdr.h"
19 #include "types/raw_address.h"
20
21 /** stack/gatt/connection_manager.cc */
22 namespace connection_manager {
background_connect_remove(uint8_t app_id,const RawAddress & address)23 bool background_connect_remove(uint8_t app_id, const RawAddress& address) {
24 return false;
25 }
direct_connect_remove(uint8_t app_id,const RawAddress & address,bool connection_timeout)26 bool direct_connect_remove(uint8_t app_id, const RawAddress& address,
27 bool connection_timeout) {
28 return false;
29 }
is_background_connection(const RawAddress & address)30 bool is_background_connection(const RawAddress& address) { return false; }
31 } // namespace connection_manager
32
33 /** stack/gatt/att_protocol.cc */
attp_build_sr_msg(tGATT_TCB & tcb,uint8_t op_code,tGATT_SR_MSG * p_msg,uint16_t payload_size)34 BT_HDR* attp_build_sr_msg(tGATT_TCB& tcb, uint8_t op_code, tGATT_SR_MSG* p_msg,
35 uint16_t payload_size) {
36 return nullptr;
37 }
attp_send_cl_confirmation_msg(tGATT_TCB & tcb,uint16_t cid)38 tGATT_STATUS attp_send_cl_confirmation_msg(tGATT_TCB& tcb, uint16_t cid) {
39 return GATT_SUCCESS;
40 }
attp_send_cl_msg(tGATT_TCB & tcb,tGATT_CLCB * p_clcb,uint8_t op_code,tGATT_CL_MSG * p_msg)41 tGATT_STATUS attp_send_cl_msg(tGATT_TCB& tcb, tGATT_CLCB* p_clcb,
42 uint8_t op_code, tGATT_CL_MSG* p_msg) {
43 return GATT_SUCCESS;
44 }
attp_send_sr_msg(tGATT_TCB & tcb,uint16_t cid,BT_HDR * p_msg)45 tGATT_STATUS attp_send_sr_msg(tGATT_TCB& tcb, uint16_t cid, BT_HDR* p_msg) {
46 return GATT_SUCCESS;
47 }
48
49 /** stack/gatt/gatt_attr.cc */
gatt_sr_init_cl_status(tGATT_TCB & tcb)50 void gatt_sr_init_cl_status(tGATT_TCB& tcb) {}
51
52 /** stack/gatt/gatt_cl.cc */
gatt_act_discovery(tGATT_CLCB * p_clcb)53 void gatt_act_discovery(tGATT_CLCB* p_clcb) {}
54
55 /** stack/gatt/gatt_main.cc */
gatt_update_app_use_link_flag(tGATT_IF gatt_if,tGATT_TCB * p_tcb,bool is_add,bool check_acl_link)56 void gatt_update_app_use_link_flag(tGATT_IF gatt_if, tGATT_TCB* p_tcb,
57 bool is_add, bool check_acl_link) {}
gatts_proc_srv_chg_ind_ack(tGATT_TCB)58 void gatts_proc_srv_chg_ind_ack(tGATT_TCB) {}
gatt_disconnect(tGATT_TCB * p_tcb)59 bool gatt_disconnect(tGATT_TCB* p_tcb) { return false; }
gatt_get_ch_state(tGATT_TCB * p_tcb)60 tGATT_CH_STATE gatt_get_ch_state(tGATT_TCB* p_tcb) { return GATT_CH_CLOSE; }
gatt_set_ch_state(tGATT_TCB * p_tcb,tGATT_CH_STATE ch_state)61 void gatt_set_ch_state(tGATT_TCB* p_tcb, tGATT_CH_STATE ch_state) {}
62
63 /** stack/gatt/gatt_sr.cc */
gatt_sr_enqueue_cmd(tGATT_TCB & tcb,uint16_t cid,uint8_t op_code,uint16_t handle)64 uint32_t gatt_sr_enqueue_cmd(tGATT_TCB& tcb, uint16_t cid, uint8_t op_code,
65 uint16_t handle) { return 0x0000; }
gatt_dequeue_sr_cmd(tGATT_TCB & tcb,uint16_t cid)66 void gatt_dequeue_sr_cmd(tGATT_TCB& tcb, uint16_t cid) {}
67
68
69 /** stack/l2cap/l2c_ble.cc */
l2cble_set_fixed_channel_tx_data_length(const RawAddress & remote_bda,uint16_t fix_cid,uint16_t tx_mtu)70 void l2cble_set_fixed_channel_tx_data_length(const RawAddress& remote_bda,
71 uint16_t fix_cid,
72 uint16_t tx_mtu) {}
L2CA_SetLeFixedChannelTxDataLength(const RawAddress & remote_bda,uint16_t fix_cid,uint16_t tx_mtu)73 void L2CA_SetLeFixedChannelTxDataLength(const RawAddress& remote_bda,
74 uint16_t fix_cid, uint16_t tx_mtu) {}
75