Home
last modified time | relevance | path

Searched defs:Result (Results 1 – 25 of 244) sorted by relevance

12345678910

/packages/modules/Virtualization/libs/hyp/src/hypervisor/
Dcommon.rs33 fn mmio_guard_init(&self) -> Result<()>; in mmio_guard_init()
37 fn mmio_guard_map(&self, addr: usize) -> Result<()>; in mmio_guard_map()
41 fn mmio_guard_unmap(&self, addr: usize) -> Result<()>; in mmio_guard_unmap()
46 fn mem_share(&self, base_ipa: u64) -> Result<()>; in mem_share()
51 fn mem_unshare(&self, base_ipa: u64) -> Result<()>; in mem_unshare()
Dgunyah.rs13 fn mmio_guard_init(&self) -> Result<()> { in mmio_guard_init()
17 fn mmio_guard_map(&self, _addr: usize) -> Result<()> { in mmio_guard_map()
21 fn mmio_guard_unmap(&self, _addr: usize) -> Result<()> { in mmio_guard_unmap()
25 fn mem_share(&self, _base_ipa: u64) -> Result<()> { in mem_share()
29 fn mem_unshare(&self, _base_ipa: u64) -> Result<()> { in mem_unshare()
Dkvm.rs55 fn fmt(&self, f: &mut Formatter) -> fmt::Result { in fmt()
83 fn mmio_guard_init(&self) -> Result<()> { in mmio_guard_init()
92 fn mmio_guard_map(&self, addr: usize) -> Result<()> { in mmio_guard_map()
102 fn mmio_guard_unmap(&self, addr: usize) -> Result<()> { in mmio_guard_unmap()
114 fn mem_share(&self, base_ipa: u64) -> Result<()> { in mem_share()
121 fn mem_unshare(&self, base_ipa: u64) -> Result<()> { in mem_unshare()
155 fn checked_hvc64_expect_zero(function: u32, args: [u64; 17]) -> Result<()> { in checked_hvc64_expect_zero()
/packages/modules/DnsResolver/doh/tests/doh_frontend/src/
Ddns_https_frontend.rs119 pub fn start(&mut self) -> Result<()> { in start()
134 pub fn stop(&mut self) -> Result<()> { in stop()
155 pub fn set_certificate(&mut self, certificate: &str) -> Result<()> { in set_certificate()
160 pub fn set_private_key(&mut self, private_key: &str) -> Result<()> { in set_private_key()
165 pub fn set_delay_queries(&self, value: i32) -> Result<()> { in set_delay_queries()
170 pub fn set_max_idle_timeout(&self, value: u64) -> Result<()> { in set_max_idle_timeout()
175 pub fn set_max_buffer_size(&self, value: u64) -> Result<()> { in set_max_buffer_size()
180 pub fn set_max_streams_bidi(&self, value: u64) -> Result<()> { in set_max_streams_bidi()
185 pub fn block_sending(&self, value: bool) -> Result<()> { in block_sending()
190 pub fn set_reset_stream_id(&self, value: u64) -> Result<()> { in set_reset_stream_id()
[all …]
/packages/modules/DnsResolver/doh/connection/
Ddriver.rs47 pub type Result<T> = std::result::Result<T, Error>; typedef
124 ) -> Result<()> { in drive()
147 async fn drive(mut self) -> Result<()> { in drive()
155 fn handle_closed(&self) -> Result<()> { in handle_closed()
240 async fn flush_tx(&mut self) -> Result<()> { in flush_tx()
277 async fn drive_once(&mut self) -> Result<()> { in drive_once()
326 fn handle_request(&mut self, request: Request) -> Result<()> { in handle_request()
362 async fn recv_body(&mut self, stream_id: u64) -> Result<()> { in recv_body()
397 fn discard_datagram(&mut self, _flow_id: u64) -> Result<()> { in discard_datagram()
408 async fn flush_h3(&mut self) -> Result<()> { in flush_h3()
[all …]
/packages/modules/DnsResolver/doh/dispatcher/
Ddriver.rs37 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/pvmfw/src/
Dfdt.rs80 fn patch_initrd_range(fdt: &mut Fdt, initrd_range: &Range<usize>) -> libfdt::Result<()> { in patch_initrd_range()
102 fn patch_bootargs(fdt: &mut Fdt, bootargs: &CStr) -> libfdt::Result<()> { in patch_bootargs()
116 fn validate_memory_range(range: &Range<usize>) -> Result<(), RebootReason> { in validate_memory_range()
136 fn patch_memory_range(fdt: &mut Fdt, memory_range: &Range<usize>) -> libfdt::Result<()> { in patch_memory_range()
149 fn validate_num_cpus(num_cpus: usize) -> Result<(), RebootReason> { in validate_num_cpus()
162 fn patch_num_cpus(fdt: &mut Fdt, num_cpus: usize) -> libfdt::Result<()> { in patch_num_cpus()
239 fn validate_pci_info(pci_info: &PciInfo, memory_range: &Range<usize>) -> Result<(), RebootReason> { in validate_pci_info()
255 ) -> Result<(), RebootReason> { in validate_pci_addr_range()
300 fn validate_pci_irq_mask(irq_mask: &PciIrqMask) -> Result<(), RebootReason> { in validate_pci_irq_mask()
314 fn validate_pci_irq_map(irq_map: &PciIrqMap, idx: usize) -> Result<(), RebootReason> { in validate_pci_irq_map()
[all …]
Dmmu.rs76 pub fn map_device(&mut self, range: &Range<usize>) -> Result<(), MapError> { in map_device()
80 pub fn map_data(&mut self, range: &Range<usize>) -> Result<(), MapError> { in map_data()
84 pub fn map_code(&mut self, range: &Range<usize>) -> Result<(), MapError> { in map_code()
88 pub fn map_rodata(&mut self, range: &Range<usize>) -> Result<(), MapError> { in map_rodata()
92 fn map_range(&mut self, range: &Range<usize>, attr: Attributes) -> Result<(), MapError> { in map_range()
Dmemory.rs122 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt()
144 type Result<T> = result::Result<T, MemoryTrackerError>; typedef
221 pub fn shrink(&mut self, range: &MemoryRange) -> Result<()> { in shrink()
270 pub fn map_mmio_range(&mut self, range: MemoryRange) -> Result<()> { in map_mmio_range()
301 fn check(&self, region: &MemoryRegion) -> Result<()> { in check()
325 pub fn mmio_unmap_all(&self) -> Result<()> { in mmio_unmap_all()
336 pub fn init_dynamic_shared_pool(&mut self) -> Result<()> { in init_dynamic_shared_pool()
357 pub fn init_static_shared_pool(&mut self, range: Range<usize>) -> Result<()> { in init_static_shared_pool()
427 pub unsafe fn dealloc_shared(vaddr: NonNull<u8>, layout: Layout) -> hyp::Result<()> { in dealloc_shared()
Drand.rs32 pub type Result<T> = core::result::Result<T, Error>; typedef
35 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt()
53 fn fill_with_entropy(s: &mut [u8]) -> Result<()> { in fill_with_entropy()
/packages/modules/Bluetooth/system/rust/src/gatt/
Dserver.rs59 pub fn on_le_connect(&mut self, conn_id: ConnectionId) -> Result<()> { in on_le_connect()
83 pub fn on_le_disconnect(&mut self, tcb_idx: TransportIndex) -> Result<()> { in on_le_disconnect()
100 ) -> Result<()> { in register_gatt_service()
112 ) -> Result<()> { in unregister_gatt_service()
120 pub fn open_gatt_server(&mut self, server_id: ServerId) -> Result<()> { in open_gatt_server()
131 pub fn close_gatt_server(&mut self, server_id: ServerId) -> Result<()> { in close_gatt_server()
/packages/modules/Virtualization/pvmfw/avb/src/
Dutils.rs21 pub(crate) type Result<T> = result::Result<T, AvbIOError>; typedef
23 pub(crate) fn write<T>(ptr: *mut T, value: T) -> Result<()> { in write()
42 pub(crate) fn is_not_null<T>(ptr: *const T) -> Result<()> { in is_not_null()
Dverify.rs48 ) -> Result<(), AvbSlotVerifyError> { in verify_only_one_vbmeta_exists()
58 ) -> Result<(), AvbSlotVerifyError> { in verify_vbmeta_is_from_kernel_partition()
67 ) -> Result<(), AvbSlotVerifyError> { in verify_vbmeta_has_only_one_hash_descriptor()
79 ) -> Result<(), AvbSlotVerifyError> { in verify_loaded_partition_has_expected_length()
Derror.rs45 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt()
64 ) -> Result<(), AvbSlotVerifyError> { in slot_verify_result_to_verify_payload_result()
127 pub(crate) fn to_avb_io_result(result: Result<(), AvbIOError>) -> AvbIOResult { in to_avb_io_result()
/packages/modules/Virtualization/virtualizationmanager/src/
Daidl.rs108 ) -> Result<()> { in create_or_update_idsig_file()
130 pub fn remove_temporary_files(path: &PathBuf) -> Result<()> { in remove_temporary_files()
144 fn dump(&self, mut file: &File, _args: &[&CStr]) -> Result<(), StatusCode> { in dump()
190 ) -> binder::Result<()> { in initializeWritablePartition()
238 ) -> binder::Result<()> { in createOrUpdateIdsigFile()
476 fn write_zero_filler(zero_filler_path: &Path) -> Result<()> { in write_zero_filler()
487 fn format_as_android_vm_instance(part: &mut dyn Write) -> std::io::Result<()> { in format_as_android_vm_instance()
493 fn format_as_encryptedstore(part: &mut dyn Write) -> std::io::Result<()> { in format_as_encryptedstore()
679 fn check_permission(perm: &str) -> binder::Result<()> { in check_permission()
729 fn check_label_is_allowed(context: &SeContext) -> Result<()> { in check_label_is_allowed()
[all …]
/packages/modules/Virtualization/virtualizationservice/src/
Daidl.rs90 fn removeMemlockRlimit(&self) -> binder::Result<()> { in removeMemlockRlimit()
124 fn atomVmBooted(&self, atom: &AtomVmBooted) -> Result<(), Status> { in atomVmBooted()
129 fn atomVmCreationRequested(&self, atom: &AtomVmCreationRequested) -> Result<(), Status> { in atomVmCreationRequested()
134 fn atomVmExited(&self, atom: &AtomVmExited) -> Result<(), Status> { in atomVmExited()
253 fn create_temporary_directory(path: &PathBuf, requester_uid: uid_t) -> Result<()> { in create_temporary_directory()
270 pub fn remove_temporary_dir(path: &PathBuf) -> Result<()> { in remove_temporary_dir()
322 fn handle_tombstone(stream: &mut VsockStream) -> Result<()> { in handle_tombstone()
351 fn check_permission(perm: &str) -> binder::Result<()> { in check_permission()
/packages/modules/Virtualization/libs/hyp/src/
Derror.rs22 pub type Result<T> = result::Result<T, Error>; typedef
38 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt()
/packages/modules/Virtualization/libs/libfdt/src/
Dlib.rs77 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt()
104 pub type Result<T> = result::Result<T, FdtError>; typedef
135 fn fdt_err_expect_zero(val: c_int) -> Result<()> { in fdt_err_expect_zero()
378 pub fn appendprop<T: AsRef<[u8]>>(&mut self, name: &CStr, value: &T) -> Result<()> { in appendprop()
394 pub fn appendprop_addrrange(&mut self, name: &CStr, addr: u64, size: u64) -> Result<()> { in appendprop_addrrange()
411 pub fn setprop(&mut self, name: &CStr, value: &[u8]) -> Result<()> { in setprop()
429 pub fn setprop_inplace(&mut self, name: &CStr, value: &[u8]) -> Result<()> { in setprop_inplace()
445 pub fn setprop_empty(&mut self, name: &CStr) -> Result<()> { in setprop_empty()
450 pub fn delprop(&mut self, name: &CStr) -> Result<()> { in delprop()
463 pub fn trimprop(&mut self, name: &CStr, new_size: usize) -> Result<()> { in trimprop()
[all …]
/packages/modules/DnsResolver/
DDnsTlsQueryMap.h48 struct Result { struct
54 QueryFuture(Query query, std::future<Result> result) in QueryFuture() argument
/packages/modules/Bluetooth/tools/rootcanal/rust/src/lmp/procedure/
Dlegacy_pairing.rs8 pub async fn initiate(ctx: &impl Context) -> Result<(), ()> { in initiate()
53 pub async fn respond(ctx: &impl Context, _request: lmp::InRand) -> Result<(), ()> { in respond()
/packages/modules/Virtualization/compos/src/
Dcompilation.rs43 fn validate_args(args: &OdrefreshArgs) -> Result<()> { in validate_args()
79 F: FnOnce(PathBuf) -> Result<()>, in odrefresh()
183 fn set_classpaths(odrefresh_vars: &mut EnvMap, android_root: &Path) -> Result<()> { in set_classpaths()
213 fn load_classpath_vars(odrefresh_vars: &mut EnvMap, export_lines: &str) -> Result<()> { in load_classpath_vars()
/packages/modules/Virtualization/microdroid_manager/src/
Dvm_payload_service.rs35 fn notifyPayloadReady(&self) -> binder::Result<()> { in notifyPayloadReady()
84 fn check_restricted_apis_allowed(&self) -> binder::Result<()> { in check_restricted_apis_allowed()
99 ) -> Result<()> { in register_vm_payload_service()
/packages/modules/Virtualization/pvmfw/src/hvc/
Dtrng.rs34 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt()
57 pub type Result<T> = result::Result<T, Error>; typedef
/packages/modules/Virtualization/rialto/src/
Derror.rs21 pub type Result<T> = result::Result<T, Error>; typedef
34 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt()
/packages/modules/DnsResolver/doh/network/
Ddriver.rs112 pub async fn drive(mut self) -> Result<()> { in drive()
130 async fn probe(&mut self, probe_timeout: Duration) -> Result<()> { in probe()
147 async fn force_probe(&mut self, probe_timeout: Duration) -> Result<()> { in force_probe()
180 async fn send_query(&mut self, query: Query) -> Result<()> { in send_query()

12345678910