Home
last modified time | relevance | path

Searched refs:to_str (Results 1 – 25 of 39) 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/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()
68 panic!("pdl not found in the current environment: {:?}", pdl.as_os_str().to_str().unwrap()); in generate_module()
72 let output = Command::new(pdl.as_os_str().to_str().unwrap()) in generate_module()
/packages/modules/Virtualization/vmbase/src/
Dbionic.rs120 if let (Ok(prefix), Ok(format)) = (prefix.to_str(), format.to_str()) { in async_safe_fatal_va_list()
155 if let (Ok(s), Ok(_)) = (c_str.to_str(), File::try_from(stream)) { in fputs()
195 Some(c_str.to_str().unwrap()) in perror()
199 let error = cstr_error(get_errno()).to_str().unwrap(); in perror()
/packages/modules/Virtualization/vmbase/example/src/
Dmain.rs177 info!("node compatible with '{}' at {reg:?}", compatible.to_str().unwrap()); in check_fdt()
189 info!("Created subnode '{}/{}'.", path.to_str().unwrap(), name.to_str().unwrap()); in modify_fdt()
193 info!("Appended property '{}'.", name.to_str().unwrap()); in modify_fdt()
199 info!("Appended property '{}'.", name.to_str().unwrap()); in modify_fdt()
/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/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/virtualizationmanager/src/
Dselinux.rs52 write!(f, "{}", self.to_str().unwrap_or("Invalid context")) in fmt()
90 let context = self.deref().to_str().context("Label is not valid UTF8")?; in selinux_type()
Ddebug_config.rs50 self.node_path.to_str().unwrap(), in to_path()
52 self.prop_name.to_str().unwrap(), in to_path()
/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.rs133 .to_str() in build()
143 .to_str() in build()
Dcrypt.rs150 .to_str() in build()
/packages/modules/Virtualization/virtualizationservice/vfio_handler/src/
Daidl.rs194 group.to_str()?.parse().ok() in get_device_iommu_group()
200 bound_driver.to_str().map(str::to_string) in current_driver()
215 let Some(device_str) = device.to_str() else { in try_bind_driver()
/packages/modules/Virtualization/microdroid_manager/src/
Dverify.rs114 apk: extra_apk.to_str().unwrap(), in verify_payload()
115 idsig: extra_idsigs[i].to_str().unwrap(), in verify_payload()
/packages/modules/Virtualization/libs/apkmanifest/src/
Dapkmanifest.rs64 let package = package.to_str().context("Invalid package name")?.to_string(); in get_manifest_info()
/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/Bluetooth/system/gd/rust/linux/mgmt/src/
Dmigrate.rs542 let hid_path = info_path.to_str().unwrap_or_default().replace("info", "hog-uhid-cache"); in migrate_bluez_devices()
543 let addrs = info_path.to_str().unwrap_or_default().split('/').collect::<Vec<&str>>(); in migrate_bluez_devices()
549 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()
919 convert_floss_conf(entry.unwrap_or_default().to_str().unwrap_or_default()); in migrate_floss_devices()
Dconfig_util.rs159 .map(|e| e.unwrap().path().file_name().unwrap().to_str().unwrap().to_string()) in list_hci_devices_string()
186 .map(|e| e.unwrap().path().file_name().unwrap().to_str().unwrap().to_string()) in list_pid_files()
/packages/modules/Virtualization/compos/src/
Dartifact_signer.rs52 let target_path = target_path.to_str().ok_or_else(|| anyhow!("Invalid path"))?; in add_artifact()
/packages/modules/Bluetooth/system/gd/rust/linux/stack/btif_macros/src/
Dlib.rs25 .to_str() in debug_output_to_file()
/packages/modules/Virtualization/authfs/src/
Dfile.rs73 if matches!(path.to_str(), Some(path_str) if !path_str.contains(MAIN_SEPARATOR)) { in validate_basename()

12