Home
last modified time | relevance | path

Searched refs:MtuEvent (Results 1 – 3 of 3) sorted by relevance

/packages/modules/Bluetooth/system/rust/src/gatt/
Dmtu.rs17 pub enum MtuEvent { enum
65 pub fn handle_event(&self, event: MtuEvent) -> Result<()> { in handle_event()
67 MtuEvent::OutgoingRequest => self.on_outgoing_request(), in handle_event()
68 MtuEvent::IncomingResponse(mtu) => self.on_incoming_response(mtu), in handle_event()
69 MtuEvent::IncomingRequest(mtu) => { in handle_event()
134 mtu.handle_event(MtuEvent::OutgoingRequest).unwrap(); in test_guaranteed_mtu_during_client_negotiation()
149 mtu.handle_event(MtuEvent::OutgoingRequest).unwrap(); in test_mtu_blocking_snapshot_during_client_negotiation()
153 mtu.handle_event(MtuEvent::IncomingResponse(NEW_MTU)).unwrap(); in test_mtu_blocking_snapshot_during_client_negotiation()
167 mtu.handle_event(MtuEvent::IncomingRequest(NEW_MTU)).unwrap(); in test_receive_mtu_request()
183 mtu.handle_event(MtuEvent::OutgoingRequest).unwrap(); in test_client_then_server_negotiation()
[all …]
Darbiter.rs17 mtu::MtuEvent,
35 |tcb_idx| on_mtu_event(TransportIndex(tcb_idx), MtuEvent::OutgoingRequest), in initialize_arbiter()
36 |tcb_idx, mtu| on_mtu_event(TransportIndex(tcb_idx), MtuEvent::IncomingResponse(mtu)), in initialize_arbiter()
37 |tcb_idx, mtu| on_mtu_event(TransportIndex(tcb_idx), MtuEvent::IncomingRequest(mtu)), in initialize_arbiter()
143 fn on_mtu_event(tcb_idx: TransportIndex, event: MtuEvent) { in on_mtu_event() argument
/packages/modules/Bluetooth/system/rust/src/gatt/server/
Datt_server_bearer.rs18 mtu::{AttMtu, MtuEvent},
152 pub fn handle_mtu_event(&self, mtu_event: MtuEvent) -> Result<()> { in handle_mtu_event()
602 conn.as_ref().handle_mtu_event(MtuEvent::OutgoingRequest).unwrap(); in test_single_indication_pending_mtu()
612 conn.as_ref().handle_mtu_event(MtuEvent::IncomingResponse(100)).unwrap(); in test_single_indication_pending_mtu()
624 conn.as_ref().handle_mtu_event(MtuEvent::OutgoingRequest).unwrap(); in test_single_indication_pending_mtu_fail()
635 conn.as_ref().handle_mtu_event(MtuEvent::IncomingResponse(32)).unwrap(); in test_single_indication_pending_mtu_fail()
647 conn.as_ref().handle_mtu_event(MtuEvent::OutgoingRequest).unwrap(); in test_server_transaction_pending_mtu()
683 conn.as_ref().handle_mtu_event(MtuEvent::OutgoingRequest).unwrap(); in test_queued_indication_pending_mtu_uses_mtu_on_dequeue()
684 conn.as_ref().handle_mtu_event(MtuEvent::IncomingResponse(512)).unwrap(); in test_queued_indication_pending_mtu_uses_mtu_on_dequeue()