Home
last modified time | relevance | path

Searched refs:PathBuf (Results 1 – 25 of 39) sorted by relevance

12

/packages/modules/Virtualization/vm/src/
Dmain.rs35 use std::path::{Path, PathBuf};
95 console: Option<PathBuf>,
99 console_in: Option<PathBuf>,
103 log: Option<PathBuf>,
117 storage: Option<PathBuf>,
127 vendor: Option<PathBuf>,
132 devices: Vec<PathBuf>,
142 fn vendor(&self) -> &Option<PathBuf> { in vendor() argument
147 fn vendor(&self) -> Option<PathBuf> { in vendor() argument
162 fn devices(&self) -> &Vec<PathBuf> { in devices() argument
[all …]
Drun.rs40 use std::path::{Path, PathBuf};
194 fn find_empty_payload_apk_path() -> Result<PathBuf, Error> { in find_empty_payload_apk_path()
196 let mut entries: Vec<PathBuf> = in find_empty_payload_apk_path()
207 fn create_work_dir() -> Result<PathBuf, Error> { in create_work_dir()
210 let work_dir = PathBuf::from("/data/local/tmp/microdroid").join(s); in create_work_dir()
340 fn parse_extra_apk_list(apk: &Path, config_path: &str) -> Result<Vec<PathBuf>, Error> { in parse_extra_apk_list() argument
/packages/modules/Bluetooth/tools/rootcanal/rust/
Dbuild.rs17 use std::path::{Path, PathBuf};
24 &PathBuf::from("lmp_packets.pdl").canonicalize().unwrap(), in main()
29 &PathBuf::from("llcp_packets.pdl").canonicalize().unwrap(), in main()
34 &PathBuf::from("../packets/hci_packets.pdl").canonicalize().unwrap(), in main()
38 fn install_generated_module(module_name: &str, prebuilt_var: &str, pdl_name: &PathBuf) { in install_generated_module() argument
40 Ok(dir) => PathBuf::from(dir), in install_generated_module()
41 Err(_) => PathBuf::from(module_name), in install_generated_module()
45 let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap()); in install_generated_module()
56 fn generate_module(in_file: &PathBuf) { in generate_module() argument
57 let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap()); in generate_module()
[all …]
/packages/modules/Virtualization/microdroid/initrd/src/
Dmain.rs22 use std::path::PathBuf;
35 initrd: PathBuf,
37 bootconfigs: Vec<PathBuf>,
40 output: PathBuf,
47 initrd_with_bootconfigs: PathBuf,
49 initrd: PathBuf,
51 bootconfigs: PathBuf,
55 fn get_checksum(file_path: &PathBuf) -> Result<u32> { in get_checksum()
74 fn detach_bootconfig(initrd_bc: PathBuf, initrd: PathBuf, bootconfig: PathBuf) -> Result<()> { in detach_bootconfig() argument
101 fn attach_bootconfig(initrd: PathBuf, bootconfigs: Vec<PathBuf>, output: PathBuf) -> Result<()> { in attach_bootconfig() argument
/packages/modules/Virtualization/virtualizationmanager/src/
Dpayload.rs39 use std::path::{Path, PathBuf};
62 path: PathBuf,
81 preinstalled_path: PathBuf,
125 apex_info.path = PathBuf::from(&staged_apex_info.diskImagePath); in override_staged_apex()
512 path: PathBuf::from("adbd"), in test_collect_apexes()
513 preinstalled_path: PathBuf::from("/system/adbd"), in test_collect_apexes()
525 path: PathBuf::from("adbd"), in test_collect_apexes()
526 preinstalled_path: PathBuf::from("/system/adbd"), in test_collect_apexes()
538 path: PathBuf::from("no_classpath"), in test_collect_apexes()
550 path: PathBuf::from("has_classpath"), in test_collect_apexes()
[all …]
Dcomposite.rs24 use std::path::{Path, PathBuf};
115 fn fd_path_for_file(file: &File) -> PathBuf { in fd_path_for_file() argument
/packages/modules/Virtualization/libs/vmconfig/src/
Dlib.rs34 use std::path::{Path, PathBuf};
42 pub kernel: Option<PathBuf>,
44 pub initrd: Option<PathBuf>,
50 pub bootloader: Option<PathBuf>,
67 pub devices: Vec<PathBuf>,
149 pub image: Option<PathBuf>,
175 pub path: PathBuf,
204 filename: &Option<PathBuf>, in maybe_open_parcel_file() argument
/packages/modules/Virtualization/compos/composd/src/
Dinstance_starter.rs33 use std::path::{Path, PathBuf};
68 instance_root: PathBuf,
69 instance_id_file: PathBuf,
70 instance_image: PathBuf,
71 idsig: PathBuf,
72 idsig_manifest_apk: PathBuf,
73 idsig_manifest_ext_apk: PathBuf,
/packages/modules/Bluetooth/floss/hcidoc/packets/
Dbuild.rs18 use std::path::PathBuf;
26 let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap()); in generate_packets()
28 let in_file = PathBuf::from("l2cap_packets.pdl"); in generate_packets()
47 let in_file = PathBuf::from("../../../system/pdl/hci/hci_packets.pdl"); in generate_packets()
/packages/modules/Virtualization/authfs/src/
Dmain.rs42 use std::path::{Path, PathBuf};
59 mount_point: PathBuf,
143 mapping_file_path: PathBuf,
167 mapping_file_path: PathBuf::from(strs[1]), in parse_remote_new_ro_dir_option()
277 PathBuf::from(remote_path_str), in prepare_root_dir_entries()
289 fn remote_fd_to_path_buf(fd: i32) -> PathBuf { in remote_fd_to_path_buf() argument
290 PathBuf::from(fd.to_string()) in remote_fd_to_path_buf()
/packages/modules/Bluetooth/system/gd/rust/linux/mgmt/
Dbuild.rs5 use std::path::{Path, PathBuf};
12 fn gen_mod_rs<P: AsRef<Path>>(out_dir: PathBuf, inputs: &[P]) { in gen_mod_rs() argument
37 let system_api_root = PathBuf::from(std::env::var_os("CROS_SYSTEM_API_ROOT").unwrap()); in main()
39 let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap()); in main()
/packages/modules/Virtualization/virtualizationmanager/fsfdt/src/
Dmain.rs21 use std::path::PathBuf;
29 fs_path: PathBuf,
32 fdt_file_path: PathBuf,
/packages/modules/Virtualization/microdroid/derive_microdroid_vendor_dice_node/src/
Dmain.rs26 use std::path::{Path, PathBuf};
35 dice_driver: PathBuf,
38 microdroid_vendor_disk_image: PathBuf,
41 output: PathBuf,
/packages/modules/Virtualization/authfs/src/fusefs/
Dfile.rs20 use std::path::PathBuf;
30 ByPathUnderDirFd(i32, PathBuf),
54 remote_path: PathBuf, in prepare_by_path() argument
/packages/modules/Virtualization/libs/devicemapper/src/
Dloopdevice.rs32 use std::path::{Path, PathBuf};
69 ) -> Result<PathBuf> { in attach() argument
107 ) -> Result<PathBuf> { in try_attach() argument
149 Ok(PathBuf::from(device_path)) in try_attach()
Dlib.rs39 use std::path::{Path, PathBuf};
156 pub fn create_crypt_device(&self, name: &str, target: &DmCryptTarget) -> Result<PathBuf> { in create_crypt_device() argument
162 pub fn create_verity_device(&self, name: &str, target: &DmVerityTarget) -> Result<PathBuf> { in create_verity_device() argument
181 ) -> Result<PathBuf> { in create_device() argument
262 fn prepare_tmpfile(test_dir: &Path, filename: &str, sz: u64) -> PathBuf { in prepare_tmpfile() argument
/packages/modules/Virtualization/apkdmverity/src/
Dmain.rs36 use std::path::{Path, PathBuf};
87 data_device: PathBuf,
88 hash_device: PathBuf,
89 mapper_device: PathBuf,
197 fn prepare_inputs(test_dir: &Path, apk: &[u8], idsig: &[u8]) -> (PathBuf, PathBuf) { in prepare_inputs() argument
/packages/modules/Virtualization/compos/src/
Dcompsvc.rs27 use std::path::{Path, PathBuf};
49 odrefresh_path: PathBuf::from(ODREFRESH_PATH), in new_binder()
56 odrefresh_path: PathBuf,
Dcompilation.rs25 use std::path::{self, Path, PathBuf};
79 F: FnOnce(PathBuf) -> Result<()>, in odrefresh()
111 let mountpoint = PathBuf::from(authfs.getMountPoint()?); in odrefresh()
/packages/modules/Bluetooth/system/gd/rust/topshim/
Dbuild.rs3 use std::path::PathBuf;
76 let out_path = PathBuf::from(env::var("OUT_DIR").unwrap()); in main()
/packages/modules/Virtualization/zipfuse/src/
Dmain.rs37 use std::path::PathBuf;
45 let zip_file = matches.get_one::<PathBuf>("ZIPFILE").unwrap(); in main()
46 let mount_point = matches.get_one::<PathBuf>("MOUNTPOINT").unwrap(); in main()
476 use std::path::{Path, PathBuf};
489 let zip_path = PathBuf::from(zip_path); in start_fuse()
490 let mnt_path = PathBuf::from(mnt_path); in start_fuse()
612 let expected_files: BTreeSet<PathBuf> = in check_dir()
613 files.iter().map(|s| PathBuf::from(s.as_ref())).collect(); in check_dir()
614 let expected_dirs: BTreeSet<PathBuf> = in check_dir()
615 dirs.iter().map(|s| PathBuf::from(s.as_ref())).collect(); in check_dir()
/packages/modules/Virtualization/service_vm/manager/src/
Dlib.rs33 use std::path::{Path, PathBuf};
213 pub fn protected_vm_instance(instance_img_path: PathBuf) -> Result<VmInstance> { in protected_vm_instance()
250 instance_id_file: PathBuf, in get_or_allocate_instance_id() argument
267 instance_img_path: PathBuf, in instance_img() argument
/packages/modules/Virtualization/libs/dice/driver/src/
Dlib.rs29 use std::path::{Path, PathBuf};
38 driver_path: PathBuf,
51 file_path: PathBuf,
/packages/modules/Virtualization/compos/common/
Dcompos_client.rs40 use std::path::{Path, PathBuf};
203 fn locate_config_apk(apex_dir: &Path) -> Result<PathBuf> { in locate_config_apk() argument
208 let mut entries: Vec<PathBuf> = in locate_config_apk()
/packages/modules/Virtualization/authfs/src/file/
Ddir.rs23 use std::path::{Path, PathBuf};
63 entries: HashMap<PathBuf, InodeInfo>,
206 pub struct InMemoryDir(HashMap<PathBuf, InodeInfo>);

12