Home
last modified time | relevance | path

Searched refs:CONNECT_COMPLETE_SIZE (Results 1 – 2 of 2) sorted by relevance

/packages/modules/Bluetooth/system/gd/rust/topshim/src/profiles/
Dsocket.rs68 pub const CONNECT_COMPLETE_SIZE: usize = std::mem::size_of::<bindings::sock_connect_signal_t>(); constant
75 if bytes.len() != CONNECT_COMPLETE_SIZE { in try_from()
83 if u16::from_ne_bytes(size_bytes.try_into().unwrap()) != (CONNECT_COMPLETE_SIZE as u16) { in try_from()
102 size: CONNECT_COMPLETE_SIZE.try_into().unwrap_or_default(), in try_from()
252 let small_input = [0u8; CONNECT_COMPLETE_SIZE - 1]; in test_conncomplete_parsing()
253 let large_input = [0u8; CONNECT_COMPLETE_SIZE + 1]; in test_conncomplete_parsing()
260 size_no_match.extend(i16::to_ne_bytes((CONNECT_COMPLETE_SIZE - 1) as i16)); in test_conncomplete_parsing()
261 size_no_match.extend([0u8; CONNECT_COMPLETE_SIZE - 2]); in test_conncomplete_parsing()
266 size: CONNECT_COMPLETE_SIZE as i16, in test_conncomplete_parsing()
280 CONNECT_COMPLETE_SIZE, in test_conncomplete_parsing()
[all …]
/packages/modules/Bluetooth/system/gd/rust/linux/stack/src/
Dsocket_manager.rs881 let mut data = [0; socket::CONNECT_COMPLETE_SIZE]; in listening_task()
912 &data[0..socket::CONNECT_COMPLETE_SIZE], in listening_task()
1097 let mut data = [0; socket::CONNECT_COMPLETE_SIZE]; in connecting_task()
1111 match socket::ConnectionComplete::try_from(&data[0..socket::CONNECT_COMPLETE_SIZE]) { in connecting_task()