Searched refs:from_bytes (Results 1 – 15 of 15) sorted by relevance
/packages/modules/Bluetooth/system/gd/rust/topshim/tests/ |
D | bdaddr.rs | 28 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/ |
D | gatt.py | 82 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')
|
D | asha.py | 226 connection_handle = int.from_bytes(request.connection.cookie.value, "big")
|
/packages/modules/Bluetooth/tools/rootcanal/py/ |
D | bluetooth.py | 72 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/ |
D | sdp_test.py | 88 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')
|
D | gatt_test.py | 264 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/ |
D | ec.rs | 44 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/ |
D | lib.rs | 45 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/ |
D | powerd_suspend_manager.rs | 307 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/ |
D | bluetooth.py | 56 self.class_of_device = int.from_bytes(class_of_device, byteorder='little')
|
/packages/modules/Virtualization/microdroid_manager/src/ |
D | instance.rs | 215 let uuid = Uuid::from_bytes(uuid); in read_header_at()
|
/packages/modules/Bluetooth/system/gd/rust/topshim/src/profiles/ |
D | socket.rs | 94 let addr = match RawAddress::from_bytes(addr_bytes) { in try_from()
|
/packages/modules/Bluetooth/android/pandora/test/pairing/ |
D | smp_test.py | 234 connection = self.ref.device.lookup_connection(int.from_bytes(ref_dut.cookie.value, 'big'))
|
/packages/modules/Bluetooth/system/gd/rust/topshim/src/ |
D | btif.rs | 798 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/ |
D | fusefs.rs | 1074 OsStr::from_bytes(cstr.to_bytes()).as_ref() in cstr_to_path()
|