Home
last modified time | relevance | path

Searched refs:AttOpcode (Results 1 – 15 of 15) sorted by relevance

/packages/modules/Bluetooth/system/rust/src/gatt/
Dopcode_types.rs3 use crate::packets::AttOpcode;
24 pub fn classify_opcode(opcode: AttOpcode) -> OperationType { in classify_opcode()
26 AttOpcode::ERROR_RESPONSE => OperationType::Response, in classify_opcode()
27 AttOpcode::EXCHANGE_MTU_RESPONSE => OperationType::Response, in classify_opcode()
28 AttOpcode::FIND_INFORMATION_RESPONSE => OperationType::Response, in classify_opcode()
29 AttOpcode::FIND_BY_TYPE_VALUE_RESPONSE => OperationType::Response, in classify_opcode()
30 AttOpcode::READ_BY_TYPE_RESPONSE => OperationType::Response, in classify_opcode()
31 AttOpcode::READ_RESPONSE => OperationType::Response, in classify_opcode()
32 AttOpcode::READ_BLOB_RESPONSE => OperationType::Response, in classify_opcode()
33 AttOpcode::READ_MULTIPLE_RESPONSE => OperationType::Response, in classify_opcode()
[all …]
Darbiter.rs11 packets::{AttOpcode, OwnedAttView, OwnedPacket},
71 if att.view().get_opcode() == AttOpcode::EXCHANGE_MTU_REQUEST { in try_parse_att_server_packet()
164 AttBuilder, AttExchangeMtuRequestBuilder, AttOpcode, AttReadRequestBuilder,
187 opcode: AttOpcode::READ_REQUEST, in test_packet_capture_when_isolated()
204 opcode: AttOpcode::ERROR_RESPONSE, in test_packet_bypass_when_isolated()
221 opcode: AttOpcode::EXCHANGE_MTU_REQUEST, in test_mtu_bypass()
238 opcode: AttOpcode::READ_REQUEST, in test_packet_bypass_when_not_isolated()
/packages/modules/Bluetooth/system/rust/src/utils/
Dpacket.rs4 AttAttributeDataBuilder, AttAttributeDataChild, AttBuilder, AttChild, AttOpcode, Builder,
25 pub fn HACK_child_to_opcode(child: &AttChild) -> AttOpcode { in HACK_child_to_opcode() argument
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()
34 AttChild::AttReadByGroupTypeResponse(_) => AttOpcode::READ_BY_GROUP_TYPE_RESPONSE, in HACK_child_to_opcode()
35 AttChild::AttReadByTypeResponse(_) => AttOpcode::READ_BY_TYPE_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};
52 opcode: AttOpcode::WRITE_RESPONSE, in test_nonempty()
65 opcode: AttOpcode::WRITE_RESPONSE, in test_push_serialize()
73 opcode: AttOpcode::WRITE_RESPONSE, in test_push_serialize()
85 opcode: AttOpcode::WRITE_RESPONSE, in test_push_past_capacity()
89 opcode: AttOpcode::WRITE_RESPONSE, in test_push_past_capacity()
100 opcode: AttOpcode::WRITE_RESPONSE, in test_push_past_capacity()
112 opcode: AttOpcode::WRITE_RESPONSE, in test_push_to_capacity()
116 opcode: AttOpcode::WRITE_RESPONSE, in test_push_to_capacity()
127 opcode: AttOpcode::WRITE_RESPONSE, in test_push_to_capacity()
[all …]
/packages/modules/Bluetooth/system/rust/src/gatt/server/
Drequest_handler.rs7 AttFindInformationRequestView, AttOpcode, AttReadByGroupTypeRequestView,
61 AttOpcode::READ_REQUEST => { in try_parse_and_process_packet()
64 AttOpcode::READ_BY_GROUP_TYPE_REQUEST => { in try_parse_and_process_packet()
72 AttOpcode::READ_BY_TYPE_REQUEST => { in try_parse_and_process_packet()
80 AttOpcode::FIND_INFORMATION_REQUEST => Ok(handle_find_information_request( in try_parse_and_process_packet()
85 AttOpcode::FIND_BY_TYPE_VALUE_REQUEST => Ok(handle_find_by_type_value_request( in try_parse_and_process_packet()
91 AttOpcode::WRITE_REQUEST => { in try_parse_and_process_packet()
169 opcode_in_error: AttOpcode::WRITE_RESPONSE, in test_unsupported_request()
Datt_server_bearer.rs242 AttOpcode, AttReadRequestBuilder, AttReadResponseBuilder,
295 assert_eq!(rx.recv().await.unwrap().opcode, AttOpcode::READ_RESPONSE); in test_single_transaction()
310 assert_eq!(rx.recv().await.unwrap().opcode, AttOpcode::ERROR_RESPONSE); in test_sequential_transactions()
319 assert_eq!(rx.recv().await.unwrap().opcode, AttOpcode::READ_RESPONSE); in test_sequential_transactions()
391 opcode: AttOpcode::READ_RESPONSE, in test_concurrent_transaction_failure()
421 assert_eq!(rx.recv().await.unwrap().opcode, AttOpcode::HANDLE_VALUE_INDICATION); in test_indication_confirmation()
465 assert_eq!(sent1.opcode, AttOpcode::HANDLE_VALUE_INDICATION); in test_sequential_indications()
466 assert_eq!(sent2.opcode, AttOpcode::HANDLE_VALUE_INDICATION); in test_sequential_indications()
491 assert_eq!(rx.recv().await.unwrap().opcode, AttOpcode::HANDLE_VALUE_INDICATION); in test_queued_indications_only_one_sent()
529 assert_eq!(sent1.opcode, AttOpcode::HANDLE_VALUE_INDICATION); in test_queued_indications_dequeue_second()
[all …]
Dcommand_handler.rs3 use crate::packets::{AttOpcode, AttView, AttWriteCommandView, Packet};
20 AttOpcode::WRITE_COMMAND => { in process_packet()
52 AttOpcode, AttWriteCommandBuilder,
92 opcode_in_error: AttOpcode::EXCHANGE_MTU_REQUEST, in test_unsupported_command()
/packages/modules/Bluetooth/system/rust/src/gatt/server/transactions/
Dread_request.rs5 AttOpcode, AttReadRequestView, AttReadResponseBuilder,
28 opcode_in_error: AttOpcode::READ_REQUEST, in handle_read_request()
112 opcode_in_error: AttOpcode::READ_REQUEST, in test_missed_read()
141 opcode_in_error: AttOpcode::READ_REQUEST, in test_not_readable()
Dwrite_request.rs4 AttChild, AttErrorResponseBuilder, AttOpcode, AttWriteRequestView, AttWriteResponseBuilder,
17 opcode_in_error: AttOpcode::WRITE_REQUEST, in handle_write_request()
97 opcode_in_error: AttOpcode::WRITE_REQUEST, in test_failed_write()
Dfind_information_request.rs11 AttOpcode,
28 opcode_in_error: AttOpcode::FIND_INFORMATION_REQUEST, in handle_find_information_request()
49 opcode_in_error: AttOpcode::FIND_INFORMATION_REQUEST, in handle_find_information_request()
263 opcode_in_error: AttOpcode::FIND_INFORMATION_REQUEST, in test_handle_validation()
345 opcode_in_error: AttOpcode::FIND_INFORMATION_REQUEST, in test_empty_output()
Dfind_by_type_value.rs11 AttFindByTypeValueResponseBuilder, AttOpcode, AttributeHandleRangeBuilder,
31 opcode_in_error: AttOpcode::FIND_BY_TYPE_VALUE_REQUEST, in handle_find_by_type_value_request()
65 opcode_in_error: AttOpcode::FIND_BY_TYPE_VALUE_REQUEST, in handle_find_by_type_value_request()
243 opcode_in_error: AttOpcode::FIND_BY_TYPE_VALUE_REQUEST, in test_range_check()
277 opcode_in_error: AttOpcode::FIND_BY_TYPE_VALUE_REQUEST, in test_empty_response()
Dread_by_group_type_request.rs11 AttAttributeDataBuilder, AttChild, AttErrorCode, AttErrorResponseBuilder, AttOpcode,
40 opcode_in_error: AttOpcode::READ_BY_GROUP_TYPE_REQUEST, in handle_read_by_group_type_request()
198 opcode_in_error: AttOpcode::READ_BY_GROUP_TYPE_REQUEST, in test_invalid_group_type()
225 opcode_in_error: AttOpcode::READ_BY_GROUP_TYPE_REQUEST, in test_range_validation()
408 opcode_in_error: AttOpcode::READ_BY_GROUP_TYPE_REQUEST, in test_no_results()
Dread_by_type_request.rs5 AttAttributeDataBuilder, AttChild, AttErrorCode, AttErrorResponseBuilder, AttOpcode,
33 opcode_in_error: AttOpcode::READ_BY_TYPE_REQUEST, in handle_read_by_type_request()
279 opcode_in_error: AttOpcode::READ_BY_TYPE_REQUEST, in test_no_results()
305 opcode_in_error: AttOpcode::READ_BY_TYPE_REQUEST, in test_range_validation()
/packages/modules/Bluetooth/system/rust/tests/
Dgatt_server_test.rs36 AttHandleValueIndicationBuilder, AttOpcode, AttReadByTypeRequestBuilder,
134 opcode: AttOpcode::READ_RESPONSE, in test_service_read()
167 assert_eq!(resp.opcode, AttOpcode::ERROR_RESPONSE); in test_server_closed_while_connected()
171 opcode_in_error: AttOpcode::READ_REQUEST, in test_server_closed_while_connected()
216 opcode: AttOpcode::READ_RESPONSE, in test_characteristic_read()
261 opcode: AttOpcode::WRITE_RESPONSE, in test_characteristic_write()
296 opcode: AttOpcode::HANDLE_VALUE_INDICATION, in test_send_indication()
369 opcode: AttOpcode::WRITE_RESPONSE, in test_write_to_descriptor()
/packages/modules/Bluetooth/system/rust/src/
Dpackets.pdl3 enum AttOpcode : 8 {
52 opcode : AttOpcode,
230 opcode_in_error: AttOpcode,