Home
last modified time | relevance | path

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

/packages/modules/Bluetooth/system/rust/src/utils/
Dpacket.rs4 AttAttributeDataBuilder, AttAttributeDataChild, AttBuilder, AttChild, AttOpcode, Builder,
9 pub fn build_att_view_or_crash(child: impl Into<AttChild>) -> OwnedAttView { in build_att_view_or_crash()
25 pub fn HACK_child_to_opcode(child: &AttChild) -> AttOpcode { in HACK_child_to_opcode()
27 AttChild::RawData(_vec) => unreachable!(), in HACK_child_to_opcode()
28 AttChild::AttFindInformationRequest(_) => AttOpcode::FIND_INFORMATION_REQUEST, in HACK_child_to_opcode()
29 AttChild::AttReadByGroupTypeRequest(_) => AttOpcode::READ_BY_GROUP_TYPE_REQUEST, in HACK_child_to_opcode()
30 AttChild::AttReadByTypeRequest(_) => AttOpcode::READ_BY_TYPE_REQUEST, in HACK_child_to_opcode()
31 AttChild::AttReadRequest(_) => AttOpcode::READ_REQUEST, in HACK_child_to_opcode()
32 AttChild::AttReadResponse(_) => AttOpcode::READ_RESPONSE, in HACK_child_to_opcode()
33 AttChild::AttErrorResponse(_) => AttOpcode::ERROR_RESPONSE, in HACK_child_to_opcode()
[all …]
/packages/modules/Bluetooth/system/rust/src/gatt/server/transactions/helpers/
Dpayload_accumulator.rs38 use crate::packets::{AttBuilder, AttChild, AttOpcode};
53 _child_: AttChild::RawData([1, 2].into()), in test_nonempty()
66 _child_: AttChild::RawData([1, 2].into()), in test_push_serialize()
74 _child_: AttChild::RawData([1, 2].into()), in test_push_serialize()
86 _child_: AttChild::RawData([1, 2].into()), in test_push_past_capacity()
90 _child_: AttChild::RawData([3, 4].into()), in test_push_past_capacity()
101 _child_: AttChild::RawData([1, 2].into()), in test_push_past_capacity()
113 _child_: AttChild::RawData([1, 2].into()), in test_push_to_capacity()
117 _child_: AttChild::RawData([3].into()), in test_push_to_capacity()
128 _child_: AttChild::RawData([1, 2].into()), in test_push_to_capacity()
[all …]
/packages/modules/Bluetooth/system/rust/src/gatt/server/transactions/
Dread_request.rs4 AttAttributeDataBuilder, AttAttributeDataChild, AttChild, AttErrorResponseBuilder,
13 ) -> AttChild { in handle_read_request() argument
68 ) -> AttChild { in do_read_request_with_handle_and_mtu() argument
84 AttChild::AttReadResponse(AttReadResponseBuilder { in test_simple_read()
111 AttChild::AttErrorResponse(AttErrorResponseBuilder { in test_missed_read()
140 AttChild::AttErrorResponse(AttErrorResponseBuilder { in test_not_readable()
Dread_by_group_type_request.rs11 AttAttributeDataBuilder, AttChild, AttErrorCode, AttErrorResponseBuilder, AttOpcode,
28 ) -> Result<AttChild, ParseError> { in handle_read_by_group_type_request() argument
154 let AttChild::AttReadByGroupTypeResponse(response) = response else { in test_simple_grouping() localVariable
193 let AttChild::AttErrorResponse(response) = response else { unreachable!("{:?}", response) }; in test_invalid_group_type() localVariable
220 let AttChild::AttErrorResponse(response) = response else { unreachable!("{:?}", response) }; in test_range_validation() localVariable
255 let AttChild::AttReadByGroupTypeResponse(response) = response else { in test_attribute_truncation() localVariable
304 let AttChild::AttReadByGroupTypeResponse(response) = response else { in test_limit_total_size() localVariable
354 let AttChild::AttReadByGroupTypeResponse(response) = response else { in test_group_end_outside_range() localVariable
403 let AttChild::AttErrorResponse(response) = response else { unreachable!("{:?}", response) }; in test_no_results() localVariable
Dwrite_request.rs4 AttChild, AttErrorResponseBuilder, AttOpcode, AttWriteRequestView, AttWriteResponseBuilder,
11 ) -> AttChild { in handle_write_request() argument
42 AttAttributeDataBuilder, AttAttributeDataChild, AttChild, AttErrorCode,
71 assert_eq!(resp, AttChild::from(AttWriteResponseBuilder {})); in test_successful_write()
96 AttChild::from(AttErrorResponseBuilder { in test_failed_write()
Dfind_by_type_value.rs10 AttChild, AttErrorCode, AttErrorResponseBuilder, AttFindByTypeValueRequestView,
24 ) -> AttChild { in handle_find_by_type_value_request() argument
140 let AttChild::AttFindByTypeValueResponse(response) = response else { in test_uuid_match() localVariable
202 let AttChild::AttFindByTypeValueResponse(response) = response else { in test_value_match() localVariable
239 let AttChild::AttErrorResponse(response) = response else { unreachable!("{response:?}") }; in test_range_check() localVariable
273 let AttChild::AttErrorResponse(response) = response else { unreachable!("{response:?}") }; in test_empty_response() localVariable
325 let AttChild::AttFindByTypeValueResponse(response) = response else { in test_grouping_uuid() localVariable
373 let AttChild::AttFindByTypeValueResponse(response) = response else { in test_limit_total_size() localVariable
Dread_by_type_request.rs5 AttAttributeDataBuilder, AttChild, AttErrorCode, AttErrorResponseBuilder, AttOpcode,
21 ) -> Result<AttChild, ParseError> { in handle_read_by_type_request() argument
118 let AttChild::AttReadByTypeResponse(response) = response else { in test_single_matching_attr() localVariable
174 let AttChild::AttReadByTypeResponse(response) = response else { in test_type_filtering() localVariable
227 let AttChild::AttReadByTypeResponse(response) = response else { in test_limit_total_size() localVariable
274 let AttChild::AttErrorResponse(response) = response else { unreachable!("{:?}", response) }; in test_no_results() localVariable
300 let AttChild::AttErrorResponse(response) = response else { unreachable!("{:?}", response) }; in test_range_validation() localVariable
Dfind_information_request.rs7 AttChild, AttErrorCode, AttErrorResponseBuilder, AttFindInformationLongResponseBuilder,
21 ) -> AttChild { in handle_find_information_request() argument
156 let AttChild::AttFindInformationResponse(response) = response else { in test_long_uuids() localVariable
219 let AttChild::AttFindInformationResponse(response) = response else { in test_short_uuids() localVariable
257 let AttChild::AttErrorResponse(response) = response else { in test_handle_validation() localVariable
300 let AttChild::AttFindInformationResponse(response) = response else { in test_limit_total_size() localVariable
339 let AttChild::AttErrorResponse(response) = response else { in test_empty_output() localVariable
/packages/modules/Bluetooth/system/rust/src/gatt/server/
Drequest_handler.rs6 AttChild, AttErrorCode, AttErrorResponseBuilder, AttFindByTypeValueRequestView,
38 pub async fn process_packet(&mut self, packet: AttView<'_>, mtu: usize) -> AttChild { in process_packet() argument
58 ) -> Result<AttChild, ParseError> { in try_parse_and_process_packet() argument
142 AttChild::AttReadResponse(AttReadResponseBuilder { in test_read_request()
168 AttChild::AttErrorResponse(AttErrorResponseBuilder { in test_unsupported_request()
Dindication_handler.rs11 packets::{AttAttributeDataChild, AttChild, AttHandleValueIndicationBuilder, Serializable},
57 send_packet: impl FnOnce(AttChild) -> Result<(), SendError>, in send()
186 let AttChild::AttHandleValueIndication(indication) = rx.await.unwrap() else { in test_indication_sent() localVariable
Datt_server_bearer.rs22 AttAttributeDataChild, AttBuilder, AttChild, AttErrorCode, AttErrorResponseBuilder,
90 fn send_packet(&self, packet: impl Into<AttChild>) -> Result<(), SerializeError> { in send_packet()
206 fn try_send_packet(&self, packet: impl Into<AttChild>) -> Result<(), SendError> { in try_send_packet()
/packages/modules/Bluetooth/system/rust/src/gatt/server/services/
Dgatt.rs193 packets::{AttAttributeDataChild, AttBuilder, AttChild},
369 let AttChild::AttHandleValueIndication(resp) = resp._child_ else { in test_single_registered_service_change_indication() localVariable
414 assert!(matches!(resp1._child_, AttChild::AttHandleValueIndication(_))); in test_multiple_registered_service_change_indication()
415 assert!(matches!(resp2._child_, AttChild::AttHandleValueIndication(_))); in test_multiple_registered_service_change_indication()
451 assert!(matches!(resp1._child_, AttChild::AttHandleValueIndication(_))); in test_one_unregistered_service_change_indication()
493 assert!(matches!(resp1._child_, AttChild::AttHandleValueIndication(_))); in test_one_disconnected_service_change_indication()
/packages/modules/Bluetooth/system/rust/tests/
Dgatt_server_test.rs33 AttAttributeDataChild, AttBuilder, AttChild, AttErrorCode, AttErrorResponseBuilder,
463 let AttChild::AttErrorResponse(resp) = resp._child_ else { in test_read_device_name() localVariable
514 let AttChild::AttFindByTypeValueResponse(resp) = in test_service_change_indication() localVariable
532 let AttChild::AttReadByTypeResponse(resp) = transport_rx.recv().await.unwrap().1._child_ in test_service_change_indication() localVariable
561 let AttChild::AttFindInformationResponse(resp) = in test_service_change_indication() localVariable
593 let AttChild::AttWriteResponse(_) = transport_rx.recv().await.unwrap().1._child_ else { in test_service_change_indication() localVariable
610 let AttChild::AttHandleValueIndication(indication) = in test_service_change_indication() localVariable