Home
last modified time | relevance | path

Searched refs:Ok (Results 1 – 25 of 31) sorted by relevance

12

/packages/modules/Virtualization/authfs/src/fsverity/
Deditor.rs122 Ok(Sha256Hasher::new()? in new_hash_for_incomplete_write()
140 Ok(Sha256Hasher::new()?.update(source)?.finalize()?) in new_chunk_hash()
191 Ok(hash) => hash, in write_at()
198 return Ok(written as usize); in write_at()
217 Ok(buf.len()) in write_at()
253 Ok(()) in resize()
294 Ok(buf.len()) in write_at()
301 Ok(()) in resize()
322 Ok(chunk.len()) in read_chunk()
339 Ok(()) in test_writer()
[all …]
Dbuilder.rs106 Ok([0u8; HASH_SIZE]) in calculate_root_hash()
110 Ok(self.leaves[0]) in calculate_root_hash()
125 Ok(hashes.into_iter().next().unwrap()) in calculate_root_hash()
134 Ok(build_fsverity_digest(&root_hash, self.file_size)?) in calculate_fsverity_digest()
153 Ok(()) in merkle_tree_empty_file()
163 Ok(()) in merkle_tree_file_size_less_than_or_equal_to_4k()
191 Ok(()) in merkle_tree_more_sizes()
209 Ok(()) in merkle_tree_non_sequential()
226 Ok(()) in merkle_tree_grow_leaves()
244 Ok(()) in merkle_tree_shrink_leaves()
[all …]
Dverifier.rs61 Ok(hash_with_padding(&merkle_chunk, CHUNK_SIZE as usize)?) in verity_check()
103 Ok(root_to_leaf_steps.into_iter().rev().map(move |(chunk_index, hash_offset_in_chunk)| {
109 Ok((merkle_chunk, hash_offset_in_chunk))
125 Ok(formatted_digest)
152 Ok(VerifiedFileReader { chunked_file, file_size, merkle_tree, root_hash }) in new()
167 Ok(size) in read_chunk()
199 Ok(( in new_reader_with_fsverity()
217 Ok(()) in fsverity_verify_full_read_4k()
232 Ok(()) in fsverity_verify_full_read_4k1()
247 Ok(()) in fsverity_verify_full_read_4m()
[all …]
/packages/modules/DnsResolver/
Ddoh.rs93 Ok(udp_sk) in make_doh_udp_socket()
133 Ok(Box::new(DohDispatcher { query_sender: cmd_sender, join_handle })) in new_with_socket()
138 Ok(()) in query()
172 Ok(size) => { in doh_handler()
174 Ok(l) => l, in doh_handler()
237 Ok(stream_id) => { in doh_handler()
279 Ok(h3_conn.send_request(&mut conn, &_req, false /*fin*/)?) in send_dns_query()
291 Ok((stream_id, quiche::h3::Event::Headers { list, has_body })) => { in recv_query()
297 Ok((stream_id, quiche::h3::Event::Data)) => { in recv_query()
299 if let Ok(read) = h3_conn.recv_body(&mut conn, stream_id, &mut buf) { in recv_query()
[all …]
/packages/modules/Virtualization/compos/src/
Dcompsvc_worker.rs43 Ok(statfs(path)?.filesystem_type() == FUSE_SUPER_MAGIC) in is_fuse()
69 Ok(jail) in spawn_authfs()
83 Ok(()) in wait_until_authfs_ready()
96 .map(|conf| Ok((open_authfs_file(&config.authfs_root, conf.fd, false)?, conf.fd))) in open_authfs_files_for_mapping()
103 .map(|conf| Ok((open_authfs_file(&config.authfs_root, conf.fd, true)?, conf.fd))) in open_authfs_files_for_mapping()
107 Ok(fd_mapping) in open_authfs_files_for_mapping()
121 Ok(jail) in spawn_jailed_task()
177 Ok(InFdAnnotation { fd: fd.parse()?, file_size: size[1..].parse()? }) in parse_args()
189 .map(|arg| Ok(OutFdAnnotation { fd: arg.parse()? })) in parse_args()
196 Ok(Config { authfs_root, in_fds, out_fds, args, debuggable }) in parse_args()
[all …]
Dpvm_exec.rs70 Ok(jail) in spawn_fd_server()
75 Ok(retval >= 0) in is_fd_valid()
83 Ok(fd) in parse_arg_fd()
119 Ok(InputFdAnnotation { fd, file_size }) in parse_args()
129 Ok(OutputFdAnnotation { fd }) in parse_args()
137 Ok(Config { in parse_args()
168 Ok(()) in main()
Dcompsvc.rs112 Ok(_) => Ok(0), // TODO(b/161471326): Sign the output on succeed. in execute()
134 Ok(CompService { in parse_args()
/packages/modules/Virtualization/virtmanager/src/
Daidl.rs64 Ok(sid) => Ok(sid.to_owned()), in startVm()
86 Ok(VirtualMachine::create(instance)) in startVm()
108 Ok(cids) in debugListVms()
120 Ok(()) in debugHoldVmRef()
132 Ok(state.debug_drop_vm(cid)) in debugDropVmRef()
160 Ok(self.instance.cid as i32) in getCid()
164 Ok(self.instance.running()) in isRunning()
173 Ok(()) in registerCallback()
246 let pos = self.debug_held_vms.iter().position(|vm| vm.getCid() == Ok(cid))?; in debug_drop_vm()
255 Ok(cid) in allocate_cid()
[all …]
Dcrosvm.rs95 Ok(instance) in start()
103 Ok(status) => info!("crosvm exited with status {}", status), in monitor()
152 Ok(SharedChild::spawn(&mut command)?) in run_vm()
Dconfig.rs50 Ok(()) in validate()
56 Ok(serde_json::from_reader(buffered)?) in load()
/packages/modules/Virtualization/authfs/src/file/
Dlocal_file.rs35 Ok(LocalFileReader { file, size }) in new()
47 return Ok(0); in read_chunk()
53 Ok(read_size) in read_chunk()
68 Ok(()) in test_read_4k_file()
79 Ok(()) in test_read_4k1_file()
90 Ok(()) in test_read_4m_file()
99 Ok(()) in test_read_beyond_file_size()
110 Ok(()) in test_read_empty_file()
Dremote_file.rs46 Ok(size) in remote_read_chunk()
93 Ok(size) in read_chunk()
119 Ok(size as usize) // within range because size is supposed to <= buf.len(), which is a usize in write_at()
130 Ok(()) in resize()
/packages/modules/Virtualization/authfs/src/
Dmain.rs152 Ok(OptionRemoteRoFile { in parse_remote_ro_file_option()
165 Ok(OptionRemoteRoFileUnverified { in parse_remote_ro_file_unverified_option()
177 Ok(OptionRemoteRwFile { in parse_remote_new_rw_file_option()
188 Ok(OptionLocalFileRo { in parse_local_file_ro_option()
202 Ok(OptionLocalRoFileUnverified { in parse_local_ro_file_unverified_ro_option()
214 Ok(FileConfig::RemoteVerifiedReadonlyFile { in new_config_remote_verified_file()
228 Ok(FileConfig::RemoteUnverifiedReadonlyFile { reader, file_size }) in new_config_remote_unverified_file()
245 Ok(FileConfig::LocalVerifiedReadonlyFile { reader, file_size }) in new_config_local_ro_file()
251 Ok(FileConfig::LocalUnverifiedReadonlyFile { reader, file_size }) in new_config_local_ro_file_unverified()
257 Ok(FileConfig::RemoteVerifiedNewFile { editor: VerifiedFileEditor::new(remote_file) }) in new_config_remote_new_verified_file()
[all …]
Dcrypto.rs52 Ok(Sha256Hasher { ctx: ctx.assume_init() }) in new()
65 Ok(self) in update()
77 Ok(self) in update_from()
87 Ok(md)
113 Ok(()) in verify_hash_values()
120 Ok(()) in sha256_of_4096_zeros()
Dfusefs.rs96 Ok(()) in check_access_mode()
135 Ok(st) in create_stat()
170 Ok(total + s) in read_chunks()
174 Ok(total) in read_chunks()
198 Ok(FsOptions::WRITEBACK_CACHE) in init()
220 Ok(Entry { in lookup()
235 Ok(( in getattr()
273 Ok((None, fuse::sys::OpenOptions::KEEP_CACHE)) in open()
372 Ok((new_attr, DEFAULT_METADATA_TIMEOUT)) in setattr()
Dauth.rs43 Ok(self.should_allow) in verify()
Dfile.rs50 Ok(()) in write_all_at()
/packages/modules/Virtualization/zipfuse/src/
Dmain.rs49 Ok(()) in main()
72 Ok(fuse::worker::start_message_loop(dev_fuse, MAX_READ, MAX_WRITE, ZipFuse::new(zip_file)?)?) in run_fuse()
116 Ok(ZipFuse { in new()
146 Ok(st) in stat_from()
157 Ok(FsOptions::empty()) in init()
165 Some(e) => Ok(Entry { in lookup()
183 Ok((st, timeout_max())) in getattr()
216 Ok((Some(handle), fuse::filesystem::OpenOptions::empty())) in open()
238 Ok(()) in release()
264 Ok(read_len) in read()
[all …]
Dinode.rs222 Ok(table) in from_zip()
/packages/modules/Virtualization/authfs/fd_server/src/
Dmain.rs147 Ok(buf) in readFsverityMerkleTree()
178 Ok(buf) in readFsveritySignature()
202 Ok(file.write_at(buf, offset).map_err(|e| { in writeFile()
234 Ok(buf) in read_into_buf()
248 Ok(unsafe { File::from_raw_fd(fd) }) in fd_to_file()
257 Ok(( in parse_arg_ro_fds()
275 Ok((fd, FdConfig::ReadWrite(file))) in parse_arg_rw_fds()
304 Ok(fd_pool) in parse_args()
Dfsverity.rs50 Ok(unsafe { read_verity_metadata(fd, &mut arg) }.map_err(|e| { in read_metadata()
/packages/modules/Virtualization/vm/src/
Drun.rs73 Ok(()) in wait_for_vm()
85 Ok(death_recipient) in wait_for_death()
99 Ok(()) in onDied()
114 Ok(unsafe { File::from_raw_fd(dup_fd) }) in duplicate_stdout()
Dmain.rs75 Ok(()) in command_stop()
82 Ok(()) in command_list()
/packages/apps/Car/Settings/src/com/android/car/settings/security/
DChooseLockPatternFragment.java370 case Ok: in handlePrimaryButtonClick()
461 PrimaryButtonState.Ok,
550 Ok(R.string.okay, true); enumConstant
/packages/apps/Settings/src/com/android/settings/password/
DChooseLockPattern.java342 Ok(android.R.string.ok, true); enumConstant
370 LeftButtonMode.Gone, RightButtonMode.Ok, ID_EMPTY_MESSAGE, false),
666 } else if (mUiStage.rightMode == RightButtonMode.Ok) { in handleRightButton()

12