/packages/modules/Virtualization/guest/rialto/src/ |
D | communication.rs | 57 fn connect(&mut self) -> virtio_drivers::Result { in connect() 64 fn wait_for_connect(&mut self) -> virtio_drivers::Result { in wait_for_connect() 91 pub fn write_response(&mut self, response: &Response) -> Result<()> { in write_response() 96 pub fn shutdown(&mut self) -> virtio_drivers::Result { in shutdown() 115 fn wait_for_send(&mut self, buffer: &[u8]) -> virtio_drivers::Result { in wait_for_send() 129 fn wait_for_recv(&mut self) -> virtio_drivers::Result { in wait_for_recv() 174 fn read_exact(&mut self, data: &mut [u8]) -> result::Result<(), Self::Error> { in read_exact() 193 fn write_all(&mut self, data: &[u8]) -> result::Result<(), Self::Error> { in write_all() 205 fn flush(&mut self) -> result::Result<(), Self::Error> { in flush()
|
/packages/modules/Virtualization/libs/libvmbase/src/memory/ |
D | tracker.rs | 45 type Result<T> = result::Result<T, MemoryTrackerError>; typedef 82 pub fn resize_available_memory(memory_range: &Range<usize>) -> Result<()> { in resize_available_memory() 89 pub fn init_shared_pool(static_range: Option<Range<usize>>) -> Result<()> { in init_shared_pool() 129 pub fn map_data(addr: usize, size: NonZeroUsize) -> Result<()> { in map_data() 141 pub fn map_data_noflush(addr: usize, size: NonZeroUsize) -> Result<()> { in map_data_noflush() 161 pub fn map_rodata(addr: usize, size: NonZeroUsize) -> Result<()> { in map_rodata() 174 pub unsafe fn map_rodata_outside_main_memory(addr: usize, size: NonZeroUsize) -> Result<()> { in map_rodata_outside_main_memory() 186 pub fn map_device(addr: usize, size: NonZeroUsize) -> Result<()> { in map_device() 254 fn shrink(&mut self, range: &MemoryRange) -> Result<()> { in shrink() 350 fn map_mmio_range(&mut self, range: MemoryRange) -> Result<()> { in map_mmio_range() [all …]
|
/packages/modules/StatsD/statsd/src/logd/ |
D | LogEventQueue.h | 43 struct Result { struct 54 Result push(std::unique_ptr<LogEvent> event); argument
|
/packages/modules/DnsResolver/doh/tests/doh_frontend/src/ |
D | dns_https_frontend.rs | 118 pub fn start(&mut self) -> Result<()> { in start() 133 pub fn stop(&mut self) -> Result<()> { in stop() 154 pub fn set_certificate(&mut self, certificate: &str) -> Result<()> { in set_certificate() 159 pub fn set_private_key(&mut self, private_key: &str) -> Result<()> { in set_private_key() 164 pub fn set_delay_queries(&self, value: i32) -> Result<()> { in set_delay_queries() 169 pub fn set_max_idle_timeout(&self, value: u64) -> Result<()> { in set_max_idle_timeout() 174 pub fn set_max_buffer_size(&self, value: u64) -> Result<()> { in set_max_buffer_size() 179 pub fn set_max_streams_bidi(&self, value: u64) -> Result<()> { in set_max_streams_bidi() 184 pub fn block_sending(&self, value: bool) -> Result<()> { in block_sending() 189 pub fn set_reset_stream_id(&self, value: u64) -> Result<()> { in set_reset_stream_id() [all …]
|
/packages/modules/Virtualization/libs/libvmbase/src/arch/aarch64/ |
D | page_table.rs | 45 type Result<T> = result::Result<T, MapError>; typedef 99 pub fn map_device_lazy(&mut self, range: &MemoryRegion) -> Result<()> { in map_device_lazy() 105 pub fn map_device(&mut self, range: &MemoryRegion) -> Result<()> { in map_device() 111 pub fn map_data(&mut self, range: &MemoryRegion) -> Result<()> { in map_data() 117 pub fn map_data_dbm(&mut self, range: &MemoryRegion) -> Result<()> { in map_data_dbm() 131 pub fn map_code(&mut self, range: &MemoryRegion) -> Result<()> { in map_code() 137 pub fn map_rodata(&mut self, range: &MemoryRegion) -> Result<()> { in map_rodata() 145 F: Fn(&MemoryRegion, &mut Descriptor, usize) -> result::Result<(), ()>, in modify_range() 154 F: Fn(&MemoryRegion, &Descriptor, usize) -> result::Result<(), ()>, in walk_range()
|
D | exceptions.rs | 50 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() 96 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() 115 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() 156 pub fn handle_translation_fault(far: VirtualAddress) -> result::Result<(), HandleExceptionError> { in handle_translation_fault() 164 pub fn handle_permission_fault(far: VirtualAddress) -> result::Result<(), HandleExceptionError> { in handle_permission_fault()
|
/packages/modules/Nfc/libnfc-nci/tools/casimir/src/ |
D | controller.rs | 336 fn set(&mut self, id: nci::ConfigParameterId, value: &[u8]) -> Result<()> { in set() 763 async fn send_control(&mut self, packet: impl Into<nci::ControlPacket>) -> Result<()> { in send_control() 767 async fn send_data(&mut self, packet: impl Into<nci::DataPacket>) -> Result<()> { in send_data() 771 async fn send_rf(&self, packet: impl Into<rf::RfPacket>) -> Result<()> { in send_rf() 776 async fn core_reset(&mut self, cmd: nci::CoreResetCommand) -> Result<()> { in core_reset() 811 async fn core_init(&mut self, _cmd: nci::CoreInitCommand) -> Result<()> { in core_init() 854 async fn core_set_config(&mut self, cmd: nci::CoreSetConfigCommand) -> Result<()> { in core_set_config() 907 async fn core_get_config(&mut self, cmd: nci::CoreGetConfigCommand) -> Result<()> { in core_get_config() 945 async fn core_conn_create(&mut self, cmd: nci::CoreConnCreateCommand) -> Result<()> { in core_conn_create() 1027 async fn core_conn_close(&mut self, cmd: nci::CoreConnCloseCommand) -> Result<()> { in core_conn_close() [all …]
|
/packages/modules/DnsResolver/doh/dispatcher/ |
D | driver.rs | 37 fn debug_err(r: Result<()>) { in debug_err() 58 pub async fn drive(mut self) -> Result<()> { in drive() 64 async fn drive_once(&mut self) -> Result<()> { in drive_once() 92 ) -> Result<()> { in query() 104 async fn probe(&mut self, info: ServerInfo, timeout: Duration) -> Result<()> { in probe()
|
/packages/modules/Virtualization/libs/libvmbase/src/ |
D | rand.rs | 38 pub type Result<T> = core::result::Result<T, Error>; typedef 41 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() 50 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() 56 pub fn fill_with_entropy(s: &mut [u8]) -> Result<()> { in fill_with_entropy()
|
/packages/modules/Virtualization/libs/libhypervisor_backends/src/hypervisor/ |
D | common.rs | 47 fn enroll(&self) -> Result<()>; in enroll() 51 fn map(&self, addr: usize) -> Result<()>; in map() 55 fn unmap(&self, addr: usize) -> Result<()>; in unmap() 65 fn share(&self, base_ipa: u64) -> Result<()>; in share() 70 fn unshare(&self, base_ipa: u64) -> Result<()>; in unshare()
|
D | geniezone.rs | 94 fn enroll(&self) -> Result<()> { in enroll() 105 fn map(&self, addr: usize) -> Result<()> { in map() 112 fn unmap(&self, addr: usize) -> Result<()> { in unmap() 127 fn share(&self, base_ipa: u64) -> Result<()> { in share() 134 fn unshare(&self, base_ipa: u64) -> Result<()> { in unshare() 148 fn checked_hvc64_expect_zero(function: u32, args: [u64; 17]) -> Result<()> { in checked_hvc64_expect_zero()
|
/packages/modules/Virtualization/libs/libservice_vm_requests/src/ |
D | client_vm.rs | 34 type Result<T> = result::Result<T, RequestProcessingError>; typedef 118 fn ecdsa_verify_cose(key: &EcKey, signature: &[u8], message: &[u8]) -> bssl_avf::Result<()> { in ecdsa_verify_cose() 129 fn validate_service_vm_dice_chain_length(service_vm_dice_chain: &[Value]) -> Result<()> { in validate_service_vm_dice_chain_length() 183 ) -> Result<()> { in validate_vendor_partition_code_hash_if_exists() 212 ) -> Result<()> { in validate_kernel_authority_hash() 223 fn validate_kernel_code_hash(dice_chain: &ClientVmDiceChain) -> Result<()> { in validate_kernel_code_hash() 268 ) -> Result<()> { in validate_client_vm_dice_chain_prefix_match()
|
D | dice.rs | 38 type Result<T> = result::Result<T, RequestProcessingError>; typedef 235 pub(crate) fn verify(&self, signature: &[u8], message: &[u8]) -> Result<()> { in verify() 408 fn component_name(&mut self, component_name: String) -> Result<()> { in component_name() method 412 fn sub_components(&mut self, sub_components: Value) -> Result<()> { in sub_components() method 471 fn name(&mut self, name: String) -> Result<()> { in name() method 475 fn version(&mut self, version: u64) -> Result<()> { in version() method 479 fn code_hash(&mut self, code_hash: Vec<u8>) -> Result<()> { in code_hash() method 483 fn authority_hash(&mut self, authority_hash: Vec<u8>) -> Result<()> { in authority_hash() method 532 fn set_once<T>(field: &OnceCell<T>, value: T, field_name: &str) -> Result<()> { in set_once() 547 fn subject_public_key(&mut self, key: PublicKey) -> Result<()> { in subject_public_key() [all …]
|
/packages/modules/DnsResolver/doh/connection/ |
D | driver.rs | 66 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { in fmt() 93 pub type Result<T> = std::result::Result<T, Error>; typedef 174 ) -> Result<()> { in drive() 200 async fn drive(mut self) -> Result<()> { in drive() 209 fn handle_closed(&self) -> Result<()> { in handle_closed() 315 async fn flush_tx(&mut self) -> Result<()> { in flush_tx() 352 async fn drive_once(&mut self) -> Result<()> { in drive_once() 402 fn handle_request(&mut self, request: Request) -> Result<()> { in handle_request() 438 async fn recv_body(&mut self, stream_id: u64) -> Result<()> { in recv_body() 473 fn discard_datagram(&mut self, _flow_id: u64) -> Result<()> { in discard_datagram() [all …]
|
/packages/modules/Virtualization/android/virtualizationservice/src/ |
D | aidl.rs | 229 ) -> std::result::Result<(), binder::Status> { in setDisplayService() 238 fn clearDisplayService(&self) -> std::result::Result<(), binder::Status> { in clearDisplayService() 259 fn removeMemlockRlimit(&self) -> binder::Result<()> { in removeMemlockRlimit() 289 fn atomVmBooted(&self, atom: &AtomVmBooted) -> Result<(), Status> { in atomVmBooted() 294 fn atomVmCreationRequested(&self, atom: &AtomVmCreationRequested) -> Result<(), Status> { in atomVmCreationRequested() 299 fn atomVmExited(&self, atom: &AtomVmExited) -> Result<(), Status> { in atomVmExited() 327 fn enableTestAttestation(&self) -> binder::Result<()> { in enableTestAttestation() 501 fn removeVmInstance(&self, instance_id: &[u8; 64]) -> binder::Result<()> { in removeVmInstance() 520 fn claimVmInstance(&self, instance_id: &[u8; 64]) -> binder::Result<()> { in claimVmInstance() 548 fn deleteTapInterface(&self, tap_fd: &ParcelFileDescriptor) -> binder::Result<()> { in deleteTapInterface() [all …]
|
/packages/modules/Virtualization/libs/dice/open_dice/src/ |
D | error.rs | 45 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() 62 pub type Result<T> = result::Result<T, DiceError>; typedef 65 pub(crate) fn check_result(result: DiceResult, buffer_required_size: usize) -> Result<()> { in check_result()
|
/packages/modules/Virtualization/guest/rialto/tests/ |
D | test.rs | 74 fn check_processing_requests(vm_type: VmType, vm_memory_mb: Option<i32>) -> Result<()> { in check_processing_requests() 84 fn check_processing_reverse_request(vm: &mut ServiceVm) -> Result<()> { in check_processing_reverse_request() 119 ) -> Result<()> { in check_processing_generating_certificate_request() 139 ) -> Result<()> { in check_attestation_request() 194 fn check_vm_components(vm_components: &asn1::SequenceOf<asn1::Any, 4>) -> Result<()> { in check_vm_components() 203 fn check_vm_component(vm_component: &asn1::Any, expected_component: &SubComponent) -> Result<()> { in check_vm_component() 223 ) -> Result<()> { in check_certificate_for_client_vm() 284 fn check_csr(csr: Vec<u8>) -> Result<()> { in check_csr()
|
/packages/modules/Virtualization/guest/encryptedstore/src/ |
D | main.rs | 77 fn encryptedstore_init(blkdevice: &Path, key: &str, mountpoint: &Path) -> Result<()> { in encryptedstore_init() 107 fn set_root_dir_permissions(mountpoint: &Path) -> Result<()> { in set_root_dir_permissions() 154 fn format_ext4(device: &Path) -> Result<()> { in format_ext4() 181 fn resize_fs(device: &Path) -> Result<()> { in resize_fs() 202 fn mount(source: &Path, mountpoint: &Path) -> Result<()> { in mount()
|
/packages/modules/Bluetooth/system/rust/src/gatt/ |
D | server.rs | 73 ) -> Result<()> { in on_le_connect() 96 pub fn on_le_disconnect(&mut self, tcb_idx: TransportIndex) -> Result<()> { in on_le_disconnect() 114 ) -> Result<()> { in register_gatt_service() 126 ) -> Result<()> { in unregister_gatt_service() 134 pub fn open_gatt_server(&mut self, server_id: ServerId) -> Result<()> { in open_gatt_server() 145 pub fn close_gatt_server(&mut self, server_id: ServerId) -> Result<()> { in close_gatt_server()
|
/packages/modules/Virtualization/android/virtmgr/src/ |
D | aidl.rs | 160 fn check_known_tee_service(tee_service: &str) -> binder::Result<()> { in check_known_tee_service() 171 ) -> Result<()> { in create_or_update_idsig_file() 210 pub fn remove_temporary_files(path: &PathBuf) -> Result<()> { in remove_temporary_files() 224 fn dump(&self, writer: &mut dyn Write, _args: &[&CStr]) -> Result<(), StatusCode> { in dump() 284 ) -> binder::Result<()> { in initializeWritablePartition() 324 ) -> binder::Result<()> { in setEncryptedStorageSize() 353 ) -> binder::Result<()> { in createOrUpdateIdsigFile() 390 fn enableTestAttestation(&self) -> binder::Result<()> { in enableTestAttestation() 407 fn removeVmInstance(&self, instance_id: &[u8; 64]) -> binder::Result<()> { in removeVmInstance() 412 fn claimVmInstance(&self, instance_id: &[u8; 64]) -> binder::Result<()> { in claimVmInstance() [all …]
|
/packages/modules/Virtualization/android/virtualizationservice/vmnic/src/ |
D | aidl.rs | 38 fn validate_ifname(ifname: &[c_char]) -> Result<()> { in validate_ifname() 45 fn create_tap_interface(fd: RawFd, sockfd: c_int, ifname: &[c_char]) -> Result<()> { in create_tap_interface() 68 fn delete_tap_interface(sockfd: c_int, ifr: &mut ifreq) -> Result<()> { in delete_tap_interface() 119 fn deleteTapInterface(&self, tapfd: &ParcelFileDescriptor) -> binder::Result<()> { in deleteTapInterface()
|
/packages/modules/Virtualization/libs/libvmbase/src/arch/aarch64/hvc/ |
D | trng.rs | 34 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() 58 pub type Result<T> = result::Result<T, Error>; typedef 70 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() 76 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt()
|
/packages/modules/Virtualization/guest/pvmfw/src/ |
D | fdt.rs | 68 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() 106 fn write_to(&self, node: &mut FdtNodeMut, name: &CStr) -> libfdt::Result<()> { in write_to() 198 ) -> libfdt::Result<()> { in patch_initrd_range() 217 fn patch_bootargs(fdt: &mut Fdt, bootargs: &CStr) -> libfdt::Result<()> { in patch_bootargs() 270 fn patch_memory_range(fdt: &mut Fdt, memory_range: &Range<usize>) -> libfdt::Result<()> { in patch_memory_range() 392 fn validate_cpu_info(cpus: &[CpuInfo]) -> Result<(), FdtValidationError> { in validate_cpu_info() 419 ) -> Result<(), FdtValidationError> { in validate_vcpufreq_info() 437 ) -> libfdt::Result<()> { 477 ) -> libfdt::Result<()> { in patch_cpus() 557 fn validate_untrusted_props(props: &BTreeMap<CString, Vec<u8>>) -> Result<(), FdtValidationError> { in validate_untrusted_props() [all …]
|
/packages/modules/Virtualization/android/forwarder_host/src/ |
D | forwarder_host.rs | 75 type Result<T> = result::Result<T, Error>; typedef 79 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() 156 fn process_update_queue(&mut self, poll_ctx: &PollContext<Token>) -> Result<()> { in process_update_queue() 218 ) -> Result<()> { in accept_connection() 247 fn forward_from_local(&mut self, poll_ctx: &PollContext<Token>, tag: SessionTag) -> Result<()> { in forward_from_local() 264 ) -> Result<()> { in forward_from_remote() 277 fn run(&mut self) -> Result<()> { in run() 373 fn run_forwarder_host(cid: i32, jni_env: JNIEnv, jni_cb: JObject) -> Result<()> { in run_forwarder_host()
|
/packages/modules/ConfigInfrastructure/aconfigd/src/ |
D | utils.rs | 25 pub(crate) fn set_file_permission(file: &Path, mode: u32) -> Result<(), AconfigdError> { in set_file_permission() 34 pub(crate) fn copy_file(src: &Path, dst: &Path, mode: u32) -> Result<(), AconfigdError> { in copy_file() 74 ) -> Result<(), AconfigdError> { in copy_file_without_fsync() 103 pub(crate) fn remove_file(src: &Path) -> Result<(), AconfigdError> { in remove_file() 132 ) -> Result<(), AconfigdError> { in write_pb_to_file()
|