Home
last modified time | relevance | path

Searched refs:AttBuilder (Results 1 – 9 of 9) sorted by relevance

/packages/modules/Bluetooth/system/rust/src/gatt/server/transactions/helpers/
Dpayload_accumulator.rs38 use crate::packets::{AttBuilder, AttChild, AttOpcode};
44 let accumulator = PayloadAccumulator::<AttBuilder>::new(0); in test_empty()
51 let ok = accumulator.push(AttBuilder { in test_nonempty()
64 let ok = accumulator.push(AttBuilder { in test_push_serialize()
72 [AttBuilder { in test_push_serialize()
84 let first_ok = accumulator.push(AttBuilder { in test_push_past_capacity()
88 let second_ok = accumulator.push(AttBuilder { in test_push_past_capacity()
99 [AttBuilder { in test_push_past_capacity()
111 let first_ok = accumulator.push(AttBuilder { in test_push_to_capacity()
115 let second_ok = accumulator.push(AttBuilder { in test_push_to_capacity()
[all …]
/packages/modules/Bluetooth/system/rust/src/gatt/mocks/
Dmock_transport.rs5 packets::{AttBuilder, Serializable, SerializeError},
10 pub struct MockAttTransport(mpsc::UnboundedSender<(TransportIndex, AttBuilder)>);
15 pub fn new() -> (Self, UnboundedReceiver<(TransportIndex, AttBuilder)>) { in new()
25 packet: AttBuilder, in send_packet() argument
/packages/modules/Bluetooth/system/rust/src/gatt/
Darbiter.rs164 AttBuilder, AttExchangeMtuRequestBuilder, AttOpcode, AttReadRequestBuilder,
186 let packet = AttBuilder { in test_packet_capture_when_isolated()
203 let packet = AttBuilder { in test_packet_bypass_when_isolated()
220 let packet = AttBuilder { in test_mtu_bypass()
237 let packet = AttBuilder { in test_packet_bypass_when_not_isolated()
Dchannel.rs4 use crate::packets::{AttBuilder, SerializeError};
20 packet: AttBuilder, in send_packet() argument
Dffi.rs15 packets::{AttAttributeDataChild, AttBuilder, AttErrorCode, Serializable, SerializeError},
273 packet: AttBuilder, in send_packet() argument
/packages/modules/Bluetooth/system/rust/tests/
Dgatt_server_test.rs33 AttAttributeDataChild, AttBuilder, AttChild, AttErrorCode, AttErrorResponseBuilder,
72 fn start_gatt_module() -> (gatt::server::GattModule, UnboundedReceiver<(TransportIndex, AttBuilder)… in start_gatt_module()
133 AttBuilder { in test_service_read()
215 AttBuilder { in test_characteristic_read()
260 AttBuilder { in test_characteristic_write()
295 AttBuilder { in test_send_indication()
368 AttBuilder { in test_write_to_descriptor()
/packages/modules/Bluetooth/system/rust/src/utils/
Dpacket.rs4 AttAttributeDataBuilder, AttAttributeDataChild, AttBuilder, AttChild, AttOpcode, Builder,
12 let serialized = AttBuilder { _child_: child, opcode }.to_vec().unwrap(); in build_att_view_or_crash()
/packages/modules/Bluetooth/system/rust/src/gatt/server/
Datt_server_bearer.rs22 AttAttributeDataChild, AttBuilder, AttChild, AttErrorCode, AttErrorResponseBuilder,
55 send_packet: Box<dyn Fn(AttBuilder) -> Result<(), SerializeError>>,
74 send_packet: impl Fn(AttBuilder) -> Result<(), SerializeError> + 'static, in new()
92 let packet = AttBuilder { opcode: HACK_child_to_opcode(&child), _child_: child }; in send_packet()
257 ) -> (SharedBox<AttServerBearer<TestAttDatabase>>, UnboundedReceiver<AttBuilder>) { in open_connection() argument
390 AttBuilder { in test_concurrent_transaction_failure()
/packages/modules/Bluetooth/system/rust/src/gatt/server/services/
Dgatt.rs193 packets::{AttAttributeDataChild, AttBuilder, AttChild},
211 … ) -> (AttDatabaseImpl, SharedBox<AttServerBearer<AttDatabaseImpl>>, UnboundedReceiver<AttBuilder>) in add_connection() argument