Home
last modified time | relevance | path

Searched refs:uint16_t (Results 1 – 25 of 1229) sorted by relevance

12345678910>>...50

/packages/modules/Bluetooth/system/test/mock/
Dmock_stack_l2cap_api.h45 std::function<tBT_TRANSPORT(uint16_t fixed_cid)> body{
46 [](uint16_t /* fixed_cid */) { return 0; }};
47 tBT_TRANSPORT operator()(uint16_t fixed_cid) { return body(fixed_cid); }; in operator()
55 std::function<uint16_t(uint16_t psm, const tL2CAP_APPL_INFO& p_cb_info,
57 uint16_t my_mtu, uint16_t required_remote_mtu,
58 uint16_t sec_level)>
59 body{[](uint16_t /* psm */, const tL2CAP_APPL_INFO& /* p_cb_info */,
61 uint16_t /* my_mtu */, uint16_t /* required_remote_mtu */,
62 uint16_t /* sec_level */) { return 0; }};
63 uint16_t operator()(uint16_t psm, const tL2CAP_APPL_INFO& p_cb_info, in operator()
[all …]
Dmock_stack_l2cap_ble.h44 std::function<bool(const RawAddress& rem_bda, uint16_t min_int,
45 uint16_t max_int, uint16_t latency, uint16_t timeout,
46 uint16_t min_ce_len, uint16_t max_ce_len)>
47 body{[](const RawAddress& /* rem_bda */, uint16_t /* min_int */,
48 uint16_t /* max_int */, uint16_t /* latency */,
49 uint16_t /* timeout */, uint16_t /* min_ce_len */,
50 uint16_t /* max_ce_len */) { return false; }};
51 bool operator()(const RawAddress& rem_bda, uint16_t min_int, uint16_t max_int, in operator()
52 uint16_t latency, uint16_t timeout, uint16_t min_ce_len, in operator()
53 uint16_t max_ce_len) { in operator()
[all …]
Dmock_stack_hcic_hcicmds.h48 uint32_t receive_bandwidth, uint16_t max_latency,
49 uint16_t content_fmt, uint8_t retrans_effort,
50 uint16_t packet_types)>
53 uint32_t /* receive_bandwidth */, uint16_t /* max_latency */,
54 uint16_t /* content_fmt */, uint8_t /* retrans_effort */,
55 uint16_t /* packet_types */) {}};
57 uint32_t receive_bandwidth, uint16_t max_latency, in operator()
58 uint16_t content_fmt, uint8_t retrans_effort, in operator()
59 uint16_t packet_types) { in operator()
70 std::function<void(uint16_t handle, uint16_t packet_types)> body{
[all …]
Dmock_stack_hcic_hciblecmds.h47 base::OnceCallback<void(uint8_t*, uint16_t)>)>
50 base::OnceCallback<void(uint8_t*, uint16_t)> /* cb */) {}};
53 base::OnceCallback<void(uint8_t*, uint16_t)> cb) { in operator()
64 std::function<void(base::OnceCallback<void(uint8_t*, uint16_t)>)> body{
65 [](base::OnceCallback<void(uint8_t*, uint16_t)>) {}};
66 void operator()(base::OnceCallback<void(uint8_t*, uint16_t)> cb) { in operator()
78 base::OnceCallback<void(uint8_t*, uint16_t)>)>
81 base::OnceCallback<void(uint8_t*, uint16_t)> /* cb */) {}};
84 base::OnceCallback<void(uint8_t*, uint16_t)> cb) { in operator()
122 std::function<void(uint16_t handle)> body{[](uint16_t /* handle */) {}};
[all …]
Dmock_main_shim_l2cap_api.h44 uint16_t* manufacturer, uint16_t* lmp_sub_version)>
46 uint16_t* manufacturer,
47 uint16_t* lmp_sub_version) { return false; }};
49 uint16_t* manufacturer, uint16_t* lmp_sub_version) { in operator()
68 std::function<uint16_t(uint16_t client_psm, const tL2CAP_APPL_INFO& callbacks,
70 uint16_t my_mtu, uint16_t required_remote_mtu,
71 uint16_t sec_level)>
72 body{[](uint16_t client_psm, const tL2CAP_APPL_INFO& callbacks,
73 bool enable_snoop, tL2CAP_ERTM_INFO* p_ertm_info, uint16_t my_mtu,
74 uint16_t required_remote_mtu, uint16_t sec_level) { return 0; }};
[all …]
Dmock_main_shim_acl_api.h110 std::function<void(uint16_t subrate_min, uint16_t subrate_max,
111 uint16_t max_latency, uint16_t cont_num,
112 uint16_t sup_tout)>
113 body{[](uint16_t subrate_min, uint16_t subrate_max, uint16_t max_latency,
114 uint16_t cont_num, uint16_t sup_tout) {}};
115 void operator()(uint16_t subrate_min, uint16_t subrate_max, in operator()
116 uint16_t max_latency, uint16_t cont_num, uint16_t sup_tout) { in operator()
126 std::function<void(uint16_t hci_handle, uint16_t subrate_min,
127 uint16_t subrate_max, uint16_t max_latency,
128 uint16_t cont_num, uint16_t sup_tout)>
[all …]
Dmock_stack_gatt_api.h52 static std::list<uint16_t> return_value;
53 std::function<std::list<uint16_t>(const RawAddress& remote_bda)> body{
55 std::list<uint16_t> operator()(const RawAddress& remote_bda) { in operator()
70 const RawAddress& remote_bda, tBT_TRANSPORT transport, uint16_t conn_id,
71 uint16_t* current_mtu)>
73 uint16_t /* conn_id */,
74 uint16_t* /* current_mtu */) { return return_value; }};
77 uint16_t conn_id, in operator()
78 uint16_t* current_mtu) { in operator()
91 uint16_t user_mtu)>
[all …]
Dmock_bta_gattc_api.cc34 const gatt::Characteristic* BTA_GATTC_GetCharacteristic(uint16_t /* conn_id */, in BTA_GATTC_GetCharacteristic() argument
35 uint16_t /* handle */) { in BTA_GATTC_GetCharacteristic()
40 uint16_t /* conn_id */, uint16_t /* handle */) { in BTA_GATTC_GetOwningCharacteristic() argument
44 const gatt::Descriptor* BTA_GATTC_GetDescriptor(uint16_t /* conn_id */, in BTA_GATTC_GetDescriptor() argument
45 uint16_t /* handle */) { in BTA_GATTC_GetDescriptor()
49 const gatt::Service* BTA_GATTC_GetOwningService(uint16_t /* conn_id */, in BTA_GATTC_GetOwningService() argument
50 uint16_t /* handle */) { in BTA_GATTC_GetOwningService()
54 const std::list<gatt::Service>* BTA_GATTC_GetServices(uint16_t /* conn_id */) { in BTA_GATTC_GetServices() argument
60 uint16_t /* handle */) { in BTA_GATTC_DeregisterForNotifications() argument
66 uint16_t /* handle */) { in BTA_GATTC_RegisterForNotifications() argument
[all …]
Dmock_device_interop.h47 std::function<void(const uint16_t feature, const RawAddress* addr,
49 body{[](const uint16_t /* feature */, const RawAddress* /* addr */,
51 void operator()(const uint16_t feature, const RawAddress* addr, in operator()
62 std::function<void(const uint16_t feature, const RawAddress* addr,
64 body{[](const uint16_t /* feature */, const RawAddress* /* addr */,
66 void operator()(const uint16_t feature, const RawAddress* addr, in operator()
78 uint8_t lmp_ver, uint16_t lmp_sub_ver)>
81 uint16_t /* lmp_sub_ver */) {}};
83 uint8_t lmp_ver, uint16_t lmp_sub_ver) { in operator()
95 uint16_t max_lat)>
[all …]
Dmock_stack_acl.h79 std::function<bool(uint16_t hci_handle)> body{
80 [](uint16_t /* hci_handle */) { return false; }};
81 bool operator()(uint16_t hci_handle) { return body(hci_handle); }; in operator()
126 uint16_t* manufacturer, uint16_t* lmp_sub_version)>
128 uint16_t* /* manufacturer */,
129 uint16_t* /* lmp_sub_version */) { return false; }};
131 uint16_t* manufacturer, uint16_t* lmp_sub_version) { in operator()
204 std::function<bool(uint16_t hci_handle)> body{
205 [](uint16_t /* hci_handle */) { return false; }};
206 bool operator()(uint16_t hci_handle) { return body(hci_handle); }; in operator()
[all …]
Dmock_stack_pan_api.h43 tPAN_ROLE dst_role, uint16_t* handle)>
46 uint16_t* /* handle */) { return PAN_SUCCESS; }};
48 tPAN_ROLE dst_role, uint16_t* handle) { in operator()
57 std::function<tPAN_RESULT(uint16_t handle)> body{
58 [](uint16_t /* handle */) { return PAN_SUCCESS; }};
59 tPAN_RESULT operator()(uint16_t handle) { return body(handle); }; in operator()
66 std::function<tPAN_RESULT(uint16_t handle, uint16_t num_mcast_filters,
68 body{[](uint16_t /* handle */, uint16_t /* num_mcast_filters */,
71 tPAN_RESULT operator()(uint16_t handle, uint16_t num_mcast_filters, in operator()
81 std::function<tPAN_RESULT(uint16_t handle, uint16_t num_filters,
[all …]
Dmock_stack_l2cap_api.cc82 tBT_TRANSPORT l2c_get_transport_from_fixed_cid(uint16_t fixed_cid) { in l2c_get_transport_from_fixed_cid()
87 uint16_t L2CA_RegisterWithSecurity( in L2CA_RegisterWithSecurity()
88 uint16_t psm, const tL2CAP_APPL_INFO& p_cb_info, bool enable_snoop, in L2CA_RegisterWithSecurity()
89 tL2CAP_ERTM_INFO* p_ertm_info, uint16_t my_mtu, in L2CA_RegisterWithSecurity()
90 uint16_t required_remote_mtu, uint16_t sec_level) { in L2CA_RegisterWithSecurity()
96 uint16_t L2CA_Register(uint16_t psm, const tL2CAP_APPL_INFO& p_cb_info, in L2CA_Register()
98 uint16_t my_mtu, uint16_t required_remote_mtu, in L2CA_Register()
99 uint16_t sec_level) { in L2CA_Register()
105 void L2CA_Deregister(uint16_t psm) { in L2CA_Deregister()
109 uint16_t L2CA_AllocateLePSM(void) { in L2CA_AllocateLePSM()
[all …]
/packages/modules/Bluetooth/system/stack/include/
Dl2c_api.h126 uint16_t rtrans_tout;
127 uint16_t mon_tout;
128 uint16_t mps;
160 uint16_t result; /* Only used in confirm messages */
162 uint16_t mtu;
166 uint16_t flush_to;
173 uint16_t flags; /* bit 0: 0-no continuation, 1-continuation */
177 constexpr uint16_t L2CAP_LE_MIN_MTU = 23; // Minimum SDU size
178 constexpr uint16_t L2CAP_LE_MIN_MPS = 23;
179 constexpr uint16_t L2CAP_LE_MAX_MPS = 65533;
[all …]
Dhcimsgs.h46 virtual void Disconnect(uint16_t handle, uint8_t reason) const = 0;
47 virtual void ChangeConnectionPacketType(uint16_t handle,
48 uint16_t packet_types) const = 0;
61 void btsnd_hcic_add_SCO_conn(uint16_t handle, uint16_t packet_types);
84 void btsnd_hcic_change_conn_type(uint16_t handle, uint16_t packet_types);
87 void btsnd_hcic_auth_request(uint16_t handle); /* Authentication Request */
90 void btsnd_hcic_set_conn_encrypt(uint16_t handle, bool enable);
93 void btsnd_hcic_rmt_ext_features(uint16_t handle, uint8_t page_num);
95 void btsnd_hcic_rmt_ver_req(uint16_t handle); /* Remote Version Info Request */
96 void btsnd_hcic_read_rmt_clk_offset(uint16_t handle); /* Remote Clock Offset */
[all …]
Dgap_api.h72 uint16_t credits_received;
73 uint16_t credit_count;
77 uint16_t local_cid;
78 uint16_t remote_cid;
83 uint16_t l2cap_result;
93 typedef void(tGAP_CONN_CALLBACK)(uint16_t gap_handle, uint16_t event,
97 uint16_t int_min;
98 uint16_t int_max;
99 uint16_t latency;
100 uint16_t sp_tout;
[all …]
Dgatt_api.h264 typedef enum : uint16_t {
337 typedef uint16_t tGATT_PERM;
416 uint16_t unit; /* as UUIUD defined by SIG */
417 uint16_t descr; /* as UUID as defined by SIG */
433 uint16_t len;
443 uint16_t handle_list[GATT_AGGR_HANDLE_NUM_MAX];
463 typedef uint16_t tGATT_SVR_CHAR_CONFIG;
484 uint16_t conn_id;
485 uint16_t handle; /* attribute handle */
486 uint16_t offset; /* attribute value offset, if no offset is needed for the
[all …]
/packages/modules/Bluetooth/system/main/shim/
Dl2c_api.h44 uint16_t L2CA_Register(uint16_t psm, const tL2CAP_APPL_INFO& p_cb_info,
46 uint16_t my_mtu, uint16_t required_remote_mtu,
47 uint16_t sec_level);
59 void L2CA_Deregister(uint16_t psm);
71 uint16_t L2CA_AllocateLePSM(void);
82 void L2CA_FreeLePSM(uint16_t psm);
97 uint16_t L2CA_ConnectReq(uint16_t psm, const RawAddress& p_bd_addr);
113 uint16_t L2CA_RegisterLECoc(uint16_t psm, const tL2CAP_APPL_INFO& p_cb_info,
114 uint16_t sec_level, tL2CAP_LE_CFG_INFO cfg);
126 void L2CA_DeregisterLECoc(uint16_t psm);
[all …]
Dacl_legacy_interface.h34 void (*on_connected)(const RawAddress& bda, uint16_t handle, uint8_t enc_mode,
39 void (*on_disconnected)(tHCI_STATUS status, uint16_t handle,
44 void (*on_connected)(const tBLE_BD_ADDR& address_with_type, uint16_t handle,
45 tHCI_ROLE role, uint16_t conn_interval,
46 uint16_t conn_latency, uint16_t conn_timeout,
50 void (*on_failed)(const tBLE_BD_ADDR& address_with_type, uint16_t handle,
52 void (*on_disconnected)(tHCI_STATUS status, uint16_t handle,
57 void (*on_authentication_complete)(uint16_t handle, tHCI_STATUS status);
60 void (*on_flow_specification_complete)(uint16_t flow_direction,
61 uint16_t service_type,
[all …]
/packages/modules/Bluetooth/system/bta/include/
Dbta_gatt_api.h103 uint16_t unit; /* as UUIUD defined by SIG */
104 uint16_t descr; /* as UUID as defined by SIG */
115 uint16_t handle_list[BTA_GATT_AGGR_HANDLE_NUM_MAX];
119 uint16_t len;
125 uint16_t handles[GATT_MAX_READ_MULTI_HANDLES];
135 uint16_t conn_id;
137 uint16_t handle;
138 uint16_t len;
143 uint16_t conn_id;
145 uint16_t handle;
[all …]
/packages/modules/Bluetooth/system/stack/gatt/
Dgatt_int.h41 ((uint16_t)((((uint8_t)(tcb_idx)) << 8) | ((uint8_t)(gatt_if))))
42 #define GATT_GET_TCB_IDX(conn_id) ((uint8_t)(((uint16_t)(conn_id)) >> 8))
106 uint16_t s_handle; /* starting handle */
107 uint16_t e_handle; /* ending handle */
108 uint16_t value_len; /* length of the attribute value */
123 uint16_t handle; /* read, handle value confirmation */
124 uint16_t mtu;
130 uint16_t handle;
142 uint16_t handle; /* WRITE, WRITE_BLOB */
143 uint16_t mtu; /* exchange MTU request */
[all …]
/packages/modules/Bluetooth/system/stack/test/common/
Dmock_l2cap_layer.h33 virtual uint16_t Register(uint16_t psm, const tL2CAP_APPL_INFO& p_cb_info,
36 virtual uint16_t ConnectRequest(uint16_t psm, const RawAddress& bd_addr) = 0;
38 uint16_t lcid, uint16_t result,
39 uint16_t status) = 0;
40 virtual bool DisconnectRequest(uint16_t cid) = 0;
41 virtual bool DisconnectResponse(uint16_t cid) = 0;
42 virtual bool ConfigRequest(uint16_t cid, tL2CAP_CFG_INFO* p_cfg) = 0;
43 virtual bool ConfigResponse(uint16_t cid, tL2CAP_CFG_INFO* p_cfg) = 0;
44 virtual uint8_t DataWrite(uint16_t cid, BT_HDR* p_data) = 0;
45 …virtual uint16_t RegisterLECoc(uint16_t psm, const tL2CAP_APPL_INFO &cb_info, uint16_t sec_level) …
[all …]
/packages/modules/Bluetooth/system/stack/l2cap/
Dl2c_int.h50 constexpr uint16_t L2CAP_CREDIT_BASED_MIN_MTU = 64;
51 constexpr uint16_t L2CAP_CREDIT_BASED_MIN_MPS = 64;
136 typedef enum : uint16_t {
238 uint16_t rx_sdu_len; /* Length of the SDU being received */
253 uint16_t psm;
254 uint16_t real_psm; /* This may be a dummy RCB for an o/b connection but */
259 uint16_t my_mtu;
260 uint16_t required_remote_mtu;
268 uint16_t psm;
290 uint16_t ble_sdu_length; /* Length of unassembled sdu length*/
[all …]
/packages/modules/Bluetooth/system/gd/hal/
Dsnoop_logger.h45 std::unordered_set<uint16_t> l2c_local_cid = {1};
46 std::unordered_set<uint16_t> l2c_remote_cid = {1};
47 uint16_t rfcomm_local_cid = 0;
48 uint16_t rfcomm_remote_cid = 0;
49 std::unordered_set<uint16_t> rfcomm_channels = {0};
52 void AddL2capCid(uint16_t local_cid, uint16_t remote_cid);
55 void SetRfcommCid(uint16_t local_cid, uint16_t remote_cid);
58 void RemoveL2capCid(uint16_t local_cid, uint16_t remote_cid);
62 bool IsAcceptlistedL2cap(bool local, uint16_t cid);
64 bool IsRfcommChannel(bool local, uint16_t cid);
[all …]
/packages/modules/Bluetooth/system/stack/fuzzers/
Dl2cap_fuzzer.cc86 void SnoopLogger::AcceptlistL2capChannel(uint16_t, uint16_t, uint16_t) {} in AcceptlistL2capChannel() argument
87 void SnoopLogger::AddA2dpMediaChannel(uint16_t, uint16_t, uint16_t) {} in AddA2dpMediaChannel() argument
88 void SnoopLogger::AddRfcommL2capChannel(uint16_t, uint16_t, uint16_t) {} in AddRfcommL2capChannel() argument
89 void SnoopLogger::ClearL2capAcceptlist(uint16_t, uint16_t, uint16_t) {} in ClearL2capAcceptlist() argument
90 void SnoopLogger::RemoveA2dpMediaChannel(uint16_t, uint16_t) {} in RemoveA2dpMediaChannel() argument
91 void SnoopLogger::SetL2capChannelClose(uint16_t, uint16_t, uint16_t) {} in SetL2capChannelClose() argument
92 void SnoopLogger::SetL2capChannelOpen(uint16_t, uint16_t, uint16_t, uint16_t, in SetL2capChannelOpen() argument
154 constexpr uint16_t kAttHndl = 0x0111;
159 constexpr uint16_t kSmpBrHndl = 0x0222;
161 constexpr uint16_t kNumClassicAclBuffer = 100;
[all …]
/packages/modules/Bluetooth/tools/rootcanal/model/controller/
Dacl_connection_handler.h34 static constexpr uint16_t kReservedHandle = 0xF00;
35 static constexpr uint16_t kCisHandleRangeStart = 0xE00;
36 static constexpr uint16_t kCisHandleRangeEnd = 0xEFE;
70 uint16_t GetScoHandle(bluetooth::hci::Address addr) const;
83 uint16_t CreateConnection(bluetooth::hci::Address addr,
86 uint16_t CreateLeConnection(bluetooth::hci::AddressWithType addr,
89 bool Disconnect(uint16_t handle, std::function<void(TaskId)> stopStream);
90 bool HasHandle(uint16_t handle) const;
91 bool HasScoHandle(uint16_t handle) const;
95 std::optional<uint16_t> GetAclConnectionHandle(
[all …]

12345678910>>...50