/external/crosvm/libcrosvm_control/src/ |
D | lib.rs | 41 .unwrap_or(false) in crosvm_client_stop_vm() 56 .unwrap_or(false) in crosvm_client_suspend_vm() 71 .unwrap_or(false) in crosvm_client_resume_vm() 88 .unwrap_or(false) in crosvm_client_balloon_vms() 151 .unwrap_or(-1) in crosvm_client_usb_list() 183 let dev_path = Path::new(unsafe { CStr::from_ptr(dev_path) }.to_str().unwrap_or("")); in crosvm_client_usb_attach() 199 .unwrap_or(false) in crosvm_client_usb_attach() 215 .unwrap_or(false) in crosvm_client_usb_detach() 249 .unwrap_or(false) in crosvm_client_modify_battery() 276 .unwrap_or(false) in crosvm_client_resize_disk() [all …]
|
/external/rust/crates/nix/src/sys/ |
D | select.rs | 87 range: 0..highest.map(|h| h as usize + 1).unwrap_or(FD_SETSIZE), in fds() 182 .map(|set| set.highest().unwrap_or(-1)) in select() 184 .unwrap_or(-1) + 1 in select() 187 let readfds = readfds.map(|set| set as *mut _ as *mut libc::fd_set).unwrap_or(null_mut()); in select() 188 let writefds = writefds.map(|set| set as *mut _ as *mut libc::fd_set).unwrap_or(null_mut()); in select() 189 let errorfds = errorfds.map(|set| set as *mut _ as *mut libc::fd_set).unwrap_or(null_mut()); in select() 191 .unwrap_or(null_mut()); in select() 253 .map(|set| set.highest().unwrap_or(-1)) in pselect() 255 .unwrap_or(-1) + 1 in pselect() 258 let readfds = readfds.map(|set| set as *mut _ as *mut libc::fd_set).unwrap_or(null_mut()); in pselect() [all …]
|
D | sendfile.rs | 31 .unwrap_or(ptr::null_mut()); in sendfile() 65 hdr_cnt: header_iovecs.as_ref().map(|v| v.len()).unwrap_or(0) as i32, 71 trl_cnt: trailer_iovecs.as_ref().map(|v| v.len()).unwrap_or(0) as i32 150 count.unwrap_or(0), 189 let mut len = count.unwrap_or(0);
|
/external/rust/crates/which/src/ |
D | checker.rs | 24 .unwrap_or(false) in is_valid() 49 .unwrap_or(false) in is_valid() 56 .unwrap_or(false) in is_valid()
|
/external/crosvm/devices/src/virtio/video/decoder/ |
D | capability.rs | 98 min: min_width.unwrap_or(0), in new() 99 max: max_width.unwrap_or(0), in new() 103 min: min_height.unwrap_or(0), in new() 104 max: max_height.unwrap_or(0), in new()
|
/external/rust/crates/proc-macro-error/ |
D | build.rs | 2 if !version_check::is_feature_flaggable().unwrap_or(false) { in main() 6 if version_check::is_max_version("1.38.0").unwrap_or(false) in main()
|
/external/rust/crates/bstr/src/unicode/ |
D | whitespace.rs | 8 WHITESPACE_ANCHORED_FWD.find(slice).unwrap_or(0) in whitespace_len_fwd() 13 WHITESPACE_ANCHORED_REV.rfind(slice).unwrap_or(slice.len()) in whitespace_len_rev()
|
/external/adhd/cras/client/cras_tests/src/ |
D | audio.rs | 194 num_channels = opts.num_channels.unwrap_or(2); in playback() 195 frame_rate = opts.frame_rate.unwrap_or(48000); in playback() 196 format = opts.format.unwrap_or(SampleFormat::S16LE); in playback() 218 opts.buffer_size.unwrap_or(256), in playback() 353 let num_channels = opts.num_channels.unwrap_or(2); in capture() 354 let format = opts.format.unwrap_or(SampleFormat::S16LE); in capture() 355 let frame_rate = opts.frame_rate.unwrap_or(48000); in capture() 356 let buffer_size = opts.buffer_size.unwrap_or(256); in capture()
|
/external/rust/cxx/gen/build/src/ |
D | out.rs | 27 Err(err) => Err(Error::Fs(create_dir_error.unwrap_or(err))), in write() 47 Err(err) => Err(Error::Fs(create_dir_error.unwrap_or(err))), in symlink_file() 67 Err(err) => Err(Error::Fs(create_dir_error.unwrap_or(err))), in symlink_dir()
|
/external/rust/crates/criterion/src/ |
D | benchmark.rs | 61 confidence_level: self.confidence_level.unwrap_or(defaults.confidence_level), in to_complete() 62 measurement_time: self.measurement_time.unwrap_or(defaults.measurement_time), in to_complete() 63 noise_threshold: self.noise_threshold.unwrap_or(defaults.noise_threshold), in to_complete() 64 nresamples: self.nresamples.unwrap_or(defaults.nresamples), in to_complete() 65 sample_size: self.sample_size.unwrap_or(defaults.sample_size), in to_complete() 68 .unwrap_or(defaults.significance_level), in to_complete() 69 warm_up_time: self.warm_up_time.unwrap_or(defaults.warm_up_time), in to_complete() 70 sampling_mode: self.sampling_mode.unwrap_or(defaults.sampling_mode), in to_complete()
|
/external/rust/crates/libloading/src/os/windows/ |
D | mod.rs | 127 }).map_err(|e| e.unwrap_or(crate::Error::GetModuleHandleExWUnknown)) in this() 162 }).map_err(|e| e.unwrap_or(crate::Error::GetModuleHandleExWUnknown)) in open_already_loaded() 203 }).map_err(|e| e.unwrap_or(crate::Error::LoadLibraryExWUnknown)); in load_with_flags() 234 }).map_err(|e| e.unwrap_or(crate::Error::GetProcAddressUnknown)) in get() 256 }).map_err(|e| e.unwrap_or(crate::Error::GetProcAddressUnknown)) in get_ordinal() 290 }).map_err(|e| e.unwrap_or(crate::Error::FreeLibraryUnknown)); in close()
|
/external/rust/crates/unicode-width/src/ |
D | lib.rs | 124 self.chars().map(|c| cw::width(c, false).unwrap_or(0)).fold(0, Add::add) in width() 129 self.chars().map(|c| cw::width(c, true).unwrap_or(0)).fold(0, Add::add) in width_cjk()
|
/external/rust/crates/regex/src/ |
D | expand.rs | 38 dst.push_str(caps.get(i).map(|m| m.as_str()).unwrap_or("")); in expand_str() 42 caps.name(name).map(|m| m.as_str()).unwrap_or(""), in expand_str() 80 dst.extend(caps.get(i).map(|m| m.as_bytes()).unwrap_or(b"")); in expand_bytes() 84 caps.name(name).map(|m| m.as_bytes()).unwrap_or(b""), in expand_bytes()
|
/external/crosvm/devices/src/virtio/video/ |
D | async_cmd_desc_map.rs | 48 && target_queue_type.as_ref().unwrap_or(&queue_type) == queue_type => in create_cancellation_responses() 71 && target_queue_type.as_ref().unwrap_or(&queue_type) == queue_type => in create_cancellation_responses()
|
/external/rust/crates/crossbeam-channel/tests/ |
D | never.rs | 28 recv(r.unwrap_or(&never())) -> _ => {} in optional() 34 recv(r.unwrap_or(&never())) -> _ => panic!(), in optional()
|
/external/rust/crates/proc-macro-error/src/ |
D | lib.rs | 337 let last = spans.last().unwrap_or(first); in from_tokens() 353 self.first.join(self.last).unwrap_or(self.first) in collapse() 532 let last = ts.last().map(|tt| tt.span()).unwrap_or(first); in FIRST_ARG_MUST_EITHER_BE_Span_OR_IMPLEMENT_ToTokens_OR_BE_SpanRange()
|
/external/rust/crates/clap/src/app/ |
D | help.rs | 370 let h = arg.help().unwrap_or(""); in val() 459 arg.long_help().unwrap_or_else(|| arg.help().unwrap_or("")) in help() 461 arg.help().unwrap_or_else(|| arg.long_help().unwrap_or("")) in help() 691 write!(self.writer, "{}", parser.meta.version.unwrap_or(""))?; in write_version() 943 parser.meta.version.unwrap_or("unknown version") in write_templated_help() 950 parser.meta.author.unwrap_or("unknown author") in write_templated_help() 957 parser.meta.about.unwrap_or("unknown about") in write_templated_help() 964 parser.meta.long_about.unwrap_or("unknown about") in write_templated_help() 996 parser.meta.more_help.unwrap_or("unknown after-help") in write_templated_help() 1003 parser.meta.pre_help.unwrap_or("unknown before-help") in write_templated_help()
|
D | parser.rs | 99 .unwrap_or('h'); in help_short() 108 .unwrap_or('V'); in version_short() 757 .unwrap_or(&self.meta.name) in parse_help_subcommand() 795 self.meta.bin_name.as_ref().unwrap_or(&self.meta.name), in parse_help_subcommand() 964 let any_arg = find_any_by_name!(self, self.cache.unwrap_or("")); in get_matches_with() 1040 self.meta.bin_name.as_ref().unwrap_or(&self.meta.name), in get_matches_with() 1110 let any_arg = find_any_by_name!(self, self.cache.unwrap_or("")); in get_matches_with() 1184 self.meta.bin_name.as_ref().unwrap_or(&self.meta.name), in get_matches_with() 1191 self.meta.bin_name.as_ref().unwrap_or(&self.meta.name), in get_matches_with() 1217 let bn = self.meta.bin_name.as_ref().unwrap_or(&self.meta.name); in get_matches_with() [all …]
|
/external/crosvm/sys_util/src/android/ |
D | syslog.rs | 53 let tag = proc_name.unwrap_or("crosvm"); in log() 91 let line = line.unwrap_or(0); in android_log()
|
/external/rust/crates/criterion/src/plot/gnuplot_backend/ |
D | distributions.rs | 41 .unwrap_or(kde_xs.len() - 1) in abs_distribution() 68 .set(size.unwrap_or(SIZE)) in abs_distribution() 179 .unwrap_or(ys.len() - 1) in rel_distribution() 223 .set(size.unwrap_or(SIZE)) in rel_distribution()
|
/external/rust/crates/rustversion/build/ |
D | rustc.rs | 27 let last_line = string.lines().last().unwrap_or(&string); in parse() 44 let patch = digits.next().unwrap_or("0").parse().ok()?; in parse()
|
/external/rust/crates/gdbstub/src/protocol/commands/ |
D | _vRun.rs | 18 .map(|raw| decode_hex_buf(raw).unwrap_or(&mut [])) in into_iter() 35 let args = body.next().unwrap_or(&mut []); // args are optional in from_packet()
|
/external/rust/crates/url/src/ |
D | quirks.rs | 84 url.password().unwrap_or("") in password() 157 url.host_str().unwrap_or("") in hostname() 183 || !url.password().unwrap_or(&"").is_empty() in set_hostname()
|
/external/rust/crates/criterion/src/plot/plotters_backend/ |
D | distributions.rs | 34 .unwrap_or(kde_xs.len() - 1) in abs_distribution() 57 let root_area = SVGBackend::new(&path, size.unwrap_or(SIZE)).into_drawing_area(); in abs_distribution() 179 .unwrap_or(ys.len() - 1) in rel_distribution() 217 let root_area = SVGBackend::new(&path, size.unwrap_or(SIZE)).into_drawing_area(); in rel_distribution()
|
/external/rust/crates/proc-macro-error-attr/ |
D | build.rs | 2 if version_check::is_max_version("1.36.0").unwrap_or(false) { in main()
|