Home
last modified time | relevance | path

Searched refs:to_bytes (Results 1 – 25 of 29) sorted by relevance

12

/packages/modules/Bluetooth/offload/leaudio/hci/
Dtests.rs75 .to_bytes(), in cig()
91 .to_bytes(), in cig()
125 .to_bytes(), in cig()
139 .to_bytes(), in cig()
161 .to_bytes(), in cig()
177 .to_bytes(), in cig()
188 .to_bytes(), in cig()
191 m.out_iso(&IsoData::new(0x456, 0, &[0x00, 0x11]).to_bytes()); in cig()
192 m.out_iso(&IsoData::new(0x456, 1, &[]).to_bytes()); in cig()
206 .to_bytes(), in cig()
[all …]
Dproxy.rs214 .out_cmd(&hci::LeSetupIsoDataPath { data_path_id: 0, ..c.clone() }.to_bytes()); in out_cmd()
398 self.next().in_evt(&stack_event.to_bytes()); in in_evt()
Darbiter.rs98 let data = iso_data.to_bytes(); in push()
/packages/modules/Bluetooth/offload/hci/
Dcommand.rs90 fn to_bytes<T: CommandOpCode + Write>(command: &T) -> Vec<u8> { in to_bytes() method
140 fn to_bytes(&self) -> Vec<u8> in to_bytes() method
177 assert_eq!(c.to_bytes(), &dump[..]); in test_reset()
186 assert_eq!(e.to_bytes(), &dump[..]); in test_reset_complete()
214 assert_eq!(e.to_bytes(), &dump[..]); in test_le_read_buffer_size_v1_complete()
243 assert_eq!(e.to_bytes(), &dump[..]); in test_le_read_buffer_size_v2_complete()
308 assert_eq!(c.to_bytes(), &dump[..]); in test_le_set_cig_parameters()
328 assert_eq!(e.to_bytes(), &dump[..]); in test_le_set_cig_parameters_complete()
358 assert_eq!(c.to_bytes(), &dump[..]); in test_le_create_cis()
384 assert_eq!(c.to_bytes(), &dump[..]); in test_le_remove_cig()
[all …]
Devent.rs75 fn to_bytes<T: EventCode + Write>(event: &T) -> Vec<u8> { in to_bytes() method
107 fn to_bytes(&self) -> Vec<u8> in to_bytes() method
144 assert_eq!(e.to_bytes(), &dump[..]); in test_disconnection_complete()
165 assert_eq!(e.to_bytes(), &dump[..]); in test_command_complete()
189 assert_eq!(e.to_bytes(), &dump[..]); in test_command_status()
219 assert_eq!(e.to_bytes(), &dump[..]); in test_number_of_completed_packets()
271 assert_eq!(e.to_bytes(), &dump[..]); in test_le_cis_established()
318 assert_eq!(e.to_bytes(), &dump[..]); in test_le_create_big_complete()
340 assert_eq!(e.to_bytes(), &dump[..]); in test_le_terminate_big_complete()
Ddata.rs68 pub fn to_bytes(&self) -> Vec<u8> { in to_bytes() method
203 assert_eq!(pkt.to_bytes(), &dump[..]); in test_iso_data()
/packages/modules/Bluetooth/offload/hci/derive/
Dlib.rs70 fn to_bytes(&self) -> Vec<u8> { in derive_command_to_bytes()
71 Command::to_bytes(self) in derive_command_to_bytes()
84 fn to_bytes(&self) -> Vec<u8> { in derive_event_to_bytes()
85 Event::to_bytes(self) in derive_event_to_bytes()
/packages/modules/Virtualization/libs/libfdt/src/
Dlib.rs248 self.fdt.getprop_namelen(self.offset, name.to_bytes()) in getprop()
333 let name = name.to_bytes(); in subnode()
437 self.fdt.add_subnode_namelen(self.offset, name.to_bytes())?; in add_subnodes()
444 let name = name.to_bytes(); in add_subnode()
453 let name = &name.to_bytes()[..namelen]; in add_subnode_with_namelen()
734 let offset = self.path_offset_namelen(path.to_bytes())?; in node()
770 let offset = self.path_offset_namelen(path.to_bytes())?; in node_mut()
/packages/modules/Virtualization/libs/libvm_payload/wrapper/
Dlib.rs142 Path::new(OsStr::from_bytes(c_str.to_bytes())) in apk_contents_path()
160 Some(Path::new(OsStr::from_bytes(c_str.to_bytes()))) in encrypted_storage_path()
/packages/modules/Bluetooth/tools/rootcanal/rust/src/lmp/
Dec.rs157 Point::<P192r1>::generate_public_key(&self.to_bigint()).to_bytes() in derive()
160 Point::<P256r1>::generate_public_key(&self.to_bigint()).to_bytes() in derive()
170 (&peer_public_key.to_point::<P192r1>() * &self.to_bigint()).to_bytes() in shared_secret()
173 (&peer_public_key.to_point::<P256r1>() * &self.to_bigint()).to_bytes() in shared_secret()
301 fn to_bytes(&self) -> Option<Vec<u8>> { in to_bytes() function
/packages/modules/Nfc/libnfc-nci/tools/casimir/scripts/
Dt4at.py35 self.nfcid1 = bytes([0x08]) + int.to_bytes(random.randint(0, 0xffffff), length=3)
51 header_bytes = int.to_bytes(len(packet_bytes), length=2, byteorder='little')
Drf_packets.py204 _span.extend(int.to_bytes((self.sender << 0), length=2, byteorder='little'))
208 _span.extend(int.to_bytes((self.receiver << 0), length=2, byteorder='little'))
/packages/modules/Virtualization/libs/libfdt/tests/
Dapi_test.rs264 for len in 0..subnode_name.to_bytes().len() { in node_add_subnode_with_namelen()
265 let name = &subnode_name.to_bytes()[0..len]; in node_add_subnode_with_namelen()
277 for len in 1..subnode_name.to_bytes().len() { in node_add_subnode_with_namelen()
278 let name = String::from_utf8(subnode_name.to_bytes()[..len].to_vec()).unwrap(); in node_add_subnode_with_namelen()
/packages/modules/Virtualization/android/composd/native/
Dlib.rs45 let path = OsStr::from_bytes(cstr.to_bytes()).as_ref(); in palette_create_odrefresh_staging_directory()
/packages/modules/Bluetooth/tools/rootcanal/rust/src/
Dffi.rs74 let to_bytes: [u8; 6] = to.into(); in send_lmp_packet() localVariable
78 &to_bytes as *const _, in send_lmp_packet()
/packages/modules/Bluetooth/tools/rootcanal/py/
Dbluetooth.py79 return int.to_bytes(self.class_of_device, length=3, byteorder='little')
/packages/modules/Bluetooth/android/pandora/mmi2grpc/mmi2grpc/
D_audio.py42 f.write(size.to_bytes(4, byteorder='little'))
/packages/modules/Bluetooth/system/blueberry/utils/
Dbluetooth.py69 return int.to_bytes(self.class_of_device, length=3, byteorder='little')
/packages/modules/UprobeStats/rust/ffi/
Ddynamic_instrumentation_manager.rs67 String::from_utf8_lossy(cstr.to_bytes()).to_string() in get_container_path()
/packages/modules/Bluetooth/pandora/server/bumble_experimental/
Ddck.py60 self.psm.to_bytes(2, 'big'),
Dhid.py682 retValue.data = protocol_mode.to_bytes(length=1, byteorder=sys.byteorder)
/packages/modules/Virtualization/android/virtmgr/fsfdt/src/
Dlib.rs52 [fdt_node_path.to_bytes(), b"/", relative_path.as_bytes(), b"\0"].concat(), in overlay_onto()
/packages/modules/Virtualization/guest/pvmfw/src/
Ddevice_assignment.rs186 if path.to_bytes().first() != Some(&b'/') { in new()
190 .to_bytes() in new()
432 path.tokens.push(node.name()?.to_bytes()); in collect_overlayable_nodes_with_phandle()
459 path.tokens.push(node_name.to_bytes()); in collect_phandle_references_from_overlayable_nodes()
579 let name = node.as_node().name()?.to_bytes(); in filter_with_mask()
/packages/modules/Wifi/tests/hostsidetests/multidevices/test/aware/integration/
Dwifi_aware_capabilities_test.py154 (10).to_bytes(1, byteorder='big'),
Dwifi_aware_discovery_test.py226 [(10).to_bytes(1, byteorder="big"),"hello there string"
707 [(10).to_bytes(1, byteorder="big"), p_mf_1 , bytes(range(40))])
719 [(10).to_bytes(1, byteorder="big"), s_mf_1 , bytes(range(40))])

12