Lines Matching refs:clone_file
134 let mut input = clone_file(input_fd)?; in create_or_update_idsig_file()
143 let mut output = clone_file(idsig_fd)?; in create_or_update_idsig_file()
251 let mut image = clone_file(image_fd)?; in initializeWritablePartition()
416 let console_in_fd = console_in_fd.map(clone_file).transpose()?; in create_vm_internal()
673 let file = clone_file(file)?; in extract_vendor_hashtree_digest()
783 file: clone_file(single_touch.pfd.as_ref().ok_or(anyhow!("pfd should have value"))?)?, in to_input_device_option_from()
792 InputDevice::EvDev(evdev) => InputDeviceOption::EvDev(clone_file( in to_input_device_option_from()
795 InputDevice::Keyboard(keyboard) => InputDeviceOption::Keyboard(clone_file( in to_input_device_option_from()
798 InputDevice::Mouse(mouse) => InputDeviceOption::Mouse(clone_file( in to_input_device_option_from()
839 clone_file(image)? in assemble_disk_image()
901 let apk_file = clone_file(config.apk.as_ref().unwrap())?; in load_app_config()
902 let idsig_file = clone_file(config.idsig.as_ref().unwrap())?; in load_app_config()
903 let instance_file = clone_file(config.instanceImage.as_ref().unwrap())?; in load_app_config()
906 Some(clone_file(file)?) in load_app_config()
931 payload_config.extraApks.iter().map(clone_file).collect::<binder::Result<_>>()?; in load_app_config()
954 vm_config.kernel = Some(ParcelFileDescriptor::new(clone_file(file)?)) in load_app_config()
959 add_microdroid_vendor_image(clone_file(file)?, &mut vm_config); in load_app_config()
1366 pub fn clone_file(file: &ParcelFileDescriptor) -> binder::Result<File> { in clone_file() function
1376 file.as_ref().map(clone_file).transpose() in maybe_clone_file()
1504 return Ok(Some(clone_file(fd)?)); in clone_or_prepare_logger_fd()