Home
last modified time | relevance | path

Searched refs:to_str (Results 1 – 25 of 49) sorted by relevance

12

/packages/modules/DnsResolver/doh/tests/doh_frontend/src/
Dffi.rs42 let addr = unsafe { CStr::from_ptr(addr) }.to_str().unwrap(); in frontend_new()
44 let port = unsafe { CStr::from_ptr(port) }.to_str().unwrap(); in frontend_new()
46 let backend_addr = unsafe { CStr::from_ptr(backend_addr) }.to_str().unwrap(); in frontend_new()
48 let backend_port = unsafe { CStr::from_ptr(backend_port) }.to_str().unwrap(); in frontend_new()
110 let certificate = unsafe { CStr::from_ptr(certificate) }.to_str().unwrap(); in frontend_set_certificate()
128 let private_key = unsafe { CStr::from_ptr(private_key) }.to_str().unwrap(); in frontend_set_private_key()
/packages/modules/Bluetooth/system/gd/rust/linux/mgmt/
Dbuild.rs8 paths.iter().map(|p| p.as_ref().as_os_str().to_str().unwrap()).collect() in paths_to_strs()
20 f.write_all(format!("pub mod {}; \n", stem.to_str().unwrap()).as_bytes()).unwrap(); in gen_mod_rs()
45 match fs::create_dir(proto_out_dir.as_os_str().to_str().unwrap()) { in main()
51 .out_dir(proto_out_dir.as_os_str().to_str().unwrap()) in main()
/packages/modules/Virtualization/guest/vmbase_example/src/
Dmain.rs148 info!("node compatible with '{}' at {reg:?}", compatible.to_str().unwrap()); in check_fdt()
160 info!("Created subnode '{}/{}'.", path.to_str().unwrap(), name.to_str().unwrap()); in modify_fdt()
164 info!("Appended property '{}'.", name.to_str().unwrap()); in modify_fdt()
170 info!("Appended property '{}'.", name.to_str().unwrap()); in modify_fdt()
/packages/modules/Virtualization/libs/libvmbase/src/
Dbionic.rs123 if let (Ok(prefix), Ok(format)) = (prefix.to_str(), format.to_str()) { in async_safe_fatal_va_list()
184 if let (Ok(s), Ok(f)) = (c_str.to_str(), CFilePtr::try_from(stream)) { in fputs()
232 Some(c_str.to_str().unwrap()) in perror()
236 let error = cstr_error(get_errno()).to_str().unwrap(); in perror()
/packages/modules/Bluetooth/tools/rootcanal/rust/
Dbuild.rs47 module_prebuilt.as_os_str().to_str().unwrap(), in install_generated_module()
48 out_dir.join(module_name).as_os_str().to_str().unwrap(), in install_generated_module()
66 in_file.to_str().expect("Filename is not UTF-8"), in generate_module()
/packages/modules/Nfc/libnfc-nci/tools/casimir/
Dbuild.rs48 module_prebuilt.as_os_str().to_str().unwrap(), in install_generated_module()
49 out_dir.join(module_name).as_os_str().to_str().unwrap(), in install_generated_module()
67 in_file.to_str().expect("Filename is not UTF-8"), in generate_module()
/packages/modules/Virtualization/tests/dtcompare/src/
Dmain.rs101 path.join("/") + "/" + prop.name().context("Error getting property name")?.to_str()?; in compare_props()
113 path.join("/") + "/" + prop.name().context("Error getting property name")?.to_str()?; in compare_props()
153 + subnode.name().context("Error getting property name")?.to_str()?; in compare_subnodes()
164 path.join("/") + "/" + sn2.name().context("Error getting subnode name")?.to_str()?; in compare_subnodes()
/packages/modules/DnsResolver/doh/
Dffi.rs208 std::ffi::CStr::from_ptr(url).to_str(), in doh_net_new()
209 std::ffi::CStr::from_ptr(domain).to_str(), in doh_net_new()
210 std::ffi::CStr::from_ptr(ip_addr).to_str(), in doh_net_new()
211 std::ffi::CStr::from_ptr(cert_path).to_str(), in doh_net_new()
395 let ip_addr = unsafe { std::ffi::CStr::from_ptr(ip_addr) }.to_str().unwrap(); in assert_validation_info()
399 let host = unsafe { std::ffi::CStr::from_ptr(host) }.to_str().unwrap(); in assert_validation_info()
/packages/modules/NeuralNetworks/tools/systrace_parser/parser/
Dtree.py175 print(self.to_str())
177 def to_str(self): member in SingleThreadCallTree
178 return self.root.to_str()
280 def to_str(self, indent=''): member in CallTreeNode
290 ret += c.to_str(indent + ' ')
Dtracker.py159 raise Exception("Elapsed for {} returned None".format(node.to_str()))
184 self.debugstring = self.mytree.to_str()
/packages/modules/Virtualization/guest/authfs/src/file/
Ddir.rs85 basename.to_str().ok_or_else(|| io::Error::from_raw_os_error(libc::EINVAL))?; in create_file()
108 basename.to_str().ok_or_else(|| io::Error::from_raw_os_error(libc::EINVAL))?; in mkdir()
125 basename.to_str().ok_or_else(|| io::Error::from_raw_os_error(libc::EINVAL))?; in delete_file()
139 basename.to_str().ok_or_else(|| io::Error::from_raw_os_error(libc::EINVAL))?; in force_delete_directory()
/packages/modules/Virtualization/tests/libs/libdts/src/
Dlib.rs33 let path = path.to_str().unwrap(); in from_fs()
45 let path = path.to_str().unwrap(); in from_dtb()
/packages/modules/Virtualization/libs/vbmeta/src/
Dlib.rs217 test_file.to_str().unwrap(), in unsigned_image_does_not_have_public_key()
235 test_file.to_str().unwrap(), in signed_image_has_valid_vbmeta()
254 test_pubkey_file.to_str().unwrap(), in signed_image_has_valid_vbmeta()
/packages/modules/Virtualization/libs/devicemapper/src/
Dverity.rs134 .to_str() in build()
143 .to_str() in build()
/packages/modules/Virtualization/android/virtualizationservice/vfio_handler/src/
Daidl.rs192 group.to_str()?.parse().ok() in get_device_iommu_group()
198 bound_driver.to_str().map(str::to_string) in current_driver()
213 let Some(device_str) = device.to_str() else { in try_bind_driver()
/packages/modules/Virtualization/android/virtmgr/src/
Dselinux.rs69 write!(f, "{}", self.to_str().unwrap_or("Invalid context")) in fmt()
107 let context = self.deref().to_str().context("Label is not valid UTF8")?; in selinux_type()
Ddebug_config.rs51 self.node_path.to_str().unwrap(), in to_path()
53 self.prop_name.to_str().unwrap(), in to_path()
/packages/modules/Virtualization/guest/microdroid_manager/src/
Dverify.rs113 apk: extra_apk.to_str().unwrap(), in verify_payload()
114 idsig: extra_idsigs[i].to_str().unwrap(), in verify_payload()
/packages/modules/UprobeStats/rust/src/
Dprocess.rs16 if let Some(pid_str) = path.file_name().and_then(|s| s.to_str()) { in get_pid()
/packages/modules/Virtualization/libs/apkverify/tests/
Dapkverify_test.rs296 let expected_public_key_path = format!("{}.der", apk_path.as_ref().to_str().unwrap()); in validate_apk_public_key()
327 let expected_digest_path = format!("{}.apk_digest", apk_path.as_ref().to_str().unwrap()); in validate_apk_digest()
/packages/modules/Bluetooth/system/gd/rust/topshim/
Dbuild.rs15 .map(|p| format!("-I{}", p.to_str().unwrap())) in main()
/packages/modules/Virtualization/libs/apkmanifest/src/
Dapkmanifest.rs73 let package = package.to_str().context("Invalid package name")?.to_string(); in get_manifest_info()
/packages/modules/Bluetooth/system/gd/rust/linux/mgmt/src/
Dconfig_util.rs157 .map(|e| e.unwrap().path().file_name().unwrap().to_str().unwrap().to_string()) in list_hci_devices_string()
184 .map(|e| e.unwrap().path().file_name().unwrap().to_str().unwrap().to_string()) in list_pid_files()
Dmigrate.rs546 let hid_path = info_path.to_str().unwrap_or_default().replace("info", "hog-uhid-cache"); in migrate_bluez_devices()
547 let addrs = info_path.to_str().unwrap_or_default().split('/').collect::<Vec<&str>>(); in migrate_bluez_devices()
553 info_path.to_str().unwrap_or_default(), in migrate_bluez_devices()
887 let addrs = pathbuf.to_str().unwrap_or_default().split('/').collect::<Vec<&str>>(); in convert_floss_conf()
914 convert_floss_conf(entry.unwrap_or_default().to_str().unwrap_or_default()); in migrate_floss_devices()
/packages/modules/UprobeStats/rust/src/bpf_map/
Dprocess_management.rs70 event.write_string(reason.to_str()?)?; in on_item()

12