/packages/modules/Bluetooth/system/rust/src/gatt/ |
D | opcode_types.rs | 3 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 …]
|
D | arbiter.rs | 11 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/ |
D | packet.rs | 4 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/ |
D | payload_accumulator.rs | 38 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/ |
D | request_handler.rs | 7 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()
|
D | att_server_bearer.rs | 242 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 …]
|
D | command_handler.rs | 3 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/ |
D | read_request.rs | 5 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()
|
D | write_request.rs | 4 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()
|
D | find_information_request.rs | 11 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()
|
D | find_by_type_value.rs | 11 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()
|
D | read_by_group_type_request.rs | 11 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()
|
D | read_by_type_request.rs | 5 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/ |
D | gatt_server_test.rs | 36 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/ |
D | packets.pdl | 3 enum AttOpcode : 8 { 52 opcode : AttOpcode, 230 opcode_in_error: AttOpcode,
|