Home
last modified time | relevance | path

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

/packages/modules/Bluetooth/system/gd/rust/topshim/tests/
Dbdaddr.rs28 assert!(RawAddress::from_bytes(&vec![]).is_none()); in from_bytes_invalid()
29 assert!(RawAddress::from_bytes(&vec![1, 2, 3, 4, 5]).is_none()); in from_bytes_invalid()
30 assert!(RawAddress::from_bytes(&vec![1, 2, 3, 4, 5, 6, 7]).is_none()); in from_bytes_invalid()
35 let addr = RawAddress::from_bytes(&vec![1, 2, 3, 4, 5, 6]); in from_bytes_valid()
/packages/modules/Bluetooth/pandora/server/bumble_experimental/
Dgatt.py82 connection_handle = int.from_bytes(request.connection.cookie.value, 'big')
96 connection_handle = int.from_bytes(request.connection.cookie.value, 'big')
114 connection_handle = int.from_bytes(request.connection.cookie.value, 'big')
133 type=int.from_bytes(bytes(service.type), 'little'),
156 connection_handle = int.from_bytes(request.connection.cookie.value, 'big')
174 type=int.from_bytes(bytes(service.type), 'little'),
204 connection_handle = int.from_bytes(request.connection.cookie.value, 'big')
223 connection_handle = int.from_bytes(request.connection.cookie.value, 'big')
251 connection_handle = int.from_bytes(request.connection.cookie.value, 'big')
Dasha.py226 connection_handle = int.from_bytes(request.connection.cookie.value, "big")
/packages/modules/Bluetooth/tools/rootcanal/py/
Dbluetooth.py72 return (ClassOfDevice(int.from_bytes(span[:3], byteorder='little')), span[3:])
76 return ClassOfDevice(int.from_bytes(span, byteorder='little'))
/packages/modules/Bluetooth/android/pandora/test/
Dsdp_test.py88 connection_handle = int.from_bytes(ref_dut.cookie.value, 'big')
117 connection_handle = int.from_bytes(ref_dut.cookie.value, 'big')
161 connection_handle = int.from_bytes(ref_dut.cookie.value, 'big')
Dgatt_test.py264 connection = self.ref.device.lookup_connection(int.from_bytes(ref_dut.cookie.value, 'big'))
267 connection_request = L2CAP_Control_Frame.from_bytes(
/packages/modules/Bluetooth/tools/rootcanal/rust/src/lmp/
Dec.rs44 fn from_bytes(bytes: &[u8]) -> Option<Self> { in from_bytes() method
98 fn from_bytes(bytes: &[u8]) -> Option<Self> { in from_bytes() method
164 PublicKey::from_bytes(&bytes).unwrap() in derive()
177 DhKey::from_bytes(&bytes).unwrap() in shared_secret()
/packages/modules/Virtualization/compos/composd/native/
Dlib.rs45 let path = OsStr::from_bytes(cstr.to_bytes()).as_ref(); in palette_create_odrefresh_staging_directory()
/packages/modules/Bluetooth/system/gd/rust/linux/mgmt/src/
Dpowerd_suspend_manager.rs307 let mut input_stream = CodedInputStream::from_bytes(&bytes[..]); in init()
340 let mut input_stream = CodedInputStream::from_bytes(&bytes[..]); in init()
420 let mut input_stream = CodedInputStream::from_bytes(&return_proto[..]); in on_powerd_started()
/packages/modules/Bluetooth/system/blueberry/utils/
Dbluetooth.py56 self.class_of_device = int.from_bytes(class_of_device, byteorder='little')
/packages/modules/Virtualization/microdroid_manager/src/
Dinstance.rs215 let uuid = Uuid::from_bytes(uuid); in read_header_at()
/packages/modules/Bluetooth/system/gd/rust/topshim/src/profiles/
Dsocket.rs94 let addr = match RawAddress::from_bytes(addr_bytes) { in try_from()
/packages/modules/Bluetooth/android/pandora/test/pairing/
Dsmp_test.py234 connection = self.ref.device.lookup_connection(int.from_bytes(ref_dut.cookie.value, 'big'))
/packages/modules/Bluetooth/system/gd/rust/topshim/src/
Dbtif.rs798 BluetoothProperty::BdAddr(RawAddress::from_bytes(slice).unwrap_or_default()) in from()
975 pub fn from_bytes(raw_addr: &[u8]) -> Option<RawAddress> { in from_bytes() method
/packages/modules/Virtualization/authfs/src/
Dfusefs.rs1074 OsStr::from_bytes(cstr.to_bytes()).as_ref() in cstr_to_path()