Home
last modified time | relevance | path

Searched refs:build_view_or_crash (Results 1 – 8 of 8) sorted by relevance

/packages/modules/Bluetooth/system/rust/src/core/
Duuid.rs98 use crate::utils::packet::build_view_or_crash;
144 let actual: Uuid = build_view_or_crash(Uuid16Builder { data: 0x0102 }).view().into(); in test_uuid_from_16_fixed_view()
152 let actual: Uuid = build_view_or_crash(Uuid128Builder { data: data.into() }).view().into(); in test_uuid_from_128_fixed_view()
160 build_view_or_crash(UuidBuilder { data: [2, 1].into() }).view().try_into().unwrap(); in test_uuid_from_16_view()
167 let actual: Uuid = build_view_or_crash(UuidBuilder { data: [4, 3, 2, 1].into() }) in test_uuid_from_32_view()
179 build_view_or_crash(UuidBuilder { data: data.into() }).view().try_into().unwrap(); in test_uuid_from_128_view()
186 build_view_or_crash(UuidBuilder { data: [10, 9, 8, 7, 6, 5, 4, 3, 2, 1].into() }); in test_uuid_from_invalid_view()
/packages/modules/Bluetooth/system/rust/src/gatt/server/transactions/
Dread_by_group_type_request.rs108 utils::packet::{build_att_data, build_view_or_crash},
144 let att_view = build_view_or_crash(AttReadByGroupTypeRequestBuilder { in test_simple_grouping()
183 let att_view = build_view_or_crash(AttReadByGroupTypeRequestBuilder { in test_invalid_group_type()
210 let att_view = build_view_or_crash(AttReadByGroupTypeRequestBuilder { in test_range_validation()
245 let att_view = build_view_or_crash(AttReadByGroupTypeRequestBuilder { in test_attribute_truncation()
294 let att_view = build_view_or_crash(AttReadByGroupTypeRequestBuilder { in test_limit_total_size()
343 let att_view = build_view_or_crash(AttReadByGroupTypeRequestBuilder { in test_group_end_outside_range()
393 let att_view = build_view_or_crash(AttReadByGroupTypeRequestBuilder { in test_no_results()
Dfind_by_type_value.rs88 utils::packet::{build_att_data, build_view_or_crash},
130 let att_view = build_view_or_crash(AttFindByTypeValueRequestBuilder { in test_uuid_match()
192 let att_view = build_view_or_crash(AttFindByTypeValueRequestBuilder { in test_value_match()
229 let att_view = build_view_or_crash(AttFindByTypeValueRequestBuilder { in test_range_check()
263 let att_view = build_view_or_crash(AttFindByTypeValueRequestBuilder { in test_empty_response()
315 let att_view = build_view_or_crash(AttFindByTypeValueRequestBuilder { in test_grouping_uuid()
363 let att_view = build_view_or_crash(AttFindByTypeValueRequestBuilder { in test_limit_total_size()
Dread_by_type_request.rs90 utils::packet::{build_att_data, build_view_or_crash},
109 let att_view = build_view_or_crash(AttReadByTypeRequestBuilder { in test_single_matching_attr()
164 let att_view = build_view_or_crash(AttReadByTypeRequestBuilder { in test_type_filtering()
218 let att_view = build_view_or_crash(AttReadByTypeRequestBuilder { in test_limit_total_size()
265 let att_view = build_view_or_crash(AttReadByTypeRequestBuilder { in test_no_results()
291 let att_view = build_view_or_crash(AttReadByTypeRequestBuilder { in test_range_validation()
Dfind_information_request.rs113 utils::packet::build_view_or_crash,
149 let att_view = build_view_or_crash(AttFindInformationRequestBuilder { in test_long_uuids()
212 let att_view = build_view_or_crash(AttFindInformationRequestBuilder { in test_short_uuids()
250 let att_view = build_view_or_crash(AttFindInformationRequestBuilder { in test_handle_validation()
293 let att_view = build_view_or_crash(AttFindInformationRequestBuilder { in test_limit_total_size()
332 let att_view = build_view_or_crash(AttFindInformationRequestBuilder { in test_empty_output()
Dwrite_request.rs45 utils::packet::{build_att_data, build_view_or_crash},
62 let att_view = build_view_or_crash(AttWriteRequestBuilder { in test_successful_write()
87 let att_view = build_view_or_crash(AttWriteRequestBuilder { in test_failed_write()
Dread_request.rs50 utils::packet::{build_att_data, build_view_or_crash},
69 let att_view = build_view_or_crash(AttReadRequestBuilder { in do_read_request_with_handle_and_mtu()
/packages/modules/Bluetooth/system/rust/src/utils/
Dpacket.rs17 pub fn build_view_or_crash<T: Builder>(builder: T) -> T::OwnedPacket { in build_view_or_crash() function