Home
last modified time | relevance | path

Searched refs:fixed_cid (Results 1 – 13 of 13) sorted by relevance

/system/bt/stack/l2cap/
Dl2c_api.cc45 tBT_TRANSPORT l2c_get_transport_from_fixed_cid(uint16_t fixed_cid) { in l2c_get_transport_from_fixed_cid() argument
46 if (fixed_cid >= L2CAP_ATT_CID && fixed_cid <= L2CAP_SMP_CID) in l2c_get_transport_from_fixed_cid()
1096 static std::string fixed_channel_text(const uint16_t& fixed_cid) { in fixed_channel_text() argument
1097 switch (fixed_cid) { in fixed_channel_text()
1117 bool L2CA_RegisterFixedChannel(uint16_t fixed_cid, in L2CA_RegisterFixedChannel() argument
1120 return bluetooth::shim::L2CA_RegisterFixedChannel(fixed_cid, p_freg); in L2CA_RegisterFixedChannel()
1123 if ((fixed_cid < L2CAP_FIRST_FIXED_CHNL) || in L2CA_RegisterFixedChannel()
1124 (fixed_cid > L2CAP_LAST_FIXED_CHNL)) { in L2CA_RegisterFixedChannel()
1125 LOG_ERROR("Invalid fixed CID: 0x%04x", fixed_cid); in L2CA_RegisterFixedChannel()
1129 l2cb.fixed_reg[fixed_cid - L2CAP_FIRST_FIXED_CHNL] = *p_freg; in L2CA_RegisterFixedChannel()
[all …]
Dl2c_utils.cc2405 bool l2cu_initialize_fixed_ccb(tL2C_LCB* p_lcb, uint16_t fixed_cid) { in l2cu_initialize_fixed_ccb() argument
2409 p_ccb = p_lcb->p_fixed_ccbs[fixed_cid - L2CAP_FIRST_FIXED_CHNL]; in l2cu_initialize_fixed_ccb()
2424 p_ccb->local_cid = fixed_cid; in l2cu_initialize_fixed_ccb()
2425 p_ccb->remote_cid = fixed_cid; in l2cu_initialize_fixed_ccb()
2430 p_lcb->p_fixed_ccbs[fixed_cid - L2CAP_FIRST_FIXED_CHNL] = p_ccb; in l2cu_initialize_fixed_ccb()
2438 l2cb.fixed_reg[fixed_cid - L2CAP_FIRST_FIXED_CHNL].default_idle_tout; in l2cu_initialize_fixed_ccb()
Dl2c_int.h746 extern bool l2cu_initialize_fixed_ccb(tL2C_LCB* p_lcb, uint16_t fixed_cid);
/system/bt/test/mock/
Dmock_stack_l2cap_api.h63 std::function<tBT_TRANSPORT(uint16_t fixed_cid)> body{
64 [](uint16_t fixed_cid) { return 0; }};
65 tBT_TRANSPORT operator()(uint16_t fixed_cid) { return body(fixed_cid); }; in operator()
343 std::function<bool(uint16_t fixed_cid, tL2CAP_FIXED_CHNL_REG* p_freg)> body{
344 [](uint16_t fixed_cid, tL2CAP_FIXED_CHNL_REG* p_freg) { return false; }};
345 bool operator()(uint16_t fixed_cid, tL2CAP_FIXED_CHNL_REG* p_freg) { in operator()
346 return body(fixed_cid, p_freg); in operator()
354 std::function<bool(uint16_t fixed_cid, const RawAddress& rem_bda)> body{
355 [](uint16_t fixed_cid, const RawAddress& rem_bda) { return false; }};
356 bool operator()(uint16_t fixed_cid, const RawAddress& rem_bda) { in operator()
[all …]
Dmock_stack_l2cap_api.cc101 tBT_TRANSPORT l2c_get_transport_from_fixed_cid(uint16_t fixed_cid) { in l2c_get_transport_from_fixed_cid() argument
104 fixed_cid); in l2c_get_transport_from_fixed_cid()
223 bool L2CA_RegisterFixedChannel(uint16_t fixed_cid, in L2CA_RegisterFixedChannel() argument
226 return test::mock::stack_l2cap_api::L2CA_RegisterFixedChannel(fixed_cid, in L2CA_RegisterFixedChannel()
229 bool L2CA_ConnectFixedChnl(uint16_t fixed_cid, const RawAddress& rem_bda) { in L2CA_ConnectFixedChnl() argument
231 return test::mock::stack_l2cap_api::L2CA_ConnectFixedChnl(fixed_cid, rem_bda); in L2CA_ConnectFixedChnl()
233 uint16_t L2CA_SendFixedChnlData(uint16_t fixed_cid, const RawAddress& rem_bda, in L2CA_SendFixedChnlData() argument
236 return test::mock::stack_l2cap_api::L2CA_SendFixedChnlData(fixed_cid, rem_bda, in L2CA_SendFixedChnlData()
239 bool L2CA_RemoveFixedChnl(uint16_t fixed_cid, const RawAddress& rem_bda) { in L2CA_RemoveFixedChnl() argument
241 return test::mock::stack_l2cap_api::L2CA_RemoveFixedChnl(fixed_cid, rem_bda); in L2CA_RemoveFixedChnl()
Dmock_stack_l2cap_utils.cc53 bool l2cu_initialize_fixed_ccb(tL2C_LCB* p_lcb, uint16_t fixed_cid) { in l2cu_initialize_fixed_ccb() argument
/system/bt/main/shim/
Dl2c_api.h348 bool L2CA_RegisterFixedChannel(uint16_t fixed_cid,
363 bool L2CA_ConnectFixedChnl(uint16_t fixed_cid, const RawAddress& bd_addr);
379 uint16_t L2CA_SendFixedChnlData(uint16_t fixed_cid, const RawAddress& rem_bda,
395 bool L2CA_RemoveFixedChnl(uint16_t fixed_cid, const RawAddress& rem_bda);
/system/bt/stack/include/
Dl2c_api.h706 extern bool L2CA_RegisterFixedChannel(uint16_t fixed_cid,
721 extern bool L2CA_ConnectFixedChnl(uint16_t fixed_cid,
738 extern uint16_t L2CA_SendFixedChnlData(uint16_t fixed_cid,
755 extern bool L2CA_RemoveFixedChnl(uint16_t fixed_cid, const RawAddress& rem_bda);
/system/bt/gd/l2cap/le/
Dfacade.proto23 uint32 fixed_cid = 2; field
/system/bt/gd/l2cap/classic/
Dfacade.proto99 uint32 fixed_cid = 2; field
/system/bt/stack/smp/
Dsmp_utils.cc337 uint16_t fixed_cid = L2CAP_SMP_CID; in smp_send_msg_to_L2CAP() local
340 fixed_cid = L2CAP_SMP_BR_CID; in smp_send_msg_to_L2CAP()
348 l2cap_ret = L2CA_SendFixedChnlData(fixed_cid, rem_bda, p_toL2CAP); in smp_send_msg_to_L2CAP()
358 if (fixed_cid == L2CAP_SMP_CID) { in smp_send_msg_to_L2CAP()
/system/bt/stack/test/
Dgatt_connection_manager_test.cc69 bool L2CA_ConnectFixedChnl(uint16_t fixed_cid, const RawAddress& bd_addr) { in L2CA_ConnectFixedChnl() argument
/system/bt/gd/cert/
Dmatchers.py381 return lambda packet: None if cid != packet.fixed_cid else packet